Passed
Push — master ( ae1954...aab291 )
by Paul
08:17 queued 04:15
created
plugin/Defaults/ReviewsDefaults.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -6,23 +6,23 @@
 block discarded – undo
6 6
 
7 7
 class ReviewsDefaults extends Defaults
8 8
 {
9
-    /**
10
-     * @return array
11
-     */
12
-    protected function defaults()
13
-    {
14
-        return [
15
-            'assigned_to' => '',
16
-            'category' => '',
17
-            'count' => 10,
18
-            'offset' => '',
19
-            'order' => 'DESC',
20
-            'orderby' => 'date',
21
-            'pagination' => false,
22
-            'post__in' => [],
23
-            'post__not_in' => [],
24
-            'rating' => '',
25
-            'type' => '',
26
-        ];
27
-    }
9
+	/**
10
+	 * @return array
11
+	 */
12
+	protected function defaults()
13
+	{
14
+		return [
15
+			'assigned_to' => '',
16
+			'category' => '',
17
+			'count' => 10,
18
+			'offset' => '',
19
+			'order' => 'DESC',
20
+			'orderby' => 'date',
21
+			'pagination' => false,
22
+			'post__in' => [],
23
+			'post__not_in' => [],
24
+			'rating' => '',
25
+			'type' => '',
26
+		];
27
+	}
28 28
 }
Please login to merge, or discard this patch.
plugin/Defaults/SiteReviewsSummaryDefaults.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -6,32 +6,32 @@
 block discarded – undo
6 6
 
7 7
 class SiteReviewsSummaryDefaults extends Defaults
8 8
 {
9
-    /**
10
-     * @var array
11
-     */
12
-    protected $guarded = [
13
-        'labels',
14
-        'text',
15
-        'title',
16
-    ];
9
+	/**
10
+	 * @var array
11
+	 */
12
+	protected $guarded = [
13
+		'labels',
14
+		'text',
15
+		'title',
16
+	];
17 17
 
18
-    /**
19
-     * @return array
20
-     */
21
-    protected function defaults()
22
-    {
23
-        return [
24
-            'assigned_to' => '',
25
-            'category' => '',
26
-            'class' => '',
27
-            'hide' => '',
28
-            'id' => '',
29
-            'labels' => '',
30
-            'rating' => 1,
31
-            'schema' => false,
32
-            'text' => '',
33
-            'title' => '',
34
-            'type' => 'local',
35
-        ];
36
-    }
18
+	/**
19
+	 * @return array
20
+	 */
21
+	protected function defaults()
22
+	{
23
+		return [
24
+			'assigned_to' => '',
25
+			'category' => '',
26
+			'class' => '',
27
+			'hide' => '',
28
+			'id' => '',
29
+			'labels' => '',
30
+			'rating' => 1,
31
+			'schema' => false,
32
+			'text' => '',
33
+			'title' => '',
34
+			'type' => 'local',
35
+		];
36
+	}
37 37
 }
Please login to merge, or discard this patch.
plugin/Defaults/ValidationStringsDefaults.php 2 patches
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -6,24 +6,24 @@
 block discarded – undo
6 6
 
7 7
 class ValidationStringsDefaults extends Defaults
8 8
 {
9
-    /**
10
-     * @return array
11
-     */
12
-    protected function defaults()
13
-    {
14
-        return [
15
-            'accepted' => __('This field must be accepted.', 'site-reviews'),
16
-            'between' => __('This field value must be between %s and %s.', 'site-reviews'),
17
-            'betweenlength' => __('This field must have between %s and %s characters.', 'site-reviews'),
18
-            'email' => __('This field requires a valid e-mail address.', 'site-reviews'),
19
-            'errors' => __('Please fix the submission errors.', 'site-reviews'),
20
-            'max' => __('Maximum value for this field is %s.', 'site-reviews'),
21
-            'maxlength' => __('This field allows a maximum of %s characters.', 'site-reviews'),
22
-            'min' => __('Minimum value for this field is %s.', 'site-reviews'),
23
-            'minlength' => __('This field requires a minimum of %s characters.', 'site-reviews'),
24
-            'number' => __('This field requires a number.', 'site-reviews'),
25
-            'required' => __('This field is required.', 'site-reviews'),
26
-            'unsupported' => __('The review could not be submitted (unsupported browser).', 'site-reviews'),
27
-        ];
28
-    }
9
+	/**
10
+	 * @return array
11
+	 */
12
+	protected function defaults()
13
+	{
14
+		return [
15
+			'accepted' => __('This field must be accepted.', 'site-reviews'),
16
+			'between' => __('This field value must be between %s and %s.', 'site-reviews'),
17
+			'betweenlength' => __('This field must have between %s and %s characters.', 'site-reviews'),
18
+			'email' => __('This field requires a valid e-mail address.', 'site-reviews'),
19
+			'errors' => __('Please fix the submission errors.', 'site-reviews'),
20
+			'max' => __('Maximum value for this field is %s.', 'site-reviews'),
21
+			'maxlength' => __('This field allows a maximum of %s characters.', 'site-reviews'),
22
+			'min' => __('Minimum value for this field is %s.', 'site-reviews'),
23
+			'minlength' => __('This field requires a minimum of %s characters.', 'site-reviews'),
24
+			'number' => __('This field requires a number.', 'site-reviews'),
25
+			'required' => __('This field is required.', 'site-reviews'),
26
+			'unsupported' => __('The review could not be submitted (unsupported browser).', 'site-reviews'),
27
+		];
28
+	}
29 29
 }
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -12,18 +12,18 @@
 block discarded – undo
