@@ -10,7 +10,7 @@ |
||
| 10 | 10 | public function test_object_to_xml_representation() |
| 11 | 11 | { |
| 12 | 12 | $this->markTestSkipped(); |
| 13 | - $SUT = new Immutable(require __DIR__ .'/fixtures/error-message.php'); |
|
| 13 | + $SUT = new Immutable(require __DIR__ . '/fixtures/error-message.php'); |
|
| 14 | 14 | $xml = $SUT->toXML('payload'); |
| 15 | 15 | |
| 16 | 16 | $this->assertXmlStringEqualsXmlFile(__DIR__ . '/fixtures/error-message.xml', $xml); |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | |
| 75 | 75 | public function test_rmdir_function() |
| 76 | 76 | { |
| 77 | - $dir = sys_get_temp_dir() . DIRECTORY_SEPARATOR. randomstring(9); |
|
| 77 | + $dir = sys_get_temp_dir() . DIRECTORY_SEPARATOR . randomstring(9); |
|
| 78 | 78 | $file = $dir . DIRECTORY_SEPARATOR . randomstring(9) . '.txt'; |
| 79 | 79 | |
| 80 | 80 | $this->assertTrue(mkdir($dir), 'Should create an empty directory'); |
@@ -168,9 +168,9 @@ discard block |
||
| 168 | 168 | |
| 169 | 169 | // None of the keys are valid or sane, but it "works" because PHP |
| 170 | 170 | |
| 171 | - [[null => 1], true], // NULL is converted to '' |
|
| 172 | - [[false => 1], false], // FALSE is converted to 0 |
|
| 173 | - [[true => 1], true], // TRUE is converted to 1 |
|
| 171 | + [[null => 1], true], // NULL is converted to '' |
|
| 172 | + [[false => 1], false], // FALSE is converted to 0 |
|
| 173 | + [[true => 1], true], // TRUE is converted to 1 |
|
| 174 | 174 | |
| 175 | 175 | [[2.7 => 'yes'], true], // FLOAT is a different level of weird (float-to-string) |
| 176 | 176 | ]; |
@@ -51,7 +51,6 @@ |
||
| 51 | 51 | * |
| 52 | 52 | * @param string $index The name of the property (dot-notation) |
| 53 | 53 | * @param mixed $default [optional] Default value if item is not found |
| 54 | - |
|
| 55 | 54 | * @return mixed |
| 56 | 55 | */ |
| 57 | 56 | public function find(string $index, $default = null); |
@@ -22,11 +22,11 @@ |
||
| 22 | 22 | * It is useful for passing it around as a DTO. |
| 23 | 23 | */ |
| 24 | 24 | class Immutable implements Data, |
| 25 | - ArrayDataFilter, |
|
| 26 | - TransformsToArguments, |
|
| 27 | - IteratorAggregate, |
|
| 28 | - Countable, |
|
| 29 | - JsonSerializable |
|
| 25 | + ArrayDataFilter, |
|
| 26 | + TransformsToArguments, |
|
| 27 | + IteratorAggregate, |
|
| 28 | + Countable, |
|
| 29 | + JsonSerializable |
|
| 30 | 30 | { |
| 31 | 31 | |
| 32 | 32 | use AccessorTrait, ArrayDataFilterTrait; |
@@ -25,11 +25,11 @@ |
||
| 25 | 25 | * It will mess up your Zen. |
| 26 | 26 | */ |
| 27 | 27 | class Arguments implements Argument, |
| 28 | - TransformsToImmutable, |
|
| 29 | - NamespaceDataFilter, |
|
| 30 | - IteratorAggregate, |
|
| 31 | - Countable, |
|
| 32 | - JsonSerializable |
|
| 28 | + TransformsToImmutable, |
|
| 29 | + NamespaceDataFilter, |
|
| 30 | + IteratorAggregate, |
|
| 31 | + Countable, |
|
| 32 | + JsonSerializable |
|
| 33 | 33 | { |
| 34 | 34 | |
| 35 | 35 | use AccessorTrait, MutatorTrait, ArrayDataFilterTrait { |