Fix indentation, use 4 spaces

This commit is contained in:
Flavio Copes 2016-05-16 11:51:58 +02:00
parent a4bc30d725
commit cfe1734d50
15 changed files with 43 additions and 43 deletions

View File

@ -7,8 +7,8 @@ class AssetsProcessor extends ProcessorBase implements ProcessorInterface {
public $title = 'Assets';
public function process() {
$this->container['assets']->init();
$this->container->fireEvent('onAssetsInitialized');
$this->container['assets']->init();
$this->container->fireEvent('onAssetsInitialized');
}
}

View File

@ -7,8 +7,8 @@ class ConfigurationProcessor extends ProcessorBase implements ProcessorInterface
public $title = 'Configuration';
public function process() {
$this->container['config']->init();
return $this->container['plugins']->setup();
$this->container['config']->init();
return $this->container['plugins']->setup();
}
}

View File

@ -7,7 +7,7 @@ class DebuggerAssetsProcessor extends ProcessorBase implements ProcessorInterfac
public $title = 'Debugger Assets';
public function process() {
$this->container['debugger']->addAssets();
$this->container['debugger']->addAssets();
}
}

View File

@ -7,7 +7,7 @@ class DebuggerInitProcessor extends ProcessorBase implements ProcessorInterface
public $title = 'Init Debugger';
public function process() {
$this->container['debugger']->init();
$this->container['debugger']->init();
}
}

View File

@ -7,7 +7,7 @@ class ErrorsProcessor extends ProcessorBase implements ProcessorInterface {
public $title = 'Error Handlers Reset';
public function process() {
$this->container['errors']->resetHandlers();
$this->container['errors']->resetHandlers();
}
}

View File

@ -7,27 +7,27 @@ class InitializeProcessor extends ProcessorBase implements ProcessorInterface {
public $title = 'Initialize';
public function process() {
$this->container['config']->debug();
$this->container['config']->debug();
// Use output buffering to prevent headers from being sent too early.
ob_start();
if ($this->container['config']->get('system.cache.gzip')) {
// Enable zip/deflate with a fallback in case of if browser does not support compressing.
if (!ob_start("ob_gzhandler")) {
ob_start();
}
}
// Use output buffering to prevent headers from being sent too early.
ob_start();
if ($this->container['config']->get('system.cache.gzip')) {
// Enable zip/deflate with a fallback in case of if browser does not support compressing.
if (!ob_start("ob_gzhandler")) {
ob_start();
}
}
// Initialize the timezone.
if ($this->container['config']->get('system.timezone')) {
date_default_timezone_set($this->container['config']->get('system.timezone'));
}
// Initialize the timezone.
if ($this->container['config']->get('system.timezone')) {
date_default_timezone_set($this->container['config']->get('system.timezone'));
}
// Initialize uri, session.
$this->container['uri']->init();
$this->container['session']->init();
// Initialize uri, session.
$this->container['uri']->init();
$this->container['session']->init();
$this->container->setLocale();
$this->container->setLocale();
}
}

View File

@ -7,9 +7,9 @@ class PagesProcessor extends ProcessorBase implements ProcessorInterface {
public $title = 'Pages';
public function process() {
$this->container['pages']->init();
$this->container->fireEvent('onPagesInitialized');
$this->container->fireEvent('onPageInitialized');
$this->container['pages']->init();
$this->container->fireEvent('onPagesInitialized');
$this->container->fireEvent('onPageInitialized');
}
}

View File

@ -7,8 +7,8 @@ class PluginsProcessor extends ProcessorBase implements ProcessorInterface {
public $title = 'Plugins';
public function process() {
$this->container['plugins']->init();
$this->container->fireEvent('onPluginsInitialized');
$this->container['plugins']->init();
$this->container->fireEvent('onPluginsInitialized');
}
}

View File

@ -3,8 +3,8 @@ namespace Grav\Common\Processors;
class ProcessorBase {
public function __construct($container) {
$this->container = $container;
}
public function __construct($container) {
$this->container = $container;
}
}

View File

@ -2,5 +2,5 @@
namespace Grav\Common\Processors;
interface ProcessorInterface {
public function process();
public function process();
}

View File

@ -7,8 +7,8 @@ class RenderProcessor extends ProcessorBase implements ProcessorInterface {
public $title = 'Render';
public function process() {
$this->container->output = $this->container['output'];
$this->container->fireEvent('onOutputGenerated');
$this->container->output = $this->container['output'];
$this->container->fireEvent('onOutputGenerated');
}
}

View File

@ -7,8 +7,8 @@ class SiteSetupProcessor extends ProcessorBase implements ProcessorInterface {
public $title = 'Site Setup';
public function process() {
$this->container['setup']->init();
$this->container['streams'];
$this->container['setup']->init();
$this->container['streams'];
}
}

View File

@ -7,10 +7,10 @@ class TasksProcessor extends ProcessorBase implements ProcessorInterface {
public $title = 'Tasks';
public function process() {
$task = $this->container['task'];
if ($task) {
$this->container->fireEvent('onTask.' . $task);
}
$task = $this->container['task'];
if ($task) {
$this->container->fireEvent('onTask.' . $task);
}
}
}

View File

@ -7,7 +7,7 @@ class ThemesProcessor extends ProcessorBase implements ProcessorInterface {
public $title = 'Themes';
public function process() {
$this->container['themes']->init();
$this->container['themes']->init();
}
}

View File

@ -7,7 +7,7 @@ class TwigProcessor extends ProcessorBase implements ProcessorInterface {
public $title = 'Twig';
public function process() {
$this->container['twig']->init();
$this->container['twig']->init();
}
}