@@ -42,7 +42,7 @@ |
||
| 42 | 42 | /** |
| 43 | 43 | * Model Constructor. |
| 44 | 44 | * |
| 45 | - * @param mixed $term WP_Term to fill data from |
|
| 45 | + * @param null|WP_Term $term WP_Term to fill data from |
|
| 46 | 46 | */ |
| 47 | 47 | public function __construct(WP_Term $term = null) |
| 48 | 48 | { |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Silk\Taxonomy\Taxonomy; |
| 6 | 6 | use Silk\Type\Builder as TypeBuilder; |
| 7 | 7 | use Silk\Exception\WP_ErrorException; |
| 8 | -use Illuminate\Support\Collection; |
|
| 9 | 8 | |
| 10 | 9 | class Builder extends TypeBuilder |
| 11 | 10 | { |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | */ |
| 75 | 75 | public function supports($features) |
| 76 | 76 | { |
| 77 | - if (! is_array($features)) { |
|
| 77 | + if ( ! is_array($features)) { |
|
| 78 | 78 | $features = func_get_args(); |
| 79 | 79 | } |
| 80 | 80 | |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | public function postTypes() |
| 111 | 111 | { |
| 112 | 112 | return Collection::make($this->object_type) |
| 113 | - ->map(function ($post_type) { |
|
| 113 | + ->map(function($post_type) { |
|
| 114 | 114 | return PostType::load($post_type); |
| 115 | 115 | }); |
| 116 | 116 | } |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | */ |
| 126 | 126 | public function unregister() |
| 127 | 127 | { |
| 128 | - if (! $this->exists($this->id)) { |
|
| 128 | + if ( ! $this->exists($this->id)) { |
|
| 129 | 129 | throw new Exception\NonExistentTaxonomyException; |
| 130 | 130 | } |
| 131 | 131 | |