Passed
Push — master ( 42d865...54862f )
by Kacper
03:02
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
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      * @param array                $additional
88 88
      * @param bool                 $embedded
89 89
      *
90
-     * @return TokenIterator
90
+     * @return \Kadet\Highlighter\Parser\Result
91 91
      */
92 92
     public function parse($tokens = null, $additional = [], $embedded = false)
93 93
     {
@@ -101,6 +101,9 @@  discard block
 block discarded – undo
101 101
         return $this->_parser->process($tokens);
102 102
     }
103 103
 
104
+    /**
105
+     * @param string $source
106
+     */
104 107
     public function tokenize($source, $additional = [], $offset = 0, $embedded = false)
105 108
     {
106 109
         return new TokenIterator(
@@ -138,7 +141,7 @@  discard block
 block discarded – undo
138 141
     /**
139 142
      * @param bool $embedded
140 143
      *
141
-     * @return Rule[]
144
+     * @return \Generator
142 145
      */
143 146
     private function _rules($embedded = false)
144 147
     {
@@ -182,7 +185,7 @@  discard block
 block discarded – undo
182 185
     /**
183 186
      * Language range Rule(s)
184 187
      *
185
-     * @return Rule|Rule[]
188
+     * @return Rule
186 189
      */
187 190
     public function getOpenClose()
188 191
     {
Please login to merge, or discard this patch.