Passed
Push — master ( 04b043...334ee0 )
by Paul
04:11
created
plugin/Defaults/PostTypeDefaults.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
13 13
     {
14 14
         return [
15 15
             'columns' => [
16
-                'title' => __('Title', 'site-reviews'),
17
-                'date' => __('Date', 'site-reviews'),
16
+                'title' => __( 'Title', 'site-reviews' ),
17
+                'date' => __( 'Date', 'site-reviews' ),
18 18
             ],
19 19
             'has_archive' => false,
20 20
             'hierarchical' => false,
Please login to merge, or discard this patch.
plugin/Controllers/RestCategoryController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 {
14 14
     public function __construct()
15 15
     {
16
-        $this->meta = new WP_REST_Term_Meta_Fields(Application::TAXONOMY);
16
+        $this->meta = new WP_REST_Term_Meta_Fields( Application::TAXONOMY );
17 17
         $this->namespace = Application::ID.'/v1';
18 18
         $this->rest_base = 'categories';
19 19
         $this->taxonomy = Application::TAXONOMY;
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      */
25 25
     public function register_routes()
26 26
     {
27
-        register_rest_route($this->namespace, '/'.$this->rest_base, [
27
+        register_rest_route( $this->namespace, '/'.$this->rest_base, [
28 28
             [
29 29
                 'args' => $this->get_collection_params(),
30 30
                 'callback' => [$this, 'get_items'],
@@ -32,6 +32,6 @@  discard block
 block discarded – undo
32 32
                 'permission_callback' => [$this, 'get_items_permissions_check'],
33 33
             ],
34 34
             'schema' => [$this, 'get_public_item_schema'],
35
-        ]);
35
+        ] );
36 36
     }
37 37
 }
Please login to merge, or discard this patch.
plugin/Controllers/RestReviewController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 {
15 15
     public function __construct()
16 16
     {
17
-        $this->meta = new WP_REST_Post_Meta_Fields(Application::POST_TYPE);
17
+        $this->meta = new WP_REST_Post_Meta_Fields( Application::POST_TYPE );
18 18
         $this->namespace = Application::ID.'/v1';
19 19
         $this->post_type = Application::POST_TYPE;
20 20
         $this->rest_base = 'reviews';
@@ -29,9 +29,9 @@  discard block
 block discarded – undo
29 29
         //  ['callback' => [$this, 'createReview'], 'methods' => Server::CREATABLE],
30 30
         //  ['callback' => [$this, 'getReviews'], 'methods' => Server::READABLE],
31 31
         // ]);
32
-        register_rest_route($this->namespace, '/types', [
32
+        register_rest_route( $this->namespace, '/types', [
33 33
             ['callback' => [$this, 'getReviewTypes'], 'methods' => Server::READABLE],
34
-        ]);
34
+        ] );
35 35
     }
36 36
 
37 37
     /**
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     public function createReview()
41 41
     {
42 42
         $response = [];
43
-        return rest_ensure_response($response);
43
+        return rest_ensure_response( $response );
44 44
     }
45 45
 
46 46
     /**
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     public function getReviews()
50 50
     {
51 51
         $response = [];
52
-        return rest_ensure_response($response);
52
+        return rest_ensure_response( $response );
53 53
     }
54 54
 
55 55
     /**
@@ -58,12 +58,12 @@  discard block
 block discarded – undo
58 58
     public function getReviewTypes()
59 59
     {
60 60
         $response = [];
61
-        foreach (glsr()->reviewTypes as $slug => $name) {
61
+        foreach( glsr()->reviewTypes as $slug => $name ) {
62 62
             $response[] = [
63 63
                 'name' => $name,
64 64
                 'slug' => $slug,
65 65
             ];
66 66
         }
67
-        return rest_ensure_response($response);
67
+        return rest_ensure_response( $response );
68 68
     }
69 69
 }
Please login to merge, or discard this patch.
plugin/Commands/TogglePinned.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,11 +7,11 @@
 block discarded – undo
7 7
     public $id;
8 8
     public $pinned;
9 9
 
10
-    public function __construct($input)
10
+    public function __construct( $input )
11 11
     {
12 12
         $this->id = $input['id'];
13 13
         $this->pinned = isset($input['pinned'])
14
-            ? wp_validate_boolean($input['pinned'])
14
+            ? wp_validate_boolean( $input['pinned'] )
15 15
             : null;
16 16
     }
17 17
 }
Please login to merge, or discard this patch.
plugin/Commands/RegisterWidgets.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 {
7 7
     public $widgets;
8 8
 
9
-    public function __construct($input)
9
+    public function __construct( $input )
10 10
     {
11 11
         $this->widgets = $input;
12 12
     }
Please login to merge, or discard this patch.
plugin/Commands/ChangeStatus.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
     public $id;
8 8
     public $status;
9 9
 
10
-    public function __construct($input)
10
+    public function __construct( $input )
11 11
     {
12 12
         $this->id = $input['post_id'];
13 13
         $this->status = 'approve' == $input['status']
Please login to merge, or discard this patch.
plugin/Commands/RegisterTinymcePopups.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 {
7 7
     public $popups;
8 8
 
9
-    public function __construct($input)
9
+    public function __construct( $input )
10 10
     {
11 11
         $this->popups = $input;
12 12
     }
Please login to merge, or discard this patch.
plugin/Commands/RegisterTaxonomy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 {
7 7
     public $args;
8 8
 
9
-    public function __construct($input)
9
+    public function __construct( $input )
10 10
     {
11 11
         $this->args = $input;
12 12
     }
Please login to merge, or discard this patch.
plugin/Commands/EnqueueAdminAssets.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 {
7 7
     public $pointers;
8 8
 
9
-    public function __construct(array $input)
9
+    public function __construct( array $input )
10 10
     {
11 11
         $this->pointers = $input['pointers'];
12 12
     }
Please login to merge, or discard this patch.