@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | */ |
| 39 | 39 | public function __construct(WP_Post $post = null) |
| 40 | 40 | { |
| 41 | - if (! $post) { |
|
| 41 | + if ( ! $post) { |
|
| 42 | 42 | $post = new WP_Post(new stdClass); |
| 43 | 43 | $post->post_type = static::POST_TYPE; |
| 44 | 44 | } |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | 'posts_per_page' => 1 |
| 91 | 91 | ]); |
| 92 | 92 | |
| 93 | - if (! $post = reset($posts)) { |
|
| 93 | + if ( ! $post = reset($posts)) { |
|
| 94 | 94 | throw new PostNotFoundException("No post found with slug {$slug}"); |
| 95 | 95 | } |
| 96 | 96 | |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | { |
| 107 | 107 | $post = get_post(); |
| 108 | 108 | |
| 109 | - if (! $post instanceof WP_Post) { |
|
| 109 | + if ( ! $post instanceof WP_Post) { |
|
| 110 | 110 | throw new PostNotFoundException('Global $post not an instance of WP_Post'); |
| 111 | 111 | } |
| 112 | 112 | |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | */ |
| 215 | 215 | public function save() |
| 216 | 216 | { |
| 217 | - if (! $this->id) { |
|
| 217 | + if ( ! $this->id) { |
|
| 218 | 218 | $result = wp_insert_post($this->post->to_array(), true); |
| 219 | 219 | } else { |
| 220 | 220 | $result = wp_update_post($this->post, true); |