@@ -48,7 +48,7 @@ public function copy($originFile, $targetFile, $overwriteNewerFiles = false)
48
48
$ this ->mkdir (\dirname ($ targetFile ));
49
49
50
50
$ doCopy = true ;
51
- if (!$ overwriteNewerFiles && null === parse_url ($ originFile , PHP_URL_HOST ) && is_file ($ targetFile )) {
51
+ if (!$ overwriteNewerFiles && null === parse_url ($ originFile , \ PHP_URL_HOST ) && is_file ($ targetFile )) {
52
52
$ doCopy = filemtime ($ originFile ) > filemtime ($ targetFile );
53
53
}
54
54
@@ -119,7 +119,7 @@ public function mkdir($dirs, $mode = 0777)
119
119
*/
120
120
public function exists ($ files )
121
121
{
122
- $ maxPathLength = PHP_MAXPATHLEN - 2 ;
122
+ $ maxPathLength = \ PHP_MAXPATHLEN - 2 ;
123
123
124
124
foreach ($ this ->toIterable ($ files ) as $ file ) {
125
125
if (\strlen ($ file ) > $ maxPathLength ) {
@@ -298,7 +298,7 @@ public function rename($origin, $target, $overwrite = false)
298
298
*/
299
299
private function isReadable (string $ filename ): bool
300
300
{
301
- $ maxPathLength = PHP_MAXPATHLEN - 2 ;
301
+ $ maxPathLength = \ PHP_MAXPATHLEN - 2 ;
302
302
303
303
if (\strlen ($ filename ) > $ maxPathLength ) {
304
304
throw new IOException (sprintf ('Could not check if file is readable because path length exceeds %d characters. ' , $ maxPathLength ), 0 , null , $ filename );
@@ -594,15 +594,15 @@ public function mirror($originDir, $targetDir, \Traversable $iterator = null, $o
594
594
public function isAbsolutePath ($ file )
595
595
{
596
596
if (null === $ file ) {
597
- @trigger_error (sprintf ('Calling "%s()" with a null in the $file argument is deprecated since Symfony 4.4. ' , __METHOD__ ), E_USER_DEPRECATED );
597
+ @trigger_error (sprintf ('Calling "%s()" with a null in the $file argument is deprecated since Symfony 4.4. ' , __METHOD__ ), \ E_USER_DEPRECATED );
598
598
}
599
599
600
600
return strspn ($ file , '/ \\' , 0 , 1 )
601
601
|| (\strlen ($ file ) > 3 && ctype_alpha ($ file [0 ])
602
602
&& ': ' === $ file [1 ]
603
603
&& strspn ($ file , '/ \\' , 2 , 1 )
604
604
)
605
- || null !== parse_url ($ file , PHP_URL_SCHEME )
605
+ || null !== parse_url ($ file , \ PHP_URL_SCHEME )
606
606
;
607
607
}
608
608
@@ -669,7 +669,7 @@ public function tempnam($dir, $prefix)
669
669
public function dumpFile ($ filename , $ content )
670
670
{
671
671
if (\is_array ($ content )) {
672
- @trigger_error (sprintf ('Calling "%s()" with an array in the $content argument is deprecated since Symfony 4.3. ' , __METHOD__ ), E_USER_DEPRECATED );
672
+ @trigger_error (sprintf ('Calling "%s()" with an array in the $content argument is deprecated since Symfony 4.3. ' , __METHOD__ ), \ E_USER_DEPRECATED );
673
673
}
674
674
675
675
$ dir = \dirname ($ filename );
@@ -706,7 +706,7 @@ public function dumpFile($filename, $content)
706
706
public function appendToFile ($ filename , $ content )
707
707
{
708
708
if (\is_array ($ content )) {
709
- @trigger_error (sprintf ('Calling "%s()" with an array in the $content argument is deprecated since Symfony 4.3. ' , __METHOD__ ), E_USER_DEPRECATED );
709
+ @trigger_error (sprintf ('Calling "%s()" with an array in the $content argument is deprecated since Symfony 4.3. ' , __METHOD__ ), \ E_USER_DEPRECATED );
710
710
}
711
711
712
712
$ dir = \dirname ($ filename );
@@ -719,7 +719,7 @@ public function appendToFile($filename, $content)
719
719
throw new IOException (sprintf ('Unable to write to the "%s" directory. ' , $ dir ), 0 , null , $ dir );
720
720
}
721
721
722
- if (false === @file_put_contents ($ filename , $ content , FILE_APPEND )) {
722
+ if (false === @file_put_contents ($ filename , $ content , \ FILE_APPEND )) {
723
723
throw new IOException (sprintf ('Failed to write file "%s". ' , $ filename ), 0 , null , $ filename );
724
724
}
725
725
}
0 commit comments