Skip to content

Commit

Permalink
Merge pull request #11 from voku/analysis-XZxWPz
Browse files Browse the repository at this point in the history
Applied fixes from StyleCI
  • Loading branch information
voku committed Aug 19, 2015
2 parents 0a66c47 + dde701a commit e0b3d31
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/voku/cache/Cache.php
Expand Up @@ -295,7 +295,7 @@ private function getClientIp($trust_proxy_headers = false)

if (isset($_SERVER['HTTP_CLIENT_IP']) && $_SERVER['HTTP_CLIENT_IP']) {
$ip = $_SERVER['HTTP_CLIENT_IP'];
} else if (isset($_SERVER['HTTP_X_FORWARDED_FOR']) && $_SERVER['HTTP_X_FORWARDED_FOR']) {
} elseif (isset($_SERVER['HTTP_X_FORWARDED_FOR']) && $_SERVER['HTTP_X_FORWARDED_FOR']) {
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
} else {
$ip = $remoteAddr;
Expand Down
2 changes: 1 addition & 1 deletion src/voku/cache/iSerializer.php
Expand Up @@ -27,4 +27,4 @@ public function serialize($value);
* @return mixed
*/
public function unserialize($value);
}
}
1 change: 0 additions & 1 deletion tests/MemcachedCacheTest.php
@@ -1,6 +1,5 @@
<?php

use voku\cache\AdapterArray;
use voku\cache\AdapterMemcached;
use voku\cache\Cache;
use voku\cache\iAdapter;
Expand Down
2 changes: 1 addition & 1 deletion tests/bootstrap.php
Expand Up @@ -3,4 +3,4 @@
require_once dirname(__DIR__) . '/vendor/autoload.php';

$_SERVER['$_SERVER_NAME'] = '';
$_SESSION = array();
$_SESSION = array();

0 comments on commit e0b3d31

Please sign in to comment.