Skip to content

Commit e072bf6

Browse files
committed
Fix PHPCS violations in legacy front-end controls
1 parent 881aedc commit e072bf6

File tree

5 files changed

+4
-6
lines changed

5 files changed

+4
-6
lines changed

app/model/UI/BaseRenderControl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ protected function createTemplate(): Template
2323
final protected function getTemplateFile(?string $template = null): string
2424
{
2525
if (!$template) {
26-
$template = static::DEFAULT_TEMPLATE;
26+
$template = self::DEFAULT_TEMPLATE;
2727
}
2828
$file = (string)$this->getReflection()->getFileName();
29-
return dirname($file) . "/templates/$template.latte";
29+
return sprintf('%s/templates/%s.latte', dirname($file), $template);
3030
}
3131

3232
}

app/modules/Front/Base/BasePresenter.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use App\Model\Services\Search\Search;
66
use App\Model\UI\AbstractPresenter;
77
use App\Model\UI\Destination;
8-
use App\Model\Webpack\Entries;
98
use App\Modules\Front\Base\Controls\FlashMessages\FlashMessagesComponent;
109
use App\Modules\Front\Base\Controls\Layout\Footer\FooterComponent;
1110
use App\Modules\Front\Base\Controls\Layout\Header\HeaderComponent;

app/modules/Front/Base/Controls/Layout/Footer/SubscribeForm/Control.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function render(): void
2020
->template
2121
->setParameters(
2222
[
23-
'heading' =>'Subscribe to our newsletter',
23+
'heading' => 'Subscribe to our newsletter',
2424
]
2525
)->render();
2626
}

app/modules/Front/Base/Controls/Layout/Header/Control.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function render(): void
1616
$this->template->setParameters(
1717
[
1818
'home' => $this->presenter->link(':Front:Home:'),
19-
'menu' => $this->links()
19+
'menu' => $this->links(),
2020
]
2121
)->render();
2222
}

app/modules/Front/Base/Controls/Layout/Heading/Control.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
class Control extends BaseRenderControl
88
{
99

10-
1110
public function render(string $content, string $type = 'h2'): void
1211
{
1312
$this->template->setParameters(['content' => $content, 'type' => $type])->render();

0 commit comments

Comments
 (0)