Completed
Pull Request — master (#1)
by Kamil
02:34
created
src/Filesystem/Driver/DriverStandard.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -34,13 +34,13 @@  discard block
 block discarded – undo
34 34
     public function stat($path)
35 35
     {
36 36
         return $this->invoker
37
-            ->call('stat', [ $this->getPath($path) ])
37
+            ->call('stat', [$this->getPath($path)])
38 38
             ->then(function($stat) {
39 39
                 return $stat ? array_filter($stat, function($statKey) {
40 40
                     return !is_numeric($statKey);
41 41
                 }, ARRAY_FILTER_USE_KEY) : $stat;
42 42
             })
43
-            ->then([ $this, 'handleStat' ]);
43
+            ->then([$this, 'handleStat']);
44 44
     }
45 45
 
46 46
     /**
@@ -50,8 +50,8 @@  discard block
 block discarded – undo
50 50
     public function chmod($path, $mode)
51 51
     {
52 52
         return $this->invoker
53
-            ->call('chmod', [ $this->getPath($path), decoct($mode) ])
54
-            ->then([ $this, 'handleChmod' ]);
53
+            ->call('chmod', [$this->getPath($path), decoct($mode)])
54
+            ->then([$this, 'handleChmod']);
55 55
     }
56 56
 
57 57
     /**
@@ -61,8 +61,8 @@  discard block
 block discarded – undo
61 61
     public function chown($path, $uid = -1, $gid = -1)
62 62
     {
63 63
         return $this->invoker
64
-            ->call('chown', [ $this->getPath($path), $uid, $gid ])
65
-            ->then([ $this, 'handleChown' ]);
64
+            ->call('chown', [$this->getPath($path), $uid, $gid])
65
+            ->then([$this, 'handleChown']);
66 66
     }
67 67
 
68 68
     /**
Please login to merge, or discard this patch.
src/Filesystem/Driver/DriverEio.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -47,8 +47,8 @@  discard block
 block discarded – undo
47 47
     public function stat($path)
48 48
     {
49 49
         return $this->invoker
50
-            ->call('eio_lstat', [ $this->getPath($path) ])
51
-            ->then([ $this, 'handleStat' ]);
50
+            ->call('eio_lstat', [$this->getPath($path)])
51
+            ->then([$this, 'handleStat']);
52 52
     }
53 53
 
54 54
     /**
@@ -58,8 +58,8 @@  discard block
 block discarded – undo
58 58
     public function chmod($path, $mode)
59 59
     {
60 60
         return $this->invoker
61
-            ->call('eio_chmod', [ $this->getPath($path), decoct($mode) ])
62
-            ->then([ $this, 'handleChmod' ]);
61
+            ->call('eio_chmod', [$this->getPath($path), decoct($mode)])
62
+            ->then([$this, 'handleChmod']);
63 63
     }
64 64
 
65 65
     /**
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
     public function chown($path, $uid = -1, $gid = -1)
70 70
     {
71 71
         return $this->invoker
72
-            ->call('eio_chown', [ $this->getPath($path), $uid, $gid ])
73
-            ->then([ $this, 'handleChown' ]);
72
+            ->call('eio_chown', [$this->getPath($path), $uid, $gid])
73
+            ->then([$this, 'handleChown']);
74 74
     }
75 75
 
76 76
     /**
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
         }
145 145
 
146 146
         $this->active = true;
147
-        $this->loop->addReadStream($this->stream, [ $this, 'handleEvent' ]);
147
+        $this->loop->addReadStream($this->stream, [$this, 'handleEvent']);
148 148
     }
149 149
 
150 150
     protected function unregister()
Please login to merge, or discard this patch.