Skip to content

Commit 1b09afc

Browse files
committed
fix(tests): Fix PHP CS tests
1 parent b7ba783 commit 1b09afc

13 files changed

+15
-15
lines changed

src/Exception/CannotReadCurrentFolderException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ final class CannotReadCurrentFolderException extends Exception
2222
public function __construct(string $path)
2323
{
2424
$this->path = $path;
25-
parent::__construct(sprintf('Current folder cannot be opened `%s`', $path));
25+
parent::__construct(\sprintf('Current folder cannot be opened `%s`', $path));
2626
}
2727

2828
public function getPath(): string

src/Exception/CannotReadFolderException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ final class CannotReadFolderException extends Exception
2222
public function __construct(string $path)
2323
{
2424
$this->path = $path;
25-
parent::__construct(sprintf('Folder cannot be opened `%s`', $path));
25+
parent::__construct(\sprintf('Folder cannot be opened `%s`', $path));
2626
}
2727

2828
public function getPath(): string

src/Exception/FileNotCreatedException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function __construct(string $filename, string $errorMessage)
2525
{
2626
$this->filename = $filename;
2727
$this->errorMessage = $errorMessage;
28-
parent::__construct(sprintf('File `%s` couldn\'t be created. Error : %s', $filename, $errorMessage));
28+
parent::__construct(\sprintf('File `%s` couldn\'t be created. Error : %s', $filename, $errorMessage));
2929
}
3030

3131
public function getFilename(): string

src/Exception/FileNotDeletedException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ final class FileNotDeletedException extends Exception
2222
public function __construct(string $filename)
2323
{
2424
$this->filename = $filename;
25-
parent::__construct(sprintf('File `%s` couldn\'t be deleted', $filename));
25+
parent::__construct(\sprintf('File `%s` couldn\'t be deleted', $filename));
2626
}
2727

2828
public function getFilename(): string

src/Exception/FileNotFoundException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ final class FileNotFoundException extends Exception
2222
public function __construct(string $path)
2323
{
2424
$this->path = $path;
25-
parent::__construct(sprintf('File not found `%s`', $path));
25+
parent::__construct(\sprintf('File not found `%s`', $path));
2626
}
2727

2828
public function getPath(): string

src/Exception/FileTooBigException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function __construct(string $filename, int $size, int $maxAllowedSizeByte
3232
$this->maxAllowedSizeBytes = $maxAllowedSizeBytes;
3333
$this->maxAllowedSize = $maxAllowedSize;
3434
parent::__construct(
35-
sprintf(
35+
\sprintf(
3636
'File `%s` couldn\'t be created. File size %s is bigger than %s bytes. (%s)',
3737
$filename,
3838
$size,

src/Exception/FolderNotCreatedException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ final class FolderNotCreatedException extends Exception
2222
public function __construct(string $folder)
2323
{
2424
$this->folder = $folder;
25-
parent::__construct(sprintf('Folder `%s` couldn\'t be created', $folder));
25+
parent::__construct(\sprintf('Folder `%s` couldn\'t be created', $folder));
2626
}
2727

2828
public function getFolder(): string

src/Exception/FolderNotDeletedException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ final class FolderNotDeletedException extends Exception
2222
public function __construct(string $folder)
2323
{
2424
$this->folder = $folder;
25-
parent::__construct(sprintf('Folder `%s` couldn\'t be deleted', $folder));
25+
parent::__construct(\sprintf('Folder `%s` couldn\'t be deleted', $folder));
2626
}
2727

2828
public function getFolder(): string

src/Exception/FolderNotRenamedException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ final class FolderNotRenamedException extends Exception
2222
public function __construct(string $folder)
2323
{
2424
$this->folder = $folder;
25-
parent::__construct(sprintf('Folder `%s` couldn\'t be renamed', $folder));
25+
parent::__construct(\sprintf('Folder `%s` couldn\'t be renamed', $folder));
2626
}
2727

2828
public function getFolder(): string

src/Exception/InvalidMimeTypeException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function __construct(array $allowedMimeTypes, string $mimeType)
2626
$this->allowedMimeTypes = $allowedMimeTypes;
2727
$this->mimeType = $mimeType;
2828

29-
parent::__construct(sprintf(
29+
parent::__construct(\sprintf(
3030
'Invalid mime type. Excepted one of %s, `%s` given',
3131
implode(', ', $allowedMimeTypes),
3232
$mimeType

0 commit comments

Comments
 (0)