Passed
Push — master ( bf19af...715537 )
by Paul
04:51
created
plugin/Shortcodes/SiteReviewsButton.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -13,15 +13,15 @@  discard block
 block discarded – undo
13 13
 	public function fields()
14 14
 	{
15 15
 		return [[
16
-			'html' => sprintf( '<p class="strong">%s</p>', esc_html__( 'All settings are optional.', 'site-reviews' )),
16
+			'html' => sprintf( '<p class="strong">%s</p>', esc_html__( 'All settings are optional.', 'site-reviews' ) ),
17 17
 			'minWidth' => 320,
18 18
 			'type' => 'container',
19
-		],[
19
+		], [
20 20
 			'label' => esc_html__( 'Title', 'site-reviews' ),
21 21
 			'name' => 'title',
22 22
 			'tooltip' => esc_attr__( 'Enter a custom shortcode heading.', 'site-reviews' ),
23 23
 			'type' => 'textbox',
24
-		],[
24
+		], [
25 25
 			'label' => esc_html__( 'Count', 'site-reviews' ),
26 26
 			'maxLength' => 5,
27 27
 			'name' => 'count',
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 			'text' => '10',
30 30
 			'tooltip' => esc_attr__( 'How many reviews would you like to display (default: 10)?', 'site-reviews' ),
31 31
 			'type' => 'textbox',
32
-		],[
32
+		], [
33 33
 			'label' => esc_html__( 'Rating', 'site-reviews' ),
34 34
 			'name' => 'rating',
35 35
 			'options' => [
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 			],
42 42
 			'tooltip' => esc_attr__( 'What is the minimum rating to display (default: 1 star)?', 'site-reviews' ),
43 43
 			'type' => 'listbox',
44
-		],[
44
+		], [
45 45
 			'label' => esc_html__( 'Pagination', 'site-reviews' ),
46 46
 			'name' => 'pagination',
47 47
 			'options' => [
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 			'name' => 'assigned_to',
60 60
 			'tooltip' => esc_attr__( 'Limit reviews to those assigned to this post ID (separate multiple IDs with a comma). You can also enter "post_id" to use the ID of the current page.', 'site-reviews' ),
61 61
 			'type' => 'textbox',
62
-		],[
62
+		], [
63 63
 			'label' => esc_html__( 'Schema', 'site-reviews' ),
64 64
 			'name' => 'schema',
65 65
 			'options' => [
@@ -68,49 +68,49 @@  discard block
 block discarded – undo
68 68
 			],
69 69
 			'tooltip' => esc_attr__( 'Rich snippets are disabled by default.', 'site-reviews' ),
70 70
 			'type' => 'listbox',
71
-		],[
71
+		], [
72 72
 			'label' => esc_html__( 'Classes', 'site-reviews' ),
73 73
 			'name' => 'class',
74 74
 			'tooltip' => esc_attr__( 'Add custom CSS classes to the shortcode.', 'site-reviews' ),
75 75
 			'type' => 'textbox',
76
-		],[
76
+		], [
77 77
 			'columns' => 2,
78 78
 			'items' => [[
79 79
 				'name' => 'hide_assigned_to',
80 80
 				'text' => esc_html__( 'Assigned To', 'site-reviews' ),
81 81
 				'tooltip' => esc_attr__( 'Hide the assigned to link?', 'site-reviews' ),
82 82
 				'type' => 'checkbox',
83
-			],[
83
+			], [
84 84
 				'name' => 'hide_author',
85 85
 				'text' => esc_html__( 'Author', 'site-reviews' ),
86 86
 				'tooltip' => esc_attr__( 'Hide the review author?', 'site-reviews' ),
87 87
 				'type' => 'checkbox',
88
-			],[
88
+			], [
89 89
 				'name' => 'hide_avatar',
90 90
 				'text' => esc_html__( 'Avatar', 'site-reviews' ),
91 91
 				'tooltip' => esc_attr__( 'Hide the reviewer avatar if shown?', 'site-reviews' ),
92 92
 				'type' => 'checkbox',
93
-			],[
93
+			], [
94 94
 				'name' => 'hide_content',
95 95
 				'text' => esc_html__( 'Content', 'site-reviews' ),
96 96
 				'tooltip' => esc_attr__( 'Hide the review content?', 'site-reviews' ),
97 97
 				'type' => 'checkbox',
98
-			],[
98
+			], [
99 99
 				'name' => 'hide_date',
100 100
 				'text' => esc_html__( 'Date', 'site-reviews' ),
101 101
 				'tooltip' => esc_attr__( 'Hide the review date?', 'site-reviews' ),
102 102
 				'type' => 'checkbox',
103
-			],[
103
+			], [
104 104
 				'name' => 'hide_rating',
105 105
 				'text' => esc_html__( 'Rating', 'site-reviews' ),
106 106
 				'tooltip' => esc_attr__( 'Hide the review rating?', 'site-reviews' ),
107 107
 				'type' => 'checkbox',
108
-			],[
108
+			], [
109 109
 				'name' => 'hide_response',
110 110
 				'text' => esc_html__( 'Response', 'site-reviews' ),
111 111
 				'tooltip' => esc_attr__( 'Hide the review response?', 'site-reviews' ),
112 112
 				'type' => 'checkbox',
113
-			],[
113
+			], [
114 114
 				'name' => 'hide_title',
115 115
 				'text' => esc_html__( 'Title', 'site-reviews' ),
116 116
 				'tooltip' => esc_attr__( 'Hide the review title?', 'site-reviews' ),
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 			'label' => esc_html__( 'Hide', 'site-reviews' ),
121 121
 			'spacing' => 5,
122 122
 			'type' => 'container',
123
-		],[
123
+		], [
124 124
 			'hidden' => true,
125 125
 			'name' => 'id',
126 126
 			'type' => 'textbox',
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 	public function getTerms()
134 134
 	{
135 135
 		$terms = glsr( Database::class )->getTerms();
136
-		if( empty( $terms )) {
136
+		if( empty($terms) ) {
137 137
 			return [];
138 138
 		}
139 139
 		return [
Please login to merge, or discard this patch.
plugin/Shortcodes/SiteReviewsFormButton.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -15,12 +15,12 @@  discard block
 block discarded – undo
15 15
 		return [[
16 16
 			'type' => 'container',
17 17
 			'html' => '<p class="strong">'.esc_html__( 'All settings are optional.', 'site-reviews' ).'</p>',
18
-		],[
18
+		], [
19 19
 			'label' => esc_html__( 'Title', 'site-reviews' ),
20 20
 			'name' => 'title',
21 21
 			'tooltip' => esc_attr__( 'Enter a custom shortcode heading.', 'site-reviews' ),
22 22
 			'type' => 'textbox',
23
-		],[
23
+		], [
24 24
 			'label' => esc_html__( 'Description', 'site-reviews' ),
25 25
 			'minHeight' => 60,
26 26
 			'minWidth' => 240,
@@ -35,29 +35,29 @@  discard block
 block discarded – undo
35 35
 			'name' => 'assign_to',
36 36
 			'tooltip' => esc_attr__( 'Assign submitted reviews to a custom page/post ID. You can also enter "post_id" to assign reviews to the ID of the current page.', 'site-reviews' ),
37 37
 			'type' => 'textbox',
38
-		],[
38
+		], [
39 39
 			'label' => esc_html__( 'Classes', 'site-reviews' ),
40 40
 			'name' => 'class',
41 41
 			'tooltip' => esc_attr__( 'Add custom CSS classes to the shortcode.', 'site-reviews' ),
42 42
 			'type' => 'textbox',
43
-		],[
43
+		], [
44 44
 			'columns' => 2,
45 45
 			'items' => [[
46 46
 				'name' => 'hide_email',
47 47
 				'text' => esc_html__( 'Email', 'site-reviews' ),
48 48
 				'tooltip' => esc_attr__( 'Hide the email field?', 'site-reviews' ),
49 49
 				'type' => 'checkbox',
50
-			],[
50
+			], [
51 51
 				'name' => 'hide_name',
52 52
 				'text' => esc_html__( 'Name', 'site-reviews' ),
53 53
 				'tooltip' => esc_attr__( 'Hide the name field?', 'site-reviews' ),
54 54
 				'type' => 'checkbox',
55
-			],[
55
+			], [
56 56
 				'name' => 'hide_terms',
57 57
 				'text' => esc_html__( 'Terms', 'site-reviews' ),
58 58
 				'tooltip' => esc_attr__( 'Hide the terms field?', 'site-reviews' ),
59 59
 				'type' => 'checkbox',
60
-			],[
60
+			], [
61 61
 				'name' => 'hide_title',
62 62
 				'text' => esc_html__( 'Title', 'site-reviews' ),
63 63
 				'tooltip' => esc_attr__( 'Hide the title field?', 'site-reviews' ),
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 			'layout' => 'grid',
68 68
 			'spacing' => 5,
69 69
 			'type' => 'container',
70
-		],[
70
+		], [
71 71
 			'hidden' => true,
72 72
 			'name' => 'id',
73 73
 			'type' => 'textbox',
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 	public function getTerms()
81 81
 	{
82 82
 		$terms = glsr( Database::class )->getTerms();
83
-		if( empty( $terms )) {
83
+		if( empty($terms) ) {
84 84
 			return [];
85 85
 		}
86 86
 		return [
Please login to merge, or discard this patch.
plugin/Shortcodes/SiteReviewsSummaryButton.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -12,10 +12,10 @@  discard block
 block discarded – undo
12 12
 	public function fields()
13 13
 	{
14 14
 		return [[
15
-			'html' => sprintf( '<p class="strong">%s</p>', esc_html__( 'All settings are optional.', 'site-reviews' )),
15
+			'html' => sprintf( '<p class="strong">%s</p>', esc_html__( 'All settings are optional.', 'site-reviews' ) ),
16 16
 			'minWidth' => 320,
17 17
 			'type' => 'container',
18
-		],[
18
+		], [
19 19
 			'label' => esc_html__( 'Title', 'site-reviews' ),
20 20
 			'name' => 'title',
21 21
 			'tooltip' => esc_attr__( 'Enter a custom shortcode heading.', 'site-reviews' ),
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 			'name' => 'assigned_to',
29 29
 			'tooltip' => esc_attr__( 'Limit reviews to those assigned to this post ID (separate multiple IDs with a comma). You can also enter "post_id" to use the ID of the current page.', 'site-reviews' ),
30 30
 			'type' => 'textbox',
31
-		],[
31
+		], [
32 32
 			'label' => esc_html__( 'Schema', 'site-reviews' ),
33 33
 			'name' => 'schema',
34 34
 			'options' => [
@@ -37,34 +37,34 @@  discard block
 block discarded – undo
37 37
 			],
38 38
 			'tooltip' => esc_attr__( 'Rich snippets are disabled by default.', 'site-reviews' ),
39 39
 			'type' => 'listbox',
40
-		],[
40
+		], [
41 41
 			'label' => esc_html__( 'Classes', 'site-reviews' ),
42 42
 			'name' => 'class',
43 43
 			'tooltip' => esc_attr__( 'Add custom CSS classes to the shortcode.', 'site-reviews' ),
44 44
 			'type' => 'textbox',
45
-		],[
45
+		], [
46 46
 			'columns' => 2,
47 47
 			'items' => [[
48 48
 				'type' => 'checkbox',
49 49
 				'name' => 'hide_bars',
50 50
 				'text' => esc_html__( 'Bars', 'site-reviews' ),
51 51
 				'tooltip' => esc_attr__( 'Hide the percentage bars?', 'site-reviews' ),
52
-			],[
52
+			], [
53 53
 				'type' => 'checkbox',
54 54
 				'name' => 'hide_if_empty',
55 55
 				'text' => esc_html__( 'If Empty', 'site-reviews' ),
56 56
 				'tooltip' => esc_attr__( 'Hide the summary if no reviews are found?', 'site-reviews' ),
57
-			],[
57
+			], [
58 58
 				'type' => 'checkbox',
59 59
 				'name' => 'hide_rating',
60 60
 				'text' => esc_html__( 'Rating', 'site-reviews' ),
61 61
 				'tooltip' => esc_attr__( 'Hide the rating?', 'site-reviews' ),
62
-			],[
62
+			], [
63 63
 				'type' => 'checkbox',
64 64
 				'name' => 'hide_stars',
65 65
 				'text' => esc_html__( 'Stars', 'site-reviews' ),
66 66
 				'tooltip' => esc_attr__( 'Hide the stars?', 'site-reviews' ),
67
-			],[
67
+			], [
68 68
 				'type' => 'checkbox',
69 69
 				'name' => 'hide_summary',
70 70
 				'text' => esc_html__( 'Summary', 'site-reviews' ),
Please login to merge, or discard this patch.