Passed
Push — master ( 6c305a...f9f5fe )
by Kacper
02:57
created
Language/Language.php 2 patches
Doc Comments   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      * @param array                $additional
95 95
      * @param bool                 $embedded
96 96
      *
97
-     * @return TokenIterator
97
+     * @return Result
98 98
      */
99 99
     public function parse($tokens = null, $additional = [], $embedded = false)
100 100
     {
@@ -127,6 +127,9 @@  discard block
 block discarded – undo
127 127
         return $this->_result;
128 128
     }
129 129
 
130
+    /**
131
+     * @param string $source
132
+     */
130 133
     public function tokenize($source, $additional = [], $offset = 0, $embedded = false)
131 134
     {
132 135
         return new TokenIterator(
@@ -164,7 +167,7 @@  discard block
 block discarded – undo
164 167
     /**
165 168
      * @param bool $embedded
166 169
      *
167
-     * @return Rule[]
170
+     * @return \Generator
168 171
      */
169 172
     private function _rules($embedded = false)
170 173
     {
@@ -208,7 +211,7 @@  discard block
 block discarded – undo
208 211
     /**
209 212
      * Language range Rule(s)
210 213
      *
211
-     * @return Rule|Rule[]
214
+     * @return Rule
212 215
      */
213 216
     public function getOpenClose()
214 217
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
             $token = $tokens->current();
119 119
 
120 120
             if ($token->isValid($this, $this->_context)) {
121
-                if($this->_handleToken($token) === false) {
121
+                if ($this->_handleToken($token) === false) {
122 122
                     break;
123 123
                 };
124 124
             }
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
                 if ($start) {
286 286
                     unset($this->_context[spl_object_hash($start)]);
287 287
                 } else {
288
-                    $start = ArrayHelper::find(array_reverse($this->_context), function ($k, $v) use ($token) {
288
+                    $start = ArrayHelper::find(array_reverse($this->_context), function($k, $v) use ($token) {
289 289
                         return $v === $token->name;
290 290
                     });
291 291
 
Please login to merge, or discard this patch.
Parser/Result.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 
34 34
     public function append($value)
35 35
     {
36
-        if(!$value instanceof MetaToken) {
36
+        if (!$value instanceof MetaToken) {
37 37
             parent::append($value);
38 38
         }
39 39
     }
Please login to merge, or discard this patch.