Passed
Pull Request — master (#5)
by
unknown
08:17
created
vendor/theseer/tokenizer/src/Tokenizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 namespace TheSeer\Tokenizer;
3 3
 
4 4
 class Tokenizer {
Please login to merge, or discard this patch.
vendor/theseer/tokenizer/src/NamespaceUriException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 namespace TheSeer\Tokenizer;
3 3
 
4 4
 class NamespaceUriException extends Exception {
Please login to merge, or discard this patch.
vendor/theseer/tokenizer/src/XMLSerializer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 namespace TheSeer\Tokenizer;
3 3
 
4 4
 use DOMDocument;
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
             $this->writer->endElement();
84 84
 
85 85
             $this->writer->startElement('line');
86
-            $this->writer->writeAttribute('no', (string)$token->getLine());
86
+            $this->writer->writeAttribute('no', (string) $token->getLine());
87 87
             $this->previousToken = $token;
88 88
         }
89 89
 
Please login to merge, or discard this patch.
vendor/theseer/tokenizer/src/TokenCollectionException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 namespace TheSeer\Tokenizer;
3 3
 
4 4
 class TokenCollectionException extends Exception {
Please login to merge, or discard this patch.
vendor/theseer/tokenizer/src/NamespaceUri.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 namespace TheSeer\Tokenizer;
3 3
 
4 4
 class NamespaceUri {
Please login to merge, or discard this patch.
vendor/theseer/tokenizer/src/Exception.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 namespace TheSeer\Tokenizer;
3 3
 
4 4
 class Exception extends \Exception {
Please login to merge, or discard this patch.
vendor/theseer/tokenizer/tests/_files/test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 namespace foo;
3 3
 
4 4
 class bar {
@@ -20,6 +20,6 @@  discard block
 block discarded – undo
20 20
     }
21 21
 
22 22
     public function some(bar $b): string {
23
-        return $b->getSomeX() . '-def';
23
+        return $b->getSomeX().'-def';
24 24
     }
25 25
 }
Please login to merge, or discard this patch.
vendor/theseer/tokenizer/tests/TokenCollectionTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 namespace TheSeer\Tokenizer;
3 3
 
4 4
 use PHPUnit\Framework\TestCase;
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         $this->collection->addToken($token);
33 33
         $this->collection->addToken($token);
34 34
 
35
-        foreach($this->collection as $position => $current) {
35
+        foreach ($this->collection as $position => $current) {
36 36
             $this->assertInternalType('integer', $position);
37 37
             $this->assertSame($token, $current);
38 38
         }
Please login to merge, or discard this patch.
vendor/theseer/tokenizer/tests/XMLSerializerTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 namespace TheSeer\Tokenizer;
3 3
 
4 4
 use  PHPUnit\Framework\TestCase;
@@ -13,13 +13,13 @@  discard block
 block discarded – undo
13 13
 
14 14
     protected function setUp() {
15 15
         $this->tokens = unserialize(
16
-            file_get_contents(__DIR__ . '/_files/test.php.tokens'),
16
+            file_get_contents(__DIR__.'/_files/test.php.tokens'),
17 17
             [TokenCollection::class]
18 18
         );
19 19
     }
20 20
 
21 21
     public function testCanBeSerializedToXml() {
22
-        $expected = file_get_contents(__DIR__ . '/_files/test.php.xml');
22
+        $expected = file_get_contents(__DIR__.'/_files/test.php.xml');
23 23
 
24 24
         $serializer = new XMLSerializer();
25 25
         $this->assertEquals($expected, $serializer->toXML($this->tokens));
@@ -34,14 +34,14 @@  discard block
 block discarded – undo
34 34
     }
35 35
 
36 36
     public function testCanBeSerializedToXmlWithCustomNamespace() {
37
-        $expected = file_get_contents(__DIR__ . '/_files/customns.xml');
37
+        $expected = file_get_contents(__DIR__.'/_files/customns.xml');
38 38
 
39 39
         $serializer = new XMLSerializer(new NamespaceUri('custom:xml:namespace'));
40 40
         $this->assertEquals($expected, $serializer->toXML($this->tokens));
41 41
     }
42 42
 
43 43
     public function testEmptyCollectionCreatesEmptyDocument() {
44
-        $expected = file_get_contents(__DIR__ . '/_files/empty.xml');
44
+        $expected = file_get_contents(__DIR__.'/_files/empty.xml');
45 45
 
46 46
         $serializer = new XMLSerializer();
47 47
         $this->assertEquals($expected, $serializer->toXML((new TokenCollection())));
Please login to merge, or discard this patch.