@@ -20,6 +20,6 @@ |
||
20 | 20 | /** |
21 | 21 | * @var \SplFileInfo $this |
22 | 22 | */ |
23 | - return (preg_match('/^[^\.]{1}.*'.CONTENT_EXT.'/', $this->getFilename()) > 0); |
|
23 | + return (preg_match('/^[^\.]{1}.*' . CONTENT_EXT . '/', $this->getFilename()) > 0); |
|
24 | 24 | } |
25 | 25 | } |
@@ -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; |
@@ -92,7 +92,7 @@ |
||
92 | 92 | public function findAll(array $options = array(), $folder = CONTENT_DIR) |
93 | 93 | { |
94 | 94 | return new PageCollection( |
95 | - function () use ($options, $folder) { |
|
95 | + function() use ($options, $folder) { |
|
96 | 96 | $options += $this->settings; |
97 | 97 | // ignore files with a leading '.' in its filename |
98 | 98 | $files = Utility::getFiles($folder, '\Phile\FilterIterator\ContentFileFilterIterator'); |
@@ -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 |