Skip to content

Commit 27634d6

Browse files
committed
phpcs tweaks
1 parent 20c3704 commit 27634d6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.php_cs.dist

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,7 @@ EOF
2525
->setFinder(
2626
PhpCsFixer\Finder::create()
2727
->in(__DIR__.'/src')
28+
// the PHP template files are a bit special
29+
->notName('*.tpl.php')
2830
)
29-
;
31+
;

src/Generator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function generate(array $parameters, array $files)
4747

4848
foreach ($files as $fileTemplatePath => $targetPath) {
4949
$templateParameters = array_merge($parameters, [
50-
'relative_path' => $this->fileManager->relativizePath($targetPath)
50+
'relative_path' => $this->fileManager->relativizePath($targetPath),
5151
]);
5252

5353
$fileContents = $this->fileManager->parseTemplate($fileTemplatePath, $templateParameters);

0 commit comments

Comments
 (0)