12 12
     protected function defaults()
13 13
     {
14 14
         return [
15
-            'accepted' => __('This field must be accepted.', 'site-reviews'),
16
-            'between' => __('This field value must be between %s and %s.', 'site-reviews'),
17
-            'betweenlength' => __('This field must have between %s and %s characters.', 'site-reviews'),
18
-            'email' => __('This field requires a valid e-mail address.', 'site-reviews'),
19
-            'errors' => __('Please fix the submission errors.', 'site-reviews'),
20
-            'max' => __('Maximum value for this field is %s.', 'site-reviews'),
21
-            'maxlength' => __('This field allows a maximum of %s characters.', 'site-reviews'),
22
-            'min' => __('Minimum value for this field is %s.', 'site-reviews'),
23
-            'minlength' => __('This field requires a minimum of %s characters.', 'site-reviews'),
24
-            'number' => __('This field requires a number.', 'site-reviews'),
25
-            'required' => __('This field is required.', 'site-reviews'),
26
-            'unsupported' => __('The review could not be submitted (unsupported browser).', 'site-reviews'),
15
+            'accepted' => __( 'This field must be accepted.', 'site-reviews' ),
16
+            'between' => __( 'This field value must be between %s and %s.', 'site-reviews' ),
17
+            'betweenlength' => __( 'This field must have between %s and %s characters.', 'site-reviews' ),
18
+            'email' => __( 'This field requires a valid e-mail address.', 'site-reviews' ),
19
+            'errors' => __( 'Please fix the submission errors.', 'site-reviews' ),
20
+            'max' => __( 'Maximum value for this field is %s.', 'site-reviews' ),
21
+            'maxlength' => __( 'This field allows a maximum of %s characters.', 'site-reviews' ),
22
+            'min' => __( 'Minimum value for this field is %s.', 'site-reviews' ),
23
+            'minlength' => __( 'This field requires a minimum of %s characters.', 'site-reviews' ),
24
+            'number' => __( 'This field requires a number.', 'site-reviews' ),
25
+            'required' => __( 'This field is required.', 'site-reviews' ),
26
+            'unsupported' => __( 'The review could not be submitted (unsupported browser).', 'site-reviews' ),
27 27
         ];
28 28
     }
29 29
 }
Please login to merge, or discard this patch.
plugin/Defaults/CreateReviewDefaults.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,13 +18,13 @@
 block discarded – undo
18 18
             'avatar' => '',
19 19
             'content' => '',
20 20
             'custom' => '',
21
-            'date' => current_time('mysql'),
21
+            'date' => current_time( 'mysql' ),
22 22
             'email' => '',
23
-            'ip_address' => glsr(Helper::class)->getIpAddress(),
23
+            'ip_address' => glsr( Helper::class )->getIpAddress(),
24 24
             'pinned' => false,
25 25
             'rating' => '',
26 26
             'response' => '',
27
-            'review_id' => md5(time().mt_rand()),
27
+            'review_id' => md5( time().mt_rand() ),
28 28
             'review_type' => 'local',
29 29
             'title' => '',
30 30
             'url' => '',
Please login to merge, or discard this patch.
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -7,41 +7,41 @@
 block discarded – undo
7 7
 
8 8
 class CreateReviewDefaults extends Defaults
9 9
 {
10
-    /**
11
-     * @var array
12
-     */
13
-    protected $guarded = [
14
-        'assigned_to',
15
-        'content',
16
-        'date',
17
-        'pinned',
18
-        'response',
19
-        'review_id',
20
-        'review_type',
21
-        'title',
22
-    ];
10
+	/**
11
+	 * @var array
12
+	 */
13
+	protected $guarded = [
14
+		'assigned_to',
15
+		'content',
16
+		'date',
17
+		'pinned',
18
+		'response',
19
+		'review_id',
20
+		'review_type',
21
+		'title',
22
+	];
23 23
 
24
-    /**
25
-     * @return array
26
-     */
27
-    protected function defaults()
28
-    {
29
-        return [
30
-            'assigned_to' => '',
31
-            'author' => '',
32
-            'avatar' => '',
33
-            'content' => '',
34
-            'custom' => '',
35
-            'date' => current_time('mysql'),
36
-            'email' => '',
37
-            'ip_address' => glsr(Helper::class)->getIpAddress(),
38
-            'pinned' => false,
39
-            'rating' => '',
40
-            'response' => '',
41
-            'review_id' => md5(time().mt_rand()),
42
-            'review_type' => 'local',
43
-            'title' => '',
44
-            'url' => '',
45
-        ];
46
-    }
24
+	/**
25
+	 * @return array
26
+	 */
27
+	protected function defaults()
28
+	{
29
+		return [
30
+			'assigned_to' => '',
31
+			'author' => '',
32
+			'avatar' => '',
33
+			'content' => '',
34
+			'custom' => '',
35
+			'date' => current_time('mysql'),
36
+			'email' => '',
37
+			'ip_address' => glsr(Helper::class)->getIpAddress(),
38
+			'pinned' => false,
39
+			'rating' => '',
40
+			'response' => '',
41
+			'review_id' => md5(time().mt_rand()),
42
+			'review_type' => 'local',
43
+			'title' => '',
44
+			'url' => '',
45
+		];
46
+	}
47 47
 }
