Completed
Pull Request — master (#234)
by
unknown
02:03
created
src/Picqer/Financials/Exact/Query/Findable.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      *
59 59
      * @return string (guid)
60 60
      */
61
-    public function findId($code, $key='Code')
61
+    public function findId($code, $key = 'Code')
62 62
     {
63 63
         if ($this->isFillable($key)) {
64 64
             $format = ($this->url() == 'crm/Accounts' && $key === 'Code') ? '%18s' : '%s';
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
         $result = $this->connection()->get($this->url(), $request, $headers);
110 110
 
111
-        if (!empty($divisionId)) {
111
+        if ( ! empty($divisionId)) {
112 112
             $this->connection()->setDivision($originalDivision); // Restore division
113 113
         }
114 114
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,8 +64,7 @@
 block discarded – undo
64 64
             $format = ($this->url() == 'crm/Accounts' && $key === 'Code') ? '%18s' : '%s';
65 65
             if (preg_match('/^[\w]{8}-([\w]{4}-){3}[\w]{12}$/', $code)) {
66 66
                 $format = "guid'$format'";
67
-            }
68
-            elseif (is_string($code)) {
67
+            } elseif (is_string($code)) {
69 68
                 $format = "'$format'";
70 69
             }
71 70
 
Please login to merge, or discard this patch.