@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | { |
| 129 | 129 | $arguments = func_get_args(); |
| 130 | 130 | |
| 131 | - if (! $this->shouldInvoke($arguments)) { |
|
| 131 | + if (!$this->shouldInvoke($arguments)) { |
|
| 132 | 132 | return $given; |
| 133 | 133 | } |
| 134 | 134 | |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | * Check if any of the conditions returns false, |
| 157 | 157 | * if so, do not invoke. |
| 158 | 158 | */ |
| 159 | - return ! $this->conditions()->contains(function ($callback) use ($arguments) { |
|
| 159 | + return !$this->conditions()->contains(function($callback) use ($arguments) { |
|
| 160 | 160 | return false === $callback->callArray($arguments); |
| 161 | 161 | }); |
| 162 | 162 | } |
@@ -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($id) |
| 57 | 57 | { |
| 58 | - if (! $object = get_post_type_object($id)) { |
|
| 58 | + if (!$object = get_post_type_object($id)) { |
|
| 59 | 59 | throw new NonExistentPostTypeException("No post type exists with name '$id'."); |
| 60 | 60 | } |
| 61 | 61 | |
@@ -105,13 +105,13 @@ discard block |
||
| 105 | 105 | */ |
| 106 | 106 | public function supports($features) |
| 107 | 107 | { |
| 108 | - if (! is_array($features)) { |
|
| 108 | + if (!is_array($features)) { |
|
| 109 | 109 | $features = func_get_args(); |
| 110 | 110 | } |
| 111 | 111 | |
| 112 | - return ! Collection::make($features) |
|
| 113 | - ->contains(function ($feature) { |
|
| 114 | - return ! post_type_supports($this->id(), $feature); |
|
| 112 | + return !Collection::make($features) |
|
| 113 | + ->contains(function($feature) { |
|
| 114 | + return !post_type_supports($this->id(), $feature); |
|
| 115 | 115 | }); |
| 116 | 116 | } |
| 117 | 117 | |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | public function removeSupportFor($features) |
| 142 | 142 | { |
| 143 | 143 | Collection::make(is_array($features) ? $features : func_get_args()) |
| 144 | - ->each(function ($features) { |
|
| 144 | + ->each(function($features) { |
|
| 145 | 145 | remove_post_type_support($this->id(), $features); |
| 146 | 146 | }); |
| 147 | 147 | |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | { |
| 161 | 161 | $id = $this->id(); |
| 162 | 162 | |
| 163 | - if (! static::exists($id)) { |
|
| 163 | + if (!static::exists($id)) { |
|
| 164 | 164 | throw new NonExistentPostTypeException("No post type exists with name '{$id}'."); |
| 165 | 165 | } |
| 166 | 166 | |