diff options
Diffstat (limited to 'includes/stream_wrappers.inc')
-rw-r--r-- | includes/stream_wrappers.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/stream_wrappers.inc b/includes/stream_wrappers.inc index 87acc5440..a870904a3 100644 --- a/includes/stream_wrappers.inc +++ b/includes/stream_wrappers.inc @@ -336,11 +336,11 @@ abstract class DrupalLocalStreamWrapper implements DrupalStreamWrapperInterface $path = $this->getLocalPath(); $this->handle = ($options & STREAM_REPORT_ERRORS) ? fopen($path, $mode) : @fopen($path, $mode); - if ((bool)$this->handle && $options & STREAM_USE_PATH) { + if ((bool) $this->handle && $options & STREAM_USE_PATH) { $opened_url = $path; } - return (bool)$this->handle; + return (bool) $this->handle; } /** @@ -506,7 +506,7 @@ abstract class DrupalLocalStreamWrapper implements DrupalStreamWrapperInterface */ public function mkdir($uri, $mode, $options) { $this->uri = $uri; - $recursive = (bool)($options & STREAM_MKDIR_RECURSIVE); + $recursive = (bool) ($options & STREAM_MKDIR_RECURSIVE); if ($recursive) { // $this->getLocalPath() fails if $uri has multiple levels of directories // that do not yet exist. @@ -581,7 +581,7 @@ abstract class DrupalLocalStreamWrapper implements DrupalStreamWrapperInterface $this->uri = $uri; $this->handle = opendir($this->getLocalPath()); - return (bool)$this->handle; + return (bool) $this->handle; } /** |