@@ -26,7 +26,6 @@ |
||
| 26 | 26 | |
| 27 | 27 | namespace ntentan\nibii; |
| 28 | 28 | |
| 29 | -use mysql_xdevapi\Exception; |
|
| 30 | 29 | use ntentan\nibii\exceptions\NibiiException; |
| 31 | 30 | use ntentan\utils\Text; |
| 32 | 31 | |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | $this->initialize(); |
| 201 | 201 | |
| 202 | 202 | return $this->context->getCache()->read( |
| 203 | - "{$this->className}::desc", function () { |
|
| 203 | + "{$this->className}::desc", function() { |
|
| 204 | 204 | return $this->context->getModelDescription($this); |
| 205 | 205 | } |
| 206 | 206 | ); |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | */ |
| 238 | 238 | private function retrieveItem($key) |
| 239 | 239 | { |
| 240 | - if($this->hasMultipleItems()) { |
|
| 240 | + if ($this->hasMultipleItems()) { |
|
| 241 | 241 | throw new NibiiException("Current model object state contains multiple items. Please index with a numeric key to select a specific item first."); |
| 242 | 242 | } |
| 243 | 243 | $relationships = $this->getDescription()->getRelationships(); |
@@ -116,7 +116,7 @@ |
||
| 116 | 116 | { |
| 117 | 117 | $parameters = $this->buildFetchQueryParameters($query); |
| 118 | 118 | $data = $this->adapter->select($parameters); |
| 119 | - if(empty($data)) { |
|
| 119 | + if (empty($data)) { |
|
| 120 | 120 | return null; |
| 121 | 121 | } else { |
| 122 | 122 | $this->wrapper->setData($data); |