Passed
Push — master ( fdcd11...4b42b4 )
by Ron
07:37
created
app/Mail/NewLinkFile.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,4 +36,4 @@
 block discarded – undo
36 36
         return $this->subject('New File Uploaded')->markdown('email.newLinkFile');
37 37
     }
38 38
 }
39
- 
40 39
\ No newline at end of file
40
+    
41 41
\ No newline at end of file
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
     protected function mapWebRoutes()
53 53
     {
54 54
         Route::middleware('web')
55
-             ->namespace($this->namespace)
56
-             ->group(base_path('routes/web.php'));
55
+                ->namespace($this->namespace)
56
+                ->group(base_path('routes/web.php'));
57 57
     }
58 58
 
59 59
     /**
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
     protected function mapApiRoutes()
67 67
     {
68 68
         Route::prefix('api')
69
-             ->middleware('api')
70
-             ->namespace($this->namespace)
71
-             ->group(base_path('routes/api.php'));
69
+                ->middleware('api')
70
+                ->namespace($this->namespace)
71
+                ->group(base_path('routes/api.php'));
72 72
     }
73 73
 }
Please login to merge, or discard this patch.
app/Http/Controllers/CustomerController.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
                 ->with('CustomerSystems.SystemTypes')
53 53
                 ->whereHas('CustomerSystems', function($q) use($request)
54 54
                 {
55
-                   $q->where('sys_id', $request->system);
55
+                    $q->where('sys_id', $request->system);
56 56
                 })
57 57
                 ->get();
58 58
         }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
     //  Toggle whether or not the customer is listed as a user favorite
88 88
     public function toggleFav($action, $custID)
89 89
     {
90
-        switch ($action)
90
+        switch($action)
91 91
         {
92 92
             case 'add':
93 93
                 CustomerFavs::create([
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,7 @@
 block discarded – undo
52 52
                 ->where('city', 'like', '%'.$request->city.'%')
53 53
 
54 54
                 ->with('CustomerSystems.SystemTypes')
55
-                ->whereHas('CustomerSystems', function($q) use($request)
56
-                {
55
+                ->whereHas('CustomerSystems', function($q) use($request) {
57 56
                    $q->where('sys_id', $request->system);
58 57
                 })
59 58
                 ->get();
Please login to merge, or discard this patch.
app/Http/Controllers/TechTipsController.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
             $tipData = TechTips::where('subject', 'like', '%'.$request->tipSearch.'%')
58 58
                 ->whereHas('TechTipSystems', function($q) use($request)
59 59
                 {
60
-                   $q->where('sys_id', $request->system);
60
+                    $q->where('sys_id', $request->system);
61 61
                 })
62 62
                 ->get();
63 63
         }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -118,14 +118,14 @@  discard block
 block discarded – undo
118 118
             $receiver = new FileReceiver("file", $request, HandlerFactory::classFromRequest($request));
119 119
 
120 120
             // check if the upload is success, throw exception or return response you need
121
-            if ($receiver->isUploaded() === false) {
121
+            if($receiver->isUploaded() === false) {
122 122
                 throw new UploadMissingFileException();
123 123
             }
124 124
 
125 125
             // receive the file
126 126
             $save = $receiver->receive();
127 127
             
128
-            if ($save->isFinished()) 
128
+            if($save->isFinished()) 
129 129
             {
130 130
                 $tipID = $this->createNewTechTip($request);
131 131
                 $filePath = config('filesystems.paths.tips').DIRECTORY_SEPARATOR.$tipID;
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
     //  Toggle whether or not the customer is listed as a user favorite
346 346
     public function toggleFav($action, $tipID)
347 347
     {
348
-        switch ($action)
348
+        switch($action)
349 349
         {
350 350
             case 'add':
351 351
                 TechTipFavs::create([
Please login to merge, or discard this patch.
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,8 +63,7 @@  discard block
 block discarded – undo
63 63
         if(!empty($request->system))
64 64
         {
65 65
             $tipData = TechTips::where('subject', 'like', '%'.$request->tipSearch.'%')
66
-                ->whereHas('TechTipSystems', function($q) use($request)
67
-                {
66
+                ->whereHas('TechTipSystems', function($q) use($request) {
68 67
                    $q->where('sys_id', $request->system);
69 68
                 })
70 69
                 ->get();
@@ -118,14 +117,15 @@  discard block
 block discarded – undo
118 117
             $receiver = new FileReceiver("file", $request, HandlerFactory::classFromRequest($request));
119 118
 
120 119
             // check if the upload is success, throw exception or return response you need
121
-            if ($receiver->isUploaded() === false) {
120
+            if ($receiver->isUploaded() === false)
121
+            {
122 122
                 throw new UploadMissingFileException();
123 123
             }
124 124
 
125 125
             // receive the file
126 126
             $save = $receiver->receive();
127 127
             
128
-            if ($save->isFinished()) 
128
+            if ($save->isFinished())
129 129
             {
130 130
                 $tipID = $this->createNewTechTip($request);
131 131
                 $filePath = config('filesystems.paths.tips').DIRECTORY_SEPARATOR.$tipID;
Please login to merge, or discard this patch.
app/Http/Controllers/UserController.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
         
148 148
         $nextChange = config('users.passExpires') != null ? Carbon::now()->addDays(config('users.passExpires')) : null;
149 149
         
150
-         //  Update the password
150
+            //  Update the password
151 151
         User::find($userData->user_id)->update(
152 152
         [
153 153
             'password'         => bcrypt($request->newPass),
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
         
189 189
         $nextChange = isset($request->force_change) && $request->force_change == 'on' ? Carbon::now()->subDay() : null;
190 190
         
191
-         //  Update the user data
191
+            //  Update the user data
192 192
         User::find($id)->update(
193 193
         [
194 194
             'password'         => bcrypt($request->password),
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
             $linkController->destroy($link->link_id);
274 274
         }
275 275
         
276
-         //  Update the user data
276
+            //  Update the user data
277 277
         User::find($id)->update(
278 278
         [
279 279
             'active'   => 0
Please login to merge, or discard this patch.
app/Notifications/NewFileUploaded.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
         return (new MailMessage)
32 32
                     ->line('A new file has been uploaded to the file link - '.$this->details->link_name)
33 33
                     ->action('Click to View Link', 
34
-                             url(route('links.info', [
35
-                                 'id' => $this->details->link_id, 
36
-                                 'name' => urlencode($this->details->link_name)
34
+                                url(route('links.info', [
35
+                                    'id' => $this->details->link_id, 
36
+                                    'name' => urlencode($this->details->link_name)
37 37
                             ])));
38 38
     }
39 39
 
@@ -44,8 +44,8 @@  discard block
 block discarded – undo
44 44
             'type'    => 'warning',
45 45
             'message' => 'New File Uploaded to link - '.$this->details->link_name,
46 46
             'link'    => url(route('links.info', [
47
-                                 'id' => $this->details->link_id, 
48
-                                 'name' => urlencode($this->details->link_name)
47
+                                    'id' => $this->details->link_id, 
48
+                                    'name' => urlencode($this->details->link_name)
49 49
                             ]))
50 50
         ];
51 51
     }
Please login to merge, or discard this patch.
database/migrations/2018_05_26_055259_create_customer_file_types_table.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
     public function up()
16 16
     {
17
-        Schema::create('customer_file_types', function (Blueprint $table) {
17
+        Schema::create('customer_file_types', function(Blueprint $table) {
18 18
             $table->increments('file_type_id');
19 19
             $table->text('description');
20 20
             $table->timestamps();
Please login to merge, or discard this patch.
migrations/2018_05_23_060302_create_system_cust_data_fields_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('system_cust_data_fields', function (Blueprint $table) {
16
+        Schema::create('system_cust_data_fields', function(Blueprint $table) {
17 17
             $table->increments('field_id');
18 18
             $table->integer('sys_id')->unsigned();
19 19
             $table->integer('data_type_id')->unsigned();
Please login to merge, or discard this patch.
database/migrations/2018_12_12_221056_create_notifications_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('notifications', function (Blueprint $table) {
16
+        Schema::create('notifications', function(Blueprint $table) {
17 17
             $table->uuid('id')->primary();
18 18
             $table->string('type');
19 19
             $table->morphs('notifiable');
Please login to merge, or discard this patch.