@@ -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) |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | */ |
| 111 | 111 | protected function resolveConditionalLogic($condition) |
| 112 | 112 | { |
| 113 | - if (is_callable([ $this, $condition ])) { |
|
| 113 | + if (is_callable([$this, $condition])) { |
|
| 114 | 114 | return !!$this->{$condition}(); |
| 115 | 115 | } |
| 116 | 116 | |
@@ -118,10 +118,10 @@ discard block |
||
| 118 | 118 | return !!$condition(); |
| 119 | 119 | } |
| 120 | 120 | |
| 121 | - if (is_callable([ $this, 'form' ])) { |
|
| 121 | + if (is_callable([$this, 'form'])) { |
|
| 122 | 122 | $form = $this->form(); |
| 123 | 123 | |
| 124 | - if (is_callable([ $form, 'obj' ])) { |
|
| 124 | + if (is_callable([$form, 'obj'])) { |
|
| 125 | 125 | $obj = $form->obj(); |
| 126 | 126 | |
| 127 | 127 | if (($obj instanceof ViewableInterface) && ($obj->view() instanceof ViewInterface)) { |
@@ -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; |