Completed
Push — master ( 916455...a9a34e )
by
unknown
01:23
created
src/Console/StatusCommand.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
     }
130 130
 
131 131
     /**
132
-     * @param $trait
132
+     * @param string $trait
133 133
      * @return \Closure
134 134
      */
135 135
     private function isSearchableModel($trait)
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -5,9 +5,7 @@
 block discarded – undo
5 5
 use Illuminate\Console\Command;
6 6
 use Illuminate\Contracts\Events\Dispatcher;
7 7
 use TeamTNT\TNTSearch\Exceptions\IndexNotFoundException;
8
-use TeamTNT\TNTSearch\Indexer\TNTIndexer;
9 8
 use TeamTNT\TNTSearch\TNTSearch;
10
-use Illuminate\Support\Facades\Schema;
11 9
 use Symfony\Component\Finder\Finder;
12 10
 
13 11
 class StatusCommand extends Command
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
             $rowsTotal = $model->count();
69 69
             $recordsDifference = $rowsTotal - $rowsIndexed;
70 70
 
71
-            if($recordsDifference == 0) {
71
+            if ($recordsDifference == 0) {
72 72
                 $recordsDifference = '<fg=green>Synchronized</>';
73 73
             } else {
74 74
                 $recordsDifference = "<fg=red>$recordsDifference</>";
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      */
121 121
     private function getSearchableModels()
122 122
     {
123
-        $searchableModels = (array)$this->argument('model');
123
+        $searchableModels = (array) $this->argument('model');
124 124
         if (empty($searchableModels)) {
125 125
             $searchableModels = $this->getSearchableModelsFromClasses();
126 126
         }
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      */
135 135
     private function isSearchableModel($trait)
136 136
     {
137
-        return function ($className) use ($trait) {
137
+        return function($className) use ($trait) {
138 138
             $traits = class_uses($className);
139 139
 
140 140
             return isset($traits[$trait]);
Please login to merge, or discard this patch.