@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | 'secret' => $token, |
| 98 | 98 | ]; |
| 99 | 99 | |
| 100 | - $response = $client->request('POST', $url, [ |
|
| 100 | + $response = $client->request('POST', $url, [ |
|
| 101 | 101 | 'headers' => $headers, |
| 102 | 102 | 'json' => $data, |
| 103 | 103 | 'query' => $queryParams |
@@ -117,14 +117,14 @@ discard block |
||
| 117 | 117 | ]; |
| 118 | 118 | |
| 119 | 119 | if (is_writable('/tmp')) { |
| 120 | - file_put_contents('/tmp/cache_invalidation.json', json_encode($result) . PHP_EOL, FILE_APPEND); |
|
| 120 | + file_put_contents('/tmp/cache_invalidation.json', json_encode($result).PHP_EOL, FILE_APPEND); |
|
| 121 | 121 | } |
| 122 | 122 | } catch (\Throwable $e) { |
| 123 | 123 | if (is_writable('/tmp')) { |
| 124 | - file_put_contents('/tmp/cache_invalidation_errors.json', $e->getMessage() . PHP_EOL, FILE_APPEND); |
|
| 124 | + file_put_contents('/tmp/cache_invalidation_errors.json', $e->getMessage().PHP_EOL, FILE_APPEND); |
|
| 125 | 125 | } |
| 126 | 126 | // Don't throw the exception, just log it |
| 127 | - error_log('Cache invalidation failed: ' . $e->getMessage()); |
|
| 127 | + error_log('Cache invalidation failed: '.$e->getMessage()); |
|
| 128 | 128 | } |
| 129 | 129 | } |
| 130 | 130 | |