@@ -28,7 +28,7 @@ |
||
28 | 28 | $this->set($joint->info())->setAttr('searchkey', strtolower($joint->caption() . ';' . $joint->info())); |
29 | 29 | } |
30 | 30 | else { |
31 | - if (! $this->locked) { |
|
31 | + if (!$this->locked) { |
|
32 | 32 | $this->addControl('close', 'applet-close')->setAttr('title', __('Close applet')); |
33 | 33 | } |
34 | 34 |
@@ -26,8 +26,7 @@ |
||
26 | 26 | |
27 | 27 | if ($this->admin) { |
28 | 28 | $this->set($joint->info())->setAttr('searchkey', strtolower($joint->caption() . ';' . $joint->info())); |
29 | - } |
|
30 | - else { |
|
29 | + } else { |
|
31 | 30 | if (! $this->locked) { |
32 | 31 | $this->addControl('close', 'applet-close')->setAttr('title', __('Close applet')); |
33 | 32 | } |
@@ -22,11 +22,11 @@ |
||
22 | 22 | } |
23 | 23 | |
24 | 24 | return [ |
25 | - __('DASHBOARD') => count($ret) > 1? [ |
|
25 | + __('DASHBOARD') => count($ret) > 1 ? [ |
|
26 | 26 | 'access' => true, |
27 | 27 | 'group' => $ret, |
28 | 28 | 'weight' => -10000 |
29 | - ]: array_merge(reset($ret), ['weight' => -10000]), |
|
29 | + ] : array_merge(reset($ret), ['weight' => -10000]), |
|
30 | 30 | ]; |
31 | 31 | } |
32 | 32 | } |
33 | 33 | \ No newline at end of file |