@@ -28,10 +28,10 @@ |
||
| 28 | 28 | |
| 29 | 29 | use ntentan\atiaa\DbContext; |
| 30 | 30 | use ntentan\kaikai\Cache; |
| 31 | +use ntentan\nibii\exceptions\NibiiException; |
|
| 31 | 32 | use ntentan\nibii\interfaces\DriverAdapterFactoryInterface; |
| 32 | 33 | use ntentan\nibii\interfaces\ModelFactoryInterface; |
| 33 | 34 | use ntentan\nibii\interfaces\ValidatorFactoryInterface; |
| 34 | -use ntentan\nibii\exceptions\NibiiException; |
|
| 35 | 35 | use ntentan\panie\exceptions\ResolutionException; |
| 36 | 36 | |
| 37 | 37 | /** |
@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | $this->initialize(); |
| 212 | 212 | |
| 213 | 213 | return $this->context->getCache()->read( |
| 214 | - "{$this->className}::desc", function () { |
|
| 214 | + "{$this->className}::desc", function() { |
|
| 215 | 215 | return $this->context->getModelDescription($this); |
| 216 | 216 | } |
| 217 | 217 | ); |
@@ -446,7 +446,7 @@ discard block |
||
| 446 | 446 | { |
| 447 | 447 | $data = $index ? $this->modelData[$index] : $this->modelData; |
| 448 | 448 | $name = $relationship->getOptions()['name']; |
| 449 | - if(isset($data[$name])) |
|
| 449 | + if (isset($data[$name])) |
|
| 450 | 450 | { |
| 451 | 451 | return $data[$name]; |
| 452 | 452 | } |
@@ -456,7 +456,7 @@ discard block |
||
| 456 | 456 | } |
| 457 | 457 | $query = $relationship->prepareQuery($data); |
| 458 | 458 | |
| 459 | - if($query) { |
|
| 459 | + if ($query) { |
|
| 460 | 460 | $model->fix($query); |
| 461 | 461 | return $model->fetch($query); |
| 462 | 462 | } else { |