Passed
Push — master ( 04b043...334ee0 )
by Paul
04:11
created
plugin/Defaults/SiteReviewsFormDefaults.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -6,28 +6,28 @@
 block discarded – undo
6 6
 
7 7
 class SiteReviewsFormDefaults extends Defaults
8 8
 {
9
-    /**
10
-     * @var array
11
-     */
12
-    protected $guarded = [
13
-        'description',
14
-        'title',
15
-    ];
9
+	/**
10
+	 * @var array
11
+	 */
12
+	protected $guarded = [
13
+		'description',
14
+		'title',
15
+	];
16 16
 
17
-    /**
18
-     * @return array
19
-     */
20
-    protected function defaults()
21
-    {
22
-        return [
23
-            'assign_to' => '',
24
-            'category' => '',
25
-            'class' => '',
26
-            'description' => '',
27
-            'excluded' => '',
28
-            'hide' => '',
29
-            'id' => '',
30
-            'title' => '',
31
-        ];
32
-    }
17
+	/**
18
+	 * @return array
19
+	 */
20
+	protected function defaults()
21
+	{
22
+		return [
23
+			'assign_to' => '',
24
+			'category' => '',
25
+			'class' => '',
26
+			'description' => '',
27
+			'excluded' => '',
28
+			'hide' => '',
29
+			'id' => '',
30
+			'title' => '',
31
+		];
32
+	}
33 33
 }
Please login to merge, or discard this patch.
plugin/Defaults/StyleFieldsDefaults.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -6,20 +6,20 @@
 block discarded – undo
6 6
 
7 7
 class StyleFieldsDefaults extends Defaults
8 8
 {
9
-    /**
10
-     * @return array
11
-     */
12
-    protected function defaults()
13
-    {
14
-        return [
15
-            'input' => '',
16
-            'input_checkbox' => '',
17
-            'input_radio' => '',
18
-            'label' => '',
19
-            'label_checkbox' => '',
20
-            'label_radio' => '',
21
-            'select' => '',
22
-            'textarea' => '',
23
-        ];
24
-    }
9
+	/**
10
+	 * @return array
11
+	 */
12
+	protected function defaults()
13
+	{
14
+		return [
15
+			'input' => '',
16
+			'input_checkbox' => '',
17
+			'input_radio' => '',
18
+			'label' => '',
19
+			'label_checkbox' => '',
20
+			'label_radio' => '',
21
+			'select' => '',
22
+			'textarea' => '',
23
+		];
24
+	}
25 25
 }
Please login to merge, or discard this patch.
plugin/Defaults/SlackDefaults.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -6,19 +6,19 @@
 block discarded – undo
6 6
 
7 7
 class SlackDefaults extends Defaults
8 8
 {
9
-    /**
10
-     * @return array
11
-     */
12
-    protected function defaults()
13
-    {
14
-        return [
15
-            'button_text' => __('View Review', 'site-reviews'),
16
-            'button_url' => '',
17
-            'color' => '#665068',
18
-            'fallback' => '',
19
-            'icon_url' => glsr()->url('assets/images/icon.png'),
20
-            'pretext' => '',
21
-            'username' => glsr()->name,
22
-        ];
23
-    }
9
+	/**
10
+	 * @return array
11
+	 */
12
+	protected function defaults()
13
+	{
14
+		return [
15
+			'button_text' => __('View Review', 'site-reviews'),
16
+			'button_url' => '',
17
+			'color' => '#665068',
18
+			'fallback' => '',
19
+			'icon_url' => glsr()->url('assets/images/icon.png'),
20
+			'pretext' => '',
21
+			'username' => glsr()->name,
22
+		];
23
+	}
24 24
 }
Please login to merge, or discard this patch.
plugin/Defaults/BuilderDefaults.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -6,19 +6,19 @@
 block discarded – undo
6 6
 
7 7
 class BuilderDefaults extends Defaults
8 8
 {
9
-    /**
10
-     * @return array
11
-     */
12
-    protected function defaults()
13
-    {
14
-        return [
15
-            'class' => '',
16
-            'id' => '',
17
-            'label' => '',
18
-            'options' => [],
19
-            'text' => '',
20
-            'type' => '',
21
-            'value' => '',
22
-        ];
23
-    }
9
+	/**
10
+	 * @return array
11
+	 */
12
+	protected function defaults()
13
+	{
14
+		return [
15
+			'class' => '',
16
+			'id' => '',
17
+			'label' => '',
18
+			'options' => [],
19
+			'text' => '',
20
+			'type' => '',
21
+			'value' => '',
22
+		];
23
+	}
24 24
 }
Please login to merge, or discard this patch.
plugin/Defaults/PostTypeDefaults.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -6,32 +6,32 @@
 block discarded – undo
6 6
 
7 7
 class PostTypeDefaults extends Defaults
