Completed
Pull Request — release-2.1 (#4447)
by Martyn
19:41
created
Sources/CacheAPI-sqlite.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -108,14 +108,14 @@  discard block
 block discarded – undo
108 108
 	 */
109 109
 	public function cleanCache($type = '')
110 110
 	{
111
-		if($type == 'expired')
112
-			$query = 'DELETE FROM cache WHERE ttl >= ' . time().';';
111
+		if ($type == 'expired')
112
+			$query = 'DELETE FROM cache WHERE ttl >= ' . time() . ';';
113 113
 		else
114 114
 			$query = 'DELETE FROM cache;';
115 115
 
116 116
 		$result = $this->cacheDB->exec($query);
117 117
 		
118
-		$query	= 'VACUUM;';
118
+		$query = 'VACUUM;';
119 119
 		$this->cacheDB->exec($query);
120 120
 
121 121
 		return $result;
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 
157 157
 		// If its invalid, use SMF's.
158 158
 		if (is_null($dir) || !is_writable($dir))
159
-			if(is_null($cachedir_sqlite) || !is_writable($cachedir_sqlite))
159
+			if (is_null($cachedir_sqlite) || !is_writable($cachedir_sqlite))
160 160
 				$this->cachedir = $cachedir;
161 161
 			else
162 162
 				$this->cachedir = $cachedir_sqlite;
Please login to merge, or discard this patch.