Passed
Branch master (ab19ac)
by Kirill
05:59
created
src/Generator/ParserGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace Railt\Compiler\Generator;
11 11
 
Please login to merge, or discard this patch.
src/Generator/Renderer/Renderer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace Railt\Compiler\Generator\Renderer;
11 11
 
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
  */
15 15
 interface Renderer
16 16
 {
17
-    public const BASE_DIRECTORY = __DIR__ . '/../../../resources/templates';
17
+    public const BASE_DIRECTORY = __DIR__.'/../../../resources/templates';
18 18
 
19 19
     /**
20 20
      * @param string $directory
Please login to merge, or discard this patch.
src/Generator/LexerGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace Railt\Compiler\Generator;
11 11
 
Please login to merge, or discard this patch.
src/LexerInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace Railt\Compiler;
11 11
 
Please login to merge, or discard this patch.
src/Lexer/Stateless.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace Railt\Compiler\Lexer;
11 11
 
Please login to merge, or discard this patch.
src/Lexer/Stateful.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace Railt\Compiler\Lexer;
11 11
 
Please login to merge, or discard this patch.
src/Lexer/NativeStateless.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace Railt\Compiler\Lexer;
11 11
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     public function lex(Readable $input): \Traversable
39 39
     {
40 40
         foreach ($this->exec($this->pcre->compile(), $input->getContents()) as $token) {
41
-            if (! \in_array($token->name(), $this->skipped, true)) {
41
+            if (!\in_array($token->name(), $this->skipped, true)) {
42 42
                 yield $token;
43 43
             }
44 44
         }
Please login to merge, or discard this patch.
src/Lexer/Result/BaseToken.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace Railt\Compiler\Lexer\Result;
11 11
 
@@ -31,12 +31,12 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function __toString(): string
33 33
     {
34
-        $format = function (string $value) {
35
-            $value = (string)(\preg_replace('/\s+/iu', ' ', $value) ?? $value);
34
+        $format = function(string $value) {
35
+            $value = (string) (\preg_replace('/\s+/iu', ' ', $value) ?? $value);
36 36
             $value = \addcslashes($value, '"');
37 37
 
38 38
             if (\mb_strlen($value) > 35) {
39
-                $value = \mb_substr($value, 0, 30) .
39
+                $value = \mb_substr($value, 0, 30).
40 40
                     \sprintf('… (%s+)', \mb_strlen($value) - 30);
41 41
             }
42 42
 
Please login to merge, or discard this patch.
src/Lexer/Result/Unknown.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace Railt\Compiler\Lexer\Result;
11 11
 
Please login to merge, or discard this patch.