@@ -125,7 +125,7 @@ |
||
125 | 125 | PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_OBJ |
126 | 126 | ); |
127 | 127 | $this->pdo = new PDO($this->getDsnValue(), $this->getUsername(), $this->getPassword(), $options); |
128 | - if($this->getDriver() == 'mysql') { |
|
128 | + if ($this->getDriver() == 'mysql') { |
|
129 | 129 | $this->pdo->exec("SET NAMES '" . $this->getCharset() . "' COLLATE '" . $this->getCollation() . "'"); |
130 | 130 | $this->pdo->exec("SET CHARACTER SET '" . $this->getCharset() . "'"); |
131 | 131 | } |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | $cacheInfo = $cache->getInfo($pageCacheKey); |
250 | 250 | if ($cacheInfo) { |
251 | 251 | $status = $this->sendCacheNotYetExpireInfoToBrowser($cacheInfo); |
252 | - if($status === false) { |
|
252 | + if ($status === false) { |
|
253 | 253 | return $this->sendCachePageContentToBrowser($cache); |
254 | 254 | } |
255 | 255 | return true; |
@@ -323,7 +323,7 @@ discard block |
||
323 | 323 | */ |
324 | 324 | public function sendError(array $data = array()) { |
325 | 325 | $path = CORE_VIEWS_PATH . 'errors.php'; |
326 | - if(file_exists($path)){ |
|
326 | + if (file_exists($path)) { |
|
327 | 327 | //compress the output if is available |
328 | 328 | $compressOutputHandler = $this->getCompressOutputHandler(); |
329 | 329 | ob_start($compressOutputHandler); |
@@ -335,7 +335,7 @@ discard block |
||
335 | 335 | echo $content; |
336 | 336 | } |
337 | 337 | //@codeCoverageIgnoreStart |
338 | - else{ |
|
338 | + else { |
|
339 | 339 | //can't use show_error() at this time because |
340 | 340 | //some dependencies not yet loaded |
341 | 341 | set_http_status_header(503); |
@@ -389,7 +389,7 @@ discard block |
||
389 | 389 | * |
390 | 390 | * @return string|null the full file path |
391 | 391 | */ |
392 | - protected function getDefaultFilePathForView($file){ |
|
392 | + protected function getDefaultFilePathForView($file) { |
|
393 | 393 | $searchDir = array(APPS_VIEWS_PATH, CORE_VIEWS_PATH); |
394 | 394 | $fullFilePath = null; |
395 | 395 | foreach ($searchDir as $dir) { |