Passed
Push — master ( ac9f24...836696 )
by Ron
01:56
created
app/Http/Controllers/CustomerController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,9 +29,9 @@  discard block
 block discarded – undo
29 29
             ->get();
30 30
         
31 31
         $sysArr = [];
32
-        foreach($systems as $sys)
32
+        foreach ($systems as $sys)
33 33
         {
34
-            foreach($sys->SystemTypes as $s)
34
+            foreach ($sys->SystemTypes as $s)
35 35
             {
36 36
                 $sysArr[$sys->name][$s->sys_id] = $s->name;
37 37
             }
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     public function search(Request $request)
47 47
     {
48 48
         //  Run different request based on if system field is filled out or not
49
-        if(!empty($request->system))
49
+        if (!empty($request->system))
50 50
         {
51 51
             $customerData = Customers::where('name', 'like', '%'.$request->customer.'%')
52 52
                 ->where('city', 'like', '%'.$request->city.'%')
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     {
77 77
         $cust = Customers::find($id);
78 78
         
79
-        if($cust === null)
79
+        if ($cust === null)
80 80
         {
81 81
             return 'false';
82 82
         }
Please login to merge, or discard this patch.