Completed
Branch 0.8-dev (01721d)
by Kacper
02:43
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.
Language/Language.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,6 +108,9 @@  discard block
 block discarded – undo
108 108
         return $this->_parser->process($tokens);
109 109
     }
110 110
 
111
+    /**
112
+     * @param string $source
113
+     */
111 114
     public function tokenize($source, $additional = [], $offset = 0, $embedded = false)
112 115
     {
113 116
         return new TokenIterator(
@@ -145,7 +148,7 @@  discard block
 block discarded – undo
145 148
     /**
146 149
      * @param bool $embedded
147 150
      *
148
-     * @return Rule[]
151
+     * @return \Generator
149 152
      */
150 153
     private function _rules($embedded = false)
151 154
     {
@@ -177,7 +180,7 @@  discard block
 block discarded – undo
177 180
      *
178 181
      * @param $embedded
179 182
      *
180
-     * @return Rule|\Kadet\Highlighter\Parser\Rule[]
183
+     * @return Rule
181 184
      */
182 185
     public function getEnds($embedded = false)
183 186
     {
Please login to merge, or discard this patch.
Parser/Token/Token.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@
 block discarded – undo
151 151
     }
152 152
 
153 153
     /**
154
-     * @return Token|null|false
154
+     * @return Token
155 155
      */
156 156
     public function getEnd()
157 157
     {
Please login to merge, or discard this patch.
Matcher/DelegateRegexMatcher.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     /**
26 26
      * RegexMatcher constructor.
27 27
      *
28
-     * @param          $regex
28
+     * @param          string $regex
29 29
      * @param callable $callable
30 30
      */
31 31
     public function __construct($regex, callable $callable)
Please login to merge, or discard this patch.