Completed
Push — dev5 ( db7ded...a14de9 )
by Ron
07:55
created
app/Http/Middleware/Authenticate.php 2 patches
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');
19 19
         }
20 20
     }
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,8 @@
 block discarded – undo
14 14
      */
15 15
     protected function redirectTo($request)
16 16
     {
17
-        if (! $request->expectsJson()) {
17
+        if (! $request->expectsJson())
18
+        {
18 19
             return route('login');
19 20
         }
20 21
     }
Please login to merge, or discard this patch.
app/Files.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
             $extension = isset($fileParts['extension']) ? ('.'.$fileParts['extension']) : '';
39 39
             
40 40
             //  check for matching file names
41
-            if (preg_match('/(.*?)(\d+)$/', $fileParts['filename'], $match)) 
41
+            if(preg_match('/(.*?)(\d+)$/', $fileParts['filename'], $match)) 
42 42
             {
43 43
                 // Have a number; increment it
44 44
                 $base = $match[1];
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             do 
55 55
             {
56 56
                 $fileName = $base.'('.++$number.')'.$extension;
57
-            } while (Storage::exists($path.DIRECTORY_SEPARATOR.$fileName));
57
+            } while(Storage::exists($path.DIRECTORY_SEPARATOR.$fileName));
58 58
         }
59 59
         
60 60
         return $fileName;
Please login to merge, or discard this patch.
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,20 +38,20 @@
 block discarded – undo
38 38
             $extension = isset($fileParts['extension']) ? ('.'.$fileParts['extension']) : '';
39 39
             
40 40
             //  check for matching file names
41
-            if (preg_match('/(.*?)(\d+)$/', $fileParts['filename'], $match)) 
41
+            if (preg_match('/(.*?)(\d+)$/', $fileParts['filename'], $match))
42 42
             {
43 43
                 // Have a number; increment it
44 44
                 $base = $match[1];
45 45
                 $number = intVal($match[2]);
46
-            } 
47
-            else 
46
+            }
47
+            else
48 48
             {
49 49
                 // No number; add one
50 50
                 $base = $fileParts['filename'];
51 51
                 $number = 0;
52 52
             }
53 53
             
54
-            do 
54
+            do
55 55
             {
56 56
                 $fileName = $base.'('.++$number.')'.$extension;
57 57
             } while (Storage::exists($path.DIRECTORY_SEPARATOR.$fileName));
Please login to merge, or discard this patch.
app/Notifications/NewFileUpload.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@  discard block
 block discarded – undo
32 32
             ->action('Click to View Link', 
33 33
                 url(route('links.details', 
34 34
                 [
35
-                     'id' => $this->details->link_id, 
36
-                     'name' => urlencode($this->details->link_name)
35
+                        'id' => $this->details->link_id, 
36
+                        'name' => urlencode($this->details->link_name)
37 37
                 ])));
38 38
     }
39 39
 
@@ -44,10 +44,10 @@  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.details', 
47
-                         [
47
+                            [
48 48
                             'id' => $this->details->link_id, 
49
-                             'name' => urlencode($this->details->link_name)
50
-                         ]))
49
+                                'name' => urlencode($this->details->link_name)
50
+                            ]))
51 51
         ];
52 52
     }
53 53
 }
Please login to merge, or discard this patch.
app/Providers/SettingsServiceProvider.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -16,21 +16,21 @@
 block discarded – undo
16 16
      */
17 17
     public function register()
18 18
     {
19
-		try
20
-		{
21
-			if(Schema::hasTable('settings'))
22
-			{
23
-				$settings = DB::table('settings')->get();
24
-				foreach($settings as $setting)
25
-				{
26
-					Config([$setting->key => $setting->value]);
27
-				}
28
-			}
29
-		}
30
-		catch(\Illuminate\Database\QueryException $e)
31
-		{
19
+        try
20
+        {
21
+            if(Schema::hasTable('settings'))
22
+            {
23
+                $settings = DB::table('settings')->get();
24
+                foreach($settings as $setting)
25
+                {
26
+                    Config([$setting->key => $setting->value]);
27
+                }
28
+            }
29
+        }
30
+        catch(\Illuminate\Database\QueryException $e)
31
+        {
32 32
 
33
-		}
33
+        }
34 34
     }
35 35
 
36 36
     /**
Please login to merge, or discard this patch.
routes/console.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
13 13
 |
14 14
 */
15 15
 
