Skip to content

Commit b0f37e0

Browse files
CS fixes
1 parent ce6e158 commit b0f37e0

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

Command/AboutCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8484
['Architecture', (\PHP_INT_SIZE * 8).' bits'],
8585
['Intl locale', class_exists(\Locale::class, false) && \Locale::getDefault() ? \Locale::getDefault() : 'n/a'],
8686
['Timezone', date_default_timezone_get().' (<comment>'.(new \DateTime())->format(\DateTime::W3C).'</>)'],
87-
['OPcache', \extension_loaded('Zend OPcache') && filter_var(ini_get('opcache.enable'), \FILTER_VALIDATE_BOOLEAN) ? 'true' : 'false'],
88-
['APCu', \extension_loaded('apcu') && filter_var(ini_get('apc.enabled'), \FILTER_VALIDATE_BOOLEAN) ? 'true' : 'false'],
87+
['OPcache', \extension_loaded('Zend OPcache') && filter_var(\ini_get('opcache.enable'), \FILTER_VALIDATE_BOOLEAN) ? 'true' : 'false'],
88+
['APCu', \extension_loaded('apcu') && filter_var(\ini_get('apc.enabled'), \FILTER_VALIDATE_BOOLEAN) ? 'true' : 'false'],
8989
['Xdebug', \extension_loaded('xdebug') ? 'true' : 'false'],
9090
];
9191

Command/XliffLintCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ protected function configure()
5757
<info>php %command.full_name% @AcmeDemoBundle</info>
5858

5959
EOF
60-
);
60+
);
6161
}
6262
}

DependencyInjection/FrameworkExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public function load(array $configs, ContainerBuilder $container)
227227
// mark any env vars found in the ide setting as used
228228
$container->resolveEnvPlaceholders($ide);
229229

230-
$container->setParameter('templating.helper.code.file_link_format', str_replace('%', '%%', ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format')) ?: ($links[$ide] ?? $ide));
230+
$container->setParameter('templating.helper.code.file_link_format', str_replace('%', '%%', \ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format')) ?: ($links[$ide] ?? $ide));
231231
}
232232
$container->setParameter('debug.file_link_format', '%templating.helper.code.file_link_format%');
233233
}
@@ -719,7 +719,7 @@ private function registerWorkflowConfiguration(array $config, ContainerBuilder $
719719
$markingStoreDefinition = new ChildDefinition('workflow.marking_store.'.$workflow['marking_store']['type']);
720720
if ('method' === $workflow['marking_store']['type']) {
721721
$markingStoreDefinition->setArguments([
722-
'state_machine' === $type, //single state
722+
'state_machine' === $type, // single state
723723
$workflow['marking_store']['property'] ?? 'marking',
724724
]);
725725
} else {

Routing/Router.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,14 +178,14 @@ private function resolve($value)
178178

179179
$resolved = ($this->paramFetcher)($match[1]);
180180

181-
if (is_scalar($resolved)) {
181+
if (\is_scalar($resolved)) {
182182
$this->collectedParameters[$match[1]] = $resolved;
183183

184184
if (\is_string($resolved)) {
185185
$resolved = $this->resolve($resolved);
186186
}
187187

188-
if (is_scalar($resolved)) {
188+
if (\is_scalar($resolved)) {
189189
return false === $resolved ? '0' : (string) $resolved;
190190
}
191191
}

Templating/Helper/CodeHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class CodeHelper extends Helper
3636
*/
3737
public function __construct($fileLinkFormat, string $projectDir, string $charset)
3838
{
39-
$this->fileLinkFormat = $fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format');
39+
$this->fileLinkFormat = $fileLinkFormat ?: \ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format');
4040
$this->rootDir = str_replace('\\', '/', $projectDir).'/';
4141
$this->charset = $charset;
4242
}

Tests/DependencyInjection/FrameworkExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ public function testAnnotations()
10091009

10101010
public function testFileLinkFormat()
10111011
{
1012-
if (ini_get('xdebug.file_link_format') || get_cfg_var('xdebug.file_link_format')) {
1012+
if (\ini_get('xdebug.file_link_format') || get_cfg_var('xdebug.file_link_format')) {
10131013
$this->markTestSkipped('A custom file_link_format is defined.');
10141014
}
10151015

0 commit comments

Comments
 (0)