@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | { |
| 73 | 73 | if(isset($this->config[$optionName])){ |
| 74 | 74 | return $this->config[$optionName]; |
| 75 | - }else{ |
|
| 75 | + } else{ |
|
| 76 | 76 | return null; |
| 77 | 77 | } |
| 78 | 78 | } |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | * reuse it else set a new Date |
| 150 | 150 | */ |
| 151 | 151 | $wrap[ self::DRIVER_CDATE_WRAPPER_INDEX ] = $item->getCreationDate() ?: new \DateTime(); |
| 152 | - }else{ |
|
| 152 | + } else{ |
|
| 153 | 153 | $wrap[ self::DRIVER_MDATE_WRAPPER_INDEX ] = null; |
| 154 | 154 | $wrap[ self::DRIVER_CDATE_WRAPPER_INDEX ] = null; |
| 155 | 155 | } |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | |
| 51 | 51 | if($keyHashFunction){ |
| 52 | 52 | return $keyHashFunction($this->getKey()); |
| 53 | - }else{ |
|
| 53 | + } else{ |
|
| 54 | 54 | return md5($this->getKey()); |
| 55 | 55 | } |
| 56 | 56 | } |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | { |
| 97 | 97 | if($this->driver->getConfig()['itemDetailedDate']){ |
| 98 | 98 | return $this->creationDate; |
| 99 | - }else{ |
|
| 99 | + } else{ |
|
| 100 | 100 | throw new \LogicException('Cannot access to the creation date when the "itemDetailedDate" configuration is disabled.'); |
| 101 | 101 | } |
| 102 | 102 | } |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | if($this->driver->getConfig()['itemDetailedDate']){ |
| 112 | 112 | $this->creationDate = $date; |
| 113 | 113 | return $this; |
| 114 | - }else{ |
|
| 114 | + } else{ |
|
| 115 | 115 | throw new \LogicException('Cannot access to the creation date when the "itemDetailedDate" configuration is disabled.'); |
| 116 | 116 | } |
| 117 | 117 | } |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | { |
| 125 | 125 | if($this->driver->getConfig()['itemDetailedDate']){ |
| 126 | 126 | return $this->modificationDate; |
| 127 | - }else{ |
|
| 127 | + } else{ |
|
| 128 | 128 | throw new \LogicException('Cannot access to the modification date when the "itemDetailedDate" configuration is disabled.'); |
| 129 | 129 | } |
| 130 | 130 | } |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | if($this->driver->getConfig()['itemDetailedDate']){ |
| 140 | 140 | $this->modificationDate = $date; |
| 141 | 141 | return $this; |
| 142 | - }else{ |
|
| 142 | + } else{ |
|
| 143 | 143 | throw new \LogicException('Cannot access to the modification date when the "itemDetailedDate" configuration is disabled.'); |
| 144 | 144 | } |
| 145 | 145 | } |