@@ -54,7 +54,7 @@ |
||
| 54 | 54 | |
| 55 | 55 | $this->value = array_get($inputs, $this->column); |
| 56 | 56 | |
| 57 | - $value = array_filter($this->value, function ($val) { |
|
| 57 | + $value = array_filter($this->value, function($val) { |
|
| 58 | 58 | return $val !== ''; |
| 59 | 59 | }); |
| 60 | 60 | |
@@ -158,7 +158,7 @@ |
||
| 158 | 158 | |
| 159 | 159 | list($relation, $args[0]) = explode('.', $this->column); |
| 160 | 160 | |
| 161 | - return ['whereHas' => [$relation, function ($relation) use ($args) { |
|
| 161 | + return ['whereHas' => [$relation, function($relation) use ($args) { |
|
| 162 | 162 | call_user_func_array([$relation, $this->query], $args); |
| 163 | 163 | }]]; |
| 164 | 164 | } |
@@ -134,7 +134,7 @@ |
||
| 134 | 134 | public function style($style) |
| 135 | 135 | { |
| 136 | 136 | if (is_array($style)) { |
| 137 | - $style = implode('', array_map(function ($key, $val) { |
|
| 137 | + $style = implode('', array_map(function($key, $val) { |
|
| 138 | 138 | return "$key:$val"; |
| 139 | 139 | }, array_keys($style), array_values($style))); |
| 140 | 140 | } |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | */ |
| 47 | 47 | public function conditions() |
| 48 | 48 | { |
| 49 | - $inputs = array_filter(Input::all(), function ($input) { |
|
| 49 | + $inputs = array_filter(Input::all(), function($input) { |
|
| 50 | 50 | return $input !== ''; |
| 51 | 51 | }); |
| 52 | 52 | |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | */ |
| 61 | 61 | public function register() |
| 62 | 62 | { |
| 63 | - $this->app->booting(function () { |
|
| 63 | + $this->app->booting(function() { |
|
| 64 | 64 | $loader = AliasLoader::getInstance(); |
| 65 | 65 | |
| 66 | 66 | $loader->alias('Admin', \Encore\Admin\Facades\Admin::class); |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | |
| 115 | 115 | public function registerRouter() |
| 116 | 116 | { |
| 117 | - $this->app->singleton('admin.router', function ($app) { |
|
| 117 | + $this->app->singleton('admin.router', function($app) { |
|
| 118 | 118 | return new Router($app['router']); |
| 119 | 119 | }); |
| 120 | 120 | } |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | */ |
| 21 | 21 | public function index() |
| 22 | 22 | { |
| 23 | - return Admin::content(function (Content $content) { |
|
| 23 | + return Admin::content(function(Content $content) { |
|
| 24 | 24 | $content->header(trans('admin::lang.permissions')); |
| 25 | 25 | $content->description(trans('admin::lang.list')); |
| 26 | 26 | $content->body($this->grid()->render()); |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | */ |
| 37 | 37 | public function edit($id) |
| 38 | 38 | { |
| 39 | - return Admin::content(function (Content $content) use ($id) { |
|
| 39 | + return Admin::content(function(Content $content) use ($id) { |
|
| 40 | 40 | $content->header(trans('admin::lang.permissions')); |
| 41 | 41 | $content->description(trans('admin::lang.edit')); |
| 42 | 42 | $content->body($this->form()->edit($id)); |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | */ |
| 51 | 51 | public function create() |
| 52 | 52 | { |
| 53 | - return Admin::content(function (Content $content) { |
|
| 53 | + return Admin::content(function(Content $content) { |
|
| 54 | 54 | $content->header(trans('admin::lang.permissions')); |
| 55 | 55 | $content->description(trans('admin::lang.create')); |
| 56 | 56 | $content->body($this->form()); |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | */ |
| 65 | 65 | protected function grid() |
| 66 | 66 | { |
| 67 | - return Admin::grid(Permission::class, function (Grid $grid) { |
|
| 67 | + return Admin::grid(Permission::class, function(Grid $grid) { |
|
| 68 | 68 | $grid->id('ID')->sortable(); |
| 69 | 69 | $grid->slug(trans('admin::lang.slug')); |
| 70 | 70 | $grid->name(trans('admin::lang.name')); |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | */ |
| 82 | 82 | public function form() |
| 83 | 83 | { |
| 84 | - return Admin::form(Permission::class, function (Form $form) { |
|
| 84 | + return Admin::form(Permission::class, function(Form $form) { |
|
| 85 | 85 | $form->display('id', 'ID'); |
| 86 | 86 | |
| 87 | 87 | $form->text('slug', trans('admin::lang.slug')); |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | return $this->style([$styles]); |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | - $styles = array_map(function ($style) { |
|
| 67 | + $styles = array_map(function($style) { |
|
| 68 | 68 | return 'box-'.$style; |
| 69 | 69 | }, $styles); |
| 70 | 70 | |
@@ -140,7 +140,7 @@ |
||
| 140 | 140 | * @param Field $field |
| 141 | 141 | * @return $this |
| 142 | 142 | */ |
| 143 | - protected function pushField(Field &$field) |
|
| 143 | + protected function pushField(Field & $field) |
|
| 144 | 144 | { |
| 145 | 145 | array_push($this->fields, $field); |
| 146 | 146 | |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | { |
| 85 | 85 | static::$branchOrder = array_flip(array_flatten($order)); |
| 86 | 86 | |
| 87 | - static::$branchOrder = array_map(function ($item) { |
|
| 87 | + static::$branchOrder = array_map(function($item) { |
|
| 88 | 88 | return ++$item; |
| 89 | 89 | }, static::$branchOrder); |
| 90 | 90 | } |