Skip to content

Commit ec68e19

Browse files
Enable native_constant_invocation CS fixer
1 parent d453c43 commit ec68e19

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

DataCollector/ConfigDataCollector.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function collect(Request $request, Response $response, \Exception $except
6868
'wincache_enabled' => \extension_loaded('wincache') && ini_get('wincache.ocenabled'),
6969
'zend_opcache_enabled' => \extension_loaded('Zend OPcache') && ini_get('opcache.enable'),
7070
'bundles' => array(),
71-
'sapi_name' => PHP_SAPI,
71+
'sapi_name' => \PHP_SAPI,
7272
);
7373

7474
if (isset($this->kernel)) {

DataCollector/DumpDataCollector.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public function __destruct()
246246
--$i;
247247
}
248248

249-
if (!\in_array(PHP_SAPI, array('cli', 'phpdbg'), true) && stripos($h[$i], 'html')) {
249+
if (!\in_array(\PHP_SAPI, array('cli', 'phpdbg'), true) && stripos($h[$i], 'html')) {
250250
$this->dumper = new HtmlDumper('php://output', $this->charset);
251251
} else {
252252
$this->dumper = new CliDumper('php://output', $this->charset);

HttpCache/Store.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ private function save($key, $data)
412412

413413
public function getPath($key)
414414
{
415-
return $this->root.DIRECTORY_SEPARATOR.substr($key, 0, 2).DIRECTORY_SEPARATOR.substr($key, 2, 2).DIRECTORY_SEPARATOR.substr($key, 4, 2).DIRECTORY_SEPARATOR.substr($key, 6);
415+
return $this->root.\DIRECTORY_SEPARATOR.substr($key, 0, 2).\DIRECTORY_SEPARATOR.substr($key, 2, 2).\DIRECTORY_SEPARATOR.substr($key, 4, 2).\DIRECTORY_SEPARATOR.substr($key, 6);
416416
}
417417

418418
/**

Tests/KernelTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ public function doStuff()
313313

314314
// Heredocs are preserved, making the output mixing Unix and Windows line
315315
// endings, switching to "\n" everywhere on Windows to avoid failure.
316-
if ('\\' === DIRECTORY_SEPARATOR) {
316+
if ('\\' === \DIRECTORY_SEPARATOR) {
317317
$expected = str_replace("\r\n", "\n", $expected);
318318
$output = str_replace("\r\n", "\n", $output);
319319
}
@@ -367,7 +367,7 @@ public function testGetRootDir()
367367
{
368368
$kernel = new KernelForTest('test', true);
369369

370-
$this->assertEquals(__DIR__.DIRECTORY_SEPARATOR.'Fixtures', realpath($kernel->getRootDir()));
370+
$this->assertEquals(__DIR__.\DIRECTORY_SEPARATOR.'Fixtures', realpath($kernel->getRootDir()));
371371
}
372372

373373
public function testGetName()

0 commit comments

Comments
 (0)