@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | //reset instance |
| 101 | 101 | $this->reset(); |
| 102 | 102 | |
| 103 | - $this->logger->debug('Begin execution of SQL query [' . $this->query .']'); |
|
| 103 | + $this->logger->debug('Begin execution of SQL query [' . $this->query . ']'); |
|
| 104 | 104 | |
| 105 | 105 | //for database query execution time |
| 106 | 106 | $benchmarkMarkerKey = $this->getBenchmarkKey(); |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | if ((double) $responseTime >= 1.000000) { |
| 118 | 118 | $this->logger->warning( |
| 119 | 119 | 'High response time while processing database query [' . $this->query . '].' |
| 120 | - . 'The response time is [' .$responseTime . '] sec.' |
|
| 120 | + . 'The response time is [' . $responseTime . '] sec.' |
|
| 121 | 121 | ); |
| 122 | 122 | } |
| 123 | 123 | |
@@ -215,7 +215,7 @@ |
||
| 215 | 215 | $dtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); |
| 216 | 216 | $fileInfo = $dtrace[0]; |
| 217 | 217 | $i = 0; |
| 218 | - while ($dtrace[$i]['file'] == __FILE__ ) { |
|
| 218 | + while ($dtrace[$i]['file'] == __FILE__) { |
|
| 219 | 219 | $i++; |
| 220 | 220 | } |
| 221 | 221 | $fileInfo = $dtrace[$i]; |
@@ -108,13 +108,13 @@ |
||
| 108 | 108 | public function set($key, $data, $ttl = 0) { |
| 109 | 109 | $expire = time() + $ttl; |
| 110 | 110 | $this->logger->debug('Setting cache data for key [' . $key . '], ' |
| 111 | - . 'time to live [' . $ttl . '], ' |
|
| 112 | - . 'expire at [' . date('Y-m-d H:i:s', $expire) . ']'); |
|
| 111 | + . 'time to live [' . $ttl . '], ' |
|
| 112 | + . 'expire at [' . date('Y-m-d H:i:s', $expire) . ']'); |
|
| 113 | 113 | $filePath = $this->getFilePath($key); |
| 114 | 114 | $handle = fopen($filePath, 'w'); |
| 115 | 115 | if (!is_resource($handle)) { |
| 116 | 116 | $this->logger->error('Can not open the file cache ' |
| 117 | - . '[' . $filePath . '] for the key [' . $key . '], return false'); |
|
| 117 | + . '[' . $filePath . '] for the key [' . $key . '], return false'); |
|
| 118 | 118 | return false; |
| 119 | 119 | } |
| 120 | 120 | flock($handle, LOCK_EX); // exclusive lock, will get released when the file is closed |