@@ -2,8 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Charcoal\Ui\Dashboard; |
4 | 4 | |
5 | -use InvalidArgumentException; |
|
6 | - |
|
7 | 5 | // Intra-module (`charcoal-ui`) dependencies |
8 | 6 | use Charcoal\Ui\AbstractUiItem; |
9 | 7 | use Charcoal\Ui\Dashboard\DashboardInterface; |
@@ -4,9 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Pimple\Container; |
6 | 6 | use Pimple\ServiceProviderInterface; |
7 | - |
|
8 | 7 | use Charcoal\Factory\GenericFactory as Factory; |
9 | - |
|
10 | 8 | use Charcoal\Ui\Dashboard\DashboardBuilder; |
11 | 9 | use Charcoal\Ui\Dashboard\DashboardInterface; |
12 | 10 | use Charcoal\Ui\Dashboard\GenericDashboard; |
@@ -4,13 +4,10 @@ |
||
4 | 4 | |
5 | 5 | use Pimple\Container; |
6 | 6 | use Pimple\ServiceProviderInterface; |
7 | - |
|
8 | 7 | use Charcoal\Factory\GenericFactory as Factory; |
9 | - |
|
10 | 8 | use Charcoal\Ui\Form\FormBuilder; |
11 | 9 | use Charcoal\Ui\Form\FormInterface; |
12 | 10 | use Charcoal\Ui\Form\GenericForm; |
13 | -use Charcoal\Ui\FormGroup\FormGroupBuilder; |
|
14 | 11 | use Charcoal\Ui\FormGroup\FormGroupInterface; |
15 | 12 | use Charcoal\Ui\FormGroup\GenericFormGroup; |
16 | 13 | use Charcoal\Ui\FormInput\FormInputBuilder; |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Pimple\Container; |
6 | 6 | use Pimple\ServiceProviderInterface; |
7 | - |
|
8 | 7 | use Charcoal\Ui\Layout\LayoutBuilder; |
9 | 8 | use Charcoal\Ui\Layout\LayoutFactory; |
10 | 9 |
@@ -152,7 +152,7 @@ |
||
152 | 152 | public function widgets(callable $widgetCallback = null) |
153 | 153 | { |
154 | 154 | $widgets = $this->widgets; |
155 | - uasort($widgets, [ $this, 'sortItemsByPriority' ]); |
|
155 | + uasort($widgets, [$this, 'sortItemsByPriority']); |
|
156 | 156 | |
157 | 157 | $widgetCallback = isset($widgetCallback) ? $widgetCallback : $this->widgetCallback; |
158 | 158 | foreach ($widgets as $widget) { |