Skip to content

Commit 68549f1

Browse files
committed
3197: Fixed coding standards issue
1 parent 5fe4fdd commit 68549f1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
"bin/console doctrine:schema:validate",
131131
"@coding-standards-apply",
132132
"vendor/bin/rector",
133-
"vendor/bin/psalm",
133+
"vendor/bin/psalm --no-cache",
134134
"@test-setup",
135135
"@test"
136136
],

src/Command/LoadTemplateCommand.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ final protected function execute(InputInterface $input, OutputInterface $output)
4444
$successMessage = 'Template updated';
4545

4646
try {
47+
/** @var string $filename */
4748
$filename = $input->getArgument('filename');
49+
4850
$content = json_decode(file_get_contents($filename), false, 512, JSON_THROW_ON_ERROR);
4951

5052
// Validate template json.
@@ -95,8 +97,8 @@ final protected function execute(InputInterface $input, OutputInterface $output)
9597

9698
if ($input->getOption('path-from-filename')) {
9799
// Set paths to component and admin from filename.
98-
$resources['component'] = preg_replace("/-config.*\.json$/", '.js', (string) $filename);
99-
$resources['admin'] = preg_replace("/-config.*\.json$/", '-admin.json', (string) $filename);
100+
$resources['component'] = preg_replace("/-config.*\.json$/", '.js', $filename);
101+
$resources['admin'] = preg_replace("/-config.*\.json$/", '-admin.json', $filename);
100102

101103
if ($input->getOption('timestamp')) {
102104
$resources['component'] = $resources['component'].'?ts='.time();

0 commit comments

Comments
 (0)