Skip to content

Commit 79860cd

Browse files
committed
fixed CS
1 parent 8877cdc commit 79860cd

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ protected function doRenderException(\Exception $e, OutputInterface $output)
779779

780780
if (false !== strpos($message, "class@anonymous\0")) {
781781
$message = preg_replace_callback('/class@anonymous\x00.*?\.php0x?[0-9a-fA-F]++/', function ($m) {
782-
return \class_exists($m[0], false) ? get_parent_class($m[0]).'@anonymous' : $m[0];
782+
return class_exists($m[0], false) ? get_parent_class($m[0]).'@anonymous' : $m[0];
783783
}, $message);
784784
}
785785

Helper/ProcessHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function run(OutputInterface $output, $cmd, $error = null, callable $call
5151

5252
if (!\is_array($cmd)) {
5353
@trigger_error(sprintf('Passing a command as a string to "%s()" is deprecated since Symfony 4.2, pass it the command as an array of arguments instead.', __METHOD__), E_USER_DEPRECATED);
54-
$cmd = [\method_exists(Process::class, 'fromShellCommandline') ? Process::fromShellCommandline($cmd) : new Process($cmd)];
54+
$cmd = [method_exists(Process::class, 'fromShellCommandline') ? Process::fromShellCommandline($cmd) : new Process($cmd)];
5555
}
5656

5757
if (\is_string($cmd[0] ?? null)) {

Output/ConsoleSectionOutput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function clear(int $lines = null)
5050
}
5151

5252
if ($lines) {
53-
\array_splice($this->content, -($lines * 2)); // Multiply lines by 2 to cater for each new line added between content
53+
array_splice($this->content, -($lines * 2)); // Multiply lines by 2 to cater for each new line added between content
5454
} else {
5555
$lines = $this->lines;
5656
$this->content = [];

Tests/Helper/ProcessHelperTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class ProcessHelperTest extends TestCase
2626
public function testVariousProcessRuns($expected, $cmd, $verbosity, $error)
2727
{
2828
if (\is_string($cmd)) {
29-
$cmd = \method_exists(Process::class, 'fromShellCommandline') ? Process::fromShellCommandline($cmd) : new Process($cmd);
29+
$cmd = method_exists(Process::class, 'fromShellCommandline') ? Process::fromShellCommandline($cmd) : new Process($cmd);
3030
}
3131

3232
$helper = new ProcessHelper();
@@ -99,7 +99,7 @@ public function provideCommandsAndOutput()
9999
$args = new Process(['php', '-r', 'echo 42;']);
100100
$args = $args->getCommandLine();
101101
$successOutputProcessDebug = str_replace("'php' '-r' 'echo 42;'", $args, $successOutputProcessDebug);
102-
$fromShellCommandline = \method_exists(Process::class, 'fromShellCommandline') ? [Process::class, 'fromShellCommandline'] : function ($cmd) { return new Process($cmd); };
102+
$fromShellCommandline = method_exists(Process::class, 'fromShellCommandline') ? [Process::class, 'fromShellCommandline'] : function ($cmd) { return new Process($cmd); };
103103

104104
return [
105105
['', 'php -r "echo 42;"', StreamOutput::VERBOSITY_VERBOSE, null],

0 commit comments

Comments
 (0)