@@ -15,7 +15,7 @@ |
||
15 | 15 | // new InputOption('some-option', null, InputOption::VALUE_NONE, 'Some help'), |
16 | 16 | )) |
17 | 17 | ->setDescription('My command description') |
18 | - ->setCode(function (InputInterface $input, OutputInterface $output) use ($app) { |
|
18 | + ->setCode(function(InputInterface $input, OutputInterface $output) use ($app) { |
|
19 | 19 | // do something |
20 | 20 | }) |
21 | 21 | ; |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | |
13 | 13 | //Request::setTrustedProxies(array('127.0.0.1')); |
14 | 14 | |
15 | -$app->get('/', function (Request $request) use ($app) { |
|
15 | +$app->get('/', function(Request $request) use ($app) { |
|
16 | 16 | |
17 | 17 | if ($postId = $request->get('post_id', null)) { |
18 | 18 | return $app->redirect($app['url_generator']->generate('post', ['id' => $postId])); |
@@ -24,12 +24,12 @@ discard block |
||
24 | 24 | ; |
25 | 25 | |
26 | 26 | |
27 | -$app->get('/post/{id}', function (Request $request, $id) use ($app) { |
|
27 | +$app->get('/post/{id}', function(Request $request, $id) use ($app) { |
|
28 | 28 | |
29 | - $esa = $app['service.esa.proxy']; /** @var Proxy $esa */ |
|
30 | - $restrictor = $app['service.access_restrictor']; /** @var AccessRestrictor $restrictor */ |
|
31 | - $htmlHandler = $app['service.esa.html_handler']; /** @var HtmlHandler $htmlHandler */ |
|
32 | - $assetResolver = $app['service.asset_resolver']; /** @var AssetResolver $assetResolver */ |
|
29 | + $esa = $app['service.esa.proxy']; /** @var Proxy $esa */ |
|
30 | + $restrictor = $app['service.access_restrictor']; /** @var AccessRestrictor $restrictor */ |
|
31 | + $htmlHandler = $app['service.esa.html_handler']; /** @var HtmlHandler $htmlHandler */ |
|
32 | + $assetResolver = $app['service.asset_resolver']; /** @var AssetResolver $assetResolver */ |
|
33 | 33 | |
34 | 34 | $force = boolval($request->get('force', 0)); |
35 | 35 | |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | ; |
68 | 68 | |
69 | 69 | |
70 | -$app->error(function (\Exception $e, Request $request, $code) use ($app) { |
|
70 | +$app->error(function(\Exception $e, Request $request, $code) use ($app) { |
|
71 | 71 | |
72 | 72 | if ($app['debug']) { |
73 | 73 | return; |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | */ |
131 | 131 | public function getATagReducer($pattern) |
132 | 132 | { |
133 | - $reducer = function (Crawler $node) use ($pattern) { |
|
133 | + $reducer = function(Crawler $node) use ($pattern) { |
|
134 | 134 | preg_match($pattern, $node->attr('href'), $matches); |
135 | 135 | |
136 | 136 | return boolval($matches); |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | { |
153 | 153 | $that = $this; |
154 | 154 | |
155 | - $walker = function (Crawler $node) use ($pattern, $backReferenceNumberForPostId, $routeName, $routeVariableName, $that) { |
|
155 | + $walker = function(Crawler $node) use ($pattern, $backReferenceNumberForPostId, $routeName, $routeVariableName, $that) { |
|
156 | 156 | preg_match($pattern, $node->attr('href'), $matches); |
157 | 157 | $href = $matches[0]; |
158 | 158 | $postId = $matches[$backReferenceNumberForPostId]; |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | */ |
178 | 178 | public function getATagWalkerForMentionLinks($pattern) |
179 | 179 | { |
180 | - $walker = function (Crawler $node) use ($pattern) { |
|
180 | + $walker = function(Crawler $node) use ($pattern) { |
|
181 | 181 | preg_match($pattern, $node->attr('href'), $matches); |
182 | 182 | $href = $matches[0]; |
183 | 183 | |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | */ |
252 | 252 | public function getWalkerForToc() |
253 | 253 | { |
254 | - $walker = function (Crawler $node) { |
|
254 | + $walker = function(Crawler $node) { |
|
255 | 255 | return [ |
256 | 256 | 'id' => $node->attr('id'), |
257 | 257 | // 'text' => $node->filter('a')->text(), |
@@ -60,7 +60,7 @@ |
||
60 | 60 | { |
61 | 61 | foreach ($this->categoryBasedConfig as $matcher => $paths) { |
62 | 62 | if (preg_match(sprintf('#^%s#', $matcher), $category)) { |
63 | - return $paths; // deeper category should match early. |
|
63 | + return $paths; // deeper category should match early. |
|
64 | 64 | } |
65 | 65 | } |
66 | 66 |