@@ -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 |
@@ -5,10 +5,10 @@ |
||
5 | 5 | |
6 | 6 | $junty = new JuntyRunner(); |
7 | 7 | |
8 | -$junty->task('css', function () { |
|
8 | +$junty->task('css', function() { |
|
9 | 9 | $this->src('./*.md', "/README.md/") |
10 | - ->forStreams(function ($streams) { |
|
11 | - print_r(array_map(function ($stream) { |
|
10 | + ->forStreams(function($streams) { |
|
11 | + print_r(array_map(function($stream) { |
|
12 | 12 | return $stream->getMetaData('uri'); |
13 | 13 | }, $streams)); |
14 | 14 | }); |
@@ -49,10 +49,10 @@ discard block |
||
49 | 49 | } |
50 | 50 | |
51 | 51 | if ($exclude !== null) { |
52 | - $cbFilter = function () {return true;}; |
|
52 | + $cbFilter = function() {return true; }; |
|
53 | 53 | |
54 | 54 | if (is_array($exclude) && count($exclude) > 0) { |
55 | - $cbFilter = function ($glob) use ($exclude) { |
|
55 | + $cbFilter = function($glob) use ($exclude) { |
|
56 | 56 | foreach ($exclude as $pattern) { |
57 | 57 | if (preg_match($pattern, $glob)) { |
58 | 58 | return false; |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | };echo 'a'; |
64 | 64 | } elseif (is_string($exclude)) { |
65 | 65 | echo 'a'; |
66 | - $cbFilter = function ($glob) use ($exclude) { |
|
66 | + $cbFilter = function($glob) use ($exclude) { |
|
67 | 67 | return !preg_match($exclude, $glob); |
68 | 68 | }; |
69 | 69 | } |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | return $this; |
94 | 94 | } |
95 | 95 | |
96 | - $streams = array_map(function ($file) { |
|
96 | + $streams = array_map(function($file) { |
|
97 | 97 | return new Stream(fopen($file, 'r+')); |
98 | 98 | }, $this->globs); |
99 | 99 | |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | return $this; |
122 | 122 | } |
123 | 123 | |
124 | - $streams = array_map(function ($file) { |
|
124 | + $streams = array_map(function($file) { |
|
125 | 125 | return new Stream(fopen($file, 'r+')); |
126 | 126 | }, $this->globs); |
127 | 127 | |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | $globs = array_merge($globs, $this->recoursiveGlob($dir.'/'.basename($pattern), $flags)); |
216 | 216 | } |
217 | 217 | |
218 | - $globs = array_filter($globs, function ($res) { |
|
218 | + $globs = array_filter($globs, function($res) { |
|
219 | 219 | return !is_dir($res); |
220 | 220 | }); |
221 | 221 |