Completed
Pull Request — master (#14)
by
unknown
02:09
created
src/Query/Query.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -73,7 +73,9 @@  discard block
 block discarded – undo
73 73
     public function __construct(Client $client, $charset = 'UTF-8') {
74 74
         $this->setClient($client);
75 75
 
76
-        if(ClientManager::get('options.fetch') === IMAP::FT_PEEK) $this->leaveUnread();
76
+        if(ClientManager::get('options.fetch') === IMAP::FT_PEEK) {
77
+            $this->leaveUnread();
78
+        }
77 79
 
78 80
         $this->date_format = ClientManager::get('date_format', 'd M y');
79 81
 
@@ -111,7 +113,9 @@  discard block
 block discarded – undo
111 113
      * @throws MessageSearchValidationException
112 114
      */
113 115
     protected function parse_date($date) {
114
-        if($date instanceof \Carbon\Carbon) return $date;
116
+        if($date instanceof \Carbon\Carbon) {
117
+            return $date;
118
+        }
115 119
 
116 120
         try {
117 121
             $date = Carbon::parse($date);
@@ -286,7 +290,7 @@  discard block
 block discarded – undo
286 290
             } else {
287 291
                 if($statement[1] === null){
288 292
                     $query .= $statement[0];
289
-                }else{
293
+                } else{
290 294
                     $query .= $statement[0].' "'.$statement[1].'"';
291 295
                 }
292 296
             }
@@ -316,7 +320,9 @@  discard block
 block discarded – undo
316 320
      * @return $this
317 321
      */
318 322
     public function limit($limit, $page = 1) {
319
-        if($page >= 1) $this->page = $page;
323
+        if($page >= 1) {
324
+            $this->page = $page;
325
+        }
320 326
         $this->limit = $limit;
321 327
 
322 328
         return $this;
Please login to merge, or discard this patch.