Passed
Push — dev6 ( e96c57...811cb3 )
by Ron
09:47
created
app/Http/Controllers/Home/UploadFileController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
                 'disk'      => $status['disk'],
28 28
                 'folder'    => $status['folder'],
29 29
                 'file_name' => $status['filename'],
30
-                'public'    => filter_var($request->public, FILTER_VALIDATE_BOOL),  //  Force as boolean
30
+                'public'    => filter_var($request->public, FILTER_VALIDATE_BOOL), //  Force as boolean
31 31
             ]);
32 32
 
33 33
             //  Determine if other files have been uploaded by this request
Please login to merge, or discard this patch.
app/Http/Controllers/Customers/CustomerController.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         $newCust      = Customer::create($cust);
61 61
 
62 62
         event(new NewCustomerCreated($newCust));
63
-        return redirect(route('customers.show',$newCust->slug))->with(['message' => 'New Customer Created', 'type' => 'success']);
63
+        return redirect(route('customers.show', $newCust->slug))->with(['message' => 'New Customer Created', 'type' => 'success']);
64 64
     }
65 65
 
66 66
     /**
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
                         ->with('ParentFile.FileUpload')
91 91
                         ->firstOrFail();
92 92
         //  Determine if the customer is bookmarked by the user
93
-        $isFav    = UserCustomerBookmark::where('user_id', Auth::user()->user_id)
93
+        $isFav = UserCustomerBookmark::where('user_id', Auth::user()->user_id)
94 94
                         ->where('cust_id', $customer->cust_id)
95 95
                         ->count();
96 96
 
@@ -100,29 +100,29 @@  discard block
 block discarded – undo
100 100
             'file_types'     => CustomerFileType::all(),
101 101
             //  User Permissions for customers
102 102
             'user_data' => [
103
-                'fav'        => $isFav,                                                  //  Customer is bookmarked by the user
104
-                'edit'       => Auth::user()->can('update', $customer),                  //  User is allowed to edit the customers basic details
105
-                'manage'     => Auth::user()->can('manage', $customer),                  //  User can recover deleted items
106
-                'deactivate' => Auth::user()->can('delete', $customer),                  //  User can deactivate the customer profile
103
+                'fav'        => $isFav, //  Customer is bookmarked by the user
104
+                'edit'       => Auth::user()->can('update', $customer), //  User is allowed to edit the customers basic details
105
+                'manage'     => Auth::user()->can('manage', $customer), //  User can recover deleted items
106
+                'deactivate' => Auth::user()->can('delete', $customer), //  User can deactivate the customer profile
107 107
                 'equipment'  => [
108
-                    'create' => Auth::user()->can('create', CustomerEquipment::class),   //  If user can add equipment
109
-                    'update' => Auth::user()->can('update', CustomerEquipment::class),   //  If user can edit equipment
110
-                    'delete' => Auth::user()->can('delete', CustomerEquipment::class),   //  If user can delete equipment
108
+                    'create' => Auth::user()->can('create', CustomerEquipment::class), //  If user can add equipment
109
+                    'update' => Auth::user()->can('update', CustomerEquipment::class), //  If user can edit equipment
110
+                    'delete' => Auth::user()->can('delete', CustomerEquipment::class), //  If user can delete equipment
111 111
                 ],
112 112
                 'contacts'   => [
113
-                    'create' => Auth::user()->can('create', CustomerContact::class),     //  If user can add contact
114
-                    'update' => Auth::user()->can('update', CustomerContact::class),     //  If user can edit contact
115
-                    'delete' => Auth::user()->can('delete', CustomerContact::class),     //  If user can delete contact
113
+                    'create' => Auth::user()->can('create', CustomerContact::class), //  If user can add contact
114
+                    'update' => Auth::user()->can('update', CustomerContact::class), //  If user can edit contact
115
+                    'delete' => Auth::user()->can('delete', CustomerContact::class), //  If user can delete contact
116 116
                 ],
117 117
                 'notes'      => [
118
-                    'create' => Auth::user()->can('create', CustomerNote::class),        //  If user can add note
119
-                    'update' => Auth::user()->can('update', CustomerNote::class),        //  If user can edit note
120
-                    'delete' => Auth::user()->can('delete', CustomerNote::class),        //  If user can delete note
118
+                    'create' => Auth::user()->can('create', CustomerNote::class), //  If user can add note
119
+                    'update' => Auth::user()->can('update', CustomerNote::class), //  If user can edit note
120
+                    'delete' => Auth::user()->can('delete', CustomerNote::class), //  If user can delete note
121 121
                 ],
122 122
                 'files'     => [
123
-                    'create' => Auth::user()->can('create', CustomerFile::class),        //  If user can add file
124
-                    'update' => Auth::user()->can('update', CustomerFile::class),        //  If user can edit file
125
-                    'delete' => Auth::user()->can('delete', CustomerFile::class),        //  If user can delete file
123
+                    'create' => Auth::user()->can('create', CustomerFile::class), //  If user can add file
124
+                    'update' => Auth::user()->can('update', CustomerFile::class), //  If user can edit file
125
+                    'delete' => Auth::user()->can('delete', CustomerFile::class), //  If user can delete file
126 126
                 ],
127 127
             ],
128 128
         ]);
Please login to merge, or discard this patch.
app/Traits/LogUtilitiesTrait.php 2 patches
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -21,26 +21,26 @@  discard block
 block discarded – undo
21 21
      * Log Levels
22 22
      */
