@@ -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 | { |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Silk\PostType; |
| 4 | 4 | |
| 5 | 5 | use Silk\Type\Builder as BaseBuilder; |
| 6 | -use Illuminate\Support\Collection; |
|
| 7 | 6 | use Silk\PostType\Exception\InvalidPostTypeNameException; |
| 8 | 7 | |
| 9 | 8 | class Builder extends BaseBuilder |
@@ -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 | { |
@@ -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 | |