Completed
Push — develop ( 649688...f0c054 )
by Evan
02:33
created
src/functions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 use Silk\Hook;
4 4
 
5
-if (! function_exists('on')) :
5
+if (!function_exists('on')) :
6 6
     /**
7 7
      * Create and set a new event listener
8 8
      *
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     }
20 20
 endif;
21 21
 
22
-if (! function_exists('off')) :
22
+if (!function_exists('off')) :
23 23
     /**
24 24
      * Remove an event listener
25 25
      *
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
             return $removed;
36 36
         }
37 37
 
38
-        return on($handle, function ($given = null) use ($handle, $callback, $priority) {
38
+        return on($handle, function($given = null) use ($handle, $callback, $priority) {
39 39
             remove_filter($handle, $callback, $priority);
40 40
             return $given;
41 41
         })->withPriority($priority - 1);
Please login to merge, or discard this patch.
src/Support/Shortcode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
      */
70 70
     protected function handler()
71 71
     {
72
-        return '';  // Override this in a sub-class
72
+        return ''; // Override this in a sub-class
73 73
     }
74 74
 
75 75
     /**
Please login to merge, or discard this patch.
src/Meta/ObjectMeta.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
      */
50 50
     public function collect()
51 51
     {
52
-        return Collection::make($this->toArray())->map(function ($value, $key) {
52
+        return Collection::make($this->toArray())->map(function($value, $key) {
53 53
             return new Meta($this->type, $this->id, $key);
54 54
         });
55 55
     }
Please login to merge, or discard this patch.
src/Type/Labels.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      */
32 32
     public function replaced()
33 33
     {
34
-        return $this->map(function ($label) {
34
+        return $this->map(function($label) {
35 35
             return $this->replaceWithForm($label);
36 36
         });
37 37
     }
Please login to merge, or discard this patch.
src/Post/QueryBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
         $modelClass = $this->model ? get_class($this->model) : Post::class;
74 74
 
75 75
         return Collection::make($this->query->get_posts())
76
-            ->map(function ($post) use ($modelClass) {
76
+            ->map(function($post) use ($modelClass) {
77 77
                 return new $modelClass($post);
78 78
             });
79 79
     }
Please login to merge, or discard this patch.
src/Term/QueryBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
         $modelClass = get_class($this->model);
107 107
 
108 108
         return Collection::make($this->fetchTerms())
109
-            ->map(function (WP_Term $term) use ($modelClass) {
109
+            ->map(function(WP_Term $term) use ($modelClass) {
110 110
                 return new $modelClass($term);
111 111
             });
112 112
     }
Please login to merge, or discard this patch.
src/Type/Model.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,10 +44,10 @@
 block discarded – undo
44 44
     abstract public static function typeId();
45 45
 
46 46
     /**
47
-    * Get a new query builder for the model.
48
-    *
49
-    * @return \Silk\Contracts\BuildsQueries
50
-    */
47
+     * Get a new query builder for the model.
48
+     *
49
+     * @return \Silk\Contracts\BuildsQueries
50
+     */
51 51
     abstract public function newQuery();
52 52
 
53 53
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -193,7 +193,7 @@
 block discarded – undo
193 193
      */
194 194
     public function __isset($property)
195 195
     {
196
-        return ! is_null($this->__get($property));
196
+        return !is_null($this->__get($property));
197 197
     }
198 198
 
199 199
     /**
Please login to merge, or discard this patch.
src/Type/Type.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
             return $this->object->$property;
51 51
         }
52 52
 
53
-        if (! array_key_exists($property, $this->objectAliases)) {
53
+        if (!array_key_exists($property, $this->objectAliases)) {
54 54
             return null;
55 55
         }
56 56
 
@@ -66,6 +66,6 @@  discard block
 block discarded – undo
66 66
      */
67 67
     public function __isset($property)
68 68
     {
69
-        return ! is_null($this->__get($property));
69
+        return !is_null($this->__get($property));
70 70
     }
71 71
 }
Please login to merge, or discard this patch.
src/Type/Builder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
      */
107 107
     protected function labels()
108 108
     {
109
-        if (! $this->labels) {
109
+        if (!$this->labels) {
110 110
             $this->labels = Labels::make(
111 111
                 $this->labelDefaults
112 112
             )->merge($this->args->get('labels', []));
Please login to merge, or discard this patch.