Passed
Pull Request — main (#7)
by Daryl
02:29
created
src/Base/Container.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
      */
101 101
     public function has(string $id): bool
102 102
     {
103
-        return isset($this->services[$id]) || method_exists($this, 'create' . ucfirst($id));
103
+        return isset($this->services[$id]) || method_exists($this, 'create'.ucfirst($id));
104 104
     }
105 105
 
106 106
     /**
Please login to merge, or discard this patch.
src/Helpers/Api.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
             $cachedResponse = $this->_cache->get($cacheKey);
157 157
             
158 158
             if ($cachedResponse !== null) {
159
-                $this->logEvent('Cache hit for endpoint: ' . $endpoint);
159
+                $this->logEvent('Cache hit for endpoint: '.$endpoint);
160 160
                 return $cachedResponse;
161 161
             }
162 162
         }
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
             if ($method === 'GET' && $this->_cache) {
179 179
                 $cacheExpiration = $args['cache_expiration'] ?? self::CACHE_EXPIRATION_DEFAULT;
180 180
                 $this->_cache->set($cacheKey, $data, $cacheExpiration);
181
-                $this->logEvent('Cached response for endpoint: ' . $endpoint);
181
+                $this->logEvent('Cached response for endpoint: '.$endpoint);
182 182
             }
183 183
             
184 184
             return $data;
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
          */
191 191
         $body = $response->getBody();
192 192
 
193
-        $this->logEvent('Error response from endpoint: ' . $endpoint);
193
+        $this->logEvent('Error response from endpoint: '.$endpoint);
194 194
 
195 195
         throw new Exception(
196 196
             $body->getContents(),
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
      * @return Exception|mixed[]
274 274
      * @throws GuzzleException
275 275
      */
276
-    public function post(string $endpoint, array $args = []): array|Exception
276
+    public function post(string $endpoint, array $args = []): array | Exception
277 277
     {
278 278
 
279 279
         $args = array_merge($args, array(
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
             'log' => 'tessitura',
302 302
         ));
303 303
 
304
-        $message = 'Tessitura API: ' . $message;
304
+        $message = 'Tessitura API: '.$message;
305 305
 
306 306
         if ($this->getLogger()) {
307 307
             $this->getLogger()->info($message, $args);
@@ -447,6 +447,6 @@  discard block
 block discarded – undo
447 447
             'args' => $keyArgs
448 448
         ];
449 449
         
450
-        return 'tessitura:' . md5(json_encode($keyData));
450
+        return 'tessitura:'.md5(json_encode($keyData));
451 451
     }
452 452
 }
Please login to merge, or discard this patch.