Passed
Branch master (eafbd3)
by Malte
02:37
created
examples/custom_message_mask.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      * New custom method which can be called through a mask
17 17
      * @return string
18 18
      */
19
-    public function token(){
19
+    public function token() {
20 20
         return implode('-', [$this->message_id, $this->uid, $this->message_no]);
21 21
     }
22 22
 
Please login to merge, or discard this patch.
examples/folder_structure.blade.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@
 block discarded – undo
24 24
     </tr>
25 25
     </thead>
26 26
     <tbody>
27
-    <?php if($paginator->count() > 0): ?>
28
-        <?php foreach($paginator as $oFolder): ?>
27
+    <?php if ($paginator->count() > 0): ?>
28
+        <?php foreach ($paginator as $oFolder): ?>
29 29
                 <tr>
30 30
                     <td><?php echo $oFolder->name; ?></td>
31 31
                     <td><?php echo $oFolder->search()->unseen()->leaveUnread()->setFetchBody(false)->setFetchAttachment(false)->get()->count(); ?></td>
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,8 @@  discard block
 block discarded – undo
31 31
                     <td><?php echo $oFolder->search()->unseen()->leaveUnread()->setFetchBody(false)->setFetchAttachment(false)->get()->count(); ?></td>
32 32
                 </tr>
33 33
         <?php endforeach; ?>
34
-    <?php else: ?>
34
+    <?php else {
35
+    : ?>
35 36
         <tr>
36 37
             <td colspan="4">No folders found</td>
37 38
         </tr>
@@ -39,4 +40,6 @@  discard block
 block discarded – undo
39 40
     </tbody>
40 41
 </table>
41 42
 
42
-<?php echo $paginator->links(); ?>
43 43
\ No newline at end of file
44
+<?php echo $paginator->links();
45
+}
46
+?>
44 47
\ No newline at end of file
Please login to merge, or discard this patch.
examples/custom_attachment_mask.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      * New custom method which can be called through a mask
17 17
      * @return string
18 18
      */
19
-    public function token(){
19
+    public function token() {
20 20
         return implode('-', [$this->id, $this->getMessage()->getUid(), $this->name]);
21 21
     }
22 22
 
Please login to merge, or discard this patch.
examples/message_table.blade.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@
 block discarded – undo
27 27
     </tr>
28 28
     </thead>
29 29
     <tbody>
30
-    <?php if($paginator->count() > 0): ?>
31
-    <?php foreach($paginator as $oMessage): ?>
30
+    <?php if ($paginator->count() > 0): ?>
31
+    <?php foreach ($paginator as $oMessage): ?>
32 32
     <tr>
33 33
         <td><?php echo $oMessage->getUid(); ?></td>
34 34
         <td><?php echo $oMessage->getSubject(); ?></td>
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,11 +36,14 @@
 block discarded – undo
36 36
         <td><?php echo $oMessage->getAttachments()->count() > 0 ? 'yes' : 'no'; ?></td>
37 37
     </tr>
38 38
     <?php endforeach; ?>
39
-    <?php else: ?>
39
+    <?php else {
40
+    : ?>
40 41
     <tr>
41 42
         <td colspan="4">No messages found</td>
42 43
     </tr>
43
-    <?php endif; ?>
44
+    <?php endif;
45
+}
46
+?>
44 47
     </tbody>
45 48
 </table>
46 49
 
Please login to merge, or discard this patch.
src/Folder.php 2 patches
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 
126 126
         $this->setDelimiter($delimiter);
127 127
         $this->path      = $folder_name;
128
-        $this->full_name  = $this->decodeName($folder_name);
128
+        $this->full_name = $this->decodeName($folder_name);
129 129
         $this->name      = $this->getSimpleName($this->delimiter, $this->full_name);
130 130
 
131 131
         $this->parseAttributes($attributes);
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      * @return WhereQuery
139 139
      * @throws Exceptions\ConnectionFailedException
140 140
      */
141
-    public function query($charset = 'UTF-8'){
141
+    public function query($charset = 'UTF-8') {
142 142
         $this->getClient()->checkConnection();
143 143
         $this->getClient()->openFolder($this->path);
144 144
 
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
      * @inheritdoc self::query($charset = 'UTF-8')
150 150
      * @throws Exceptions\ConnectionFailedException
151 151
      */
152
-    public function search($charset = 'UTF-8'){
152
+    public function search($charset = 'UTF-8') {
153 153
         return $this->query($charset);
154 154
     }
155 155
 
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
      * @inheritdoc self::query($charset = 'UTF-8')
158 158
      * @throws Exceptions\ConnectionFailedException
159 159
      */
160
-    public function messages($charset = 'UTF-8'){
160
+    public function messages($charset = 'UTF-8') {
161 161
         return $this->query($charset);
162 162
     }
163 163
 
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
     public function move($new_name, $expunge = true) {
238 238
         $this->client->checkConnection();
239 239
         $status = $this->client->getConnection()->renameFolder($this->full_name, $new_name);
240
-        if($expunge) $this->client->expunge();
240
+        if ($expunge) $this->client->expunge();
241 241
 
242 242
         $folder = $this->client->getFolder($new_name);
243 243
         $event = $this->getEvent("folder", "moved");
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
          */
266 266
 
267 267
         if ($internal_date != null) {
268
-            if ($internal_date instanceof Carbon){
268
+            if ($internal_date instanceof Carbon) {
269 269
                 $internal_date = $internal_date->format('d-M-Y H:i:s O');
270 270
             }
271 271
         }
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
      */
301 301
     public function delete($expunge = true) {
302 302
         $status = $this->client->getConnection()->deleteFolder($this->path);
303
-        if($expunge) $this->client->expunge();
303
+        if ($expunge) $this->client->expunge();
304 304
 
305 305
         $event = $this->getEvent("folder", "deleted");
306 306
         $event::dispatch($this);
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
             try {
358 358
                 $line = $connection->nextLine();
359 359
                 if (($pos = strpos($line, "EXISTS")) !== false) {
360
-                    $msgn = (int) substr($line, 2, $pos -2);
360
+                    $msgn = (int) substr($line, 2, $pos - 2);
361 361
                     $connection->done();
362 362
 
363 363
                     $message = $this->query()->getMessage($msgn);
@@ -368,10 +368,10 @@  discard block
 block discarded – undo
368 368
 
369 369
                     $connection->idle();
370 370
                 }
371
-            }catch (Exceptions\RuntimeException $e) {
372
-                if(strpos($e->getMessage(), "connection closed") === false) {
371
+            } catch (Exceptions\RuntimeException $e) {
372
+                if (strpos($e->getMessage(), "connection closed") === false) {
373 373
                     throw $e;
374
-                }else{
374
+                }else {
375 375
                     $this->client->connect();
376 376
                     $this->client->openFolder($this->path);
377 377
                     $connection = $this->client->getConnection();
@@ -416,8 +416,8 @@  discard block
 block discarded – undo
416 416
     /**
417 417
      * @param $delimiter
418 418
      */
419
-    public function setDelimiter($delimiter){
420
-        if(in_array($delimiter, [null, '', ' ', false]) === true) {
419
+    public function setDelimiter($delimiter) {
420
+        if (in_array($delimiter, [null, '', ' ', false]) === true) {
421 421
             $delimiter = ClientManager::get('options.delimiter', '/');
422 422
         }
423 423
 
Please login to merge, or discard this patch.
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -237,7 +237,9 @@  discard block
 block discarded – undo
237 237
     public function move($new_name, $expunge = true) {
238 238
         $this->client->checkConnection();
239 239
         $status = $this->client->getConnection()->renameFolder($this->full_name, $new_name);
240
-        if($expunge) $this->client->expunge();
240
+        if($expunge) {
241
+            $this->client->expunge();
242
+        }
241 243
 
242 244
         $folder = $this->client->getFolder($new_name);
243 245
         $event = $this->getEvent("folder", "moved");
@@ -300,7 +302,9 @@  discard block
 block discarded – undo
300 302
      */
301 303
     public function delete($expunge = true) {
302 304
         $status = $this->client->getConnection()->deleteFolder($this->path);
303
-        if($expunge) $this->client->expunge();
305
+        if($expunge) {
306
+            $this->client->expunge();
307
+        }
304 308
 
305 309
         $event = $this->getEvent("folder", "deleted");
306 310
         $event::dispatch($this);
@@ -368,10 +372,10 @@  discard block
 block discarded – undo
368 372
 
369 373
                     $connection->idle();
370 374
                 }
371
-            }catch (Exceptions\RuntimeException $e) {
375
+            } catch (Exceptions\RuntimeException $e) {
372 376
                 if(strpos($e->getMessage(), "connection closed") === false) {
373 377
                     throw $e;
374
-                }else{
378
+                } else{
375 379
                     $this->client->connect();
376 380
                     $this->client->openFolder($this->path);
377 381
                     $connection = $this->client->getConnection();
Please login to merge, or discard this patch.
src/Message.php 2 patches
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     public function __construct($msgn, $msglist, Client $client, $fetch_options = null, $fetch_body = false, $fetch_flags = false) {
179 179
 
180 180
         $default_mask = $client->getDefaultMessageMask();
181
-        if($default_mask != null) {
181
+        if ($default_mask != null) {
182 182
             $this->mask = $default_mask;
183 183
         }
184 184
         $this->events["message"] = $client->getDefaultEvents("message");
@@ -223,13 +223,13 @@  discard block
 block discarded – undo
223 223
      * @throws MethodNotFoundException
224 224
      */
225 225
     public function __call($method, $arguments) {
226
-        if(strtolower(substr($method, 0, 3)) === 'get') {
226
+        if (strtolower(substr($method, 0, 3)) === 'get') {
227 227
             $name = Str::snake(substr($method, 3));
228 228
             return $this->get($name);
229 229
         }elseif (strtolower(substr($method, 0, 3)) === 'set') {
230 230
             $name = Str::snake(substr($method, 3));
231 231
 
232
-            if(in_array($name, array_keys($this->attributes))) {
232
+            if (in_array($name, array_keys($this->attributes))) {
233 233
                 $this->attributes[$name] = array_pop($arguments);
234 234
 
235 235
                 return $this->attributes[$name];
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
      * @return mixed|null
268 268
      */
269 269
     public function get($name) {
270
-        if(isset($this->attributes[$name])) {
270
+        if (isset($this->attributes[$name])) {
271 271
             return $this->attributes[$name];
272 272
         }
273 273
 
@@ -349,8 +349,8 @@  discard block
 block discarded – undo
349 349
         $flags = $this->client->getConnection()->flags([$this->msgn]);
350 350
 
351 351
         if (isset($flags[$this->msgn])) {
352
-            foreach($flags[$this->msgn] as $flag) {
353
-                if (strpos($flag, "\\") === 0){
352
+            foreach ($flags[$this->msgn] as $flag) {
353
+                if (strpos($flag, "\\") === 0) {
354 354
                     $flag = substr($flag, 1);
355 355
                 }
356 356
                 $flag_key = strtolower($flag);
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
             } elseif ($part->ifdisposition == 1 && strtolower($part->disposition) == 'attachment') {
450 450
                 $this->fetchAttachment($part);
451 451
             }
452
-        } else {
452
+        }else {
453 453
             $this->fetchAttachment($part);
454 454
         }
455 455
     }
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
         if ($oAttachment->getName() !== null) {
469 469
             if ($oAttachment->getId() !== null) {
470 470
                 $this->attachments->put($oAttachment->getId(), $oAttachment);
471
-            } else {
471
+            }else {
472 472
                 $this->attachments->push($oAttachment);
473 473
             }
474 474
         }
@@ -590,7 +590,7 @@  discard block
 block discarded – undo
590 590
 
591 591
         if (function_exists('iconv') && $from != 'UTF-7' && $to != 'UTF-7') {
592 592
             return @iconv($from, $to.'//IGNORE', $str);
593
-        } else {
593
+        }else {
594 594
             if (!$from) {
595 595
                 return mb_convert_encoding($str, $to);
596 596
             }
@@ -612,9 +612,9 @@  discard block
 block discarded – undo
612 612
                     return EncodingAliases::get($parameter->value);
613 613
                 }
614 614
             }
615
-        }elseif (property_exists($structure, 'charset')){
615
+        }elseif (property_exists($structure, 'charset')) {
616 616
             return EncodingAliases::get($structure->charset);
617
-        }elseif (is_string($structure) === true){
617
+        }elseif (is_string($structure) === true) {
618 618
             return mb_detect_encoding($structure);
619 619
         }
620 620
 
@@ -628,7 +628,7 @@  discard block
 block discarded – undo
628 628
      * @throws Exceptions\ConnectionFailedException
629 629
      * @throws Exceptions\FolderFetchingException
630 630
      */
631
-    public function getFolder(){
631
+    public function getFolder() {
632 632
         return $this->client->getFolder($this->folder_path);
633 633
     }
634 634
 
@@ -705,7 +705,7 @@  discard block
 block discarded – undo
705 705
      */
706 706
     public function delete($expunge = true) {
707 707
         $status = $this->setFlag("Deleted");
708
-        if($expunge) $this->client->expunge();
708
+        if ($expunge) $this->client->expunge();
709 709
 
710 710
         $event = $this->getEvent("message", "deleted");
711 711
         $event::dispatch($this);
@@ -724,7 +724,7 @@  discard block
 block discarded – undo
724 724
      */
725 725
     public function restore($expunge = true) {
726 726
         $status = $this->unsetFlag("Deleted");
727
-        if($expunge) $this->client->expunge();
727
+        if ($expunge) $this->client->expunge();
728 728
 
729 729
         $event = $this->getEvent("message", "restored");
730 730
         $event::dispatch($this);
@@ -859,7 +859,7 @@  discard block
 block discarded – undo
859 859
     /**
860 860
      * @return object|null
861 861
      */
862
-    public function getStructure(){
862
+    public function getStructure() {
863 863
         return $this->structure;
864 864
     }
865 865
 
@@ -885,7 +885,7 @@  discard block
 block discarded – undo
885 885
     /**
886 886
      * @return array
887 887
      */
888
-    public function getAttributes(){
888
+    public function getAttributes() {
889 889
         return $this->attributes;
890 890
     }
891 891
 
@@ -893,8 +893,8 @@  discard block
 block discarded – undo
893 893
      * @param $mask
894 894
      * @return $this
895 895
      */
896
-    public function setMask($mask){
897
-        if(class_exists($mask)){
896
+    public function setMask($mask) {
897
+        if (class_exists($mask)) {
898 898
             $this->mask = $mask;
899 899
         }
900 900
 
@@ -904,7 +904,7 @@  discard block
 block discarded – undo
904 904
     /**
905 905
      * @return string
906 906
      */
907
-    public function getMask(){
907
+    public function getMask() {
908 908
         return $this->mask;
909 909
     }
910 910
 
@@ -915,9 +915,9 @@  discard block
 block discarded – undo
915 915
      * @return mixed
916 916
      * @throws MaskNotFoundException
917 917
      */
918
-    public function mask($mask = null){
918
+    public function mask($mask = null) {
919 919
         $mask = $mask !== null ? $mask : $this->mask;
920
-        if(class_exists($mask)){
920
+        if (class_exists($mask)) {
921 921
             return new $mask($this);
922 922
         }
923 923
 
Please login to merge, or discard this patch.
Braces   +9 added lines, -5 removed lines patch added patch discarded remove patch
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
         if(strtolower(substr($method, 0, 3)) === 'get') {
227 227
             $name = Str::snake(substr($method, 3));
228 228
             return $this->get($name);
229
-        }elseif (strtolower(substr($method, 0, 3)) === 'set') {
229
+        } elseif (strtolower(substr($method, 0, 3)) === 'set') {
230 230
             $name = Str::snake(substr($method, 3));
231 231
 
232 232
             if(in_array($name, array_keys($this->attributes))) {
@@ -612,9 +612,9 @@  discard block
 block discarded – undo
612 612
                     return EncodingAliases::get($parameter->value);
613 613
                 }
614 614
             }
615
-        }elseif (property_exists($structure, 'charset')){
615
+        } elseif (property_exists($structure, 'charset')){
616 616
             return EncodingAliases::get($structure->charset);
617
-        }elseif (is_string($structure) === true){
617
+        } elseif (is_string($structure) === true){
618 618
             return mb_detect_encoding($structure);
619 619
         }
620 620
 
@@ -705,7 +705,9 @@  discard block
 block discarded – undo
705 705
      */
706 706
     public function delete($expunge = true) {
707 707
         $status = $this->setFlag("Deleted");
708
-        if($expunge) $this->client->expunge();
708
+        if($expunge) {
709
+            $this->client->expunge();
710
+        }
709 711
 
710 712
         $event = $this->getEvent("message", "deleted");
711 713
         $event::dispatch($this);
@@ -724,7 +726,9 @@  discard block
 block discarded – undo
724 726
      */
725 727
     public function restore($expunge = true) {
726 728
         $status = $this->unsetFlag("Deleted");
727
-        if($expunge) $this->client->expunge();
729
+        if($expunge) {
730
+            $this->client->expunge();
731
+        }
728 732
 
729 733
         $event = $this->getEvent("message", "restored");
730 734
         $event::dispatch($this);
Please login to merge, or discard this patch.
src/Support/Masks/MessageMask.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      * Get the message html body
30 30
      * @return null
31 31
      */
32
-    public function getHtmlBody(){
32
+    public function getHtmlBody() {
33 33
         $bodies = $this->parent->getBodies();
34 34
         if (!isset($bodies['html'])) {
35 35
             return null;
@@ -46,15 +46,15 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function getCustomHTMLBody($callback = false) {
48 48
         $body = $this->getHtmlBody();
49
-        if($body === null) return null;
49
+        if ($body === null) return null;
50 50
 
51 51
         if ($callback !== false) {
52 52
             $aAttachment = $this->parent->getAttachments();
53 53
             $aAttachment->each(function($oAttachment) use(&$body, $callback) {
54 54
                 /** @var Attachment $oAttachment */
55
-                if(is_callable($callback)) {
55
+                if (is_callable($callback)) {
56 56
                     $body = $callback($body, $oAttachment);
57
-                }elseif(is_string($callback)) {
57
+                }elseif (is_string($callback)) {
58 58
                     call_user_func($callback, [$body, $oAttachment]);
59 59
                 }
60 60
             });
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      * @return string|null
71 71
      */
72 72
     public function getHTMLBodyWithEmbeddedBase64Images() {
73
-        return $this->getCustomHTMLBody(function($body, $oAttachment){
73
+        return $this->getCustomHTMLBody(function($body, $oAttachment) {
74 74
             /** @var \Webklex\PHPIMAP\Attachment $oAttachment */
75 75
             if ($oAttachment->id && $oAttachment->getImgSrc() != null) {
76 76
                 $body = str_replace('cid:'.$oAttachment->id, $oAttachment->getImgSrc(), $body);
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,9 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function getCustomHTMLBody($callback = false) {
48 48
         $body = $this->getHtmlBody();
49
-        if($body === null) return null;
49
+        if($body === null) {
50
+            return null;
51
+        }
50 52
 
51 53
         if ($callback !== false) {
52 54
             $aAttachment = $this->parent->getAttachments();
@@ -54,7 +56,7 @@  discard block
 block discarded – undo
54 56
                 /** @var Attachment $oAttachment */
55 57
                 if(is_callable($callback)) {
56 58
                     $body = $callback($body, $oAttachment);
57
-                }elseif(is_string($callback)) {
59
+                } elseif(is_string($callback)) {
58 60
                     call_user_func($callback, [$body, $oAttachment]);
59 61
                 }
60 62
             });
Please login to merge, or discard this patch.
src/Support/Masks/Mask.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     public function __construct($parent) {
40 40
         $this->parent = $parent;
41 41
 
42
-        if(method_exists($this->parent, 'getAttributes')){
42
+        if (method_exists($this->parent, 'getAttributes')) {
43 43
             $this->attributes = array_merge($this->attributes, $this->parent->getAttributes());
44 44
         }
45 45
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     /**
50 50
      * Boot method made to be used by any custom mask
51 51
      */
52
-    protected function boot(){}
52
+    protected function boot() {}
53 53
 
54 54
     /**
55 55
      * Call dynamic attribute setter and getter methods and inherit the parent calls
@@ -60,17 +60,17 @@  discard block
 block discarded – undo
60 60
      * @throws MethodNotFoundException
61 61
      */
62 62
     public function __call($method, $arguments) {
63
-        if(strtolower(substr($method, 0, 3)) === 'get') {
63
+        if (strtolower(substr($method, 0, 3)) === 'get') {
64 64
             $name = Str::snake(substr($method, 3));
65 65
 
66
-            if(isset($this->attributes[$name])) {
66
+            if (isset($this->attributes[$name])) {
67 67
                 return $this->attributes[$name];
68 68
             }
69 69
 
70 70
         }elseif (strtolower(substr($method, 0, 3)) === 'set') {
71 71
             $name = Str::snake(substr($method, 3));
72 72
 
73
-            if(isset($this->attributes[$name])) {
73
+            if (isset($this->attributes[$name])) {
74 74
                 $this->attributes[$name] = array_pop($arguments);
75 75
 
76 76
                 return $this->attributes[$name];
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
         }
80 80
 
81
-        if(method_exists($this->parent, $method) === true){
81
+        if (method_exists($this->parent, $method) === true) {
82 82
             return call_user_func_array([$this->parent, $method], $arguments);
83 83
         }
84 84
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      * @return mixed|null
104 104
      */
105 105
     public function __get($name) {
106
-        if(isset($this->attributes[$name])) {
106
+        if (isset($this->attributes[$name])) {
107 107
             return $this->attributes[$name];
108 108
         }
109 109
 
@@ -113,14 +113,14 @@  discard block
 block discarded – undo
113 113
     /**
114 114
      * @return mixed
115 115
      */
116
-    public function getParent(){
116
+    public function getParent() {
117 117
         return $this->parent;
118 118
     }
119 119
 
120 120
     /**
121 121
      * @return array
122 122
      */
123
-    public function getAttributes(){
123
+    public function getAttributes() {
124 124
         return $this->attributes;
125 125
     }
126 126
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
                 return $this->attributes[$name];
68 68
             }
69 69
 
70
-        }elseif (strtolower(substr($method, 0, 3)) === 'set') {
70
+        } elseif (strtolower(substr($method, 0, 3)) === 'set') {
71 71
             $name = Str::snake(substr($method, 3));
72 72
 
73 73
             if(isset($this->attributes[$name])) {
Please login to merge, or discard this patch.
src/Support/PaginatedCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
      * @return int|null
70 70
      */
71 71
     public function total($total = null) {
72
-        if($total === null) {
72
+        if ($total === null) {
73 73
             return $this->total;
74 74
         }
75 75
 
Please login to merge, or discard this patch.