@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | |
53 | 53 | if($keyHashFunction){ |
54 | 54 | return $keyHashFunction($this->getKey()); |
55 | - }else{ |
|
55 | + } else{ |
|
56 | 56 | return md5($this->getKey()); |
57 | 57 | } |
58 | 58 | } |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | { |
99 | 99 | if($this->driver->getConfig()['itemDetailedDate']){ |
100 | 100 | return $this->creationDate; |
101 | - }else{ |
|
101 | + } else{ |
|
102 | 102 | throw new phpFastCacheLogicException('Cannot access to the creation date when the "itemDetailedDate" configuration is disabled.'); |
103 | 103 | } |
104 | 104 | } |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | if($this->driver->getConfig()['itemDetailedDate']){ |
114 | 114 | $this->creationDate = $date; |
115 | 115 | return $this; |
116 | - }else{ |
|
116 | + } else{ |
|
117 | 117 | throw new phpFastCacheLogicException('Cannot access to the creation date when the "itemDetailedDate" configuration is disabled.'); |
118 | 118 | } |
119 | 119 | } |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | { |
127 | 127 | if($this->driver->getConfig()['itemDetailedDate']){ |
128 | 128 | return $this->modificationDate; |
129 | - }else{ |
|
129 | + } else{ |
|
130 | 130 | throw new phpFastCacheLogicException('Cannot access to the modification date when the "itemDetailedDate" configuration is disabled.'); |
131 | 131 | } |
132 | 132 | } |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | if($this->driver->getConfig()['itemDetailedDate']){ |
142 | 142 | $this->modificationDate = $date; |
143 | 143 | return $this; |
144 | - }else{ |
|
144 | + } else{ |
|
145 | 145 | throw new phpFastCacheLogicException('Cannot access to the modification date when the "itemDetailedDate" configuration is disabled.'); |
146 | 146 | } |
147 | 147 | } |
@@ -77,7 +77,7 @@ |
||
77 | 77 | foreach (array_unique($tagNames) as $tagName) { |
78 | 78 | if(is_string($tagName)){ |
79 | 79 | $items = array_merge($items, $this->getItemsByTag($tagName)); |
80 | - }else{ |
|
80 | + } else{ |
|
81 | 81 | throw new phpFastCacheInvalidArgumentException('$tagName must be a a string'); |
82 | 82 | } |
83 | 83 | } |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | * been really upserted |
107 | 107 | */ |
108 | 108 | return $result instanceof Cassandra\Rows; |
109 | - }catch(\Cassandra\Exception\InvalidArgumentException $e){ |
|
109 | + } catch(\Cassandra\Exception\InvalidArgumentException $e){ |
|
110 | 110 | throw new phpFastCacheInvalidArgumentException($e, 0, $e); |
111 | 111 | } |
112 | 112 | } else { |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | |
135 | 135 | if($results instanceof Cassandra\Rows && $results->count() === 1){ |
136 | 136 | return $this->decode($results->first()['cache_data']); |
137 | - }else{ |
|
137 | + } else{ |
|
138 | 138 | return null; |
139 | 139 | } |
140 | 140 | } catch (Cassandra\Exception $e) { |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | if(!empty($this->config['ssl']['enabled'])){ |
220 | 220 | if(!empty($this->config['ssl']['verify'])){ |
221 | 221 | $sslBuilder = Cassandra::ssl()->withVerifyFlags(Cassandra::VERIFY_PEER_CERT); |
222 | - }else{ |
|
222 | + } else{ |
|
223 | 223 | $sslBuilder = Cassandra::ssl()->withVerifyFlags(Cassandra::VERIFY_NONE); |
224 | 224 | } |
225 | 225 |