8 8
 {
9
-    /**
10
-     * @return array
11
-     */
12
-    protected function defaults()
13
-    {
14
-        return [
15
-            'columns' => [
16
-                'title' => __('Title', 'site-reviews'),
17
-                'date' => __('Date', 'site-reviews'),
18
-            ],
19
-            'has_archive' => false,
20
-            'hierarchical' => false,
21
-            'labels' => [],
22
-            'menu_icon' => null,
23
-            'menu_name' => '',
24
-            'menu_position' => 25,
25
-            'plural' => '', //Required
26
-            'post_type' => '', //Required
27
-            'public' => false,
28
-            'query_var' => true,
29
-            'rewrite' => ['with_front' => false],
30
-            'show_in_menu' => true,
31
-            'show_ui' => true,
32
-            'single' => '', //Required
33
-            'supports' => ['title', 'editor'],
34
-            'taxonomies' => [],
35
-        ];
36
-    }
9
+	/**
10
+	 * @return array
11
+	 */
12
+	protected function defaults()
13
+	{
14
+		return [
15
+			'columns' => [
16
+				'title' => __('Title', 'site-reviews'),
17
+				'date' => __('Date', 'site-reviews'),
18
+			],
19
+			'has_archive' => false,
20
+			'hierarchical' => false,
21
+			'labels' => [],
22
+			'menu_icon' => null,
23
+			'menu_name' => '',
24
+			'menu_position' => 25,
25
+			'plural' => '', //Required
26
+			'post_type' => '', //Required
27
+			'public' => false,
28
+			'query_var' => true,
29
+			'rewrite' => ['with_front' => false],
30
+			'show_in_menu' => true,
31
+			'show_ui' => true,
32
+			'single' => '', //Required
33
+			'supports' => ['title', 'editor'],
34
+			'taxonomies' => [],
35
+		];
36
+	}
37 37
 }
Please login to merge, or discard this patch.
plugin/Controllers/RestCategoryController.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -11,27 +11,27 @@
 block discarded – undo
11 11
 
12 12
 class RestCategoryController extends RestController
13 13
 {
14
-    public function __construct()
15
-    {
16
-        $this->meta = new WP_REST_Term_Meta_Fields(Application::TAXONOMY);
17
-        $this->namespace = Application::ID.'/v1';
18
-        $this->rest_base = 'categories';
19
-        $this->taxonomy = Application::TAXONOMY;
20
-    }
14
+	public function __construct()
15
+	{
16
+		$this->meta = new WP_REST_Term_Meta_Fields(Application::TAXONOMY);
17
+		$this->namespace = Application::ID.'/v1';
18
+		$this->rest_base = 'categories';
19
+		$this->taxonomy = Application::TAXONOMY;
20
+	}
21 21
 
22
-    /**
23
-     * @return void
24
-     */
25
-    public function register_routes()
26
-    {
27
-        register_rest_route($this->namespace, '/'.$this->rest_base, [
28
-            [
29
-                'args' => $this->get_collection_params(),
30
-                'callback' => [$this, 'get_items'],
31
-                'methods' => Server::READABLE,
32
-                'permission_callback' => [$this, 'get_items_permissions_check'],
33
-            ],
34
-            'schema' => [$this, 'get_public_item_schema'],
35
-        ]);
36
-    }
22
+	/**
23
+	 * @return void
24
+	 */
25
+	public function register_routes()
26
+	{
27
+		register_rest_route($this->namespace, '/'.$this->rest_base, [
28
+			[
29
+				'args' => $this->get_collection_params(),
30
+				'callback' => [$this, 'get_items'],
31
+				'methods' => Server::READABLE,
32
+				'permission_callback' => [$this, 'get_items_permissions_check'],
33
+			],
34
+			'schema' => [$this, 'get_public_item_schema'],
35
+		]);
36
+	}
37 37
 }
Please login to merge, or discard this patch.
plugin/Commands/TogglePinned.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -4,14 +4,14 @@
 block discarded – undo
4 4
 
5 5
 class TogglePinned
6 6
 {
7
-    public $id;
8
-    public $pinned;
7
+	public $id;
8
+	public $pinned;
9 9
 
10
-    public function __construct($input)
11
-    {
12
-        $this->id = $input['id'];
13
-        $this->pinned = isset($input['pinned'])
14
-            ? wp_validate_boolean($input['pinned'])
15
-            : null;
16
-    }
10
+	public function __construct($input)
11
+	{
12
+		$this->id = $input['id'];
13
+		$this->pinned = isset($input['pinned'])
14
+			? wp_validate_boolean($input['pinned'])
15
+			: null;
16
+	}
17 17
 }
Please login to merge, or discard this patch.
plugin/Commands/RegisterWidgets.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -4,10 +4,10 @@
 block discarded – undo
4 4
 
5 5
 class RegisterWidgets
6 6
 {
7
-    public $widgets;
7
+	public $widgets;
8 8
 
9
-    public function __construct($input)
10
-    {
11
-        $this->widgets = $input;
12
-    }
9
+	public function __construct($input)
10
+	{
11
+		$this->widgets = $input;
12
+	}
13 13
 }
Please login to merge, or discard this patch.
plugin/Commands/ChangeStatus.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -4,14 +4,14 @@
 block discarded – undo
4 4
 
5 5
 class ChangeStatus
6 6
 {
7
-    public $id;
8
-    public $status;
7
+	public $id;
8
+	public $status;
9 9
 
10
-    public function __construct($input)
11
-    {
12
-        $this->id = $input['post_id'];
13
-        $this->status = 'approve' == $input['status']
14
-            ? 'publish'
15
-            : 'pending';
16
-    }
10
+	public function __construct($input)
11
+	{
12
+		$this->id = $input['post_id'];
13
+		$this->status = 'approve' == $input['status']
14
+			? 'publish'
15
+			: 'pending';
16
+	}
17 17
 }
Please login to merge, or discard this patch.