Completed
Push — develop ( d77dc3...4e0099 )
by Evan
02:28
created
src/Term/QueryBuilder.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
     /**
114 114
      * Set an arbitrary query parameter.
115 115
      *
116
-     * @param $parameter
116
+     * @param string $parameter
117 117
      * @param $value
118 118
      *
119 119
      * @return $this
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
     {
99 99
         if ($this->model) {
100 100
             $this->set('taxonomy', $this->model->taxonomy)
101
-                 ->set('fields', 'all');
101
+                    ->set('fields', 'all');
102 102
         } elseif ($this->taxonomy) {
103 103
             $this->set('taxonomy', $this->taxonomy);
104 104
         }
Please login to merge, or discard this patch.
src/Post/QueryBuilder.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
     {
124 124
         if ($this->model) {
125 125
             $this->set('post_type', $this->model->post_type)
126
-                 ->set('fields', ''); // as WP_Post objects
126
+                    ->set('fields', ''); // as WP_Post objects
127 127
         }
128 128
 
129 129
         return $this->query->get_posts();
Please login to merge, or discard this patch.
src/Query/Builder.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,9 +54,9 @@
 block discarded – undo
54 54
         $modelClass = get_class($this->model);
55 55
 
56 56
         return Collection::make($this->query())
57
-                         ->map(function ($result) use ($modelClass) {
58
-                             return new $modelClass($result);
59
-                         });
57
+                            ->map(function ($result) use ($modelClass) {
58
+                                return new $modelClass($result);
59
+                            });
60 60
     }
61 61
 
62 62
     /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         $modelClass = get_class($this->model);
55 55
 
56 56
         return Collection::make($this->query())
57
-                         ->map(function ($result) use ($modelClass) {
57
+                         ->map(function($result) use ($modelClass) {
58 58
                              return new $modelClass($result);
59 59
                          });
60 60
     }
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      */
93 93
     public function __get($property)
94 94
     {
95
-        if (in_array($property, ['query','model'])) {
95
+        if (in_array($property, ['query', 'model'])) {
96 96
             return $this->$property;
97 97
         }
98 98
 
Please login to merge, or discard this patch.