@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of sebastian/diff. |
4 | 4 | * |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of sebastian/diff. |
4 | 4 | * |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | throw new InvalidArgumentException( |
44 | 44 | \sprintf( |
45 | 45 | 'Expected builder to be an instance of DiffOutputBuilderInterface, <null> or a string, got %s.', |
46 | - \is_object($outputBuilder) ? 'instance of "' . \get_class($outputBuilder) . '"' : \gettype($outputBuilder) . ' "' . $outputBuilder . '"' |
|
46 | + \is_object($outputBuilder) ? 'instance of "'.\get_class($outputBuilder).'"' : \gettype($outputBuilder).' "'.$outputBuilder.'"' |
|
47 | 47 | ) |
48 | 48 | ); |
49 | 49 | } |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of sebastian/diff. |
4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of sebastian/diff. |
4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of sebastian/diff. |
4 | 4 | * |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | public function testCanBeLoadedFromFile() { |
47 | 47 | $this->assertInstanceOf( |
48 | 48 | Manifest::class, |
49 | - ManifestLoader::fromFile(__DIR__ . '/_fixture/library.xml') |
|
49 | + ManifestLoader::fromFile(__DIR__.'/_fixture/library.xml') |
|
50 | 50 | ); |
51 | 51 | } |
52 | 52 | |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | $this->assertInstanceOf( |
55 | 55 | Manifest::class, |
56 | 56 | ManifestLoader::fromString( |
57 | - file_get_contents(__DIR__ . '/_fixture/library.xml') |
|
57 | + file_get_contents(__DIR__.'/_fixture/library.xml') |
|
58 | 58 | ) |
59 | 59 | ); |
60 | 60 | } |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | public function testCanBeLoadedFromPhar() { |
63 | 63 | $this->assertInstanceOf( |
64 | 64 | Manifest::class, |
65 | - ManifestLoader::fromPhar(__DIR__ . '/_fixture/test.phar') |
|
65 | + ManifestLoader::fromPhar(__DIR__.'/_fixture/test.phar') |
|
66 | 66 | ); |
67 | 67 | |
68 | 68 | } |
@@ -68,9 +68,9 @@ discard block |
||
68 | 68 | |
69 | 69 | public function dataProvider() { |
70 | 70 | return [ |
71 | - 'application' => [file_get_contents(__DIR__ . '/_fixture/phpunit-5.6.5.xml')], |
|
72 | - 'library' => [file_get_contents(__DIR__ . '/_fixture/library.xml')], |
|
73 | - 'extension' => [file_get_contents(__DIR__ . '/_fixture/extension.xml')] |
|
71 | + 'application' => [file_get_contents(__DIR__.'/_fixture/phpunit-5.6.5.xml')], |
|
72 | + 'library' => [file_get_contents(__DIR__.'/_fixture/library.xml')], |
|
73 | + 'extension' => [file_get_contents(__DIR__.'/_fixture/extension.xml')] |
|
74 | 74 | ]; |
75 | 75 | } |
76 | 76 | |
@@ -79,8 +79,8 @@ discard block |
||
79 | 79 | * @uses \PharIo\Manifest\ApplicationName |
80 | 80 | */ |
81 | 81 | public function testCanSerializeToFile() { |
82 | - $src = __DIR__ . '/_fixture/library.xml'; |
|
83 | - $dest = '/tmp/' . uniqid('serializer', true); |
|
82 | + $src = __DIR__.'/_fixture/library.xml'; |
|
83 | + $dest = '/tmp/'.uniqid('serializer', true); |
|
84 | 84 | $manifest = ManifestLoader::fromFile($src); |
85 | 85 | $serializer = new ManifestSerializer(); |
86 | 86 | $serializer->serializeToFile($manifest, $dest); |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | |
108 | 108 | $serializer = new ManifestSerializer(); |
109 | 109 | $this->assertXmlStringEqualsXmlFile( |
110 | - __DIR__ . '/_fixture/custom.xml', |
|
110 | + __DIR__.'/_fixture/custom.xml', |
|
111 | 111 | $serializer->serializeToString($manifest) |
112 | 112 | ); |
113 | 113 | } |
@@ -55,7 +55,7 @@ |
||
55 | 55 | |
56 | 56 | public function testKeyPositionCanBeRetreived() { |
57 | 57 | $this->collection->add($this->item); |
58 | - foreach($this->collection as $key => $item) { |
|
58 | + foreach ($this->collection as $key => $item) { |
|
59 | 59 | $this->assertEquals(0, $key); |
60 | 60 | } |
61 | 61 | } |
@@ -55,7 +55,7 @@ |
||
55 | 55 | |
56 | 56 | public function testKeyPositionCanBeRetreived() { |
57 | 57 | $this->collection->add($this->item); |
58 | - foreach($this->collection as $key => $item) { |
|
58 | + foreach ($this->collection as $key => $item) { |
|
59 | 59 | $this->assertEquals(0, $key); |
60 | 60 | } |
61 | 61 | } |