@@ -38,7 +38,7 @@ |
||
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 |
@@ -21,16 +21,16 @@ discard block |
||
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 |
||
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 | ]); |
@@ -23,7 +23,7 @@ |
||
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 | } |
@@ -21,16 +21,16 @@ discard block |
||
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 |
||
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 | ]); |
@@ -23,7 +23,7 @@ |
||
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 | } |
@@ -11,7 +11,7 @@ |
||
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 |
@@ -1,12 +1,12 @@ |
||
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 |
@@ -18,8 +18,8 @@ |
||
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); |
@@ -17,8 +17,8 @@ |
||
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); |
@@ -12,7 +12,7 @@ |
||
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"); |
@@ -12,7 +12,7 @@ |
||
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 | }); |