Passed
Push — master ( 1b679e...f46407 )
by Ehsan
02:49
created
src/Botonomous/utility/ArrayUtility.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
      */
85 85
     public function sortArrayByLength($array)
86 86
     {
87
-        usort($array, function ($array1, $array2) {
87
+        usort($array, function($array1, $array2) {
88 88
             return strlen($array2) <=> strlen($array1);
89 89
         });
90 90
 
Please login to merge, or discard this patch.
src/Botonomous/CommandExtractor.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
     /**
70 70
      * @param Command $command
71
-     * @param         $message
71
+     * @param         string $message
72 72
      *
73 73
      * @return array|void
74 74
      */
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     /**
90 90
      * @param $message
91 91
      *
92
-     * @return string
92
+     * @return Command|null
93 93
      */
94 94
     private function getCommandObjectByMessage($message)
95 95
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use Botonomous\utility\MessageUtility;
7 7
 use NlpTools\Stemmers\PorterStemmer;
8 8
 use NlpTools\Tokenizers\WhitespaceAndPunctuationTokenizer;
9
-use NlpTools\Tokenizers\WhitespaceTokenizer;
10 9
 
11 10
 /**
12 11
  * Class CommandExtractor.
Please login to merge, or discard this patch.