Passed
Push — master ( f120b8...8ed772 )
by Jaycee
01:46
created
src/Traversify.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -85,12 +85,12 @@  discard block
 block discarded – undo
85 85
                 if(count($_searchable)>1):
86 86
                     
87 87
                     $query->with($_searchable[0])->orWhereHas($_searchable[0], function($query) use ( $_searchable )
88
-                      {
89
-                          $query->where($_searchable[1],'LIKE','%'.$this->search.'%');    
90
-                      });
91
-                  else:
88
+                        {
89
+                            $query->where($_searchable[1],'LIKE','%'.$this->search.'%');    
90
+                        });
91
+                    else:
92 92
                       $query->orWhere($searchable,'LIKE','%'.$this->search.'%');     
93
-                  endif;
93
+                    endif;
94 94
 
95 95
             endforeach;
96 96
         });
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
 
190 190
                             $query->with($relationship[0])->whereHas($relationship[0],function($query) use ( $relationship, $values, $value)
191 191
                             {
192
-                               $query->whereBetween($relationship[1],$values);                            
192
+                                $query->whereBetween($relationship[1],$values);                            
193 193
                             });
194 194
                             
195 195
                         endif;
Please login to merge, or discard this patch.