diff --git a/public/application/bootstrap/app.php b/public/application/bootstrap/app.php index 87b1af0..1297103 100755 --- a/public/application/bootstrap/app.php +++ b/public/application/bootstrap/app.php @@ -12,30 +12,29 @@ * ## Set a theme by route: * * $app->make('\Concrete\Core\Page\Theme\ThemeRouteCollection') - * ->setThemeByRoute('/login', 'greek_yogurt'); - * + * ->setThemeByRoute('/login', 'greek_yogurt'); * * ## Register a class override. * * $app->bind('helper/feed', function() { - * return new \Application\Core\CustomFeedHelper(); + * return new \Application\Core\CustomFeedHelper(); * }); * * $app->bind('\Concrete\Attribute\Boolean\Controller', function($app, $params) { - * return new \Application\Attribute\Boolean\Controller($params[0]); + * return new \Application\Attribute\Boolean\Controller($params[0]); * }); * * ## Register Events. * * Events::addListener('on_page_view', function($event) { - * $page = $event->getPageObject(); + * $page = $event->getPageObject(); * }); * * * ## Register some custom MVC Routes * * Route::register('/test', function() { - * print 'This is a contrived example.'; + * print 'This is a contrived example.'; * }); * * Route::register('/custom/view', '\My\Custom\Controller::view'); @@ -43,15 +42,14 @@ * * ## Pass some route parameters * - * Route::register('/test/{foo}/{bar}', function($foo, $bar) { - * print 'Here is foo: ' . $foo . ' and bar: ' . $bar; + * Route::register('/test/{foo}/{bar}', function ($foo, $bar) { + * echo 'Here is foo: ' . $foo . ' and bar: ' . $bar; * }); * * * ## Override an Asset * - * use \Concrete\Core\Asset\AssetList; - * AssetList::getInstance() + * \Concrete\Core\Asset\AssetList::getInstance() * ->getAsset('javascript', 'jquery') * ->setAssetURL('/path/to/new/jquery.js'); * @@ -61,9 +59,9 @@ * use \Concrete\Core\Asset\Asset; * $al = AssetList::getInstance(); * $al->register( - * 'javascript', 'jquery', 'path/to/new/jquery.js', - * array('version' => '2.0', 'position' => Asset::ASSET_POSITION_HEADER, 'minify' => false, 'combine' => false) - * ); + * 'javascript', 'jquery', 'path/to/new/jquery.js', + * ['version' => '2.0', 'position' => Asset::ASSET_POSITION_HEADER, 'minify' => false, 'combine' => false] + * ); * * ---------------------------------------------------------------------------- */ diff --git a/public/application/bootstrap/start.php b/public/application/bootstrap/start.php index 9131d9f..69788b3 100755 --- a/public/application/bootstrap/start.php +++ b/public/application/bootstrap/start.php @@ -14,15 +14,13 @@ * Detect the environment based on the hostname of the server * ---------------------------------------------------------------------------- */ -$app->detectEnvironment( - array( - 'local' => array( - 'hostname', - ), - 'production' => array( - 'live.site', - ), - ) -); +$app->detectEnvironment([ + 'local' => [ + 'hostname', + ], + 'production' => [ + 'live.site', + ], +]); return $app;