Passed
Push — master ( c60756...531e59 )
by Ehsan
03:07
created
src/Botonomous/utility/MessageUtility.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -125,6 +125,9 @@  discard block
 block discarded – undo
125 125
         return $this->linkToUser($this->getConfig()->get('botUserId'));
126 126
     }
127 127
 
128
+    /**
129
+     * @param string $message
130
+     */
128 131
     public function keywordPos(array $keywords, $message)
129 132
     {
130 133
         $found = [];
@@ -153,6 +156,9 @@  discard block
 block discarded – undo
153 156
         return $found;
154 157
     }
155 158
 
159
+    /**
160
+     * @param string $newPosition
161
+     */
156 162
     private function isPositionTaken(array $tokensPositions, $newPosition)
157 163
     {
158 164
         if (empty($tokensPositions)) {
@@ -171,6 +177,9 @@  discard block
 block discarded – undo
171 177
         return false;
172 178
     }
173 179
 
180
+    /**
181
+     * @param integer $tokenLength
182
+     */
174 183
     private function isPositionIn($newPosition, $position, $tokenLength)
175 184
     {
176 185
         if ($newPosition >= $position && $newPosition < $position + $tokenLength) {
Please login to merge, or discard this patch.