@@ -331,7 +331,7 @@ |
||
| 331 | 331 | } |
| 332 | 332 | |
| 333 | 333 | /** |
| 334 | - * @param $requiredRole |
|
| 334 | + * @param string $requiredRole |
|
| 335 | 335 | */ |
| 336 | 336 | public function assertRole($requiredRole) |
| 337 | 337 | { |
@@ -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 | }); |
@@ -202,6 +202,9 @@ discard block |
||
| 202 | 202 | } |
| 203 | 203 | } |
| 204 | 204 | |
| 205 | + /** |
|
| 206 | + * @param string $performerName |
|
| 207 | + */ |
|
| 205 | 208 | public function getPerformerIdByName($performerName, $createMissing = false) |
| 206 | 209 | { |
| 207 | 210 | $conn = $this->getDbConn(); |
@@ -521,6 +524,9 @@ discard block |
||
| 521 | 524 | } |
| 522 | 525 | |
| 523 | 526 | |
| 527 | + /** |
|
| 528 | + * @param string $key |
|
| 529 | + */ |
|
| 524 | 530 | public function getSetting($key) |
| 525 | 531 | { |
| 526 | 532 | $conn = $this->getDbConn(); |
@@ -531,7 +537,7 @@ discard block |
||
| 531 | 537 | /** |
| 532 | 538 | * Return SQL in appropriate dialect to concatenate the listed values |
| 533 | 539 | * |
| 534 | - * @param array $fields |
|
| 540 | + * @param string[] $fields |
|
| 535 | 541 | * @return string |
| 536 | 542 | */ |
| 537 | 543 | abstract protected function concatenateEscapedFields($fields); |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | * |
| 24 | 24 | * @param $title |
| 25 | 25 | * @param $songId |
| 26 | - * @return int|false |
|
| 26 | + * @return string|false |
|
| 27 | 27 | */ |
| 28 | 28 | public function storeNewTicket($title, $songId) |
| 29 | 29 | { |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | * |
| 46 | 46 | * @param $performerName |
| 47 | 47 | * @param bool|false $createMissing |
| 48 | - * @return mixed |
|
| 48 | + * @return string|boolean |
|
| 49 | 49 | */ |
| 50 | 50 | public function getPerformerIdByName($performerName, $createMissing = false) |
| 51 | 51 | { |
@@ -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] |