Completed
Push — master ( a8d3eb...b61cd2 )
by Zhmayev
02:08 queued 42s
created
src/Entities.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     public function findOneByID($moduleName, $entityID, array $select = [ ])
63 63
     {
64 64
         $entityID = $this->wsClient->modules->getTypedID($moduleName, $entityID);
65
-        $record = $this->wsClient->invokeOperation('retrieve', ['id' => $entityID], 'GET');
65
+        $record = $this->wsClient->invokeOperation('retrieve', [ 'id' => $entityID ], 'GET');
66 66
         if (!is_array($record))
67 67
             return null;
68 68
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             return null;
101 101
         }
102 102
 
103
-        $record = $records[0];
103
+        $record = $records[ 0 ];
104 104
         return (!is_array($record) || !isset($record[ 'id' ]) || empty($record[ 'id' ]))
105 105
             ? null
106 106
             : $record[ 'id' ];
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,8 +63,9 @@
 block discarded – undo
63 63
     {
64 64
         $entityID = $this->wsClient->modules->getTypedID($moduleName, $entityID);
65 65
         $record = $this->wsClient->invokeOperation('retrieve', ['id' => $entityID], 'GET');
66
-        if (!is_array($record))
67
-            return null;
66
+        if (!is_array($record)) {
67
+                    return null;
68
+        }
68 69
 
69 70
         return (empty($select))
70 71
             ? $record
Please login to merge, or discard this patch.