@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | public function render(ResponseInterface $response, array $data = [], $status = 200) |
| 46 | 46 | { |
| 47 | 47 | $icalendar = new VCalendar(); |
| 48 | - if (! isset($data['cfps'])) { |
|
| 48 | + if (!isset($data['cfps'])) { |
|
| 49 | 49 | $data['cfps'] = []; |
| 50 | 50 | } |
| 51 | 51 | foreach ($data['cfps'] as $cfp) { |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | 'DTSTAMP' => $lastChange, |
| 67 | 67 | 'UID' => $cfp['_rel']['cfp_uri'], |
| 68 | 68 | 'DESCRIPTION' => $cfp['description'], |
| 69 | - 'GEO' => round($cfp['latitude'], 6) . ';' . round($cfp['longitude'], 6), |
|
| 69 | + 'GEO' => round($cfp['latitude'], 6).';'.round($cfp['longitude'], 6), |
|
| 70 | 70 | 'LOCATION' => $cfp['location'], |
| 71 | 71 | |
| 72 | 72 | ]); |
@@ -27,22 +27,22 @@ |
||
| 27 | 27 | * @since 15.01.2016 |
| 28 | 28 | * @link http://github.com/heiglandreas/callingallpapers |
| 29 | 29 | */ |
| 30 | -require_once realpath(__DIR__ . '/../vendor/autoload.php'); |
|
| 30 | +require_once realpath(__DIR__.'/../vendor/autoload.php'); |
|
| 31 | 31 | |
| 32 | 32 | session_start(); |
| 33 | 33 | |
| 34 | 34 | // Instantiate the app |
| 35 | -$settings = require __DIR__ . '/../config/settings.php'; |
|
| 35 | +$settings = require __DIR__.'/../config/settings.php'; |
|
| 36 | 36 | $app = new \Slim\App($settings); |
| 37 | 37 | |
| 38 | 38 | // Set up dependencies |
| 39 | -require __DIR__ . '/../config/dependencies.php'; |
|
| 39 | +require __DIR__.'/../config/dependencies.php'; |
|
| 40 | 40 | |
| 41 | 41 | // Register middleware |
| 42 | -require __DIR__ . '/../config/middleware.php'; |
|
| 42 | +require __DIR__.'/../config/middleware.php'; |
|
| 43 | 43 | |
| 44 | 44 | // Register routes |
| 45 | -require __DIR__ . '/../config/routes.php'; |
|
| 45 | +require __DIR__.'/../config/routes.php'; |
|
| 46 | 46 | |
| 47 | 47 | // Run app |
| 48 | 48 | $app->run(); |