@@ -72,7 +72,7 @@ |
||
| 72 | 72 | /** |
| 73 | 73 | * Resolve the conditional logic. |
| 74 | 74 | * |
| 75 | - * @param mixed $condition The condition. |
|
| 75 | + * @param boolean|string $condition The condition. |
|
| 76 | 76 | * @return boolean|null |
| 77 | 77 | */ |
| 78 | 78 | final protected function parseConditionalLogic($condition) |
@@ -106,7 +106,7 @@ |
||
| 106 | 106 | */ |
| 107 | 107 | protected function resolveConditionalLogic($condition) |
| 108 | 108 | { |
| 109 | - if (is_callable([ $this, $condition ])) { |
|
| 109 | + if (is_callable([$this, $condition])) { |
|
| 110 | 110 | return !!$this->{$condition}(); |
| 111 | 111 | } elseif (is_callable($condition)) { |
| 112 | 112 | return !!$condition(); |
@@ -2,8 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Charcoal\Ui\Dashboard; |
| 4 | 4 | |
| 5 | -use InvalidArgumentException; |
|
| 6 | - |
|
| 7 | 5 | // From 'charcoal-ui' |
| 8 | 6 | use Charcoal\Ui\AbstractUiItem; |
| 9 | 7 | use Charcoal\Ui\Dashboard\DashboardInterface; |