Completed
Push — master ( ae5b26...262c7c )
by Evan
10s
created
src/Term/TermQueryBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
         $modelClass = get_class($this->model);
107 107
 
108 108
         return Collection::make($this->fetchTerms())
109
-            ->map(function (WP_Term $term) use ($modelClass) {
109
+            ->map(function(WP_Term $term) use ($modelClass) {
110 110
                 return new $modelClass($term);
111 111
             });
112 112
     }
Please login to merge, or discard this patch.
src/Post/Action/PostSaver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 {
10 10
     public function execute()
11 11
     {
12
-        if (! $this->model->id) {
12
+        if ( ! $this->model->id) {
13 13
             $result = wp_insert_post($this->model->post->to_array(), true);
14 14
         } else {
15 15
             $result = wp_update_post($this->model->post, true);
Please login to merge, or discard this patch.
src/Post/Model.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     public function __construct(WP_Post $post = null)
72 72
     {
73
-        if (! $post) {
73
+        if ( ! $post) {
74 74
             $post = new WP_Post(new stdClass);
75 75
             $post->post_type = static::postTypeId();
76 76
         }
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      */
138 138
     public static function fromGlobal()
139 139
     {
140
-        if (! $GLOBALS['post'] instanceof WP_Post) {
140
+        if ( ! $GLOBALS['post'] instanceof WP_Post) {
141 141
             throw new PostNotFoundException('Global $post not an instance of WP_Post');
142 142
         }
143 143
 
Please login to merge, or discard this patch.
src/Post/PostTypeBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      */
69 69
     public function supports($features)
70 70
     {
71
-        if (! is_array($features)) {
71
+        if ( ! is_array($features)) {
72 72
             $features = func_get_args();
73 73
         }
74 74
 
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
      */
207 207
     protected function labels()
208 208
     {
209
-        if (! $this->labels) {
209
+        if ( ! $this->labels) {
210 210
             $this->labels = new PostTypeLabels;
211 211
         }
212 212
 
Please login to merge, or discard this patch.
src/Post/PostTypeLabels.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
      */
95 95
     protected function merge(LabelsCollection $collection)
96 96
     {
97
-        if (! $this->labels) {
97
+        if ( ! $this->labels) {
98 98
             $this->labels = new Collection;
99 99
         }
100 100
 
Please login to merge, or discard this patch.
src/Support/LabelsCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      */
32 32
     public function replaced()
33 33
     {
34
-        return $this->map(function ($label) {
34
+        return $this->map(function($label) {
35 35
             return $this->replaceWithForm($label);
36 36
         });
37 37
     }
Please login to merge, or discard this patch.