Completed
Branch develop (73bc23)
by Evan
02:37
created
src/Term/Model.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/PostType/Builder.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Taxonomy/Builder.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
src/Taxonomy/Taxonomy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.