@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | */ |
| 21 | 21 | public function __construct($object) |
| 22 | 22 | { |
| 23 | - if (! is_object($object) || ! in_array(get_class($object), ['stdClass', 'WP_Post_Type'])) { |
|
| 23 | + if (!is_object($object) || !in_array(get_class($object), ['stdClass', 'WP_Post_Type'])) { |
|
| 24 | 24 | throw new \InvalidArgumentException(static::class . ' can only be constructed with a Post Type object.'); |
| 25 | 25 | } |
| 26 | 26 | |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | */ |
| 56 | 56 | public static function load($slug) |
| 57 | 57 | { |
| 58 | - if (! $object = get_post_type_object($slug)) { |
|
| 58 | + if (!$object = get_post_type_object($slug)) { |
|
| 59 | 59 | throw new NonExistentPostTypeException("No post type exists with name '$slug'."); |
| 60 | 60 | } |
| 61 | 61 | |
@@ -84,13 +84,13 @@ discard block |
||
| 84 | 84 | */ |
| 85 | 85 | public function supports($features) |
| 86 | 86 | { |
| 87 | - if (! is_array($features)) { |
|
| 87 | + if (!is_array($features)) { |
|
| 88 | 88 | $features = func_get_args(); |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | - return ! Collection::make($features) |
|
| 92 | - ->contains(function ($key, $feature) { |
|
| 93 | - return ! post_type_supports($this->slug, $feature); |
|
| 91 | + return !Collection::make($features) |
|
| 92 | + ->contains(function($key, $feature) { |
|
| 93 | + return !post_type_supports($this->slug, $feature); |
|
| 94 | 94 | }); |
| 95 | 95 | } |
| 96 | 96 | |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | public function removeSupportFor($features) |
| 117 | 117 | { |
| 118 | 118 | Collection::make(is_array($features) ? $features : func_get_args()) |
| 119 | - ->each(function ($features) { |
|
| 119 | + ->each(function($features) { |
|
| 120 | 120 | remove_post_type_support($this->slug, $features); |
| 121 | 121 | }); |
| 122 | 122 | |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | */ |
| 131 | 131 | public function unregister() |
| 132 | 132 | { |
| 133 | - if (! static::exists($this->slug)) { |
|
| 133 | + if (!static::exists($this->slug)) { |
|
| 134 | 134 | throw new NonExistentPostTypeException("No post type exists with name '{$this->slug}'."); |
| 135 | 135 | } |
| 136 | 136 | |