@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | */ |
| 59 | 59 | public function __get($property) |
| 60 | 60 | { |
| 61 | - if (! is_null($aliased = $this->aliasGet($property))) { |
|
| 61 | + if (!is_null($aliased = $this->aliasGet($property))) { |
|
| 62 | 62 | return $aliased; |
| 63 | 63 | } |
| 64 | 64 | |
@@ -74,6 +74,6 @@ discard block |
||
| 74 | 74 | */ |
| 75 | 75 | public function __isset($property) |
| 76 | 76 | { |
| 77 | - return ! is_null($this->__get($property)); |
|
| 77 | + return !is_null($this->__get($property)); |
|
| 78 | 78 | } |
| 79 | 79 | } |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | */ |
| 20 | 20 | public function __construct($object) |
| 21 | 21 | { |
| 22 | - if (! is_object($object) || ! in_array(get_class($object), ['stdClass', 'WP_Post_Type'])) { |
|
| 22 | + if (!is_object($object) || !in_array(get_class($object), ['stdClass', 'WP_Post_Type'])) { |
|
| 23 | 23 | throw new \InvalidArgumentException(static::class . ' can only be constructed with a Post Type object.'); |
| 24 | 24 | } |
| 25 | 25 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | */ |
| 55 | 55 | public static function load($id) |
| 56 | 56 | { |
| 57 | - if (! $object = get_post_type_object($id)) { |
|
| 57 | + if (!$object = get_post_type_object($id)) { |
|
| 58 | 58 | throw new NonExistentPostTypeException("No post type exists with name '$id'."); |
| 59 | 59 | } |
| 60 | 60 | |
@@ -91,13 +91,13 @@ discard block |
||
| 91 | 91 | */ |
| 92 | 92 | public function supports($features) |
| 93 | 93 | { |
| 94 | - if (! is_array($features)) { |
|
| 94 | + if (!is_array($features)) { |
|
| 95 | 95 | $features = func_get_args(); |
| 96 | 96 | } |
| 97 | 97 | |
| 98 | - return ! Collection::make($features) |
|
| 99 | - ->contains(function ($key, $feature) { |
|
| 100 | - return ! post_type_supports($this->id(), $feature); |
|
| 98 | + return !Collection::make($features) |
|
| 99 | + ->contains(function($key, $feature) { |
|
| 100 | + return !post_type_supports($this->id(), $feature); |
|
| 101 | 101 | }); |
| 102 | 102 | } |
| 103 | 103 | |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | public function removeSupportFor($features) |
| 128 | 128 | { |
| 129 | 129 | Collection::make(is_array($features) ? $features : func_get_args()) |
| 130 | - ->each(function ($features) { |
|
| 130 | + ->each(function($features) { |
|
| 131 | 131 | remove_post_type_support($this->id(), $features); |
| 132 | 132 | }); |
| 133 | 133 | |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | { |
| 147 | 147 | $id = $this->id(); |
| 148 | 148 | |
| 149 | - if (! static::exists($id)) { |
|
| 149 | + if (!static::exists($id)) { |
|
| 150 | 150 | throw new NonExistentPostTypeException("No post type exists with name '{$id}'."); |
| 151 | 151 | } |
| 152 | 152 | |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | */ |
| 59 | 59 | public function __get($property) |
| 60 | 60 | { |
| 61 | - if (! is_null($aliased = $this->aliasGet($property))) { |
|
| 61 | + if (!is_null($aliased = $this->aliasGet($property))) { |
|
| 62 | 62 | return $aliased; |
| 63 | 63 | } |
| 64 | 64 | |
@@ -74,6 +74,6 @@ discard block |
||
| 74 | 74 | */ |
| 75 | 75 | public function __isset($property) |
| 76 | 76 | { |
| 77 | - return ! is_null($this->__get($property)); |
|
| 77 | + return !is_null($this->__get($property)); |
|
| 78 | 78 | } |
| 79 | 79 | } |