Completed
Push — master ( c888b5...d89928 )
by Chris
03:44
created
src/FlysystemStreamWrapper.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -718,7 +718,7 @@  discard block
 block discarded – undo
718 718
      *
719 719
      * @param string $path The path to open.
720 720
      *
721
-     * @return resource|bool The file handle, or false.
721
+     * @return resource The file handle, or false.
722 722
      */
723 723
     protected function getWritableStream($path)
724 724
     {
@@ -739,7 +739,7 @@  discard block
 block discarded – undo
739 739
      *
740 740
      * @param string $path The path to open.
741 741
      *
742
-     * @return resource|bool The file handle, or false.
742
+     * @return boolean The file handle, or false.
743 743
      */
744 744
     protected function getAppendStream($path)
745 745
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -407,10 +407,10 @@  discard block
 block discarded – undo
407 407
     public function stream_lock($operation)
408 408
     {
409 409
         // Normalize paths so that locks are consistent.
410
-        $normalized = $this->getProtocol() . '://' . Util::normalizePath($this->getTarget());
410
+        $normalized = $this->getProtocol().'://'.Util::normalizePath($this->getTarget());
411 411
 
412 412
         // Relay the lock to a real filesystem lock.
413
-        $lockfile = sys_get_temp_dir() . '/flysystem-stream-wrapper-' . sha1($normalized) . '.lock';
413
+        $lockfile = sys_get_temp_dir().'/flysystem-stream-wrapper-'.sha1($normalized).'.lock';
414 414
         $handle = fopen($lockfile, 'w');
415 415
         $success = flock($handle, $operation);
416 416
         fclose($handle);
@@ -435,7 +435,7 @@  discard block
 block discarded – undo
435 435
             case STREAM_META_ACCESS:
436 436
                 $permissions = octdec(substr(decoct($value), -4));
437 437
                 $is_public = $permissions & $this->getConfiguration('public_mask');
438
-                $visibility =  $is_public ? AdapterInterface::VISIBILITY_PUBLIC : AdapterInterface::VISIBILITY_PRIVATE;
438
+                $visibility = $is_public ? AdapterInterface::VISIBILITY_PUBLIC : AdapterInterface::VISIBILITY_PRIVATE;
439 439
 
440 440
                 try {
441 441
                     return $this->getFilesystem()->setVisibility($this->getTarget(), $visibility);
Please login to merge, or discard this patch.
src/Flysystem/Plugin/Stat.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
         $keys = array_diff($this->required, array_keys($metadata), $ignore);
112 112
 
113 113
         foreach ($keys as $key) {
114
-            $method = 'get' . ucfirst($key);
114
+            $method = 'get'.ucfirst($key);
115 115
 
116 116
             try {
117 117
                 $metadata[$key] = $this->filesystem->$method($path);
Please login to merge, or discard this patch.