23 23
     protected $logLevels = [
24
-        ['name' => 'Emergency', 'icon' => 'fas fa-ambulance',            'color' => ''],
25
-        ['name' => 'Alert',     'icon' => 'fas fa-bullhorn',             'color' => ''],
26
-        ['name' => 'Critical',  'icon' => 'fas fa-heartbeat',            'color' => ''],
27
-        ['name' => 'Error',     'icon' => 'fas fa-times-circle',         'color' => ''],
28
-        ['name' => 'Warning',   'icon' => 'fas fa-exclamation-triangle', 'color' => ''],
29
-        ['name' => 'Notice',    'icon' => 'fas fa-exclamation-circle',   'color' => ''],
30
-        ['name' => 'Info',      'icon' => 'fas fa-info',                 'color' => ''],
31
-        ['name' => 'Debug',     'icon' => 'fas fa-bug',                  'color' => ''],
24
+        ['name' => 'Emergency', 'icon' => 'fas fa-ambulance', 'color' => ''],
25
+        ['name' => 'Alert', 'icon' => 'fas fa-bullhorn', 'color' => ''],
26
+        ['name' => 'Critical', 'icon' => 'fas fa-heartbeat', 'color' => ''],
27
+        ['name' => 'Error', 'icon' => 'fas fa-times-circle', 'color' => ''],
28
+        ['name' => 'Warning', 'icon' => 'fas fa-exclamation-triangle', 'color' => ''],
29
+        ['name' => 'Notice', 'icon' => 'fas fa-exclamation-circle', 'color' => ''],
30
+        ['name' => 'Info', 'icon' => 'fas fa-info', 'color' => ''],
31
+        ['name' => 'Debug', 'icon' => 'fas fa-bug', 'color' => ''],
32 32
     ];
33 33
 
34 34
     /**
35 35
      * Log Channels
36 36
      */
37 37
     protected $logChannels = [
38
-        ['name' => 'Emergency',      'folder' => 'Emergency'],
39
-        ['name' => 'Application',    'folder' => 'Application'],
40
-        ['name' => 'User',           'folder' => 'Users'],
38
+        ['name' => 'Emergency', 'folder' => 'Emergency'],
39
+        ['name' => 'Application', 'folder' => 'Application'],
40
+        ['name' => 'User', 'folder' => 'Users'],
41 41
         ['name' => 'Authentication', 'folder' => 'Auth'],
42
-        ['name' => 'Customer',       'folder' => 'Cust'],
43
-        ['name' => 'Tech Tip',       'folder' => 'TechTip'],
42
+        ['name' => 'Customer', 'folder' => 'Cust'],
43
+        ['name' => 'Tech Tip', 'folder' => 'TechTip'],
44 44
     ];
45 45
 
46 46
     /**
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     protected function getFileStats($fileArr, $filename)
100 100
     {
101
-        $stats   = $this->resetStats($filename);
101
+        $stats = $this->resetStats($filename);
102 102
 
103 103
         //  Cycle through each line of the file
104 104
         foreach($fileArr as $line)
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,8 +48,7 @@
 block discarded – undo
48 48
      */
49 49
     protected function getChannelDetails($channel)
50 50
     {
51
-        return Arr::first($this->logChannels, function($value) use ($channel)
52
-        {
51
+        return Arr::first($this->logChannels, function($value) use ($channel) {
53 52
             return $value['name'] == $channel;
54 53
         });
55 54
     }
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,8 +19,7 @@
 block discarded – undo
19 19
     {
20 20
         $this->configureRateLimiting();
21 21
 
22
-        $this->routes(function()
23
-        {
22
+        $this->routes(function() {
24 23
             //  Basic Login and Logout Routes
25 24
             Route::middleware('web')
26 25
                 ->namespace($this->namespace)
Please login to merge, or discard this patch.
app/Http/Controllers/Customers/CustomerFileTypesController.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,8 @@
 block discarded – undo
65 65
         $fileType = CustomerFileType::find($id);
66 66
         $this->authorize('delete', $fileType);
67 67
 
68
-        try {
68
+        try
69
+        {
69 70
             $fileType->delete();
70 71
         }
71 72
         //  The deletion may fail if the file type is currently in use
Please login to merge, or discard this patch.
app/Http/Controllers/TechTips/SearchTipsController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,7 @@
 block discarded – undo
36 36
             ->orderBy('sticky', 'DESC')
37 37
             ->orderBy('created_at', 'DESC')
38 38
             //  Search text fields
39
-            ->when($searchText, function($q) use($searchText)
40
-                {
39
+            ->when($searchText, function($q) use($searchText) {
41 40
                     foreach($searchText as $text)
42 41
                     {
43 42
                         $q->orWhere('subject', 'like', '%'.$text.'%')
Please login to merge, or discard this patch.
app/Http/Middleware/RedirectIfAuthenticated.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,10 @@
 block discarded – undo
18 18
     {
19 19
         $guards = empty($guards) ? [null] : $guards;
20 20
 
21
-        foreach($guards as $guard) {
22
-            if(Auth::guard($guard)->check()) {
21
+        foreach($guards as $guard)
22
+        {
23
+            if(Auth::guard($guard)->check())
24
+            {
23 25
                 return redirect(RouteServiceProvider::HOME);
24 26
             }
25 27
         }
Please login to merge, or discard this patch.
app/Http/Middleware/Authenticate.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,8 @@
 block discarded – undo
11 11
      */
12 12
     protected function redirectTo($request)
13 13
     {
14
-        if(!$request->expectsJson()) {
14
+        if(!$request->expectsJson())
15
+        {
15 16
             return route('login.index');
16 17
         }
17 18
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/BackupController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
     public function store(BackupRequest $request)
63 63
     {
64 64
         $this->saveSettings('app.backups.enabled', $request->enabled);
65
-        $this->saveSettings('app.backups.number',  $request->number);
65
+        $this->saveSettings('app.backups.number', $request->number);
66 66
 
67 67
         return back()->with([
68 68
             'message' => 'Automatic Backup Settings Updated',
Please login to merge, or discard this patch.