Completed
Push — master ( ed9f5f...162e0f )
by Evan
8s
created
src/Post/Model.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 use Silk\Query\Builder;
10 10
 use Silk\Query\QueryBuilder;
11 11
 use Silk\Database\ActiveRecord;
12
-use Silk\Exception\WP_ErrorException;
13 12
 use Silk\Post\Exception\PostNotFoundException;
14 13
 use Silk\Post\Exception\ModelPostTypeMismatchException;
15 14
 
Please login to merge, or discard this 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/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.