16
-Artisan::command('inspire', function () {
16
+Artisan::command('inspire', function() {
17 17
     $this->comment(Inspiring::quote());
18 18
 })->describe('Display an inspiring quote');
Please login to merge, or discard this patch.
routes/channels.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,6 +11,6 @@
 block discarded – undo
11 11
 |
12 12
 */
13 13
 
14
-Broadcast::channel('App.User.{id}', function ($user, $id) {
14
+Broadcast::channel('App.User.{id}', function($user, $id) {
15 15
     return (int) $user->id === (int) $id;
16 16
 });
Please login to merge, or discard this patch.
routes/web.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
         
124 124
         
125 125
         
126
-  /////////////////////////////////////////////////////////////////////////////////////////////////      
126
+    /////////////////////////////////////////////////////////////////////////////////////////////////      
127 127
         
128 128
         
129 129
         
Please login to merge, or discard this patch.
Braces   +6 added lines, -12 removed lines patch added patch discarded remove patch
@@ -54,15 +54,13 @@  discard block
 block discarded – undo
54 54
 *   Logged in user routes
55 55
 *
56 56
 */
57
-Route::middleware(['password_expired'])->group(function()
58
-{
57
+Route::middleware(['password_expired'])->group(function() {
59 58
     /*
60 59
     *
61 60
     *   Routes for users with "tech" permissions
62 61
     *
63 62
     */
64
-    Route::group(['middleware' => 'roles', 'roles' => ['tech', 'report', 'admin', 'installer']], function()
65
-    {
63
+    Route::group(['middleware' => 'roles', 'roles' => ['tech', 'report', 'admin', 'installer']], function() {
66 64
         /*
67 65
         *
68 66
         *   Dashboard and About page routes
@@ -91,8 +89,7 @@  discard block
 block discarded – undo
91 89
         *   File Link Routes
92 90
         *
93 91
         */
94
-        Route::prefix('links')->name('links.')->group(function()
95
-        {
92
+        Route::prefix('links')->name('links.')->group(function() {
96 93
             //  Resource controllers for base access
97 94
             Route::resource('data', 'FileLinks\FileLinksController');
98 95
             Route::get('find/{id}', 'FileLinks\FileLinksController@find')->name('user');
@@ -133,8 +130,7 @@  discard block
 block discarded – undo
133 130
         *   Customer Routes
134 131
         *
135 132
         */        
136
-        Route::prefix('customer')->name('customer.')->group(function()
137
-        {
133
+        Route::prefix('customer')->name('customer.')->group(function() {
138 134
 
139 135
             Route::get('search-id/{id}', 'CustomerController@searchID')->name('searchID');
140 136
             Route::get('file-types', 'CustomerFilesController@getFileTypes')->name('getFileTypes');
@@ -156,12 +152,10 @@  discard block
 block discarded – undo
156 152
     *   Administration Routes
157 153
     *
158 154
     */
159
-    Route::group(['middleware' => 'roles', 'roles' => ['installer', 'admin']], function()
160
-    {
155
+    Route::group(['middleware' => 'roles', 'roles' => ['installer', 'admin']], function() {
161 156
         
162 157
         
163
-        Route::prefix('admin')->name('admin.')->group(function()
164
-        {
158
+        Route::prefix('admin')->name('admin.')->group(function() {
165 159
             Route::get('user/confirm/{id}', 'Admin\UserController@confirm')->name('confirmDisable');
166 160
             Route::get('user/disable', 'Admin\UserController@disable')->name('disable');
167 161
             Route::get('user/change-password/{id}', 'Admin\UserController@changePassword')->name('changePassword');
Please login to merge, or discard this patch.
database/factories/CustomerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 use Faker\Generator as Faker;
4 4
 
5
-$factory->define(App\Customers::class, function (Faker $faker) {
5
+$factory->define(App\Customers::class, function(Faker $faker) {
6 6
     return [
7 7
         //
8 8
         'cust_id'  => rand(50, 5000),
Please login to merge, or discard this patch.
config/filesystems.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,12 +25,12 @@
 block discarded – undo
25 25
     ],
26 26
     'paths' => [
27 27
         'default'   => env('DFLT_FOLDER', DIRECTORY_SEPARATOR.'default'),
28
-        'systems'   => env('SYS_FOLDER',  DIRECTORY_SEPARATOR.'systems'),
28
+        'systems'   => env('SYS_FOLDER', DIRECTORY_SEPARATOR.'systems'),
29 29
         'customers' => env('CUST_FOLDER', DIRECTORY_SEPARATOR.'customers'),
30 30
         'users'     => env('USER_FOLDER', DIRECTORY_SEPARATOR.'users'),
31
-        'tips'      => env('TIP_FOLDER',  DIRECTORY_SEPARATOR.'tips'),
31
+        'tips'      => env('TIP_FOLDER', DIRECTORY_SEPARATOR.'tips'),
32 32
         'links'     => env('LINK_FOLDER', DIRECTORY_SEPARATOR.'links'),
33 33
         'company'   => env('COMP_FOLDER', DIRECTORY_SEPARATOR.'company'),
34
-        'max_size'  => env('MAX_UPLOAD',  ini_get('post_max_size')),
34
+        'max_size'  => env('MAX_UPLOAD', ini_get('post_max_size')),
35 35
     ],
36 36
 ];
Please login to merge, or discard this patch.