@@ -69,7 +69,7 @@  | 
                                                    ||
| 69 | 69 | */  | 
                                                        
| 70 | 70 | protected function handler()  | 
                                                        
| 71 | 71 |      { | 
                                                        
| 72 | - return ''; // Override this in a sub-class  | 
                                                        |
| 72 | + return ''; // Override this in a sub-class  | 
                                                        |
| 73 | 73 | }  | 
                                                        
| 74 | 74 | |
| 75 | 75 | /**  | 
                                                        
@@ -49,7 +49,7 @@  | 
                                                    ||
| 49 | 49 | */  | 
                                                        
| 50 | 50 | public function collect()  | 
                                                        
| 51 | 51 |      { | 
                                                        
| 52 | -        return Collection::make($this->toArray())->map(function ($value, $key) { | 
                                                        |
| 52 | +        return Collection::make($this->toArray())->map(function($value, $key) { | 
                                                        |
| 53 | 53 | return new Meta($this->type, $this->id, $key);  | 
                                                        
| 54 | 54 | });  | 
                                                        
| 55 | 55 | }  | 
                                                        
@@ -106,7 +106,7 @@  | 
                                                    ||
| 106 | 106 | */  | 
                                                        
| 107 | 107 | protected function labels()  | 
                                                        
| 108 | 108 |      { | 
                                                        
| 109 | -        if (! $this->labels) { | 
                                                        |
| 109 | +        if (!$this->labels) { | 
                                                        |
| 110 | 110 | $this->labels = Labels::make(  | 
                                                        
| 111 | 111 | $this->labelDefaults  | 
                                                        
| 112 | 112 |              )->merge($this->args->get('labels', [])); | 
                                                        
@@ -67,7 +67,7 @@  | 
                                                    ||
| 67 | 67 | */  | 
                                                        
| 68 | 68 | public function register()  | 
                                                        
| 69 | 69 |      { | 
                                                        
| 70 | -        if (! $this->id || strlen($this->id) > 32) { | 
                                                        |
| 70 | +        if (!$this->id || strlen($this->id) > 32) { | 
                                                        |
| 71 | 71 |              throw new InvalidTaxonomyNameException('Taxonomy names must be between 1 and 32 characters in length.'); | 
                                                        
| 72 | 72 | }  | 
                                                        
| 73 | 73 | |
@@ -49,7 +49,7 @@  | 
                                                    ||
| 49 | 49 | * Adapted from Str::snake()  | 
                                                        
| 50 | 50 | * @link https://github.com/laravel/framework/blob/5.2/src/Illuminate/Support/Str.php  | 
                                                        
| 51 | 51 | */  | 
                                                        
| 52 | -        if (! ctype_lower($name)) { | 
                                                        |
| 52 | +        if (!ctype_lower($name)) { | 
                                                        |
| 53 | 53 |              $name = strtolower(preg_replace('/(.)(?=[A-Z])/u', '$1_', $name)); | 
                                                        
| 54 | 54 | }  | 
                                                        
| 55 | 55 | |
@@ -43,7 +43,7 @@ discard block  | 
                                                    ||
| 43 | 43 | */  | 
                                                        
| 44 | 44 | public function supports($features)  | 
                                                        
| 45 | 45 |      { | 
                                                        
| 46 | -        if (! is_array($features)) { | 
                                                        |
| 46 | +        if (!is_array($features)) { | 
                                                        |
| 47 | 47 | $features = func_get_args();  | 
                                                        
| 48 | 48 | }  | 
                                                        
| 49 | 49 | |
@@ -97,7 +97,7 @@ discard block  | 
                                                    ||
| 97 | 97 | */  | 
                                                        
| 98 | 98 | public function register()  | 
                                                        
| 99 | 99 |      { | 
                                                        
| 100 | -        if (! $this->id || strlen($this->id) > 20) { | 
                                                        |
| 100 | +        if (!$this->id || strlen($this->id) > 20) { | 
                                                        |
| 101 | 101 |              throw new InvalidPostTypeNameException('Post type names must be between 1 and 20 characters in length.'); | 
                                                        
| 102 | 102 | }  | 
                                                        
| 103 | 103 | |
@@ -21,7 +21,7 @@  | 
                                                    ||
| 21 | 21 | */  | 
                                                        
| 22 | 22 | public function __construct(WP_User_Query $query = null)  | 
                                                        
| 23 | 23 |      { | 
                                                        
| 24 | -        if (! $query) { | 
                                                        |
| 24 | +        if (!$query) { | 
                                                        |
| 25 | 25 | $query = new WP_User_Query();  | 
                                                        
| 26 | 26 | }  | 
                                                        
| 27 | 27 | |
@@ -69,7 +69,7 @@ discard block  | 
                                                    ||
| 69 | 69 |      { | 
                                                        
| 70 | 70 | $attributes = is_array($post) ? $post : [];  | 
                                                        
| 71 | 71 | |
| 72 | -        if (! $post instanceof WP_Post) { | 
                                                        |
| 72 | +        if (!$post instanceof WP_Post) { | 
                                                        |
| 73 | 73 | $post = new WP_Post(new stdClass);  | 
                                                        
| 74 | 74 | $post->post_type = static::postTypeId();  | 
                                                        
| 75 | 75 |          } elseif ($post->post_type !== static::postTypeId()) { | 
                                                        
@@ -141,7 +141,7 @@ discard block  | 
                                                    ||
| 141 | 141 | */  | 
                                                        
| 142 | 142 | public static function fromGlobal()  | 
                                                        
| 143 | 143 |      { | 
                                                        
| 144 | -        if (! $GLOBALS['post'] instanceof WP_Post) { | 
                                                        |
| 144 | +        if (!$GLOBALS['post'] instanceof WP_Post) { | 
                                                        |
| 145 | 145 |              throw new PostNotFoundException('Global $post not an instance of WP_Post'); | 
                                                        
| 146 | 146 | }  | 
                                                        
| 147 | 147 | |
@@ -228,7 +228,7 @@ discard block  | 
                                                    ||
| 228 | 228 | */  | 
                                                        
| 229 | 229 | public function save()  | 
                                                        
| 230 | 230 |      { | 
                                                        
| 231 | -        if (! $this->id) { | 
                                                        |
| 231 | +        if (!$this->id) { | 
                                                        |
| 232 | 232 | $result = wp_insert_post($this->object->to_array(), true);  | 
                                                        
| 233 | 233 |          } else { | 
                                                        
| 234 | 234 | $result = wp_update_post($this->object, true);  | 
                                                        
@@ -17,7 +17,7 @@  | 
                                                    ||
| 17 | 17 |      { | 
                                                        
| 18 | 18 | $aliased = $this->getAliasedObject();  | 
                                                        
| 19 | 19 | |
| 20 | -        if (is_object($aliased) || ! empty(static::OBJECT_TYPE)) { | 
                                                        |
| 20 | +        if (is_object($aliased) || !empty(static::OBJECT_TYPE)) { | 
                                                        |
| 21 | 21 | /**  | 
                                                        
| 22 | 22 | * Automatically alias shorthand syntax for type_name  | 
                                                        
| 23 | 23 | * Eg: 'post_content' is aliased to 'content'  |