From 2c549566b03519fa6b9063e61d1da79b16a3a2f6 Mon Sep 17 00:00:00 2001 From: Freek Van der Herten Date: Wed, 1 Feb 2017 09:42:26 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/TemporaryDirectory.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/TemporaryDirectory.php b/src/TemporaryDirectory.php index 50a80d3..337291b 100644 --- a/src/TemporaryDirectory.php +++ b/src/TemporaryDirectory.php @@ -19,8 +19,7 @@ class TemporaryDirectory /** @return $this */ public function create() { - if (empty($this->location)) - { + if (empty($this->location)) { $this->location = $this->getSystemTemporaryDirectory(); } @@ -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 @@ -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."); }