@@ -22,6 +22,9 @@ |
||
22 | 22 | return new JuntyFileNotFound(); |
23 | 23 | } |
24 | 24 | |
25 | + /** |
|
26 | + * @param string $taskName |
|
27 | + */ |
|
25 | 28 | public static function taskNotRegistred($taskName) |
26 | 29 | { |
27 | 30 | return new TaskNotRegistred($taskName); |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Junty |
|
4 | - * |
|
5 | - * @author Gabriel Jacinto aka. GabrielJMJ <[email protected]> |
|
6 | - * @license MIT License |
|
7 | - */ |
|
3 | + * Junty |
|
4 | + * |
|
5 | + * @author Gabriel Jacinto aka. GabrielJMJ <[email protected]> |
|
6 | + * @license MIT License |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | namespace Junty\Stream; |
10 | 10 |
@@ -12,6 +12,6 @@ |
||
12 | 12 | { |
13 | 13 | public function __construct($task) |
14 | 14 | { |
15 | - parent::__construct((string) $task . ' is not a registred task.'); |
|
15 | + parent::__construct((string) $task.' is not a registred task.'); |
|
16 | 16 | } |
17 | 17 | } |
18 | 18 | \ No newline at end of file |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Junty |
|
4 | - * |
|
5 | - * @author Gabriel Jacinto aka. GabrielJMJ <[email protected]> |
|
6 | - * @license MIT License |
|
7 | - */ |
|
3 | + * Junty |
|
4 | + * |
|
5 | + * @author Gabriel Jacinto aka. GabrielJMJ <[email protected]> |
|
6 | + * @license MIT License |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | namespace Junty\Stream; |
10 | 10 |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Junty |
|
4 | - * |
|
5 | - * @author Gabriel Jacinto aka. GabrielJMJ <[email protected]> |
|
6 | - * @license MIT License |
|
7 | - */ |
|
3 | + * Junty |
|
4 | + * |
|
5 | + * @author Gabriel Jacinto aka. GabrielJMJ <[email protected]> |
|
6 | + * @license MIT License |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | namespace Junty\Stream; |
10 | 10 |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Junty |
|
4 | - * |
|
5 | - * @author Gabriel Jacinto aka. GabrielJMJ <[email protected]> |
|
6 | - * @license MIT License |
|
7 | - */ |
|
3 | + * Junty |
|
4 | + * |
|
5 | + * @author Gabriel Jacinto aka. GabrielJMJ <[email protected]> |
|
6 | + * @license MIT License |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | namespace Junty\Stream; |
10 | 10 |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Junty |
|
4 | - * |
|
5 | - * @author Gabriel Jacinto aka. GabrielJMJ <[email protected]> |
|
6 | - * @license MIT License |
|
7 | - */ |
|
3 | + * Junty |
|
4 | + * |
|
5 | + * @author Gabriel Jacinto aka. GabrielJMJ <[email protected]> |
|
6 | + * @license MIT License |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | namespace Junty\Stream; |
10 | 10 |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Junty |
|
4 | - * |
|
5 | - * @author Gabriel Jacinto aka. GabrielJMJ <[email protected]> |
|
6 | - * @license MIT License |
|
7 | - */ |
|
3 | + * Junty |
|
4 | + * |
|
5 | + * @author Gabriel Jacinto aka. GabrielJMJ <[email protected]> |
|
6 | + * @license MIT License |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | namespace Junty\Stream; |
10 | 10 |
@@ -196,20 +196,20 @@ discard block |
||
196 | 196 | |
197 | 197 | foreach ( |
198 | 198 | glob( |
199 | - dirname($pattern) . DIRECTORY_SEPARATOR . '*', |
|
200 | - GLOB_ONLYDIR | GLOB_NOSORT |
|
199 | + dirname($pattern).DIRECTORY_SEPARATOR.'*', |
|
200 | + GLOB_ONLYDIR|GLOB_NOSORT |
|
201 | 201 | ) |
202 | 202 | as $dir |
203 | 203 | ) { |
204 | 204 | $globs = array_merge( |
205 | 205 | $globs, |
206 | 206 | $this->recoursiveGlob( |
207 | - $dir . DIRECTORY_SEPARATOR . basename($pattern), $flags |
|
207 | + $dir.DIRECTORY_SEPARATOR.basename($pattern), $flags |
|
208 | 208 | ) |
209 | 209 | ); |
210 | 210 | } |
211 | 211 | |
212 | - $globs = array_filter($globs, function ($res) { |
|
212 | + $globs = array_filter($globs, function($res) { |
|
213 | 213 | return !is_dir($res); |
214 | 214 | }); |
215 | 215 | |
@@ -227,10 +227,10 @@ discard block |
||
227 | 227 | private function ignoreFiles(array $files, $patterns) |
228 | 228 | { |
229 | 229 | if (null !== $patterns) { |
230 | - $cbFilter = function () {return true;}; |
|
230 | + $cbFilter = function() {return true; }; |
|
231 | 231 | |
232 | 232 | if (is_array($patterns)) { |
233 | - $cbFilter = function ($glob) use ($patterns) { |
|
233 | + $cbFilter = function($glob) use ($patterns) { |
|
234 | 234 | foreach ($patterns as $pattern) { |
235 | 235 | if (preg_match($pattern, $glob)) { |
236 | 236 | return false; |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | return true; |
241 | 241 | }; |
242 | 242 | } elseif (is_string($patterns)) { |
243 | - $cbFilter = function ($glob) use ($patterns) { |
|
243 | + $cbFilter = function($glob) use ($patterns) { |
|
244 | 244 | return !preg_match($patterns, $glob); |
245 | 245 | }; |
246 | 246 | } |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Junty |
|
4 | - * |
|
5 | - * @author Gabriel Jacinto aka. GabrielJMJ <[email protected]> |
|
6 | - * @license MIT License |
|
7 | - */ |
|
3 | + * Junty |
|
4 | + * |
|
5 | + * @author Gabriel Jacinto aka. GabrielJMJ <[email protected]> |
|
6 | + * @license MIT License |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | namespace Junty\Stream; |
10 | 10 |