Passed
Push — master ( f9f5fe...42d865 )
by Kacper
02:58
created
KeyLighter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 
63 63
     /**
64 64
      * @param Language|callable|string $language
65
-     * @param array[string]            $aliases
65
+     * @param string[]            $aliases
66 66
      */
67 67
     public function registerLanguage($language, $aliases) {
68 68
         $this->_languages = array_merge($this->_languages, array_fill_keys($aliases, $language));
Please login to merge, or discard this patch.
Parser/TokenFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
     }
114 114
 
115 115
     /**
116
-     * @param mixed $class
116
+     * @param string $class
117 117
      *
118 118
      * @throws \InvalidArgumentException
119 119
      */
Please login to merge, or discard this patch.
Language/Language.php 1 patch
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.