Skip to content

Commit 2d6a4de

Browse files
Enable native_constant_invocation CS fixer
1 parent bc44f88 commit 2d6a4de

File tree

4 files changed

+134
-134
lines changed

4 files changed

+134
-134
lines changed

Filesystem.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public function remove($files)
170170
foreach ($files as $file) {
171171
if (is_link($file)) {
172172
// See https://bugs.php.net/52176
173-
if (!(self::box('unlink', $file) || '\\' !== DIRECTORY_SEPARATOR || self::box('rmdir', $file)) && file_exists($file)) {
173+
if (!(self::box('unlink', $file) || '\\' !== \DIRECTORY_SEPARATOR || self::box('rmdir', $file)) && file_exists($file)) {
174174
throw new IOException(sprintf('Failed to remove symlink "%s": %s.', $file, self::$lastError));
175175
}
176176
} elseif (is_dir($file)) {
@@ -321,7 +321,7 @@ private function isReadable($filename)
321321
*/
322322
public function symlink($originDir, $targetDir, $copyOnWindows = false)
323323
{
324-
if ('\\' === DIRECTORY_SEPARATOR) {
324+
if ('\\' === \DIRECTORY_SEPARATOR) {
325325
$originDir = strtr($originDir, '/', '\\');
326326
$targetDir = strtr($targetDir, '/', '\\');
327327

@@ -343,7 +343,7 @@ public function symlink($originDir, $targetDir, $copyOnWindows = false)
343343

344344
if (!self::box('symlink', $originDir, $targetDir)) {
345345
if (null !== self::$lastError) {
346-
if ('\\' === DIRECTORY_SEPARATOR && false !== strpos(self::$lastError, 'error code(1314)')) {
346+
if ('\\' === \DIRECTORY_SEPARATOR && false !== strpos(self::$lastError, 'error code(1314)')) {
347347
throw new IOException('Unable to create symlink due to error code 1314: \'A required privilege is not held by the client\'. Do you have the required Administrator-rights?', 0, null, $targetDir);
348348
}
349349
}
@@ -362,7 +362,7 @@ public function symlink($originDir, $targetDir, $copyOnWindows = false)
362362
public function makePathRelative($endPath, $startPath)
363363
{
364364
// Normalize separators on Windows
365-
if ('\\' === DIRECTORY_SEPARATOR) {
365+
if ('\\' === \DIRECTORY_SEPARATOR) {
366366
$endPath = str_replace('\\', '/', $endPath);
367367
$startPath = str_replace('\\', '/', $startPath);
368368
}

0 commit comments

Comments
 (0)