Passed
Push — master ( 2b7bb3...0db2dd )
by Clint A
06:52
created
deploy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,12 +44,12 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Service/AlmaApi.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,13 +33,13 @@  discard block
 block discarded – undo
33 33
         $url = str_replace($templateParamNames, $templateParamValues, $urlPath);
34 34
         $defaultRequestParams = [
35 35
             'headers' => [
36
-                'Authorization' => 'apikey ' . getenv('API_KEY'),
36
+                'Authorization' => 'apikey '.getenv('API_KEY'),
37 37
             ]
38 38
         ];
39 39
 
40 40
         try {
41 41
             $response = $client->request($method, $url, array_merge_recursive($requestParams, $defaultRequestParams));
42
-        } catch(\Exception $e) {
42
+        } catch (\Exception $e) {
43 43
             $this->logger->emergency("@web-irt-dev Critical Error: Unable to reach the Alma API! :fire:");
44 44
             throw $e;
45 45
         }
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
         $query = [
110 110
             'limit' => '10',
111 111
             'offset' => '0',
112
-            'q' => 'primary_id~' . $userId,
112
+            'q' => 'primary_id~'.$userId,
113 113
             'order_by' => 'last_name first_name, primary_id'
114 114
         ];
115 115
         $requestParams = compact('query');
Please login to merge, or discard this patch.
src/Controller/ResultController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
                 $this->almaApi->payUserFee($transaction->getUserId(), $fee->getFeeId(), $fee->getBalance());
92 92
                 $result = true;
93 93
             } catch (\GuzzleHttp\Exception\GuzzleException $e) {
94
-                echo $e->getCode() . $e->getMessage();
94
+                echo $e->getCode().$e->getMessage();
95 95
             }
96 96
         }
97 97
 
Please login to merge, or discard this patch.
src/Security/AccessDeniedHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.