Skip to content

Commit 8873ce2

Browse files
committed
Merge branch '2.15' into 2.16
2 parents 1d97e2b + e52e854 commit 8873ce2

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

php-cs-fixer

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ if (class_exists('Phar')) {
5757
// Maybe this file is used as phar-stub? Let's try!
5858
try {
5959
Phar::mapPhar('php-cs-fixer.phar');
60+
6061
require_once 'phar://php-cs-fixer.phar/vendor/autoload.php';
6162
$require = false;
6263
} catch (PharException $e) {

src/Console/Command/FixCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
170170
$configFile = $resolver->getConfigFile();
171171
$stdErr->writeln(sprintf('Loaded config <comment>%s</comment>%s.', $resolver->getConfig()->getName(), null === $configFile ? '' : ' from "'.$configFile.'"'));
172172
if (OutputInterface::VERBOSITY_VERBOSE <= $output->getVerbosity()) {
173-
$stdErr->writeln(sprintf('Runtime: <info>PHP %s</info>', \PHP_VERSION));
173+
$stdErr->writeln(sprintf('Runtime: <info>PHP %s</info>', PHP_VERSION));
174174
}
175175

176176
if ($resolver->getUsingCache()) {

src/Fixer/PhpUnit/PhpUnitExpectationFixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ protected function applyPhpUnitClassFix(Tokens $tokens, $startIndex, $endIndex)
230230
];
231231

232232
if ($isMultilineWhitespace) {
233-
array_push($tokensOverrideArgStart, new Token([T_WHITESPACE, $indent.$this->whitespacesConfig->getIndent()]));
233+
$tokensOverrideArgStart[] = new Token([T_WHITESPACE, $indent.$this->whitespacesConfig->getIndent()]);
234234
array_unshift($tokensOverrideArgBefore, new Token([T_WHITESPACE, $indent]));
235235
}
236236

src/Fixer/PhpUnit/PhpUnitTestAnnotationFixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ private function addTestPrefix($functionName)
264264
return 'test_'.$functionName;
265265
}
266266

267-
return'test'.ucfirst($functionName);
267+
return 'test'.ucfirst($functionName);
268268
}
269269

270270
/**

src/Fixer/StringNotation/ExplicitStringVariableFixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ protected function applyFix(\SplFileInfo $file, Tokens $tokens)
123123

124124
++$nextIndex;
125125
}
126-
krsort($variableTokens, \SORT_NUMERIC);
126+
krsort($variableTokens, SORT_NUMERIC);
127127

128128
foreach ($variableTokens as $distinctVariableSet) {
129129
if (1 === \count($distinctVariableSet['tokens'])) {

tests/Smoke/CiIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public function testIntegration(
152152
preg_quote($optionalIncompatibilityWarning, '/'),
153153
preg_quote($optionalXdebugWarning, '/'),
154154
preg_quote('Loaded config default from ".php_cs.dist".', '/'),
155-
preg_quote(sprintf("Runtime: PHP %s\n", \PHP_VERSION), '/'),
155+
preg_quote(sprintf("Runtime: PHP %s\n", PHP_VERSION), '/'),
156156
\strlen($expectedResult3Files),
157157
preg_quote('Legend: ?-unknown, I-invalid file syntax (file ignored), S-skipped (cached or empty file), .-no changes, F-fixed, E-error', '/')
158158
);

0 commit comments

Comments
 (0)