@@ -28,7 +28,7 @@ |
||
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | return $this->filter( |
| 31 | - function (DashboardInterface $dashboard) use ($user) { |
|
| 31 | + function(DashboardInterface $dashboard) use ($user) { |
|
| 32 | 32 | return $user->hasAnyRole($dashboard->getAllowedRoles()); |
| 33 | 33 | } |
| 34 | 34 | ); |
@@ -24,9 +24,9 @@ discard block |
||
| 24 | 24 | $builder->setSections( |
| 25 | 25 | [ |
| 26 | 26 | [ |
| 27 | - 'fields' => function () use ($widget) { |
|
| 27 | + 'fields' => function() use ($widget) { |
|
| 28 | 28 | return array_map( |
| 29 | - function ($field) { |
|
| 29 | + function($field) { |
|
| 30 | 30 | return 'widget_' . $field['field']; |
| 31 | 31 | }, |
| 32 | 32 | $widget->getFields() |
@@ -34,9 +34,9 @@ discard block |
||
| 34 | 34 | } |
| 35 | 35 | ], |
| 36 | 36 | [ |
| 37 | - 'fields' => function () use ($configuration) { |
|
| 37 | + 'fields' => function() use ($configuration) { |
|
| 38 | 38 | return array_map( |
| 39 | - function ($field) { |
|
| 39 | + function($field) { |
|
| 40 | 40 | return 'configuration_' . $field['field']; |
| 41 | 41 | }, |
| 42 | 42 | $configuration->getFields() |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | return $this->filter( |
| 31 | - function ($widget) use ($user) { |
|
| 31 | + function($widget) use ($user) { |
|
| 32 | 32 | |
| 33 | 33 | /* @var WidgetInterface $widget */ |
| 34 | 34 | return $user->hasAnyRole($widget->getAllowedRoles()); |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | public function pinned() |
| 46 | 46 | { |
| 47 | 47 | return $this->filter( |
| 48 | - function ($widget) { |
|
| 48 | + function($widget) { |
|
| 49 | 49 | |
| 50 | 50 | /* @var WidgetInterface $widget */ |
| 51 | 51 | return $widget->isPinned(); |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | public function column($column, $over = false) |
| 64 | 64 | { |
| 65 | 65 | return $this->filter( |
| 66 | - function ($widget) use ($column, $over) { |
|
| 66 | + function($widget) use ($column, $over) { |
|
| 67 | 67 | |
| 68 | 68 | /* @var WidgetInterface $widget */ |
| 69 | 69 | if ($widget->isPinned()) { |