Passed
Push — master ( 1d9c49...2c75d4 )
by Ferry
05:03 queued 02:02
created
src/commands/Install.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 
39 39
         if ($this->confirm('Do you have setting the database configuration at .env ?')) {
40 40
 
41
-            if (! file_exists(public_path('vendor')) ) {
41
+            if (!file_exists(public_path('vendor'))) {
42 42
                 mkdir(public_path('vendor'), 0777);
43 43
             }
44 44
 
Please login to merge, or discard this patch.
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_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();
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();
17 17
             $table->string('name');
18 18
         });
Please login to merge, or discard this patch.