Passed
Push — dev6 ( 681f69...37fef0 )
by Ron
38:58
created
app/Exceptions/Handler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      */
35 35
     public function register()
36 36
     {
37
-        $this->reportable(function (Throwable $e) {
37
+        $this->reportable(function(Throwable $e) {
38 38
             //
39 39
         });
40 40
     }
Please login to merge, or discard this patch.
app/Http/Middleware/Authenticate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      */
15 15
     protected function redirectTo($request)
16 16
     {
17
-        if (! $request->expectsJson()) {
17
+        if(!$request->expectsJson()) {
18 18
             return route('login.index');
19 19
         }
20 20
     }
Please login to merge, or discard this patch.
app/Http/Middleware/RedirectIfAuthenticated.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@
 block discarded – undo
21 21
     {
22 22
         $guards = empty($guards) ? [null] : $guards;
23 23
 
24
-        foreach ($guards as $guard) {
25
-            if (Auth::guard($guard)->check()) {
24
+        foreach($guards as $guard) {
25
+            if(Auth::guard($guard)->check()) {
26 26
                 return redirect(RouteServiceProvider::HOME);
27 27
             }
28 28
         }
Please login to merge, or discard this patch.
app/Http/Requests/User/InitializeUserRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     public function rules()
21 21
     {
22 22
         return [
23
-            'email'    => 'required|exists:users',              //  Must be a valid email address
23
+            'email'    => 'required|exists:users', //  Must be a valid email address
24 24
             'password' => 'required|string|min:6|confirmed',
25 25
         ];
26 26
     }
Please login to merge, or discard this patch.
app/Http/Requests/Equipment/EquipmentTypeRequest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,12 +22,12 @@
 block discarded – undo
22 22
     public function rules()
23 23
     {
24 24
         return [
25
-            'cat_id' => 'required|exists:equipment_categories,name',        //  Must contain a valid Category ID
25
+            'cat_id' => 'required|exists:equipment_categories,name', //  Must contain a valid Category ID
26 26
             'name'   => [
27 27
                 'required',
28 28
                 'string',
29
-                'regex:/^[a-zA-Z0-9_ ]*$/',                                 //  No special characters are allowed
30
-                'unique:equipment_categories',                              //  Equipment with this name must not already exist
29
+                'regex:/^[a-zA-Z0-9_ ]*$/', //  No special characters are allowed
30
+                'unique:equipment_categories', //  Equipment with this name must not already exist
31 31
             ],
32 32
             'data_fields' => 'required|array',
33 33
         ];
Please login to merge, or discard this patch.
app/Http/Requests/Equipment/EquipmentCategoryRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@
 block discarded – undo
25 25
             'name' => [
26 26
                 'required',
27 27
                 'string',
28
-                'regex:/^[a-zA-Z0-9_ ]*$/',     //  No special characters are allowed
29
-                'unique:equipment_categories',  //  Category name must not already exist
28
+                'regex:/^[a-zA-Z0-9_ ]*$/', //  No special characters are allowed
29
+                'unique:equipment_categories', //  Category name must not already exist
30 30
             ]
31 31
         ];
32 32
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Customers/CustomerBookmarksController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,6 +27,6 @@
 block discarded – undo
27 27
             UserCustomerBookmark::where('user_id', Auth::user()->user_id)->where('cust_id', $request->cust_id)->first()->delete();
28 28
         }
29 29
 
30
-        return response()->noContent();              //->json(['success' => true]);
30
+        return response()->noContent(); //->json(['success' => true]);
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
app/Http/Controllers/Customers/CustomerEquipmentController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         {
26 26
             CustomerEquipmentData::create([
27 27
                 'cust_equip_id' => $newEquip->cust_equip_id,
28
-                'field_id'      => DataField::where('equip_id', $request->equip_id)->where('type_id', $field['type_id'])->first()->field_id,//  ???
28
+                'field_id'      => DataField::where('equip_id', $request->equip_id)->where('type_id', $field['type_id'])->first()->field_id, //  ???
29 29
                 'value'         => isset($field['value']) ? $field['value'] : null,
30 30
             ]);
31 31
         }
Please login to merge, or discard this patch.
app/Http/Controllers/Equip/EquipmentTypesController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
             if($field !== null)
61 61
             {
62 62
                 //  Determine if this is a new or existing field type
63
-                $fieldID  = DataFieldType::where('name', $field)->first();
63
+                $fieldID = DataFieldType::where('name', $field)->first();
64 64
                 if(!$fieldID)
65 65
                 {
66 66
                     $fieldID = DataFieldType::create(['name' => $field]);
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
             if($field !== null)
115 115
             {
116 116
                 //  Determine if this is a new or existing field type
117
-                $fieldID  = DataFieldType::where('name', $field)->first();
117
+                $fieldID = DataFieldType::where('name', $field)->first();
118 118
                 if(!$fieldID)
119 119
                 {
120 120
                     $fieldID = DataFieldType::create(['name' => $field]);
Please login to merge, or discard this patch.