@@ -18,7 +18,7 @@ |
||
| 18 | 18 | |
| 19 | 19 | public function handle(Request $request, AccessDeniedException $accessDeniedException) |
| 20 | 20 | { |
| 21 | - $this->logger->alert('Access to \'result\' route denied to request IP ' . $request->getClientIp()); |
|
| 21 | + $this->logger->alert('Access to \'result\' route denied to request IP '.$request->getClientIp()); |
|
| 22 | 22 | return "@Twig/Exception/error.txt.twig"; |
| 23 | 23 | } |
| 24 | 24 | } |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | $api->payUserFee($transaction->getUserId(), $fee->getFeeId(), $fee->getBalance()); |
| 85 | 85 | $result = true; |
| 86 | 86 | } catch (\GuzzleHttp\Exception\GuzzleException $e) { |
| 87 | - echo $e->getCode() . $e->getMessage(); |
|
| 87 | + echo $e->getCode().$e->getMessage(); |
|
| 88 | 88 | } |
| 89 | 89 | } |
| 90 | 90 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | $url = str_replace($templateParamNames, $templateParamValues, $urlPath); |
| 37 | 37 | $defaultRequestParams = [ |
| 38 | 38 | 'headers' => [ |
| 39 | - 'Authorization' => 'apikey ' . $this->apiKey, |
|
| 39 | + 'Authorization' => 'apikey '.$this->apiKey, |
|
| 40 | 40 | ] |
| 41 | 41 | ]; |
| 42 | 42 | $response = $client->request($method, $url, $requestParams + $defaultRequestParams); |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | $query = [ |
| 112 | 112 | 'limit' => '10', |
| 113 | 113 | 'offset' => '0', |
| 114 | - 'q' => 'primary_id~' . $userId, |
|
| 114 | + 'q' => 'primary_id~'.$userId, |
|
| 115 | 115 | 'order_by' => 'last_name first_name, primary_id' |
| 116 | 116 | ]; |
| 117 | 117 | |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | ]; |
| 192 | 192 | |
| 193 | 193 | $headers = [ |
| 194 | - 'Authorization' => 'apikey ' . $this->apiKey, |
|
| 194 | + 'Authorization' => 'apikey '.$this->apiKey, |
|
| 195 | 195 | 'Content-Type' => 'application/json' |
| 196 | 196 | ]; |
| 197 | 197 | $body = json_encode($body); |
@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | ]; |
| 218 | 218 | |
| 219 | 219 | $headers = [ |
| 220 | - 'Authorization' => 'apikey ' . $this->apiKey, |
|
| 220 | + 'Authorization' => 'apikey '.$this->apiKey, |
|
| 221 | 221 | 'Exl-User-Pw' => $userPassword |
| 222 | 222 | ]; |
| 223 | 223 | $requestParams = compact('query', 'headers'); |
@@ -45,17 +45,17 @@ |
||
| 45 | 45 | ->stage('stg'); |
| 46 | 46 | // Tasks |
| 47 | 47 | |
| 48 | -task('build', function () { |
|
| 48 | +task('build', function() { |
|
| 49 | 49 | run('cd {{release_path}} && build'); |
| 50 | 50 | }); |
| 51 | 51 | |
| 52 | 52 | |
| 53 | -task('assets-build', function () { |
|
| 53 | +task('assets-build', function() { |
|
| 54 | 54 | run('cd {{release_path}} && composer assets:build'); |
| 55 | 55 | }); |
| 56 | 56 | |
| 57 | 57 | // Backup remote database |
| 58 | -task('backup-remote-db', function () { |
|
| 58 | +task('backup-remote-db', function() { |
|
| 59 | 59 | cd('{{release_path}}'); |
| 60 | 60 | run('source .env && mysqldump -u $DB_USER -p$DB_PASSWORD $DB_NAME | gzip > ./backups/$DB_NAME-`date +%s`.sql.gz'); |
| 61 | 61 | // Remove database backup files older than 30 days |
@@ -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); |