@@ -16,7 +16,7 @@ |
||
16 | 16 | } |
17 | 17 | |
18 | 18 | $env = $_SERVER['APP_ENV'] ?? 'dev'; |
19 | -$debug = (bool) ($_SERVER['APP_DEBUG'] ?? ('prod' !== $env)); |
|
19 | +$debug = (bool)($_SERVER['APP_DEBUG'] ?? ('prod' !== $env)); |
|
20 | 20 | |
21 | 21 | if ($debug) { |
22 | 22 | umask(0000); |
@@ -44,12 +44,12 @@ |
||
44 | 44 | ->stage('stg'); |
45 | 45 | |
46 | 46 | // Tasks |
47 | -task('assets-build', function () { |
|
47 | +task('assets-build', function() { |
|
48 | 48 | run('cd {{release_path}} && composer assets:build'); |
49 | 49 | }); |
50 | 50 | |
51 | 51 | // Backup remote database |
52 | -task('backup-remote-db', function () { |
|
52 | +task('backup-remote-db', function() { |
|
53 | 53 | cd('{{release_path}}'); |
54 | 54 | run('source .env && mysqldump -u $DB_USER -p$DB_PASSWORD $DB_NAME | gzip > ./backups/$DB_NAME-`date +%s`.sql.gz'); |
55 | 55 | // Remove database backup files older than 30 days |
@@ -26,7 +26,7 @@ |
||
26 | 26 | */ |
27 | 27 | public function handle(Request $request, AccessDeniedException $accessDeniedException) |
28 | 28 | { |
29 | - $this->logger->alert('Access to \'result\' route denied to request IP ' . $request->getClientIp()); |
|
29 | + $this->logger->alert('Access to \'result\' route denied to request IP '.$request->getClientIp()); |
|
30 | 30 | return null; |
31 | 31 | } |
32 | 32 | } |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | $url = str_replace($templateParamNames, $templateParamValues, $urlPath); |
35 | 35 | $defaultRequestParams = [ |
36 | 36 | 'headers' => [ |
37 | - 'Authorization' => 'apikey ' . getenv('API_KEY'), |
|
37 | + 'Authorization' => 'apikey '.getenv('API_KEY'), |
|
38 | 38 | ] |
39 | 39 | ]; |
40 | 40 | |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | $query = [ |
149 | 149 | 'limit' => '10', |
150 | 150 | 'offset' => '0', |
151 | - 'q' => 'primary_id~' . $userId, |
|
151 | + 'q' => 'primary_id~'.$userId, |
|
152 | 152 | 'order_by' => 'last_name first_name, primary_id' |
153 | 153 | ]; |
154 | 154 | $requestParams = compact('query'); |
@@ -28,14 +28,14 @@ |
||
28 | 28 | $exception = $event->getAuthenticationException(); |
29 | 29 | $token = $event->getAuthenticationToken(); |
30 | 30 | $creds = $token->getCredentials(); |
31 | - $this->logger->error("Login failed for " . $creds['username'] . ": " . $exception->getMessage()); |
|
31 | + $this->logger->error("Login failed for ".$creds['username'].": ".$exception->getMessage()); |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | public function onAuthenticationSuccess(AuthenticationEvent $event) |
35 | 35 | { |
36 | 36 | $token = $event->getAuthenticationToken(); |
37 | 37 | if ($token->getUsername() != "anon.") { |
38 | - $this->logger->info("Login succeeded: " . $token->getUsername()); |
|
38 | + $this->logger->info("Login succeeded: ".$token->getUsername()); |
|
39 | 39 | } |
40 | 40 | } |
41 | 41 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | return new AlmaUser($username, array('ROLE_USER'), $firstName, $lastName); |
33 | 33 | } |
34 | 34 | } catch (\GuzzleHttp\Exception\GuzzleException $e) { |
35 | - $this->logger->error($e->getCode() . $e->getMessage()); |
|
35 | + $this->logger->error($e->getCode().$e->getMessage()); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | throw new UsernameNotFoundException(sprintf('Username "%s" does not exist.', $username)); |
@@ -99,7 +99,7 @@ |
||
99 | 99 | $this->api->payUserFee($transaction->getUserId(), $fee->getFeeId(), $fee->getBalance()); |
100 | 100 | $result = true; |
101 | 101 | } catch (\GuzzleHttp\Exception\GuzzleException $e) { |
102 | - echo $e->getCode() . $e->getMessage(); |
|
102 | + echo $e->getCode().$e->getMessage(); |
|
103 | 103 | } |
104 | 104 | } |
105 | 105 |
@@ -19,7 +19,7 @@ |
||
19 | 19 | ['date' => 'DESC'] |
20 | 20 | ); |
21 | 21 | return $this->render('views/history.html.twig', [ |
22 | - 'full_name' => $user->getFirstName() . ' ' . $user->getLastName(), |
|
22 | + 'full_name' => $user->getFirstName().' '.$user->getLastName(), |
|
23 | 23 | 'transactions' => $transactions |
24 | 24 | ]); |
25 | 25 | } |
@@ -36,7 +36,7 @@ |
||
36 | 36 | } |
37 | 37 | |
38 | 38 | return $this->render('views/index.html.twig', [ |
39 | - 'full_name' => $user->getFirstName() . ' ' . $user->getLastName(), |
|
39 | + 'full_name' => $user->getFirstName().' '.$user->getLastName(), |
|
40 | 40 | 'user_fees' => $userFees, |
41 | 41 | 'total_Due' => $totalDue, |
42 | 42 | 'transaction' => $transactionToNotify |