@@ -52,7 +52,7 @@ |
||
52 | 52 | } |
53 | 53 | |
54 | 54 | foreach ($data as $type => $extensions) { |
55 | - $data[$type] = array_filter($extensions, function ($var) { |
|
55 | + $data[$type] = array_filter($extensions, function($var) { |
|
56 | 56 | return strlen($var) > 0; |
57 | 57 | }); |
58 | 58 | } |
@@ -90,7 +90,7 @@ |
||
90 | 90 | ); |
91 | 91 | |
92 | 92 | if ($watch) { |
93 | - $httpServer->addPeriodicTimer(1, function () use ($sculpin, $dataSource, $sourceSet, $consoleIo) { |
|
93 | + $httpServer->addPeriodicTimer(1, function() use ($sculpin, $dataSource, $sourceSet, $consoleIo) { |
|
94 | 94 | clearstatcache(); |
95 | 95 | $sourceSet->reset(); |
96 | 96 |
@@ -30,9 +30,9 @@ |
||
30 | 30 | * @var array |
31 | 31 | */ |
32 | 32 | protected static $addPlaceholderRe = array( |
33 | - '/^({%\s+block\s+(\w+).+?%})$/m', // {% %} style code |
|
34 | - '/^({%\s+endblock\s+%})$/m', // {% %} style code |
|
35 | - '/^({{.+?}})$/m', // {{ }} style code |
|
33 | + '/^({%\s+block\s+(\w+).+?%})$/m', // {% %} style code |
|
34 | + '/^({%\s+endblock\s+%})$/m', // {% %} style code |
|
35 | + '/^({{.+?}})$/m', // {{ }} style code |
|
36 | 36 | ); |
37 | 37 | |
38 | 38 | /** |
@@ -62,7 +62,7 @@ |
||
62 | 62 | */ |
63 | 63 | public function dataSourceId() |
64 | 64 | { |
65 | - return 'CompositeDataSource('.implode(',', array_map(function ($dataSource) { |
|
65 | + return 'CompositeDataSource('.implode(',', array_map(function($dataSource) { |
|
66 | 66 | return $dataSource->dataSourceId(); |
67 | 67 | }, $this->dataSources)); |
68 | 68 | } |
@@ -87,7 +87,7 @@ |
||
87 | 87 | */ |
88 | 88 | public function updatedSources() |
89 | 89 | { |
90 | - return array_filter($this->sources, function (SourceInterface $source) { |
|
90 | + return array_filter($this->sources, function(SourceInterface $source) { |
|
91 | 91 | return $source->hasChanged(); |
92 | 92 | }); |
93 | 93 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | if (null === $antPathMatcher) { |
29 | 29 | $antPathMatcher = new AntPathMatcher; |
30 | 30 | } |
31 | - $this->patterns = array_map(function ($path) use ($antPathMatcher) { |
|
31 | + $this->patterns = array_map(function($path) use ($antPathMatcher) { |
|
32 | 32 | return $antPathMatcher->isPattern($path) ? $path : $path.'/**'; |
33 | 33 | }, $paths); |
34 | 34 | $this->antPathMatcher = $antPathMatcher; |
@@ -97,7 +97,7 @@ |
||
97 | 97 | $messages = (array) $messages; |
98 | 98 | $messages[0] = sprintf( |
99 | 99 | '[%.1fMB/%.2fs] %s', |
100 | - memory_get_usage() / 1024 / 1024, |
|
100 | + memory_get_usage()/1024/1024, |
|
101 | 101 | microtime(true) - $this->startTime, |
102 | 102 | $messages[0] |
103 | 103 | ); |
@@ -47,7 +47,7 @@ |
||
47 | 47 | $event['method'] = 'on'.preg_replace_callback(array( |
48 | 48 | '/(?<=\b)[a-z]/i', |
49 | 49 | '/[^a-z0-9]/i', |
50 | - ), function ($matches) { |
|
50 | + ), function($matches) { |
|
51 | 51 | return strtoupper($matches[0]); |
52 | 52 | }, $event['event']); |
53 | 53 | $event['method'] = preg_replace('/[^a-z0-9]/i', '', $event['method']); |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | // Default case is we want the user to specify just one |
46 | 46 | // path but we can allow for multiple if they want to. |
47 | 47 | ->ifString() |
48 | - ->then(function ($v) { |
|
48 | + ->then(function($v) { |
|
49 | 49 | return array($v); |
50 | 50 | }) |
51 | 51 | ->end() |
@@ -61,14 +61,14 @@ discard block |
||
61 | 61 | // Default case is we want the user to specify just one |
62 | 62 | // taxonomy but we can allow for multiple if they want to. |
63 | 63 | ->ifString() |
64 | - ->then(function ($v) { |
|
64 | + ->then(function($v) { |
|
65 | 65 | return array(array('name' => $v)); |
66 | 66 | }) |
67 | 67 | ->end() |
68 | 68 | ->prototype('array') |
69 | 69 | ->beforeNormalization() |
70 | 70 | ->ifString() |
71 | - ->then(function ($v) { |
|
71 | + ->then(function($v) { |
|
72 | 72 | return array('name' => $v); |
73 | 73 | }) |
74 | 74 | ->end() |