Completed
Push — master ( ae5b26...262c7c )
by Evan
10s
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/Query/Builder.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/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/Post/PostType.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      */
62 62
     public static function load($slug)
63 63
     {
64
-        if (! $object = get_post_type_object($slug)) {
64
+        if ( ! $object = get_post_type_object($slug)) {
65 65
             throw new NonExistentPostTypeException("No post type exists with name '$slug'.");
66 66
         }
67 67
 
@@ -98,12 +98,12 @@  discard block
 block discarded – undo
98 98
      */
99 99
     public function supports($features)
100 100
     {
101
-        if (! is_array($features)) {
101
+        if ( ! is_array($features)) {
102 102
             $features = func_get_args();
103 103
         }
104 104
 
105 105
         return ! collect($features)
106
-            ->contains(function ($key, $feature) {
106
+            ->contains(function($key, $feature) {
107 107
                 return ! post_type_supports($this->slug, $feature);
108 108
             });
109 109
     }
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
     public function removeSupportFor($features)
131 131
     {
132 132
         collect(is_array($features) ? $features : func_get_args())
133
-            ->each(function ($features) {
133
+            ->each(function($features) {
134 134
                 remove_post_type_support($this->slug, $features);
135 135
             });
136 136
 
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      */
145 145
     public function unregister()
146 146
     {
147
-        if (! static::exists($this->slug)) {
147
+        if ( ! static::exists($this->slug)) {
148 148
             throw new NonExistentPostTypeException("No post type exists with name '{$this->slug}'.");
149 149
         }
150 150
 
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     /**
84 84
      * Get the post type object.
85 85
      *
86
-     * @return object
86
+     * @return stdClass
87 87
      */
88 88
     public function object()
89 89
     {
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      * @param string,...|array $features  string - First feature of possible many,
97 97
      *                                    array - Many features to check support for.
98 98
      *
99
-     * @return mixed
99
+     * @return boolean
100 100
      */
101 101
     public function supports($features)
102 102
     {
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/Event/Hook.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      */
122 122
     public function mediateCallback($given = null)
123 123
     {
124
-        if (! $this->shouldInvoke(func_get_args())) {
124
+        if ( ! $this->shouldInvoke(func_get_args())) {
125 125
             return $given;
126 126
         }
127 127
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
          * Check if any of the conditions returns false,
146 146
          * if so, do not invoke.
147 147
          */
148
-        return ! $this->conditions()->contains(function ($key, $callback) use ($arguments) {
148
+        return ! $this->conditions()->contains(function($key, $callback) use ($arguments) {
149 149
             return false === $callback->callArray($arguments);
150 150
         });
151 151
     }
Please login to merge, or discard this patch.
build/sami-config.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@
 block discarded – undo
22 22
 return new Sami($iterator, array(
23 23
     'versions'             => $versions,
24 24
     'title'                => 'Silk API',
25
-    'build_dir'            => __DIR__ . '/../../silk-api-docs/%version%',
26
-    'cache_dir'            => __DIR__ . '/../../silk-api-docs-cache/%version%',
25
+    'build_dir'            => __DIR__.'/../../silk-api-docs/%version%',
26
+    'cache_dir'            => __DIR__.'/../../silk-api-docs-cache/%version%',
27 27
     'remote_repository'    => new GitHubRemoteRepository('aaemnnosttv/silk', $repository_root),
28 28
     'default_opened_level' => 2,
29 29
 ));
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
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     public function postTypes()
104 104
     {
105 105
         return Collection::make($this->object_type)
106
-            ->map(function ($post_type) {
106
+            ->map(function($post_type) {
107 107
                 return PostType::load($post_type);
108 108
             });
109 109
     }
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      */
116 116
     public function unregister()
117 117
     {
118
-        if (! static::exists($this->taxonomy->name)) {
118
+        if ( ! static::exists($this->taxonomy->name)) {
119 119
             throw new Exception\NonExistentTaxonomyException;
120 120
         }
121 121
 
Please login to merge, or discard this patch.