Completed
Branch develop (1ed5a2)
by Evan
03:01
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/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/Event/Hook.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@
 block discarded – undo
194 194
     /**
195 195
      * Set the priority the callback should be registered with.
196 196
      *
197
-     * @param  mixed $priority  The callback priority
197
+     * @param  integer $priority  The callback priority
198 198
      *
199 199
      * @return $this
200 200
      */
Please login to merge, or discard this 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.
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.
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/Term/Model.php 2 patches
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.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function __construct(WP_Term $term = null)
48 48
     {
49
-        if (! $term) {
49
+        if ( ! $term) {
50 50
             $term = new WP_Term(new stdClass);
51 51
             $term->taxonomy = static::TAXONOMY;
52 52
         } elseif ($term->taxonomy != static::TAXONOMY) {
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      */
78 78
     public static function fromID($id)
79 79
     {
80
-        if (! $term = get_term_by('id', (int) $id, static::TAXONOMY)) {
80
+        if ( ! $term = get_term_by('id', (int) $id, static::TAXONOMY)) {
81 81
             throw new TermNotFoundException("No term found with ID $id.");
82 82
         }
83 83
 
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      */
94 94
     public static function fromSlug($slug)
95 95
     {
96
-        if (! $term = get_term_by('slug', $slug, static::TAXONOMY)) {
96
+        if ( ! $term = get_term_by('slug', $slug, static::TAXONOMY)) {
97 97
             throw new TermNotFoundException("No term found with slug '$slug'.");
98 98
         }
99 99
 
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
     public function ancestors()
220 220
     {
221 221
         return Collection::make(get_ancestors($this->id, static::TAXONOMY, 'taxonomy'))
222
-            ->map(function ($term_ID) {
222
+            ->map(function($term_ID) {
223 223
                 return static::fromID($term_ID);
224 224
             });
225 225
     }
Please login to merge, or discard this patch.
src/Post/Action/PostSaver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 {
10 10
     public function execute()
11 11
     {
12
-        if (! $this->model->id) {
12
+        if ( ! $this->model->id) {
13 13
             $result = wp_insert_post($this->model->post->to_array(), true);
14 14
         } else {
15 15
             $result = wp_update_post($this->model->post, true);
Please login to merge, or discard this patch.
src/Post/Model.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     public function __construct(WP_Post $post = null)
72 72
     {
73
-        if (! $post) {
73
+        if ( ! $post) {
74 74
             $post = new WP_Post(new stdClass);
75 75
             $post->post_type = static::postTypeId();
76 76
         }
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      */
138 138
     public static function fromGlobal()
139 139
     {
140
-        if (! $GLOBALS['post'] instanceof WP_Post) {
140
+        if ( ! $GLOBALS['post'] instanceof WP_Post) {
141 141
             throw new PostNotFoundException('Global $post not an instance of WP_Post');
142 142
         }
143 143
 
Please login to merge, or discard this patch.