Completed
Push — master ( ca910a...8ffcad )
by Evan
02:52
created
src/Post/Model.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
      *
153 153
      * If trash is disabled, the post or page is permanently deleted.
154 154
      *
155
-     * @return false|array|WP_Post|null Post data array, otherwise false.
155
+     * @return Model Post data array, otherwise false.
156 156
      */
157 157
     public function trash()
158 158
     {
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
     /**
167 167
      * Restore a post or page from the Trash
168 168
      *
169
-     * @return WP_Post|false WP_Post object. False on failure.
169
+     * @return Model WP_Post object. False on failure.
170 170
      */
171 171
     public function untrash()
172 172
     {
Please login to merge, or discard this patch.
src/Support/Shortcode.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,10 +47,10 @@
 block discarded – undo
47 47
     }
48 48
 
49 49
     /**
50
-    * Render the shortcode to string
51
-    *
52
-    * @return string
53
-    */
50
+     * Render the shortcode to string
51
+     *
52
+     * @return string
53
+     */
54 54
     public function render()
55 55
     {
56 56
         $dedicated_method = "{$this->tag}_handler";
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
      */
70 70
     protected function handler()
71 71
     {
72
-        return '';  // Override this in a sub-class
72
+        return ''; // Override this in a sub-class
73 73
     }
74 74
 
75 75
     /**
Please login to merge, or discard this patch.
src/Query/Builder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
         $modelClass = $this->model ? get_class($this->model) : Post::class;
74 74
 
75 75
         return Collection::make($this->query->get_posts())
76
-            ->map(function ($post) use ($modelClass) {
76
+            ->map(function($post) use ($modelClass) {
77 77
                 return new $modelClass($post);
78 78
             });
79 79
     }
Please login to merge, or discard this patch.