Passed
Pull Request — master (#413)
by
unknown
03:44
created
src/Picqer/Financials/Exact/Query/Findable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 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.
src/Picqer/Financials/Exact/Model.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
      */
207 207
     public function exists()
208 208
     {
209
-        if (! array_key_exists($this->primaryKey, $this->attributes)) {
209
+        if ( ! array_key_exists($this->primaryKey, $this->attributes)) {
210 210
             return false;
211 211
         }
212 212
 
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
 
232 232
                 $attributes[$attribute] = [];
233 233
                 foreach ($collection as $value) {
234
-                    if (! empty($value->deferred)) {
234
+                    if ( ! empty($value->deferred)) {
235 235
                         $value->attributes = array_merge($value->attributes, $value->deferred);
236 236
                     }
237 237
 
Please login to merge, or discard this patch.
src/Picqer/Financials/Exact/Connection.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -199,12 +199,12 @@  discard block
 block discarded – undo
199 199
         }
200 200
 
201 201
         // If we have a token, sign the request
202
-        if (! $this->needsAuthentication() && ! empty($this->accessToken)) {
202
+        if ( ! $this->needsAuthentication() && ! empty($this->accessToken)) {
203 203
             $headers['Authorization'] = 'Bearer ' . $this->accessToken;
204 204
         }
205 205
 
206 206
         // Create param string
207
-        if (! empty($params)) {
207
+        if ( ! empty($params)) {
208 208
             $endpoint .= '?' . http_build_query($params);
209 209
         }
210 210
 
@@ -512,7 +512,7 @@  discard block
 block discarded – undo
512 512
      */
513 513
     private function getTimestampFromExpiresIn($expiresIn)
514 514
     {
515
-        if (! ctype_digit($expiresIn)) {
515
+        if ( ! ctype_digit($expiresIn)) {
516 516
             throw new \InvalidArgumentException('Function requires a numeric expires value');
517 517
         }
518 518
 
@@ -613,7 +613,7 @@  discard block
 block discarded – undo
613 613
      */
614 614
     private function parseExceptionForErrorMessages(Exception $e)
615 615
     {
616
-        if (! $e instanceof BadResponseException) {
616
+        if ( ! $e instanceof BadResponseException) {
617 617
             throw new ApiException($e->getMessage(), 0, $e);
618 618
         }
619 619
 
@@ -625,7 +625,7 @@  discard block
 block discarded – undo
625 625
         $responseBody = $response->getBody()->getContents();
626 626
         $decodedResponseBody = json_decode($responseBody, true);
627 627
 
628
-        if (! is_null($decodedResponseBody) && isset($decodedResponseBody['error']['message']['value'])) {
628
+        if ( ! is_null($decodedResponseBody) && isset($decodedResponseBody['error']['message']['value'])) {
629 629
             $errorMessage = $decodedResponseBody['error']['message']['value'];
630 630
         } else {
631 631
             $errorMessage = $responseBody;
Please login to merge, or discard this patch.
src/Picqer/Financials/Exact/MailBox.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -32,23 +32,23 @@
 block discarded – undo
32 32
     use Persistance\Storable;
33 33
 
34 34
     protected $fillable = [
35
-      'ID',
36
-      'Account',
37
-      'AccountName',
38
-      'Created',
39
-      'Creator',
40
-      'CreatorFullName',
41
-      'Description',
42
-      'ForDivision',
43
-      'ForDivisionDescription',
44
-      'Mailbox',
45
-      'Modified',
46
-      'Modifier',
47
-      'ModifierFullName',
48
-      'Publish',
49
-      'Type',
50
-      'ValidFrom',
51
-      'ValidTo'
35
+        'ID',
36
+        'Account',
37
+        'AccountName',
38
+        'Created',
39
+        'Creator',
40
+        'CreatorFullName',
41
+        'Description',
42
+        'ForDivision',
43
+        'ForDivisionDescription',
44
+        'Mailbox',
45
+        'Modified',
46
+        'Modifier',
47
+        'ModifierFullName',
48
+        'Publish',
49
+        'Type',
50
+        'ValidFrom',
51
+        'ValidTo'
52 52
     ];
53 53
 
54 54
     protected $url = 'mailbox/Mailboxes';
Please login to merge, or discard this patch.