@@ -10,7 +10,7 @@ |
||
| 10 | 10 | |
| 11 | 11 | $app = require(dirname(__DIR__) . '/www/app.php'); |
| 12 | 12 | |
| 13 | -$outFile = dirname(__DIR__) .'/log/setlist-' . date('Ymd-His') . '.csv'; |
|
| 13 | +$outFile = dirname(__DIR__) . '/log/setlist-' . date('Ymd-His') . '.csv'; |
|
| 14 | 14 | |
| 15 | 15 | $exporter = new \Phase\TakeATicket\PlaylistExporter($app['db']); |
| 16 | 16 | $exporter->exportToFile($outFile); |
@@ -102,7 +102,7 @@ |
||
| 102 | 102 | 'logout' => array( |
| 103 | 103 | 'logout_path' => '/user/logout', |
| 104 | 104 | ), |
| 105 | - 'users' => $app->share(function ($app) { |
|
| 105 | + 'users' => $app->share(function($app) { |
|
| 106 | 106 | return $app['user.manager']; |
| 107 | 107 | }), |
| 108 | 108 | ), |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | $app['twig'] = $app->share( |
| 40 | 40 | $app->extend( |
| 41 | 41 | 'twig', |
| 42 | - function (\Twig_Environment $twig, $app) { |
|
| 42 | + function(\Twig_Environment $twig, $app) { |
|
| 43 | 43 | // add custom globals, filters, tags, ... |
| 44 | 44 | $engine = new MichelfMarkdownEngine(); |
| 45 | 45 | $twig->addExtension(new MarkdownExtension($engine)); |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | ); |
| 50 | 50 | |
| 51 | 51 | $app['ticket.controller'] = $app->share( |
| 52 | - function (Application $app) { |
|
| 52 | + function(Application $app) { |
|
| 53 | 53 | return new Controller($app); |
| 54 | 54 | } |
| 55 | 55 | ); |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | |
| 95 | 95 | if (is_array($band) && !empty($band[$instrument])) { |
| 96 | 96 | $performers = array_map( |
| 97 | - function ($performer) { |
|
| 97 | + function($performer) { |
|
| 98 | 98 | return $performer['performerName']; |
| 99 | 99 | }, |
| 100 | 100 | $band[$instrument] |
@@ -367,7 +367,7 @@ |
||
| 367 | 367 | protected function setJsonErrorHandler() |
| 368 | 368 | { |
| 369 | 369 | /** @noinspection PhpUnusedParameterInspection */ |
| 370 | - $this->app->error(function (\Exception $e, $code) { |
|
| 370 | + $this->app->error(function(\Exception $e, $code) { |
|
| 371 | 371 | $message = 'Threw ' . get_class($e) . ': ' . $e->getMessage(); |
| 372 | 372 | return new JsonResponse(['error' => $message]); |
| 373 | 373 | }); |