@@ -106,7 +106,7 @@ |
||
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 | } |
@@ -9,7 +9,7 @@ |
||
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); |
@@ -70,7 +70,7 @@ discard block |
||
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 |
||
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 |
@@ -68,7 +68,7 @@ discard block |
||
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 |
||
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 |
@@ -94,7 +94,7 @@ |
||
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 |
@@ -31,7 +31,7 @@ |
||
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 | } |