@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | { |
112 | 112 | if(!$strtoupper){ |
113 | 113 | print trim($string) . PHP_EOL; |
114 | - }else{ |
|
114 | + } else{ |
|
115 | 115 | print strtoupper(trim($string) . PHP_EOL); |
116 | 116 | } |
117 | 117 | |
@@ -125,8 +125,7 @@ discard block |
||
125 | 125 | { |
126 | 126 | if (substr(php_uname(), 0, 7) === 'Windows'){ |
127 | 127 | pclose(popen('start /B '. $cmd, 'r')); |
128 | - } |
|
129 | - else { |
|
128 | + } else { |
|
130 | 129 | exec($cmd . ' > /dev/null &'); |
131 | 130 | } |
132 | 131 | } |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | } else { |
165 | 165 | $item->setHit(true); |
166 | 166 | } |
167 | - }else{ |
|
167 | + } else{ |
|
168 | 168 | $item->expiresAfter(abs((int) $this->getConfig()[ 'defaultTtl' ])); |
169 | 169 | } |
170 | 170 | } |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | { |
360 | 360 | if (!array_key_exists($item->getKey(), $this->itemInstances)) { |
361 | 361 | $this->itemInstances[ $item->getKey() ] = $item; |
362 | - }else if(spl_object_hash($item) !== spl_object_hash($this->itemInstances[ $item->getKey() ])){ |
|
362 | + } else if(spl_object_hash($item) !== spl_object_hash($this->itemInstances[ $item->getKey() ])){ |
|
363 | 363 | throw new \RuntimeException('Spl object hash mismatches ! You probably tried to save a detached item which has been already retrieved from cache.'); |
364 | 364 | } |
365 | 365 |
@@ -42,7 +42,7 @@ |
||
42 | 42 | if(is_string($itemKey)){ |
43 | 43 | $this->itemKey = $itemKey; |
44 | 44 | $this->itemDate = $itemDate; |
45 | - }else{ |
|
45 | + } else{ |
|
46 | 46 | throw new phpFastCacheInvalidArgumentException(sprintf('$itemKey must be a string, got "%s" instead', gettype($itemKey))); |
47 | 47 | } |
48 | 48 | } |