Passed
Push — master ( 85bb68...db1581 )
by Ferry
05:12 queued 02:10
created
src/types/file/Hook.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,16 +21,16 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public function assignment($value, $column)
23 23
     {
24
-        if(request()->hasFile($column->getName())) {
24
+        if (request()->hasFile($column->getName())) {
25 25
             return cb()->uploadFile($column->getName());
26
-        }else{
26
+        } else {
27 27
             return null;
28 28
         }
29 29
     }
30 30
 
31 31
     public function detailRender($row, ColumnModel $column)
32 32
     {
33
-        return view("types::file.detail",[
33
+        return view("types::file.detail", [
34 34
             'row'=>$row,
35 35
             'column'=>$column
36 36
         ]);
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
     public function indexRender($row, ColumnModel $column)
40 40
     {
41
-        return view("types::file.detail",[
41
+        return view("types::file.detail", [
42 42
             'row'=>$row,
43 43
             'column'=>$column
44 44
         ]);
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     {
24 24
         if(request()->hasFile($column->getName())) {
25 25
             return cb()->uploadFile($column->getName());
26
-        }else{
26
+        } else{
27 27
             return null;
28 28
         }
29 29
     }
Please login to merge, or discard this patch.
src/types/image/Hook.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,16 +21,16 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public function assignment($value, $column)
23 23
     {
24
-        if(request()->hasFile($column->getName())) {
24
+        if (request()->hasFile($column->getName())) {
25 25
             return cb()->uploadFile($column->getName());
26
-        }else{
26
+        } else {
27 27
             return null;
28 28
         }
29 29
     }
30 30
 
31 31
     public function detailRender($row, ColumnModel $column)
32 32
     {
33
-        return view("types::image.detail",[
33
+        return view("types::image.detail", [
34 34
             'row'=>$row,
35 35
             'column'=>$column
36 36
         ]);
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
     public function indexRender($row, ColumnModel $column)
40 40
     {
41
-        return view("types::image.detail",[
41
+        return view("types::image.detail", [
42 42
             'row'=>$row,
43 43
             'column'=>$column
44 44
         ]);
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     {
24 24
         if(request()->hasFile($column->getName())) {
25 25
             return cb()->uploadFile($column->getName());
26
-        }else{
26
+        } else{
27 27
             return null;
28 28
         }
29 29
     }
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/middlewares/CBDeveloper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
     public function handle($request, Closure $next)
19 19
     {
20 20
 
21
-        if(!session()->has("developer")) {
22
-            return cb()->redirect(cb()->getDeveloperUrl("login"),"Please login for first");
21
+        if (!session()->has("developer")) {
22
+            return cb()->redirect(cb()->getDeveloperUrl("login"), "Please login for first");
23 23
         }
24 24
 
25 25
         return $next($request);
Please login to merge, or discard this patch.
src/middlewares/CBBackend.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@
 block discarded – undo
17 17
      */
18 18
     public function handle($request, Closure $next)
19 19
     {
20
-        if(auth()->guest()) {
21
-            return cb()->redirect(getAdminLoginURL(),trans('crudbooster.not_logged_in'),'warning');
20
+        if (auth()->guest()) {
21
+            return cb()->redirect(getAdminLoginURL(), trans('crudbooster.not_logged_in'), 'warning');
22 22
         }
23 23
 
24 24
         CBHook::beforeBackendMiddleware($request);
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/fonts/Fontawesome.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@  discard block
 block discarded – undo
2 2
 namespace crocodicstudio\crudbooster\fonts;
3 3
 
4 4
 class Fontawesome {
5
-	public static function getIcons() {
6
-		return [
5
+    public static function getIcons() {
6
+        return [
7 7
             "glass",
8 8
             "music",
9 9
             "search",
@@ -699,5 +699,5 @@  discard block
 block discarded – undo
699 699
             "bluetooth-b",
700 700
             "percent",
701 701
         ];
702
-	}
702
+    }
703 703
 }
704 704
\ No newline at end of file
Please login to merge, or discard this patch.
src/types/checkbox/Hook.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
      */
21 21
     public function assignment($value, ColumnModel $column)
22 22
     {
23
-        return implode(";", request( $column->getName() ));
23
+        return implode(";", request($column->getName()));
24 24
     }
25 25
 
26 26
 }
27 27
\ No newline at end of file
Please login to merge, or discard this patch.