@@ -102,7 +102,7 @@ |
||
| 102 | 102 | spl_autoload_extensions(".php"); |
| 103 | 103 | // load phile core |
| 104 | 104 | spl_autoload_register( |
| 105 | - function ($className) { |
|
| 105 | + function($className) { |
|
| 106 | 106 | $fileName = LIB_DIR . str_replace("\\", DS, $className) . '.php'; |
| 107 | 107 | if (file_exists($fileName)) { |
| 108 | 108 | include_once $fileName; |
@@ -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 | |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | { |
| 95 | 95 | $folder = $folder ?: $this->settings['content_dir']; |
| 96 | 96 | return new PageCollection( |
| 97 | - function () use ($options, $folder) { |
|
| 97 | + function() use ($options, $folder) { |
|
| 98 | 98 | $options += $this->settings; |
| 99 | 99 | // ignore files with a leading '.' in its filename |
| 100 | 100 | $files = Utility::getFiles($folder, '\Phile\FilterIterator\ContentFileFilterIterator'); |
@@ -20,7 +20,7 @@ discard block |
||
| 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 |
@@ -117,13 +117,13 @@ discard block |
||
| 117 | 117 | */ |
| 118 | 118 | protected function slug($key) |
| 119 | 119 | { |
| 120 | - $replacer = function ($character) { |
|
| 120 | + $replacer = function($character) { |
|
| 121 | 121 | $key = array_search($character[0], self::SLUG); |
| 122 | 122 | $replacement = self::SLUG_PREFIX . $key; |
| 123 | 123 | return $replacement; |
| 124 | 124 | }; |
| 125 | 125 | $search = array_map( |
| 126 | - function ($value) { |
|
| 126 | + function($value) { |
|
| 127 | 127 | return preg_quote($value); |
| 128 | 128 | }, |
| 129 | 129 | self::SLUG |