Completed
Push — master ( 69b695...671bd7 )
by Kirill
06:49
created
src/Iterator/LookaheadIterator.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
     }
78 78
 
79 79
     /**
80
-     * @return int|mixed
80
+     * @return integer
81 81
      */
82 82
     public function key()
83 83
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
      */
102 102
     public function next(): void
103 103
     {
104
-        $this->valid  = $this->iterator->valid();
104
+        $this->valid = $this->iterator->valid();
105 105
 
106 106
         if ($this->valid === false) {
107 107
             return;
Please login to merge, or discard this patch.
src/Reader/BasePragmas.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
      */
134 134
     protected function set(string $group, string $name, string $value): void
135 135
     {
136
-        if (! \array_key_exists($group, $this->configs)) {
136
+        if (!\array_key_exists($group, $this->configs)) {
137 137
             $this->configs[$group] = [];
138 138
         }
139 139
 
Please login to merge, or discard this patch.
src/Reader/BaseRules.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,12 +64,12 @@
 block discarded – undo
64 64
      */
65 65
     protected function addDelegate(string $rule, string $delegate): void
66 66
     {
67
-        if (! \class_exists($delegate)) {
67
+        if (!\class_exists($delegate)) {
68 68
             $error = 'Could not found delegate class "%s"';
69 69
             throw new GrammarException(\sprintf($error, $delegate));
70 70
         }
71 71
 
72
-        if (! \is_subclass_of($delegate, Delegate::class)) {
72
+        if (!\is_subclass_of($delegate, Delegate::class)) {
73 73
             $error = 'Delegate should be an instance of %s, but %s given';
74 74
             throw new GrammarException(\sprintf($error, Delegate::class, $delegate));
75 75
         }
Please login to merge, or discard this patch.
src/Reader/BaseTokens.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
      */
70 70
     public function isKeep(string $token): bool
71 71
     {
72
-        return ! \in_array($token, $this->skipped, true);
72
+        return !\in_array($token, $this->skipped, true);
73 73
     }
74 74
 
75 75
     /**
Please login to merge, or discard this patch.
src/Grammar/PP2/RuleResolver.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -134,9 +134,9 @@
 block discarded – undo
134 134
      */
135 135
     public function all(): array
136 136
     {
137
-       foreach ($this->analyze() as $symbol) {
138
-           $this->add($symbol);
139
-       }
137
+        foreach ($this->analyze() as $symbol) {
138
+            $this->add($symbol);
139
+        }
140 140
 
141 141
         return parent::all();
142 142
     }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
             return;
62 62
         }
63 63
 
64
-        if (! \array_key_exists($this->current, $this->ruleTokens)) {
64
+        if (!\array_key_exists($this->current, $this->ruleTokens)) {
65 65
             $this->ruleTokens[$this->current] = [];
66 66
         }
67 67
 
Please login to merge, or discard this patch.
src/Grammar/PP2/TokenResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         $this->setToken($name, $value);
30 30
 
31 31
         if ($group !== null) {
32
-            $this->setGroup($name, (int)$group);
32
+            $this->setGroup($name, (int) $group);
33 33
         }
34 34
 
35 35
         if ($token->name() === 'T_SKIP') {
Please login to merge, or discard this patch.
src/Grammar/PP2.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
         $path = \trim($token->value(1), " \t\n\r\0\x0B\"'");
104 104
 
105 105
         foreach (['.pp2', ''] as $extension) {
106
-            $file = \dirname($from->getPathname()) . '/' . $path . $extension;
106
+            $file = \dirname($from->getPathname()).'/'.$path.$extension;
107 107
 
108 108
             if (\is_file($file)) {
109 109
                 return File::fromPathname($file);
Please login to merge, or discard this patch.