@@ -76,7 +76,7 @@ |
||
| 76 | 76 | public function offsetSet($offset, $value) |
| 77 | 77 | { |
| 78 | 78 | $this->load(); |
| 79 | - $this->pages[$offset] = $value; |
|
| 79 | + $this->pages[$offset] = $value; |
|
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | public function offsetUnset($offset) |
@@ -21,8 +21,8 @@ |
||
| 21 | 21 | */ |
| 22 | 22 | class Plugin extends AbstractPlugin |
| 23 | 23 | { |
| 24 | - const HANDLER_ERROR_LOG = 'error_log'; |
|
| 25 | - const HANDLER_DEVELOPMENT = 'development'; |
|
| 24 | + const HANDLER_ERROR_LOG = 'error_log'; |
|
| 25 | + const HANDLER_DEVELOPMENT = 'development'; |
|
| 26 | 26 | |
| 27 | 27 | protected $events = ['plugins_loaded' => 'onPluginsLoaded']; |
| 28 | 28 | |
@@ -15,7 +15,6 @@ |
||
| 15 | 15 | use Phile\Core\Router; |
| 16 | 16 | use Phile\Model\Page; |
| 17 | 17 | use Phile\Repository\Page as Repository; |
| 18 | - |
|
| 19 | 18 | use Interop\Http\Server\MiddlewareInterface; |
| 20 | 19 | use Interop\Http\Server\RequestHandlerInterface; |
| 21 | 20 | use Psr\Http\Message\ResponseInterface; |
@@ -126,7 +126,7 @@ |
||
| 126 | 126 | ->withHeader('Content-Type', 'text/html; charset=' . $charset); |
| 127 | 127 | |
| 128 | 128 | if ($page->getPageId() == $this->config->get('not_found_page')) { |
| 129 | - $response = $response->withStatus(404) ; |
|
| 129 | + $response = $response->withStatus(404); |
|
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | return $response; |
@@ -10,8 +10,6 @@ |
||
| 10 | 10 | * @license http://opensource.org/licenses/MIT |
| 11 | 11 | */ |
| 12 | 12 | |
| 13 | -use Psr\Http\Message\ServerRequestInterface; |
|
| 14 | - |
|
| 15 | 13 | $config = [ |
| 16 | 14 | 'types' => [ |
| 17 | 15 | 'Phile_App' => Phile\Phile::class, |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | /** |
| 43 | 43 | * Setup global application-object |
| 44 | 44 | */ |
| 45 | -require 'container.php' ; |
|
| 45 | +require 'container.php'; |
|
| 46 | 46 | $app = Phile\Core\Container::getInstance()->get('Phile_App'); |
| 47 | 47 | |
| 48 | 48 | /** |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | /** @var string slug */ |
| 21 | 21 | const SLUG_PREFIX = '-phile.phpFastCache.slug-'; |
| 22 | 22 | |
| 23 | - const SLUG = ['{', '}' , '(', ')', '/' , '\\' , '@', ':']; |
|
| 23 | + const SLUG = ['{', '}', '(', ')', '/', '\\', '@', ':']; |
|
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * @var \BasePhpFastCache the cache engine |