Completed
Push — master ( 93ecd0...ca61aa )
by Evan
08:39
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/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.
src/Taxonomy/Builder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
      */
68 68
     public function register()
69 69
     {
70
-        if (! $this->id || strlen($this->id) > 32) {
70
+        if (!$this->id || strlen($this->id) > 32) {
71 71
             throw new InvalidTaxonomyNameException('Taxonomy names must be between 1 and 32 characters in length.');
72 72
         }
73 73
 
Please login to merge, or discard this patch.
src/Post/ClassNameAsPostType.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
          * Adapted from Str::snake()
50 50
          * @link https://github.com/laravel/framework/blob/5.2/src/Illuminate/Support/Str.php
51 51
          */
52
-        if (! ctype_lower($name)) {
52
+        if (!ctype_lower($name)) {
53 53
             $name = strtolower(preg_replace('/(.)(?=[A-Z])/u', '$1_', $name));
54 54
         }
55 55
 
Please login to merge, or discard this patch.
src/PostType/Builder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function supports($features)
45 45
     {
46
-        if (! is_array($features)) {
46
+        if (!is_array($features)) {
47 47
             $features = func_get_args();
48 48
         }
49 49
 
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      */
98 98
     public function register()
99 99
     {
100
-        if (! $this->id || strlen($this->id) > 20) {
100
+        if (!$this->id || strlen($this->id) > 20) {
101 101
             throw new InvalidPostTypeNameException('Post type names must be between 1 and 20 characters in length.');
102 102
         }
103 103
 
Please login to merge, or discard this patch.
src/Event/Hook.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     {
129 129
         $arguments = func_get_args();
130 130
 
131
-        if (! $this->shouldInvoke($arguments)) {
131
+        if (!$this->shouldInvoke($arguments)) {
132 132
             return $given;
133 133
         }
134 134
 
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
          * Check if any of the conditions returns false,
157 157
          * if so, do not invoke.
158 158
          */
159
-        return ! $this->conditions()->contains(function ($key, $callback) use ($arguments) {
159
+        return !$this->conditions()->contains(function($key, $callback) use ($arguments) {
160 160
             return false === $callback->callArray($arguments);
161 161
         });
162 162
     }
Please login to merge, or discard this patch.