Page MenuHomeDevCentral

D2281.id5747.diff
No OneTemporary

D2281.id5747.diff

diff --git a/src/Debug/_register_to_global_space.php b/src/Debug/_register_to_global_space.php
--- a/src/Debug/_register_to_global_space.php
+++ b/src/Debug/_register_to_global_space.php
@@ -1,6 +1,6 @@
<?php
-/* This code is intentionnally left in the global namespace. */
+/* This code is intentionally left in the global namespace. */
use Keruald\OmniTools\Debug\Debugger;
diff --git a/src/Network/IPv6Range.php b/src/Network/IPv6Range.php
--- a/src/Network/IPv6Range.php
+++ b/src/Network/IPv6Range.php
@@ -79,11 +79,11 @@
}
$base = inet_pton($this->getFirst());
- $mask = inet_pton($this->getInversedMask());
+ $mask = inet_pton($this->getInverseMask());
return inet_ntop($base | $mask);
}
- private function getInversedMask () : string {
+ private function getInverseMask () : string {
$bits = array_fill(0, $this->networkBits, 0) + array_fill(0, 128, 1);
return (string)IPv6::fromBinaryBits($bits);
diff --git a/src/Registration/PSR4/Solver.php b/src/Registration/PSR4/Solver.php
--- a/src/Registration/PSR4/Solver.php
+++ b/src/Registration/PSR4/Solver.php
@@ -18,7 +18,7 @@
private $path;
/**
- * @var string The fully qualif class name
+ * @var string The fully qualified class name
*/
private $class;
diff --git a/tests/Collections/WeightedValueTest.php b/tests/Collections/WeightedValueTest.php
--- a/tests/Collections/WeightedValueTest.php
+++ b/tests/Collections/WeightedValueTest.php
@@ -77,7 +77,7 @@
}
/**
- * @dataProvider provideExpressionstoParse
+ * @dataProvider provideExpressionsToParse
*/
public function testParse ($expression, $expectedValue, $expectedWeight) : void {
$value = WeightedValue::Parse($expression);
@@ -90,7 +90,7 @@
/// Data providers
///
- public function provideExpressionstoParse () : iterable {
+ public function provideExpressionsToParse () : iterable {
yield ["", "", 1.0];
yield ["de", "de", 1.0];
yield ["de;q=1.0", "de", 1.0];
diff --git a/tests/Network/IPTest.php b/tests/Network/IPTest.php
--- a/tests/Network/IPTest.php
+++ b/tests/Network/IPTest.php
@@ -64,13 +64,13 @@
yield ["1.2.3.4:1111:2222:3333:4444::5555"];
}
- public function provideValidLoopblackIP () : iterable {
+ public function provideValidLoopbackIP () : iterable {
yield ["127.0.0.1"];
yield ["127.0.0.3"];
yield ["::1"];
}
- public function provideInvalidLoopblackIP () : iterable {
+ public function provideInvalidLoopbackIP () : iterable {
yield ["0.0.0.0"];
yield ["1.2.3.4"];
yield ["192.168.1.1"];
@@ -131,7 +131,7 @@
/**
* @covers \Keruald\OmniTools\Network\IP::isLoopback
- * @dataProvider provideValidLoopblackIP
+ * @dataProvider provideValidLoopbackIP
*/
public function testIsLoopback (string $ip) : void {
$this->assertTrue(IP::isLoopback($ip));
@@ -139,7 +139,7 @@
/**
* @covers \Keruald\OmniTools\Network\IP::isLoopback
- * @dataProvider provideInvalidLoopblackIP
+ * @dataProvider provideInvalidLoopbackIP
*/
public function testIsLoopbackWhenItIsNot (string $ip) : void {
$this->assertFalse(IP::isLoopback($ip));

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 18, 04:32 (21 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2250144
Default Alt Text
D2281.id5747.diff (3 KB)

Event Timeline