@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $this->handleExtensionRequest(); |
50 | 50 | } else { |
51 | 51 | $uriPath = urldecode( |
52 | - parse_url($_SERVER[ 'REQUEST_URI' ], PHP_URL_PATH) |
|
52 | + parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) |
|
53 | 53 | ); |
54 | 54 | |
55 | 55 | $uriPathParts = explode('public/', $uriPath); |
@@ -304,8 +304,8 @@ discard block |
||
304 | 304 | public function handleAppRequest(FrameworkModuleDataStructure $app) |
305 | 305 | { |
306 | 306 | // Find App module |
307 | - foreach([null,'modules', 'plugins'] as $additionalSegment) { |
|
308 | - if(empty($additionalSegment)) { |
|
307 | + foreach ([null, 'modules', 'plugins'] as $additionalSegment) { |
|
308 | + if (empty($additionalSegment)) { |
|
309 | 309 | $segments = [ |
310 | 310 | $app->getParameter(), |
311 | 311 | $this->uri->segments->first(), |
@@ -344,11 +344,11 @@ discard block |
||
344 | 344 | $uriRoutedSegments = array_diff($uriSegments, |
345 | 345 | array_slice($uriSegments, ($numOfUriSegments - $i))); |
346 | 346 | |
347 | - if(count($uriRoutedSegments)) { |
|
348 | - if($module instanceof FrameworkModuleDataStructure) { |
|
347 | + if (count($uriRoutedSegments)) { |
|
348 | + if ($module instanceof FrameworkModuleDataStructure) { |
|
349 | 349 | $moduleSegments = $module->getSegments(); |
350 | 350 | |
351 | - if(count($moduleSegments)) { |
|
351 | + if (count($moduleSegments)) { |
|
352 | 352 | $uriRoutedSegments = array_merge($moduleSegments, $uriRoutedSegments); |
353 | 353 | } |
354 | 354 | } |
@@ -440,7 +440,7 @@ discard block |
||
440 | 440 | if (class_exists($controllerClassName)) { |
441 | 441 | $this->addresses->any( |
442 | 442 | '/', |
443 | - function () use ($controllerClassName) { |
|
443 | + function() use ($controllerClassName) { |
|
444 | 444 | return new $controllerClassName(); |
445 | 445 | } |
446 | 446 | ); |
@@ -455,7 +455,7 @@ discard block |
||
455 | 455 | if (class_exists($controllerClassName)) { |
456 | 456 | $this->addresses->any( |
457 | 457 | '/', |
458 | - function () use ($controllerClassName) { |
|
458 | + function() use ($controllerClassName) { |
|
459 | 459 | return new $controllerClassName(); |
460 | 460 | } |
461 | 461 | ); |
@@ -507,12 +507,12 @@ discard block |
||
507 | 507 | ); |
508 | 508 | } elseif (preg_match("/([a-zA-Z0-9\\\]+)(@)([a-zA-Z0-9\\\]+)/", $closure, $matches)) { |
509 | 509 | $this->setController( |
510 | - (new KernelControllerDataStructure($matches[ 1 ])) |
|
511 | - ->setRequestMethod($matches[ 3 ]), |
|
510 | + (new KernelControllerDataStructure($matches[1])) |
|
511 | + ->setRequestMethod($matches[3]), |
|
512 | 512 | $uriSegments |
513 | 513 | ); |
514 | 514 | } elseif ($theme = presenter()->theme) { |
515 | - if($theme->use === true) { |
|
515 | + if ($theme->use === true) { |
|
516 | 516 | if ( ! presenter()->partials->offsetExists('content') && $closure !== '') { |
517 | 517 | presenter()->partials->offsetSet('content', $closure); |
518 | 518 | } |