@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | namespace TheSeer\Tokenizer; |
3 | 3 | |
4 | 4 | class TokenCollection implements \ArrayAccess, \Iterator, \Countable { |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | namespace TheSeer\Tokenizer; |
3 | 3 | |
4 | 4 | class Tokenizer { |
@@ -1,4 +1,4 @@ |
||
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 { |
@@ -1,4 +1,4 @@ discard block |
||
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 |
||
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 |
@@ -1,4 +1,4 @@ |
||
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 { |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | namespace TheSeer\Tokenizer; |
3 | 3 | |
4 | 4 | class NamespaceUri { |
@@ -1,4 +1,4 @@ |
||
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 { |
@@ -1,4 +1,4 @@ discard block |
||
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 |
||
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 | } |
@@ -1,4 +1,4 @@ discard block |
||
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 |
||
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 | } |