@@ -177,7 +177,7 @@ public function getRelativeFileName(): string {
177177 }
178178
179179 public function exists (): bool {
180- return file_exists ($this -> fileName );
180+ return \ file_exists ($this -> fileName );
181181 }
182182
183183 /**
@@ -235,7 +235,7 @@ private function getFileTypeDeclaration(): string {
235235 * setShebangLine('#!/usr/bin/env hhvm')
236236 */
237237 public function setShebangLine (string $shebang ): this {
238- invariant (! strpbrk ($shebang , " \n " ), " Expected single line" );
238+ invariant (! \ strpbrk ($shebang , " \n " ), " Expected single line" );
239239 invariant (Str \starts_with ($shebang , ' #!' ), ' Shebang lines start with #!' );
240240 $this -> shebang = $shebang ;
241241 return $this ;
@@ -245,7 +245,7 @@ public function setShebangLinef(
245245 SprintfFormatString $format ,
246246 mixed ...$args
247247 ): this {
248- return $this -> setShebangLine(vsprintf ($format , $args ));
248+ return $this -> setShebangLine(\ vsprintf ($format , $args ));
249249 }
250250
251251 /**
@@ -263,7 +263,7 @@ public function setPseudoMainHeaderf(
263263 SprintfFormatString $format ,
264264 mixed ...$args
265265 ): this {
266- return $this -> setPseudoMainHeader(vsprintf ($format , $args ));
266+ return $this -> setPseudoMainHeader(\ vsprintf ($format , $args ));
267267 }
268268
269269 /**
@@ -281,7 +281,7 @@ public function setPseudoMainFooterf(
281281 SprintfFormatString $format ,
282282 mixed ...$args
283283 ): this {
284- return $this -> setPseudoMainFooter(vsprintf ($format , $args ));
284+ return $this -> setPseudoMainFooter(\ vsprintf ($format , $args ));
285285 }
286286
287287 private function assertNotHackStrictForExecutable (): void {
@@ -378,7 +378,7 @@ private function getContent(): string {
378378 $this -> fileNamespace ,
379379 );
380380
381- $get_use_statement = ($type , $ns , $as ) ==> sprintf (
381+ $get_use_statement = ($type , $ns , $as ) ==> \ sprintf (
382382 ' use %s %s%s;' ,
383383 $type ,
384384 $ns ,
@@ -452,7 +452,7 @@ private function loadExistingFiles(): ?string {
452452 $file_names [] = $this -> fileName ;
453453 $all_content = array ();
454454 foreach ($file_names as $file_name ) {
455- if (file_exists ($file_name )) {
455+ if (\ file_exists ($file_name )) {
456456 $content = Filesystem :: readFile($file_name );
457457 if ($content ) {
458458 $root_dir = $this -> config -> getRootDir();
@@ -472,7 +472,7 @@ private function loadExistingFiles(): ?string {
472472 $all_content [] = $content ;
473473 }
474474 }
475- return implode (' ' , $all_content );
475+ return \ implode (' ' , $all_content );
476476 }
477477
478478 public function setGeneratedFrom (CodegenGeneratedFrom $from ): this {
@@ -544,10 +544,10 @@ public function createOnly(): this {
544544 */
545545 public function save (): CodegenFileResult {
546546 Filesystem :: createDirectory(
547- substr ($this -> fileName , 0 , strrpos ($this -> fileName , ' /' )),
547+ \ substr ($this -> fileName , 0 , \ strrpos ($this -> fileName , ' /' )),
548548 0777 ,
549549 );
550- $is_creating = ! file_exists ($this -> fileName );
550+ $is_creating = ! \ file_exists ($this -> fileName );
551551 if (! $is_creating && $this -> createOnly ) {
552552 return CodegenFileResult :: NONE ;
553553 }
@@ -573,7 +573,7 @@ final class CodegenFileBadSignatureException
573573 extends CodegenFileSignatureException {
574574
575575 public function __construct (string $file_name ) {
576- $message = sprintf (
576+ $message = \ sprintf (
577577 ' The signature of the existing generated file \' %s\' is invalid' ,
578578 $file_name ,
579579 );
@@ -585,7 +585,7 @@ final class CodegenFileNoSignatureException
585585 extends CodegenFileSignatureException {
586586
587587 public function __construct (string $file_name ) {
588- $message = sprintf (
588+ $message = \ sprintf (
589589 ' The existing generated file \' %s\' does not have a signature' ,
590590 $file_name ,
591591 );
0 commit comments