Skip to content

Commit

Permalink
Prefix constants with backslash (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm committed Aug 2, 2018
1 parent d6bfddb commit 0f68d71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Stream.php
Expand Up @@ -176,7 +176,7 @@ public function isSeekable(): bool
return $this->seekable;
}

public function seek($offset, $whence = SEEK_SET): void
public function seek($offset, $whence = \SEEK_SET): void
{
if (!$this->seekable) {
throw new \RuntimeException('Stream is not seekable');
Expand Down
6 changes: 3 additions & 3 deletions src/UploadedFile.php
Expand Up @@ -15,8 +15,8 @@ final class UploadedFile implements UploadedFileInterface
{
/** @var int[] */
private static $errors = [
UPLOAD_ERR_OK, UPLOAD_ERR_INI_SIZE, UPLOAD_ERR_FORM_SIZE, UPLOAD_ERR_PARTIAL, UPLOAD_ERR_NO_FILE,
UPLOAD_ERR_NO_TMP_DIR, UPLOAD_ERR_CANT_WRITE, UPLOAD_ERR_EXTENSION,
\UPLOAD_ERR_OK, \UPLOAD_ERR_INI_SIZE, \UPLOAD_ERR_FORM_SIZE, \UPLOAD_ERR_PARTIAL, \UPLOAD_ERR_NO_FILE,
\UPLOAD_ERR_NO_TMP_DIR, \UPLOAD_ERR_CANT_WRITE, \UPLOAD_ERR_EXTENSION,
];

/** @var string */
Expand Down Expand Up @@ -134,7 +134,7 @@ private function setClientMediaType($clientMediaType): void
*/
private function isOk(): bool
{
return UPLOAD_ERR_OK === $this->error;
return \UPLOAD_ERR_OK === $this->error;
}

/**
Expand Down

0 comments on commit 0f68d71

Please sign in to comment.