Skip to content

Commit

Permalink
Merge pull request #7 from spatie/analysis-zYD4mo
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
AlexVanderbist authored Feb 1, 2017
2 parents f56c851 + 2c54956 commit ec37c60
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/TemporaryDirectory.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ class TemporaryDirectory
/** @return $this */
public function create()
{
if (empty($this->location))
{
if (empty($this->location)) {
$this->location = $this->getSystemTemporaryDirectory();
}

Expand Down Expand Up @@ -113,7 +112,7 @@ protected function getFullPath(): string

protected function isValidDirectoryName(string $directoryName): bool
{
return strpbrk($directoryName, "\\/?%*:|\"<>") === FALSE;
return strpbrk($directoryName, '\\/?%*:|"<>') === false;
}

protected function getSystemTemporaryDirectory(): string
Expand All @@ -130,8 +129,7 @@ protected function sanitizePath(string $path): string

protected function sanitizeName(string $name): string
{
if(! $this->isValidDirectoryName($name))
{
if (! $this->isValidDirectoryName($name)) {
throw new Exception("The directory name `$name` contains invalid characters.");
}

Expand Down

0 comments on commit ec37c60

Please sign in to comment.