Completed
Branch master (bf78fd)
by smiley
02:32 queued 47s
created
src/Cache.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -128,8 +128,7 @@  discard block
 block discarded – undo
128 128
 
129 129
 		if($data instanceof \Traversable){
130 130
 			return iterator_to_array($data); // @codeCoverageIgnore
131
-		}
132
-		else if(is_array($data)){
131
+		} else if(is_array($data)){
133 132
 			return $data;
134 133
 		}
135 134
 
@@ -146,8 +145,7 @@  discard block
 block discarded – undo
146 145
 
147 146
 		if($ttl instanceof \DateInterval){
148 147
 			return (new \DateTime('now'))->add($ttl)->getTimeStamp() - time();
149
-		}
150
-		else if(is_int($ttl) || is_null($ttl)){
148
+		} else if(is_int($ttl) || is_null($ttl)){
151 149
 			return $ttl;
152 150
 		}
153 151
 
Please login to merge, or discard this patch.