Passed
Push — master ( 638d34...c14ede )
by Ferry
04:41
created
src/controllers/FileController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         $fullStoragePath = storage_path('app/'.$fullFilePath);
35 35
         $lifetime = 31556926; // One year in seconds
36 36
 
37
-        if (! Storage::exists($fullFilePath)) {
37
+        if (!Storage::exists($fullFilePath)) {
38 38
             abort(404);
39 39
         }
40 40
 
@@ -55,10 +55,10 @@  discard block
 block discarded – undo
55 55
                 $h = Request::get('h') ?: $w;
56 56
             }
57 57
 
58
-            $imgRaw = Image::cache(function ($image) use ($fullStoragePath, $w, $h) {
58
+            $imgRaw = Image::cache(function($image) use ($fullStoragePath, $w, $h) {
59 59
                 $im = $image->make($fullStoragePath);
60 60
                 if ($w) {
61
-                    if (! $h) {
61
+                    if (!$h) {
62 62
                         $im->fit($w);
63 63
                     } else {
64 64
                         $im->fit($w, $h);
Please login to merge, or discard this patch.
src/helpers/Helper.php 3 patches
Indentation   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -118,49 +118,49 @@  discard block
 block discarded – undo
118 118
 }
119 119
 
120 120
 if(!function_exists('assetThumbnail')) {
121
-	function assetThumbnail($path) {
122
-		$path = str_replace('uploads/','uploads_thumbnail/',$path);
123
-		return asset($path);
124
-	}
121
+    function assetThumbnail($path) {
122
+        $path = str_replace('uploads/','uploads_thumbnail/',$path);
123
+        return asset($path);
124
+    }
125 125
 }
126 126
 
127 127
 if(!function_exists('assetResize')) {
128
-	function assetResize($path,$width,$height=null,$quality=70) {
129
-		$basename = basename($path);
130
-	    $pathWithoutName = str_replace($basename, '', $path);
131
-	    $newLocation = $pathWithoutName.'/w_'.$width.'_h_'.$height.'_'.$basename;
132
-	    if(Storage::exists($newLocation)) {
133
-	        return asset($newLocation);
134
-	    }else{
135
-	        $img = Image::make(storage_path($path))->fit($width,$height);
136
-	        $img->save(storage_path($newLocation),$quality);
137
-	        return asset($newLocation);
138
-	    }
139
-	}
128
+    function assetResize($path,$width,$height=null,$quality=70) {
129
+        $basename = basename($path);
130
+        $pathWithoutName = str_replace($basename, '', $path);
131
+        $newLocation = $pathWithoutName.'/w_'.$width.'_h_'.$height.'_'.$basename;
132
+        if(Storage::exists($newLocation)) {
133
+            return asset($newLocation);
134
+        }else{
135
+            $img = Image::make(storage_path($path))->fit($width,$height);
136
+            $img->save(storage_path($newLocation),$quality);
137
+            return asset($newLocation);
138
+        }
139
+    }
140 140
 }
141 141
 
142 142
 if(!function_exists('extract_unit')) {	
143
-	/*
143
+    /*
144 144
 	Credits: Bit Repository
145 145
 	URL: http://www.bitrepository.com/extract-content-between-two-delimiters-with-php.html
146 146
 	*/
147
-	function extract_unit($string, $start, $end)
148
-	{
149
-	$pos = stripos($string, $start);
150
-	$str = substr($string, $pos);
151
-	$str_two = substr($str, strlen($start));
152
-	$second_pos = stripos($str_two, $end);
153
-	$str_three = substr($str_two, 0, $second_pos);
154
-	$unit = trim($str_three); // remove whitespaces
155
-	return $unit;
156
-	}
147
+    function extract_unit($string, $start, $end)
148
+    {
149
+    $pos = stripos($string, $start);
150
+    $str = substr($string, $pos);
151
+    $str_two = substr($str, strlen($start));
152
+    $second_pos = stripos($str_two, $end);
153
+    $str_three = substr($str_two, 0, $second_pos);
154
+    $unit = trim($str_three); // remove whitespaces
155
+    return $unit;
156
+    }
157 157
 }
158 158
 
159 159
 
160 160
 if(!function_exists('now')) {
161
-	function now() {		
162
-		return date('Y-m-d H:i:s');
163
-	}
161
+    function now() {		
162
+        return date('Y-m-d H:i:s');
163
+    }
164 164
 }
165 165
 
166 166
 /* 
@@ -324,22 +324,22 @@  discard block
 block discarded – undo
324 324
 }
325 325
 
326 326
 if(!function_exists('rrmdir')) {
327
-	/*
327
+    /*
328 328
 	* http://stackoverflow.com/questions/3338123/how-do-i-recursively-delete-a-directory-and-its-entire-contents-files-sub-dir
329 329
 	*/
330
-	function rrmdir($dir) { 
331
-	   if (is_dir($dir)) { 
332
-	     $objects = scandir($dir); 
333
-	     foreach ($objects as $object) { 
334
-	       if ($object != "." && $object != "..") { 
335
-	         if (is_dir($dir."/".$object))
336
-	           rrmdir($dir."/".$object);
337
-	         else
338
-	           unlink($dir."/".$object); 
339
-	       } 
340
-	     }
341
-	     rmdir($dir); 
342
-	   } 
343
-	 }
330
+    function rrmdir($dir) { 
331
+        if (is_dir($dir)) { 
332
+            $objects = scandir($dir); 
333
+            foreach ($objects as $object) { 
334
+            if ($object != "." && $object != "..") { 
335
+                if (is_dir($dir."/".$object))
336
+                rrmdir($dir."/".$object);
337
+                else
338
+                unlink($dir."/".$object); 
339
+            } 
340
+            }
341
+            rmdir($dir); 
342
+        } 
343
+        }
344 344
 }
345 345
 
Please login to merge, or discard this patch.
Spacing   +56 added lines, -56 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 |
10 10
 */
11 11
 
12
-if(!function_exists("cbLang")) {
12
+if (!function_exists("cbLang")) {
13 13
     /**
14 14
      * @param string $key
15 15
      * @param array $replace
@@ -21,17 +21,17 @@  discard block
 block discarded – undo
21 21
     }
22 22
 }
23 23
 
24
-if(!function_exists('rglob')) {
24
+if (!function_exists('rglob')) {
25 25
     function rglob($pattern, $flags = 0) {
26 26
         $files = glob($pattern, $flags);
27
-        foreach (glob(dirname($pattern).'/*', GLOB_ONLYDIR|GLOB_NOSORT) as $dir) {
27
+        foreach (glob(dirname($pattern).'/*', GLOB_ONLYDIR | GLOB_NOSORT) as $dir) {
28 28
             $files = array_merge($files, rglob($dir.'/'.basename($pattern), $flags));
29 29
         }
30 30
         return $files;
31 31
     }
32 32
 }
33 33
 
34
-if(!function_exists('convertPHPToMomentFormat')) {
34
+if (!function_exists('convertPHPToMomentFormat')) {
35 35
     function convertPHPToMomentFormat($format)
36 36
     {
37 37
         $replacements = [
@@ -78,13 +78,13 @@  discard block
 block discarded – undo
78 78
     }
79 79
 }
80 80
 
81
-if(!function_exists('slug')) {
81
+if (!function_exists('slug')) {
82 82
     function slug($string, $separator = '-') {
83 83
         return \Illuminate\Support\Str::slug($string, $separator);
84 84
     }
85 85
 }
86 86
 
87
-if(!function_exists('columnSingleton')) {
87
+if (!function_exists('columnSingleton')) {
88 88
     /**
89 89
      * @return \crocodicstudio\crudbooster\controllers\scaffolding\singletons\ColumnSingleton
90 90
      */
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     }
94 94
 }
95 95
 
96
-if(!function_exists('cbHook'))
96
+if (!function_exists('cbHook'))
97 97
 {
98 98
     /**
99 99
      * @return crocodicstudio\crudbooster\hooks\CBHook
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     }
106 106
 }
107 107
 
108
-if(!function_exists('getTypeHook'))
108
+if (!function_exists('getTypeHook'))
109 109
 {
110 110
     /**
111 111
      * @param string $type
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     }
119 119
 }
120 120
 
121
-if(!function_exists('getPrimaryKey'))
121
+if (!function_exists('getPrimaryKey'))
122 122
 {
123 123
     function getPrimaryKey($table_name)
124 124
     {
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     }
127 127
 }
128 128
 
129
-if(!function_exists('cb'))
129
+if (!function_exists('cb'))
130 130
 {
131 131
     function cb()
132 132
     {
@@ -134,25 +134,25 @@  discard block
 block discarded – undo
134 134
     }
135 135
 }
136 136
 
137
-if(!function_exists('cbAsset')) {
137
+if (!function_exists('cbAsset')) {
138 138
     function cbAsset($path) {
139 139
         return asset("cb_asset/".$path);
140 140
     }
141 141
 }
142 142
 
143
-if(!function_exists("cbConfig")) {
143
+if (!function_exists("cbConfig")) {
144 144
     function cbConfig($name) {
145 145
         return config("crudbooster.".$name);
146 146
     }
147 147
 }
148 148
 
149
-if(!function_exists("strRandom")) {
149
+if (!function_exists("strRandom")) {
150 150
     function strRandom($length = 5) {
151 151
         return \Illuminate\Support\Str::random($length);
152 152
     }
153 153
 }
154 154
 
155
-if(!function_exists('module')) {
155
+if (!function_exists('module')) {
156 156
     function module()
157 157
     {
158 158
         $module = new \crocodicstudio\crudbooster\helpers\Module();
@@ -160,43 +160,43 @@  discard block
 block discarded – undo
160 160
     }
161 161
 }
162 162
 
163
-if(!function_exists('getAdminLoginURL')) {
163
+if (!function_exists('getAdminLoginURL')) {
164 164
     function getAdminLoginURL()
165 165
     {
166 166
         return url(config('crudbooster.ADMIN_LOGIN_PATH'));
167 167
     }
168 168
 }
169 169
 
170
-if(!function_exists('dummyPhoto')) {
170
+if (!function_exists('dummyPhoto')) {
171 171
     function dummyPhoto()
172 172
     {
173 173
         return cbConfig("DUMMY_PHOTO");
174 174
     }
175 175
 }
176 176
 
177
-if(!function_exists('assetThumbnail')) {
177
+if (!function_exists('assetThumbnail')) {
178 178
 	function assetThumbnail($path) {
179
-		$path = str_replace('uploads/','uploads_thumbnail/',$path);
179
+		$path = str_replace('uploads/', 'uploads_thumbnail/', $path);
180 180
 		return asset($path);
181 181
 	}
182 182
 }
183 183
 
184
-if(!function_exists('assetResize')) {
185
-	function assetResize($path,$width,$height=null,$quality=70) {
184
+if (!function_exists('assetResize')) {
185
+	function assetResize($path, $width, $height = null, $quality = 70) {
186 186
 		$basename = basename($path);
187 187
 	    $pathWithoutName = str_replace($basename, '', $path);
188 188
 	    $newLocation = $pathWithoutName.'/w_'.$width.'_h_'.$height.'_'.$basename;
189
-	    if(Storage::exists($newLocation)) {
189
+	    if (Storage::exists($newLocation)) {
190 190
 	        return asset($newLocation);
191
-	    }else{
192
-	        $img = Image::make(storage_path($path))->fit($width,$height);
193
-	        $img->save(storage_path($newLocation),$quality);
191
+	    } else {
192
+	        $img = Image::make(storage_path($path))->fit($width, $height);
193
+	        $img->save(storage_path($newLocation), $quality);
194 194
 	        return asset($newLocation);
195 195
 	    }
196 196
 	}
197 197
 }
198 198
 
199
-if(!function_exists('extract_unit')) {	
199
+if (!function_exists('extract_unit')) {	
200 200
 	/*
201 201
 	Credits: Bit Repository
202 202
 	URL: http://www.bitrepository.com/extract-content-between-two-delimiters-with-php.html
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 }
215 215
 
216 216
 
217
-if(!function_exists('now')) {
217
+if (!function_exists('now')) {
218 218
 	function now() {		
219 219
 		return date('Y-m-d H:i:s');
220 220
 	}
@@ -228,14 +228,14 @@  discard block
 block discarded – undo
228 228
 |
229 229
 */
230 230
 
231
-if(!function_exists('putSetting')) {
231
+if (!function_exists('putSetting')) {
232 232
     function putSetting($key, $value)
233 233
     {
234
-        if(file_exists(storage_path('.cbconfig'))) {
234
+        if (file_exists(storage_path('.cbconfig'))) {
235 235
             $settings = file_get_contents(storage_path('.cbconfig'));
236 236
             $settings = decrypt($settings);
237 237
             $settings = unserialize($settings);
238
-        }else{
238
+        } else {
239 239
             $settings = [];
240 240
         }
241 241
 
@@ -249,31 +249,31 @@  discard block
 block discarded – undo
249 249
     }
250 250
 }
251 251
 
252
-if(!function_exists('getSetting')) {
252
+if (!function_exists('getSetting')) {
253 253
     function getSetting($key, $default = null)
254 254
     {
255
-        if($cache = \Illuminate\Support\Facades\Cache::get("setting_".$key)) {
255
+        if ($cache = \Illuminate\Support\Facades\Cache::get("setting_".$key)) {
256 256
             return $cache;
257 257
         }
258 258
 
259
-        if(file_exists(storage_path('.cbconfig'))) {
259
+        if (file_exists(storage_path('.cbconfig'))) {
260 260
             $settings = file_get_contents(storage_path('.cbconfig'));
261 261
             $settings = decrypt($settings);
262 262
             $settings = unserialize($settings);
263
-        }else{
263
+        } else {
264 264
             $settings = [];
265 265
         }
266 266
 
267
-        if(isset($settings[$key])) {
267
+        if (isset($settings[$key])) {
268 268
             \Illuminate\Support\Facades\Cache::put("setting_".$key, $settings[$key], 180);
269
-            return $settings[$key]?:$default;
270
-        }else{
269
+            return $settings[$key] ?: $default;
270
+        } else {
271 271
             return $default;
272 272
         }
273 273
     }
274 274
 }
275 275
 
276
-if(!function_exists('timeAgo')) {
276
+if (!function_exists('timeAgo')) {
277 277
     function timeAgo($datetime_to, $datetime_from = null, $full = false)
278 278
     {
279 279
         $datetime_from = ($datetime_from) ?: date('Y-m-d H:i:s');
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
             }
305 305
         }
306 306
 
307
-        if (! $full) {
307
+        if (!$full) {
308 308
             $string = array_slice($string, 0, 1);
309 309
         }
310 310
 
@@ -312,22 +312,22 @@  discard block
 block discarded – undo
312 312
     }
313 313
 }
314 314
 
315
-if(!function_exists("array_map_r")) {
316
-    function array_map_r( $func, $arr )
315
+if (!function_exists("array_map_r")) {
316
+    function array_map_r($func, $arr)
317 317
     {
318 318
         $newArr = array();
319 319
 
320
-        foreach( $arr as $key => $value )
320
+        foreach ($arr as $key => $value)
321 321
         {
322 322
             $key = $func($key);
323
-            $newArr[ $key ] = ( is_array( $value ) ? array_map_r( $func, $value ) : ( is_array($func) ? call_user_func_array($func, $value) : $func( $value ) ) );
323
+            $newArr[$key] = (is_array($value) ? array_map_r($func, $value) : (is_array($func) ? call_user_func_array($func, $value) : $func($value)));
324 324
         }
325 325
 
326 326
         return $newArr;
327 327
     }
328 328
 }
329 329
 
330
-if(!function_exists("sanitizeXSS"))
330
+if (!function_exists("sanitizeXSS"))
331 331
 {
332 332
     function sanitizeXSS($value)
333 333
     {
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
     }
340 340
 }
341 341
 
342
-if(!function_exists("requestAll")) {
342
+if (!function_exists("requestAll")) {
343 343
     function requestAll() {
344 344
         $all = array_map_r("sanitizeXSS", request()->all());
345 345
         return $all;
@@ -348,22 +348,22 @@  discard block
 block discarded – undo
348 348
 
349 349
 
350 350
 
351
-if(!function_exists('getURLFormat')) {
351
+if (!function_exists('getURLFormat')) {
352 352
     function getURLFormat($name) {
353 353
         $url = request($name);
354
-        if(filter_var($url, FILTER_VALIDATE_URL)) {
354
+        if (filter_var($url, FILTER_VALIDATE_URL)) {
355 355
             return $url;
356
-        }else{
356
+        } else {
357 357
             return request()->url();
358 358
         }
359 359
     }
360 360
 }
361 361
 
362
-if(!function_exists('g')) {
362
+if (!function_exists('g')) {
363 363
     function g($name, $safe = true) {
364
-        if($safe == true) {
364
+        if ($safe == true) {
365 365
             $response = request($name);
366
-            if(is_string($response)) {
366
+            if (is_string($response)) {
367 367
                 $response = sanitizeXSS($response);
368 368
             }elseif (is_array($response)) {
369 369
                 array_walk_recursive($response, function(&$response) {
@@ -372,25 +372,25 @@  discard block
 block discarded – undo
372 372
             }
373 373
 
374 374
             return $response;
375
-        }else{
375
+        } else {
376 376
             return Request::get($name);
377 377
         }
378 378
     }
379 379
 }
380 380
 
381
-if(!function_exists('min_var_export')) {
381
+if (!function_exists('min_var_export')) {
382 382
     function min_var_export($input) {
383
-        if(is_array($input)) {
383
+        if (is_array($input)) {
384 384
             $buffer = [];
385
-            foreach($input as $key => $value)
385
+            foreach ($input as $key => $value)
386 386
                 $buffer[] = var_export($key, true)."=>".min_var_export($value);
387
-            return "[".implode(",",$buffer)."]";
387
+            return "[".implode(",", $buffer)."]";
388 388
         } else
389 389
             return var_export($input, true);
390 390
     }
391 391
 }
392 392
 
393
-if(!function_exists('rrmdir')) {
393
+if (!function_exists('rrmdir')) {
394 394
 	/*
395 395
 	* http://stackoverflow.com/questions/3338123/how-do-i-recursively-delete-a-directory-and-its-entire-contents-files-sub-dir
396 396
 	*/
Please login to merge, or discard this patch.
Braces   +18 added lines, -15 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 	    $newLocation = $pathWithoutName.'/w_'.$width.'_h_'.$height.'_'.$basename;
189 189
 	    if(Storage::exists($newLocation)) {
190 190
 	        return asset($newLocation);
191
-	    }else{
191
+	    } else{
192 192
 	        $img = Image::make(storage_path($path))->fit($width,$height);
193 193
 	        $img->save(storage_path($newLocation),$quality);
194 194
 	        return asset($newLocation);
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
             $settings = file_get_contents(storage_path('.cbconfig'));
236 236
             $settings = decrypt($settings);
237 237
             $settings = unserialize($settings);
238
-        }else{
238
+        } else{
239 239
             $settings = [];
240 240
         }
241 241
 
@@ -260,14 +260,14 @@  discard block
 block discarded – undo
260 260
             $settings = file_get_contents(storage_path('.cbconfig'));
261 261
             $settings = decrypt($settings);
262 262
             $settings = unserialize($settings);
263
-        }else{
263
+        } else{
264 264
             $settings = [];
265 265
         }
266 266
 
267 267
         if(isset($settings[$key])) {
268 268
             \Illuminate\Support\Facades\Cache::put("setting_".$key, $settings[$key], 180);
269 269
             return $settings[$key]?:$default;
270
-        }else{
270
+        } else{
271 271
             return $default;
272 272
         }
273 273
     }
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
         $url = request($name);
354 354
         if(filter_var($url, FILTER_VALIDATE_URL)) {
355 355
             return $url;
356
-        }else{
356
+        } else{
357 357
             return request()->url();
358 358
         }
359 359
     }
@@ -365,14 +365,14 @@  discard block
 block discarded – undo
365 365
             $response = request($name);
366 366
             if(is_string($response)) {
367 367
                 $response = sanitizeXSS($response);
368
-            }elseif (is_array($response)) {
368
+            } elseif (is_array($response)) {
369 369
                 array_walk_recursive($response, function(&$response) {
370 370
                     $response = sanitizeXSS($response);
371 371
                 });
372 372
             }
373 373
 
374 374
             return $response;
375
-        }else{
375
+        } else{
376 376
             return Request::get($name);
377 377
         }
378 378
     }
@@ -382,11 +382,13 @@  discard block
 block discarded – undo
382 382
     function min_var_export($input) {
383 383
         if(is_array($input)) {
384 384
             $buffer = [];
385
-            foreach($input as $key => $value)
386
-                $buffer[] = var_export($key, true)."=>".min_var_export($value);
385
+            foreach($input as $key => $value) {
386
+                            $buffer[] = var_export($key, true)."=>".min_var_export($value);
387
+            }
387 388
             return "[".implode(",",$buffer)."]";
388
-        } else
389
-            return var_export($input, true);
389
+        } else {
390
+                    return var_export($input, true);
391
+        }
390 392
     }
391 393
 }
392 394
 
@@ -399,10 +401,11 @@  discard block
 block discarded – undo
399 401
 	     $objects = scandir($dir); 
400 402
 	     foreach ($objects as $object) { 
401 403
 	       if ($object != "." && $object != "..") { 
402
-	         if (is_dir($dir."/".$object))
403
-	           rrmdir($dir."/".$object);
404
-	         else
405
-	           unlink($dir."/".$object); 
404
+	         if (is_dir($dir."/".$object)) {
405
+	         	           rrmdir($dir."/".$object);
406
+	         } else {
407
+	         	           unlink($dir."/".$object);
408
+	         }
406 409
 	       } 
407 410
 	     }
408 411
 	     rmdir($dir); 
Please login to merge, or discard this patch.
src/helpers/MailHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     }
42 42
 
43 43
     public function send() {
44
-        Mail::send("crudbooster::emails.blank", ['content' => $this->content], function ($message) {
44
+        Mail::send("crudbooster::emails.blank", ['content' => $this->content], function($message) {
45 45
             $message->priority(1);
46 46
             $message->to($this->to_email);
47 47
             $message->from($this->sender_email, $this->sender_name);
Please login to merge, or discard this patch.
src/types/checkbox/CheckboxHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 class CheckboxHelper
12 12
 {
13 13
     public static function parseValuesToArray($values) {
14
-        $data = explode(";",$values);
14
+        $data = explode(";", $values);
15 15
         return $data;
16 16
     }
17 17
     
Please login to merge, or discard this patch.
src/validations/validation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php 
2 2
 
3
-\Validator::extend('alpha_spaces', function ($attribute, $value) {
3
+\Validator::extend('alpha_spaces', function($attribute, $value) {
4 4
     // This will only accept alpha and spaces. 
5 5
     // If you want to accept hyphens use: /^[\pL\s-]+$/u.
6 6
     return preg_match('/^[\pL\s]+$/u', $value); 
7 7
 },'The :attribute should be letters and spaces only');
8 8
 
9
-\Validator::extend('alpha_num_spaces', function ($attribute, $value) {
9
+\Validator::extend('alpha_num_spaces', function($attribute, $value) {
10 10
     // This will only accept alphanumeric and spaces. 
11 11
     return preg_match('/^[a-zA-Z0-9\s]+$/', $value); 
12 12
 },'The :attribute should be alphanumeric characters and spaces only');
13 13
\ No newline at end of file
Please login to merge, or discard this patch.
src/database/migrations/2016_08_07_152421_add_role_users.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
      */
13 13
     public function up()
14 14
     {
15
-        Schema::table('users', function (Blueprint $table) {
15
+        Schema::table('users', function(Blueprint $table) {
16 16
             $table->string('photo')->nullable();
17 17
             $table->integer('cb_roles_id');
18 18
         });
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function down()
27 27
     {
28
-        Schema::table('users', function (Blueprint $table) {
28
+        Schema::table('users', function(Blueprint $table) {
29 29
             $table->dropColumn('cb_roles_id');
30 30
             $table->dropColumn('photo');
31 31
         });
Please login to merge, or discard this patch.
src/hooks/CBHook.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 interface CBHook {
5 5
 
6 6
     public function hookGetLogin();
7
-	public function hookPostLogin();
8
-	public function beforeBackendMiddleware($request);
7
+    public function hookPostLogin();
8
+    public function beforeBackendMiddleware($request);
9 9
     public function afterBackendMiddleware($request, $response);
10 10
 }
11 11
\ No newline at end of file
Please login to merge, or discard this patch.
src/database/migrations/2016_08_07_152421_table_role_privileges.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public function up()
14 14
     {
15
-        Schema::create('cb_role_privileges', function (Blueprint $table) {
15
+        Schema::create('cb_role_privileges', function(Blueprint $table) {
16 16
             $table->increments("id");
17 17
             $table->integer("cb_roles_id");
18 18
             $table->integer("cb_menus_id");
Please login to merge, or discard this patch.
src/database/migrations/2016_08_07_152421_table_roles.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public function up()
14 14
     {
15
-        Schema::create('cb_roles', function (Blueprint $table) {
15
+        Schema::create('cb_roles', function(Blueprint $table) {
16 16
             $table->increments("id");
17 17
             $table->string('name');
18 18
         });
Please login to merge, or discard this patch.