Completed
Push — dev ( 550cbc...0cdcb9 )
by James Ekow Abaka
24:03
created
src/RecordWrapper.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/QueryOperations.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.