Skip to content

Commit 76e635f

Browse files
CS fixes
1 parent 83cdafd commit 76e635f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Definition/ScalarNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ScalarNode extends VariableNode
3232
*/
3333
protected function validateType($value)
3434
{
35-
if (!is_scalar($value) && null !== $value) {
35+
if (!\is_scalar($value) && null !== $value) {
3636
$ex = new InvalidTypeException(sprintf('Invalid type for path "%s". Expected scalar, but got %s.', $this->getPath(), \gettype($value)));
3737
if ($hint = $this->getInfo()) {
3838
$ex->addHint($hint);

ResourceCheckerConfigCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public function write($content, array $metadata = null)
137137
}
138138
}
139139

140-
if (\function_exists('opcache_invalidate') && filter_var(ini_get('opcache.enable'), \FILTER_VALIDATE_BOOLEAN)) {
140+
if (\function_exists('opcache_invalidate') && filter_var(\ini_get('opcache.enable'), \FILTER_VALIDATE_BOOLEAN)) {
141141
@opcache_invalidate($this->file, true);
142142
}
143143
}

Tests/Loader/FileLoaderTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ public function testImportWithFileLocatorDelegation()
2626

2727
$locatorMockForAdditionalLoader = $this->createMock(FileLocatorInterface::class);
2828
$locatorMockForAdditionalLoader->expects($this->any())->method('locate')->will($this->onConsecutiveCalls(
29-
['path/to/file1'], // Default
30-
['path/to/file1', 'path/to/file2'], // First is imported
31-
['path/to/file1', 'path/to/file2'], // Second is imported
32-
['path/to/file1'], // Exception
33-
['path/to/file1', 'path/to/file2'] // Exception
34-
));
29+
['path/to/file1'], // Default
30+
['path/to/file1', 'path/to/file2'], // First is imported
31+
['path/to/file1', 'path/to/file2'], // Second is imported
32+
['path/to/file1'], // Exception
33+
['path/to/file1', 'path/to/file2'] // Exception
34+
));
3535

3636
$fileLoader = new TestFileLoader($locatorMock);
3737
$fileLoader->setSupports(false);

0 commit comments

Comments
 (0)