@@ -54,9 +54,9 @@ discard block |
||
54 | 54 | { |
55 | 55 | // optimize autoloader with custom path |
56 | 56 | $this->taskComposerInstall() |
57 | - ->preferDist() |
|
58 | - ->optimizeAutoloader() |
|
59 | - ->run(); |
|
57 | + ->preferDist() |
|
58 | + ->optimizeAutoloader() |
|
59 | + ->run(); |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | /** |
@@ -68,9 +68,9 @@ discard block |
||
68 | 68 | { |
69 | 69 | // optimize autoloader with custom path |
70 | 70 | $this->taskComposerUpdate() |
71 | - ->preferDist() |
|
72 | - ->optimizeAutoloader() |
|
73 | - ->run(); |
|
71 | + ->preferDist() |
|
72 | + ->optimizeAutoloader() |
|
73 | + ->run(); |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | /** |
@@ -91,10 +91,10 @@ discard block |
||
91 | 91 | public function prepare() |
92 | 92 | { |
93 | 93 | $this->taskFileSystemStack() |
94 | - ->mkdir($this->getDistDir()) |
|
95 | - ->mkdir($this->getTargetDir()) |
|
96 | - ->mkdir($this->getReportsDir()) |
|
97 | - ->run(); |
|
94 | + ->mkdir($this->getDistDir()) |
|
95 | + ->mkdir($this->getTargetDir()) |
|
96 | + ->mkdir($this->getReportsDir()) |
|
97 | + ->run(); |
|
98 | 98 | } |
99 | 99 | |
100 | 100 | /** |
@@ -164,8 +164,8 @@ discard block |
||
164 | 164 | |
165 | 165 | // run PHPUnit |
166 | 166 | $this->taskPHPUnit(sprintf('%s/bin/phpunit', $this->getVendorDir())) |
167 | - ->configFile('phpunit.xml') |
|
168 | - ->run(); |
|
167 | + ->configFile('phpunit.xml') |
|
168 | + ->run(); |
|
169 | 169 | } |
170 | 170 | |
171 | 171 | /** |
@@ -90,36 +90,36 @@ |
||
90 | 90 | |
91 | 91 | // start watching the src directory |
92 | 92 | $this->taskWatch()->monitor($srcDir, function(FilesystemEvent $event) use ($srcDir, $targetDir) { |
93 | - // load the resource that changed |
|
94 | - $filename = $event->getResource(); |
|
93 | + // load the resource that changed |
|
94 | + $filename = $event->getResource(); |
|
95 | 95 | |
96 | - // prepare the target filename |
|
97 | - $targetFilename = $this->prepareTargetFilename($srcDir, $targetDir, $filename); |
|
96 | + // prepare the target filename |
|
97 | + $targetFilename = $this->prepareTargetFilename($srcDir, $targetDir, $filename); |
|
98 | 98 | |
99 | - // query whether or not it is a file |
|
100 | - if ($filename instanceof FileResource) { |
|
101 | - // query whether or not the file has to be copied or deleted |
|
102 | - switch ($event->getType()) { |
|
103 | - case $event->getType() === FilesystemEvent::DELETE: |
|
99 | + // query whether or not it is a file |
|
100 | + if ($filename instanceof FileResource) { |
|
101 | + // query whether or not the file has to be copied or deleted |
|
102 | + switch ($event->getType()) { |
|
103 | + case $event->getType() === FilesystemEvent::DELETE: |
|
104 | 104 | // remove the target file |
105 | 105 | $this->_remove($targetFilename); |
106 | - break; |
|
106 | + break; |
|
107 | 107 | |
108 | - case $event->getType() === FilesystemEvent::CREATE: |
|
108 | + case $event->getType() === FilesystemEvent::CREATE: |
|
109 | 109 | case $event->getType() === FilesystemEvent::MODIFY: |
110 | 110 | // if yes, copy it ot the target directory |
111 | 111 | $this->taskFilesystemStack() |
112 | - ->copy($filename, $targetFilename) |
|
113 | - ->run(); |
|
114 | - break; |
|
112 | + ->copy($filename, $targetFilename) |
|
113 | + ->run(); |
|
114 | + break; |
|
115 | 115 | |
116 | - default: |
|
116 | + default: |
|
117 | 117 | throw new \Exception( |
118 | - sprintf('Found invalid event type %s', $event->getTypeString()) |
|
119 | - ); |
|
120 | - } |
|
121 | - } |
|
122 | - })->run(); |
|
118 | + sprintf('Found invalid event type %s', $event->getTypeString()) |
|
119 | + ); |
|
120 | + } |
|
121 | + } |
|
122 | + })->run(); |
|
123 | 123 | } |
124 | 124 | |
125 | 125 | /** |