@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | 7 | // Get environment & autoloader. |
| 8 | -require __DIR__.'/../config.php'; |
|
| 8 | +require __DIR__ . '/../config.php'; |
|
| 9 | 9 | |
| 10 | 10 | |
| 11 | 11 | // Create services and inject into the app. |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | |
| 16 | 16 | |
| 17 | 17 | // Create the home route |
| 18 | -$app->router->add('*', function () use ($app) { |
|
| 18 | +$app->router->add('*', function() use ($app) { |
|
| 19 | 19 | |
| 20 | 20 | $app->theme->setTitle("Testing navigation bar"); |
| 21 | 21 | $app->views->add('default/page', [ |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | // Create the navbar as a view |
| 27 | 27 | $app->theme->addStylesheet('css/navbar.css'); |
| 28 | 28 | $app->views->addCallback( |
| 29 | - function () use ($app) { |
|
| 29 | + function() use ($app) { |
|
| 30 | 30 | return $app->navbar->create(); |
| 31 | 31 | }, |
| 32 | 32 | [], |
@@ -4,12 +4,12 @@ |
||
| 4 | 4 | * |
| 5 | 5 | */ |
| 6 | 6 | // Get environment & autoloader. |
| 7 | -require __DIR__.'/config_with_app.php'; |
|
| 7 | +require __DIR__ . '/config_with_app.php'; |
|
| 8 | 8 | |
| 9 | 9 | |
| 10 | 10 | |
| 11 | 11 | // Home route |
| 12 | -$app->router->add('', function () use ($app) { |
|
| 12 | +$app->router->add('', function() use ($app) { |
|
| 13 | 13 | throw new \Anax\Exception\NotFoundException(); |
| 14 | 14 | }); |
| 15 | 15 | |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | * |
| 11 | 11 | */ |
| 12 | 12 | define('ANAX_INSTALL_PATH', realpath(__DIR__ . '/../') . '/'); |
| 13 | -define('ANAX_APP_PATH', ANAX_INSTALL_PATH . 'app/'); |
|
| 13 | +define('ANAX_APP_PATH', ANAX_INSTALL_PATH . 'app/'); |
|
| 14 | 14 | |
| 15 | 15 | |
| 16 | 16 | |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | 7 | // Get environment & autoloader and the $app-object. |
| 8 | -require __DIR__.'/config_with_app.php'; |
|
| 8 | +require __DIR__ . '/config_with_app.php'; |
|
| 9 | 9 | |
| 10 | 10 | // Set the title of the page |
| 11 | 11 | $app->theme->setVariable('title', "Hello World Pagecontroller"); |
@@ -11,13 +11,13 @@ |
||
| 11 | 11 | |
| 12 | 12 | // Add extra assets to make the plugin work. |
| 13 | 13 | $app->theme->addStylesheet('css/slideshow.css') |
| 14 | - ->addJavaScript('js/slideshow.js'); |
|
| 14 | + ->addJavaScript('js/slideshow.js'); |
|
| 15 | 15 | |
| 16 | 16 | |
| 17 | 17 | |
| 18 | 18 | // Prepare the page content |
| 19 | 19 | $app->theme->setVariable('title', "Slideshow to show off how JavaScript works in Anax") |
| 20 | - ->setVariable('main', " |
|
| 20 | + ->setVariable('main', " |
|
| 21 | 21 | <h1>A slideshow with JavaScript</h1> |
| 22 | 22 | <p>This is a sample pagecontroller to show off how JavaScript works with Anax.</p> |
| 23 | 23 | <div id='slideshow' class='slideshow' data-host='' data-path='img/me/' data-images='[\"me-1.jpg\", \"me-2.jpg\", \"me-4.jpg\", \"me-6.jpg\"]'> |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | 7 | // Get environment & autoloader. |
| 8 | -include(__DIR__.'/config_pagecontroller.php'); |
|
| 8 | +include(__DIR__ . '/config_pagecontroller.php'); |
|
| 9 | 9 | |
| 10 | 10 | |
| 11 | 11 | |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | 7 | // Get environment & autoloader. |
| 8 | -require __DIR__.'/config_with_app.php'; |
|
| 8 | +require __DIR__ . '/config_with_app.php'; |
|
| 9 | 9 | |
| 10 | 10 | |
| 11 | 11 | |