Please login to merge, or discard this patch.
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/ValidateReviewDefaults.php 2 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -7,22 +7,22 @@
 block discarded – undo
7 7
 
8 8
 class ValidateReviewDefaults extends Defaults
9 9
 {
10
-    /**
11
-     * @return array
12
-     */
13
-    protected function defaults()
14
-    {
15
-        return [
16
-            'assign_to' => '',
17
-            'category' => '',
18
-            'content' => '',
19
-            'email' => '',
20
-            'form_id' => '',
21
-            'ip_address' => glsr(Helper::class)->getIpAddress(), // required for Akismet and Blacklist validation
22
-            'name' => '',
23
-            'rating' => '0',
24
-            'terms' => '',
25
-            'title' => '',
26
-        ];
27
-    }
10
+	/**
11
+	 * @return array
12
+	 */
13
+	protected function defaults()
14
+	{
15
+		return [
16
+			'assign_to' => '',
17
+			'category' => '',
18
+			'content' => '',
19
+			'email' => '',
20
+			'form_id' => '',
21
+			'ip_address' => glsr(Helper::class)->getIpAddress(), // required for Akismet and Blacklist validation
22
+			'name' => '',
23
+			'rating' => '0',
24
+			'terms' => '',
25
+			'title' => '',
26
+		];
27
+	}
28 28
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
             'content' => '',
19 19
             'email' => '',
20 20
             'form_id' => '',
21
-            'ip_address' => glsr(Helper::class)->getIpAddress(), // required for Akismet and Blacklist validation
21
+            'ip_address' => glsr( Helper::class )->getIpAddress(), // required for Akismet and Blacklist validation
22 22
             'name' => '',
23 23
             'rating' => '0',
24 24
             'terms' => '',
Please login to merge, or discard this patch.
plugin/Defaults/StyleValidationDefaults.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -6,22 +6,22 @@
 block discarded – undo
6 6
 
7 7
 class StyleValidationDefaults extends Defaults
8 8
 {
9
-    /**
10
-     * @return array
11
-     */
12
-    protected function defaults()
13
-    {
14
-        return [
15
-            'error_tag' => 'div',
16
-            'error_tag_class' => 'glsr-field-error',
17
-            'field_class' => 'glsr-field',
18
-            'field_error_class' => 'glsr-has-error',
19
-            'input_error_class' => 'glsr-is-invalid',
20
-            'message_error_class' => 'glsr-has-errors',
21
-            'message_initial_class' => 'glsr-is-visible',
22
-            'message_success_class' => 'glsr-has-success',
23
-            'message_tag' => 'div',
24
-            'message_tag_class' => 'glsr-form-message',
25
-        ];
26
-    }
9
+	/**
10
+	 * @return array
11
+	 */
12
+	protected function defaults()
13
+	{
14
+		return [
15
+			'error_tag' => 'div',
16
+			'error_tag_class' => 'glsr-field-error',
17
+			'field_class' => 'glsr-field',
18
+			'field_error_class' => 'glsr-has-error',
19
+			'input_error_class' => 'glsr-is-invalid',
20
+			'message_error_class' => 'glsr-has-errors',
21
+			'message_initial_class' => 'glsr-is-visible',
22
+			'message_success_class' => 'glsr-has-success',
23
+			'message_tag' => 'div',
24
+			'message_tag_class' => 'glsr-form-message',
25
+		];
26
+	}
27 27
 }
Please login to merge, or discard this patch.
plugin/Defaults/SlackDefaults.php 2 patches
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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,11 +12,11 @@
 block discarded – undo
12 12
     protected function defaults()
13 13
     {
14 14
         return [
15
-            'button_text' => __('View Review', 'site-reviews'),
15
+            'button_text' => __( 'View Review', 'site-reviews' ),
16 16
             'button_url' => '',
17 17
             'color' => '#665068',
18 18
             'fallback' => '',
19
-            'icon_url' => glsr()->url('assets/images/icon.png'),
19
+            'icon_url' => glsr()->url( 'assets/images/icon.png' ),
20 20
             'pretext' => '',
21 21
             'username' => glsr()->name,
22 22
         ];
Please login to merge, or discard this patch.