Skip to content

Commit b785bbd

Browse files
committed
Formatting changes
1 parent 827d2fb commit b785bbd

File tree

2 files changed

+19
-23
lines changed

2 files changed

+19
-23
lines changed

public/application/bootstrap/app.php

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,46 +12,44 @@
1212
* ## Set a theme by route:
1313
*
1414
* $app->make('\Concrete\Core\Page\Theme\ThemeRouteCollection')
15-
* ->setThemeByRoute('/login', 'greek_yogurt');
16-
*
15+
* ->setThemeByRoute('/login', 'greek_yogurt');
1716
*
1817
* ## Register a class override.
1918
*
2019
* $app->bind('helper/feed', function() {
21-
* return new \Application\Core\CustomFeedHelper();
20+
* return new \Application\Core\CustomFeedHelper();
2221
* });
2322
*
2423
* $app->bind('\Concrete\Attribute\Boolean\Controller', function($app, $params) {
25-
* return new \Application\Attribute\Boolean\Controller($params[0]);
24+
* return new \Application\Attribute\Boolean\Controller($params[0]);
2625
* });
2726
*
2827
* ## Register Events.
2928
*
3029
* Events::addListener('on_page_view', function($event) {
31-
* $page = $event->getPageObject();
30+
* $page = $event->getPageObject();
3231
* });
3332
*
3433
*
3534
* ## Register some custom MVC Routes
3635
*
3736
* Route::register('/test', function() {
38-
* print 'This is a contrived example.';
37+
* print 'This is a contrived example.';
3938
* });
4039
*
4140
* Route::register('/custom/view', '\My\Custom\Controller::view');
4241
* Route::register('/custom/add', '\My\Custom\Controller::add');
4342
*
4443
* ## Pass some route parameters
4544
*
46-
* Route::register('/test/{foo}/{bar}', function($foo, $bar) {
47-
* print 'Here is foo: ' . $foo . ' and bar: ' . $bar;
45+
* Route::register('/test/{foo}/{bar}', function ($foo, $bar) {
46+
* echo 'Here is foo: ' . $foo . ' and bar: ' . $bar;
4847
* });
4948
*
5049
*
5150
* ## Override an Asset
5251
*
53-
* use \Concrete\Core\Asset\AssetList;
54-
* AssetList::getInstance()
52+
* \Concrete\Core\Asset\AssetList::getInstance()
5553
* ->getAsset('javascript', 'jquery')
5654
* ->setAssetURL('/path/to/new/jquery.js');
5755
*
@@ -61,9 +59,9 @@
6159
* use \Concrete\Core\Asset\Asset;
6260
* $al = AssetList::getInstance();
6361
* $al->register(
64-
* 'javascript', 'jquery', 'path/to/new/jquery.js',
65-
* array('version' => '2.0', 'position' => Asset::ASSET_POSITION_HEADER, 'minify' => false, 'combine' => false)
66-
* );
62+
* 'javascript', 'jquery', 'path/to/new/jquery.js',
63+
* ['version' => '2.0', 'position' => Asset::ASSET_POSITION_HEADER, 'minify' => false, 'combine' => false]
64+
* );
6765
*
6866
* ----------------------------------------------------------------------------
6967
*/

public/application/bootstrap/start.php

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@
1414
* Detect the environment based on the hostname of the server
1515
* ----------------------------------------------------------------------------
1616
*/
17-
$app->detectEnvironment(
18-
array(
19-
'local' => array(
20-
'hostname',
21-
),
22-
'production' => array(
23-
'live.site',
24-
),
25-
)
26-
);
17+
$app->detectEnvironment([
18+
'local' => [
19+
'hostname',
20+
],
21+
'production' => [
22+
'live.site',
23+
],
24+
]);
2725

2826
return $app;

0 commit comments

Comments
 (0)