Completed
Push — develop ( c94e79...6dca76 )
by Evan
03:22
created
src/Term/Model.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@
 block discarded – undo
174 174
     public function children()
175 175
     {
176 176
         return Collection::make(get_term_children($this->id, static::TAXONOMY))
177
-             ->map([static::class, 'fromID']);
177
+                ->map([static::class, 'fromID']);
178 178
     }
179 179
 
180 180
     /**
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     {
54 54
         $attributes = is_array($term) ? $term : [];
55 55
 
56
-        if (! $term instanceof WP_Term) {
56
+        if (!$term instanceof WP_Term) {
57 57
             $term = new WP_Term(new stdClass);
58 58
             $term->taxonomy = static::TAXONOMY;
59 59
         } elseif ($term->taxonomy != static::TAXONOMY) {
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      */
90 90
     public static function fromID($id)
91 91
     {
92
-        if (! $term = WP_Term::get_instance($id, static::TAXONOMY)) {
92
+        if (!$term = WP_Term::get_instance($id, static::TAXONOMY)) {
93 93
             throw new TermNotFoundException("No term found with ID $id.");
94 94
         }
95 95
 
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
      */
108 108
     public static function fromSlug($slug)
109 109
     {
110
-        if (! $term = get_term_by('slug', $slug, static::TAXONOMY)) {
110
+        if (!$term = get_term_by('slug', $slug, static::TAXONOMY)) {
111 111
             throw new TermNotFoundException("No term found with slug '$slug'.");
112 112
         }
113 113
 
Please login to merge, or discard this patch.