| @@ -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 | |