@@ -12,7 +12,7 @@ |
||
| 12 | 12 | * @date 18.06.15 |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | -declare(strict_types = 1); |
|
| 15 | +declare(strict_types=1); |
|
| 16 | 16 | |
| 17 | 17 | namespace IPub\Widgets\Decorators\Raw; |
| 18 | 18 | |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | * @date 18.06.15 |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | -declare(strict_types = 1); |
|
| 15 | +declare(strict_types=1); |
|
| 16 | 16 | |
| 17 | 17 | namespace IPub\Widgets\Decorators\Raw; |
| 18 | 18 | |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | * @date 18.06.15 |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | -declare(strict_types = 1); |
|
| 15 | +declare(strict_types=1); |
|
| 16 | 16 | |
| 17 | 17 | namespace IPub\Widgets\Decorators; |
| 18 | 18 | |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | * @date 18.06.15 |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | -declare(strict_types = 1); |
|
| 15 | +declare(strict_types=1); |
|
| 16 | 16 | |
| 17 | 17 | namespace IPub\Widgets\Decorators; |
| 18 | 18 | |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | $dir = dirname($this->getReflection()->getFileName()); |
| 58 | 58 | |
| 59 | 59 | // ...try to get base component template file |
| 60 | - $templateFile = $this->templateFile !== NULL && is_file($this->templateFile) ? $this->templateFile : $dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . 'default.latte'; |
|
| 60 | + $templateFile = $this->templateFile !== NULL && is_file($this->templateFile) ? $this->templateFile : $dir.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.'default.latte'; |
|
| 61 | 61 | $this->template->setFile($templateFile); |
| 62 | 62 | } |
| 63 | 63 | |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | * @date 16.09.14 |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | -declare(strict_types = 1); |
|
| 15 | +declare(strict_types=1); |
|
| 16 | 16 | |
| 17 | 17 | namespace IPub\Widgets\Decorators; |
| 18 | 18 | |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | * @date 10.10.14 |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | -declare(strict_types = 1); |
|
| 15 | +declare(strict_types=1); |
|
| 16 | 16 | |
| 17 | 17 | namespace IPub\Widgets\Latte; |
| 18 | 18 | |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | |
| 92 | 92 | return "/* line $node->startLine */ " |
| 93 | 93 | . ($name[0] === '$' ? "if (is_object($name)) \$_tmp = $name; else " : '') |
| 94 | - . '$_tmp = $this->global->uiControl->getComponent('. $prefix . $name . '); ' |
|
| 94 | + . '$_tmp = $this->global->uiControl->getComponent('.$prefix.$name.'); ' |
|
| 95 | 95 | . 'if ($_tmp instanceof Nette\Application\UI\IRenderable) $_tmp->redrawControl(NULL, FALSE); ' |
| 96 | 96 | . ($node->modifiers === '' |
| 97 | 97 | ? "\$_tmp->$method($param);" |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | * @date 17.09.14 |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | -declare(strict_types = 1); |
|
| 15 | +declare(strict_types=1); |
|
| 16 | 16 | |
| 17 | 17 | namespace IPub\Widgets\Widgets; |
| 18 | 18 | |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | * @date 15.09.14 |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | -declare(strict_types = 1); |
|
| 15 | +declare(strict_types=1); |
|
| 16 | 16 | |
| 17 | 17 | namespace IPub\Widgets\Widgets; |
| 18 | 18 | |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | * @date 15.09.14 |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | -declare(strict_types = 1); |
|
| 15 | +declare(strict_types=1); |
|
| 16 | 16 | |
| 17 | 17 | namespace IPub\Widgets\Widgets; |
| 18 | 18 | |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | ->render(); |
| 123 | 123 | |
| 124 | 124 | // Modify widget name |
| 125 | - $name = $title . mb_substr($name, $pos); |
|
| 125 | + $name = $title.mb_substr($name, $pos); |
|
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | // If widget name has subtitle... |
@@ -139,19 +139,19 @@ discard block |
||
| 139 | 139 | ->render(); |
| 140 | 140 | |
| 141 | 141 | // Split name to title & subtitle |
| 142 | - $name = $title . $subtitle; |
|
| 142 | + $name = $title.$subtitle; |
|
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | // Set badge if exists |
| 146 | 146 | if ($badge = $this->data->getBadge()) { |
| 147 | 147 | $badge = Utils\Html::el('i') |
| 148 | - ->addAttributes(['class' => 'badge badge-' . $badge]); |
|
| 148 | + ->addAttributes(['class' => 'badge badge-'.$badge]); |
|
| 149 | 149 | } |
| 150 | 150 | |
| 151 | 151 | // Set icon if exists |
| 152 | 152 | if ($icon = $this->data->getIcon()) { |
| 153 | 153 | $icon = Utils\Html::el('i') |
| 154 | - ->addAttributes(['class' => 'ipub-icon ipub-icon-' . $icon]); |
|
| 154 | + ->addAttributes(['class' => 'ipub-icon ipub-icon-'.$icon]); |
|
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | // Assign basic widget data to template |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | $dir = dirname($this->getReflection()->getFileName()); |
| 181 | 181 | |
| 182 | 182 | // ...try to get base component template file |
| 183 | - $templateFile = $this->templateFile !== NULL && is_file($this->templateFile) ? $this->templateFile : $dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . 'default.latte'; |
|
| 183 | + $templateFile = $this->templateFile !== NULL && is_file($this->templateFile) ? $this->templateFile : $dir.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.'default.latte'; |
|
| 184 | 184 | $this->template->setFile($templateFile); |
| 185 | 185 | } |
| 186 | 186 | } |