Passed
Pull Request — main (#7)
by Daryl
02:27
created
src/Helpers/Api.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
             $cachedResponse = $this->_cache->get($cacheKey);
153 153
             
154 154
             if ($cachedResponse !== null) {
155
-                $this->logEvent('Cache hit for endpoint: ' . $endpoint);
155
+                $this->logEvent('Cache hit for endpoint: '.$endpoint);
156 156
                 return $cachedResponse;
157 157
             }
158 158
         }
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
             if ($method === 'GET' && $this->_cache) {
175 175
                 $cacheExpiration = $args['cache_expiration'] ?? self::CACHE_EXPIRATION_DEFAULT;
176 176
                 $this->_cache->set($cacheKey, $data, $cacheExpiration);
177
-                $this->logEvent('Cached response for endpoint: ' . $endpoint);
177
+                $this->logEvent('Cached response for endpoint: '.$endpoint);
178 178
             }
179 179
             
180 180
             return $data;
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
      * @return Exception|mixed[]
268 268
      * @throws GuzzleException
269 269
      */
270
-    public function post(string $endpoint, array $args = []): array|Exception
270
+    public function post(string $endpoint, array $args = []): array | Exception
271 271
     {
272 272
 
273 273
         $args = array_merge($args, array(
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
             'log' => 'tessitura',
296 296
         ));
297 297
 
298
-        $message = 'Tessitura API: ' . $message;
298
+        $message = 'Tessitura API: '.$message;
299 299
 
300 300
         if ($this->getLogger()) {
301 301
             $this->getLogger()->info($message, $args);
@@ -441,6 +441,6 @@  discard block
 block discarded – undo
441 441
             'args' => $keyArgs
442 442
         ];
443 443
         
444
-        return 'tessitura:' . md5(json_encode($keyData));
444
+        return 'tessitura:'.md5(json_encode($keyData));
445 445
     }
446 446
 }
Please login to merge, or discard this patch.
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.