@@ -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 @@ |
||
| 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, $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 | ]); |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | public function assignment($value, $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 |
@@ -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); |
@@ -12,7 +12,7 @@ discard block |
||
| 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 |
||
| 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 | }); |
@@ -2,8 +2,8 @@ discard block |
||
| 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 |
||
| 699 | 699 | "bluetooth-b", |
| 700 | 700 | "percent", |
| 701 | 701 | ]; |
| 702 | - } |
|
| 702 | + } |
|
| 703 | 703 | } |
| 704 | 704 | \ No newline at end of file |
@@ -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 @@ |
||
| 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, $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 | ]); |
@@ -4,7 +4,7 @@ |
||
| 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 |