← All changes
|
includes/admin/Destination/Google/google-api-php-client/src/cache/Google_FileCache.php
+2
-4
7.12
→
6.7
View file →
| @@ -1,6 +1,5 @@ | ||
| 1 | 1 | <?php |
| 2 | -// phpcs:ignoreFile -- third party library | |
| 3 | 2 | /* |
| 4 | 3 | * Copyright 2008 Google Inc. |
| 5 | 4 | * |
| 6 | 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| @@ -41,13 +40,12 @@ | ||
| 41 | 40 | private function createLock($storageFile) { |
| 42 | 41 | $storageDir = dirname($storageFile); |
| 43 | 42 | if (! is_dir($storageDir)) { |
| 44 | 43 | // @codeCoverageIgnoreStart |
| 45 | - //phpcs:ignore | |
| 46 | 44 | if (! @mkdir($storageDir, 0755, true)) { |
| 47 | 45 | // make sure the failure isn't because of a concurrency issue |
| 48 | 46 | if (! is_dir($storageDir)) { |
| 49 | - throw new Google_CacheException("Could not create storage directory: ".esc_html($storageDir)); | |
| 47 | + throw new Google_CacheException("Could not create storage directory: $storageDir"); | |
| 50 | 48 | } |
| 51 | 49 | } |
| 52 | 50 | // @codeCoverageIgnoreEnd |
| 53 | 51 | } |
| @@ -115,9 +113,9 @@ | ||
| 115 | 113 | $this->waitForLock($storageFile); |
| 116 | 114 | } |
| 117 | 115 | if (! is_dir($storageDir)) { |
| 118 | 116 | if (! @mkdir($storageDir, 0755, true)) { |
| 119 | - throw new Google_CacheException("Could not create storage directory: ".esc_html($storageDir)); | |
| 117 | + throw new Google_CacheException("Could not create storage directory: $storageDir"); | |
| 120 | 118 | } |
| 121 | 119 | } |
| 122 | 120 | // we serialize the whole request object, since we don't only want the |
| 123 | 121 | // responseContent but also the postBody used, headers, size, etc |