Passed
Push — master ( 6453a4...42ad56 )
by Nirjhar
12:52
created
lib/action/insight.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) exit;
2
+if ( ! defined('ABSPATH')) exit;
3 3
 
4 4
 /**
5 5
  * Perform fetch insight action
6 6
  */
7
-if ( ! class_exists( 'CGSS_INSIGHT' ) ) {
7
+if ( ! class_exists('CGSS_INSIGHT')) {
8 8
 
9 9
 	final class CGSS_INSIGHT {
10 10
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 				$this->social,
35 35
 			);
36 36
 			foreach ($result as $key => $value) {
37
-				$sql = $wpdb->prepare("UPDATE {$wpdb->prefix}cgss_insight SET remark = %s WHERE ID = %d", $value, ($key+1));
37
+				$sql = $wpdb->prepare("UPDATE {$wpdb->prefix}cgss_insight SET remark = %s WHERE ID = %d", $value, ($key + 1));
38 38
 				$update = $wpdb->query($sql);
39 39
 			}
40 40
 		}
@@ -45,9 +45,9 @@  discard block
 block discarded – undo
45 45
 
46 46
 			$score = $this->data['score'];
47 47
 			$this->count = (count($score) == 0 ? 1 : count($score));
48
-			$avarage_score = (count($score) == 0 ? 0 : round(array_sum($score)/count($score), 0));
48
+			$avarage_score = (count($score) == 0 ? 0 : round(array_sum($score) / count($score), 0));
49 49
 
50
-			$this->score = sprintf(__('Avarage SEO score is %d out of 10', 'cgss'),$avarage_score);
50
+			$this->score = sprintf(__('Avarage SEO score is %d out of 10', 'cgss'), $avarage_score);
51 51
 			$this->snippet = $this->snippet_analyze();
52 52
 			$this->text = $this->text_analyze();
53 53
 			$this->links = $this->link_analyze();
@@ -67,13 +67,13 @@  discard block
 block discarded – undo
67 67
 			foreach ($snippets as $snippet) {
68 68
 				$title = $snippet['title'];
69 69
 				$desc = $snippet['desc'];
70
-				if (!empty($title) && !empty($desc)) {
70
+				if ( ! empty($title) && ! empty($desc)) {
71 71
 					$snip_count++;
72 72
 				}
73 73
 			}
74 74
 			$snip_fraction = $this->count - $snip_count;
75 75
 
76
-			$output = ($snip_fraction == 0) ? __( 'All snippets are ok', 'cgss' ) : sprintf(_n('%d page', '%d pages', $snip_fraction, 'cgss'), $snip_fraction) . ' ' . __( 'have incomplete snippets', 'cgss' );
76
+			$output = ($snip_fraction == 0) ? __('All snippets are ok', 'cgss') : sprintf(_n('%d page', '%d pages', $snip_fraction, 'cgss'), $snip_fraction) . ' ' . __('have incomplete snippets', 'cgss');
77 77
 			return $output;
78 78
 		}
79 79
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 			$count = round(array_sum(array_column($text, 'count')) / $this->count, 0);
86 86
 			$ratio = round(array_sum(array_column($text, 'ratio')) / $this->count, 2);
87 87
 
88
-			$output = sprintf(__('Avarage', 'cgss') . ' ' . _n('%d word is','%d words are',$count,'cgss') . ' ' . __( 'found per page and avarage text to HTML ratio is %d', 'cgss'),$count,$ratio) . '%';
88
+			$output = sprintf(__('Avarage', 'cgss') . ' ' . _n('%d word is', '%d words are', $count, 'cgss') . ' ' . __('found per page and avarage text to HTML ratio is %d', 'cgss'), $count, $ratio) . '%';
89 89
 			return $output;
90 90
 		}
91 91
 
@@ -98,10 +98,10 @@  discard block
 block discarded – undo
98 98
 			$count = round(array_sum(array_column($links, 'count')) / $this->count, 0);
99 99
 			$external = round(array_sum(array_column($links, 'external')) / $this->count, 0);
100 100
 			$nofollow = round(array_sum(array_column($links, 'external')) / $this->count, 0);
101
-			$external_percentage = ($count == 0 ? 0 : round(($external/$count)*100, 0));
102
-			$nofollow_percentage = ($count == 0 ? 0 : round(($nofollow/$count)*100, 0));
101
+			$external_percentage = ($count == 0 ? 0 : round(($external / $count) * 100, 0));
102
+			$nofollow_percentage = ($count == 0 ? 0 : round(($nofollow / $count) * 100, 0));
103 103
 
104
-			$output = sprintf(__('Avarage', 'cgss') . ' '.  _n( '%d link is','%d links are', $count, 'cgss' ) . ' ' . __('found per page. %d&#37; are external and %d&#37; are nofollow among them.', 'cgss'),$count,$external_percentage,$nofollow_percentage);
104
+			$output = sprintf(__('Avarage', 'cgss') . ' ' . _n('%d link is', '%d links are', $count, 'cgss') . ' ' . __('found per page. %d&#37; are external and %d&#37; are nofollow among them.', 'cgss'), $count, $external_percentage, $nofollow_percentage);
105 105
 			return $output;
106 106
 		}
107 107
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 			$key_count = round(array_sum($key_collect) / $this->count, 1);
125 125
 			$percent = round(array_sum($percent_collect) / $this->count, 1);
126 126
 
127
-			$output = sprintf(__('Avarage foucs keyword is', 'cgss') . ' ' . _n( '%d word','%d words',$key_count, 'cgss' ) . ' ' . __('long. Keyword frequency of %d&#37;','cgss'),$key_count,$percent);
127
+			$output = sprintf(__('Avarage foucs keyword is', 'cgss') . ' ' . _n('%d word', '%d words', $key_count, 'cgss') . ' ' . __('long. Keyword frequency of %d&#37;', 'cgss'), $key_count, $percent);
128 128
 
129 129
 			return $output;
130 130
 		}
@@ -139,14 +139,14 @@  discard block
 block discarded – undo
139 139
 			$image_count = array_sum(array_column($images, 'count'));
140 140
 			$no_alt_image = array_sum(array_column($images, 'no_alt_count'));
141 141
 
142
-			$avg_image = round(($image_count/$this->count), 0);
142
+			$avg_image = round(($image_count / $this->count), 0);
143 143
 
144
-			$output = sprintf(__('Avarage', 'cgss') . ' ' . _n( '%d image is', '%d images are', $avg_image, 'cgss' ) . ' ' . __( 'found per page.', 'cgss'),$avg_image) . ' ';
144
+			$output = sprintf(__('Avarage', 'cgss') . ' ' . _n('%d image is', '%d images are', $avg_image, 'cgss') . ' ' . __('found per page.', 'cgss'), $avg_image) . ' ';
145 145
 			if ($no_alt_image == 0) {
146 146
 				$output .= ' ' . __('All of them are optimized', 'cgss');
147 147
 			} else {
148
-				$no_alt_percent = round(($no_alt_image/$image_count)*100, 0);
149
-				$output .= ' ' . sprintf(__('%d&#37; among them doesn\'t have alt tag', 'cgss'),$no_alt_percent);
148
+				$no_alt_percent = round(($no_alt_image / $image_count) * 100, 0);
149
+				$output .= ' ' . sprintf(__('%d&#37; among them doesn\'t have alt tag', 'cgss'), $no_alt_percent);
150 150
 			}
151 151
 			return $output;
152 152
 
@@ -162,8 +162,8 @@  discard block
 block discarded – undo
162 162
 			if ($vport == $this->count) {
163 163
 				$output = __('All pages are mobile optimized', 'cgss');
164 164
 			} else {
165
-				$no_mobile_percent = round(($vport/$this->count)*100, 0);
166
-				$output = sprintf(__('%d&#37; pages aren\'t mobile optimized', 'cgss'),$no_mobile_percent);
165
+				$no_mobile_percent = round(($vport / $this->count) * 100, 0);
166
+				$output = sprintf(__('%d&#37; pages aren\'t mobile optimized', 'cgss'), $no_mobile_percent);
167 167
 			}
168 168
 
169 169
 			return $output;
@@ -178,10 +178,10 @@  discard block
 block discarded – undo
178 178
 			$res_time = array_sum(array_column($speed, 'res_time'));
179 179
 			$down_time = array_sum(array_column($speed, 'down_time'));
180 180
 
181
-			$avg_res_time = round(($res_time/$this->count) * 1000, 0);
182
-			$avg_down_time = round(($down_time/$this->count) * 1000, 0);
181
+			$avg_res_time = round(($res_time / $this->count) * 1000, 0);
182
+			$avg_down_time = round(($down_time / $this->count) * 1000, 0);
183 183
 
184
-			$output = sprintf( __('Average response time is %d miliseconds and average download time is %d miliseconds', 'cgss'), $avg_res_time, $avg_down_time);
184
+			$output = sprintf(__('Average response time is %d miliseconds and average download time is %d miliseconds', 'cgss'), $avg_res_time, $avg_down_time);
185 185
 
186 186
 			return $output;
187 187
 		}
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 			$fb_share = array_sum(array_column($social, 'fb_share'));
196 196
 			$fb_like = array_sum(array_column($social, 'fb_like'));
197 197
 
198
-			$output = sprintf( __('Total', 'cgss') . ': ' . _n( '%d share', '%d shares', $fb_share, 'cgss' ) . ' ' . __( 'in Facebook', 'cgss' ). ' | ' . _n( '%d Facebook like', '%d Facebook likes', $fb_like, 'cgss' ), $fb_share, $fb_like);
198
+			$output = sprintf(__('Total', 'cgss') . ': ' . _n('%d share', '%d shares', $fb_share, 'cgss') . ' ' . __('in Facebook', 'cgss') . ' | ' . _n('%d Facebook like', '%d Facebook likes', $fb_like, 'cgss'), $fb_share, $fb_like);
199 199
 
200 200
 			return $output;
201 201
 		}
@@ -206,12 +206,12 @@  discard block
 block discarded – undo
206 206
 
207 207
 			global $wpdb;
208 208
 			$sql = "SELECT ID FROM {$wpdb->prefix}posts WHERE post_type!='attachment'";
209
-			$ids = $wpdb->get_results( $sql, 'ARRAY_A' );;
209
+			$ids = $wpdb->get_results($sql, 'ARRAY_A'); ;
210 210
 
211 211
 			$data_piece = array();
212 212
 			foreach ($ids as $id) {
213 213
 
214
-				$meta = get_post_meta( $id['ID'], 'cgss_scan_result', true );
214
+				$meta = get_post_meta($id['ID'], 'cgss_scan_result', true);
215 215
 				if ($meta) {
216 216
 					$data_piece[] = $meta;
217 217
 				}
Please login to merge, or discard this patch.
lib/action/scan.php 1 patch
Spacing   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) exit;
2
+if ( ! defined('ABSPATH')) exit;
3 3
 
4 4
 /**
5 5
  * Perform scan action
6 6
  */
7
-if ( ! class_exists( 'CGSS_SCAN' ) ) {
7
+if ( ! class_exists('CGSS_SCAN')) {
8 8
 
9 9
 	final class CGSS_SCAN {
10 10
 
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 		public function __construct() {
13 13
 
14 14
 			$post_id = intval($_GET['scan']);
15
-			$url = get_permalink( $post_id );
15
+			$url = get_permalink($post_id);
16 16
 
17 17
 			if (class_exists('CGSS_CRAWL')) {
18 18
 
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 				$crawl->execute();
22 22
 				$this->result = $crawl->result();
23 23
 
24
-				update_post_meta( $post_id, 'cgss_scan_result', $this->result );
24
+				update_post_meta($post_id, 'cgss_scan_result', $this->result);
25 25
 
26 26
 				$this->render();
27 27
 			}
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 			$fb_like = $social['fb_like'];
38 38
 
39 39
 			$score_html =
40
-			'<span>'.sprintf(__('Overall SEO score %d out of 10. Facebook shares: %d and likes: %d', 'cgss' ), $score, $fb_share, $fb_like ).'</span>';
40
+			'<span>' . sprintf(__('Overall SEO score %d out of 10. Facebook shares: %d and likes: %d', 'cgss'), $score, $fb_share, $fb_like) . '</span>';
41 41
 
42 42
 			return $score_html;
43 43
 		}
@@ -58,17 +58,17 @@  discard block
 block discarded – undo
58 58
 			$not_found = __('NOT_FOUND', 'cgss');
59 59
 			$snippet_html =
60 60
 			'<ul>
61
-				<li><strong>'.__('Search snippet', 'cgss').':</strong>
61
+				<li><strong>'.__('Search snippet', 'cgss') . ':</strong>
62 62
 					<ul>
63
-						<li>'.sprintf(__('Title: %s', 'cgss'),($title ? $title : $not_found)).'</li>
64
-						<li>'.sprintf(__('Description: %s', 'cgss'),($desc ? $desc : $not_found)).'</li>
63
+						<li>'.sprintf(__('Title: %s', 'cgss'), ($title ? $title : $not_found)) . '</li>
64
+						<li>'.sprintf(__('Description: %s', 'cgss'), ($desc ? $desc : $not_found)) . '</li>
65 65
 					</ul>
66 66
 				</li>
67
-				<li><strong>'.__('Social snippet(OGP)', 'cgss').':</strong>
67
+				<li><strong>'.__('Social snippet(OGP)', 'cgss') . ':</strong>
68 68
 					<ul>
69
-						<li>'.sprintf(__('Title: %s', 'cgss'),($social_title ? $social_title : $not_found)).'</li>
70
-						<li>'.sprintf(__('Description: %s', 'cgss'),( $social_desc ? $social_desc : $not_found)).'</li>
71
-						<li>'.sprintf(__('Image: %s', 'cgss'),( $social_image ? $social_image : $not_found)).'</li>
69
+						<li>'.sprintf(__('Title: %s', 'cgss'), ($social_title ? $social_title : $not_found)) . '</li>
70
+						<li>'.sprintf(__('Description: %s', 'cgss'), ($social_desc ? $social_desc : $not_found)) . '</li>
71
+						<li>'.sprintf(__('Image: %s', 'cgss'), ($social_image ? $social_image : $not_found)) . '</li>
72 72
 					</ul></li>
73 73
 			</ul>';
74 74
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 			$ratio = $text['ratio'];
86 86
 
87 87
 			$htags = $text['htags'];
88
-			$headings = implode( ', ', $htags['names'] );
88
+			$headings = implode(', ', $htags['names']);
89 89
 
90 90
 			$links = $text['links'];
91 91
 			$link_count = $links['count'];
@@ -94,11 +94,11 @@  discard block
 block discarded – undo
94 94
 
95 95
 			$text_html =
96 96
 			'<ul>
97
-				<li>'.sprintf(__('Keywords: %s','cgss'), $keys).'</li>
98
-				<li>'.sprintf(__('Number of words: %s','cgss'), $count).'</li>
99
-				<li>'.sprintf(__('Text to html ratio: %s percent','cgss'), $ratio).'</li>
100
-				<li>'.sprintf(__('Heading tags in text hierarchy: %s','cgss'), $headings).'</li>
101
-				<li>'.sprintf(__('Total Links: %d, Nofollow Links %d, External Links: %d','cgss'), $link_count, $link_nofollow, $link_external).'</li>
97
+				<li>'.sprintf(__('Keywords: %s', 'cgss'), $keys) . '</li>
98
+				<li>'.sprintf(__('Number of words: %s', 'cgss'), $count) . '</li>
99
+				<li>'.sprintf(__('Text to html ratio: %s percent', 'cgss'), $ratio) . '</li>
100
+				<li>'.sprintf(__('Heading tags in text hierarchy: %s', 'cgss'), $headings) . '</li>
101
+				<li>'.sprintf(__('Total Links: %d, Nofollow Links %d, External Links: %d', 'cgss'), $link_count, $link_nofollow, $link_external) . '</li>
102 102
 			</ul>';
103 103
 
104 104
 			return $text_html;
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 
116 116
 			$tag_style = $design['tag_style'];
117 117
 			$tag_style_count = $tag_style['count'];
118
-			$tag_style_attributes = implode( ', ', $tag_style['tags'] );
118
+			$tag_style_attributes = implode(', ', $tag_style['tags']);
119 119
 
120 120
 			$nested_table = $design['nested_table'];
121 121
 			$vport = $design['vport'];
@@ -126,11 +126,11 @@  discard block
 block discarded – undo
126 126
 
127 127
 			$design_html =
128 128
 			'<ul>
129
-				<li>'.sprintf(__('Total images: %d and images without alt tags: %d','cgss'), $image_count, $image_no_alt_count).'</li>
130
-				<li>'.sprintf(__('iframe: %d','cgss'), $iframe).'</li>
131
-				<li>'.sprintf(__('Nested Tables: %d','cgss'), $nested_table).'</li>
132
-				<li>'.sprintf(__('Tags with style attribute: %s(%s)','cgss'), $tag_style_count, $tag_style_attributes).'</li>
133
-				<li>'.sprintf(__('Mobile optimization: Viewport Tag: %d, @media Queries: %d','cgss'), $vport, $media).'</li>
129
+				<li>'.sprintf(__('Total images: %d and images without alt tags: %d', 'cgss'), $image_count, $image_no_alt_count) . '</li>
130
+				<li>'.sprintf(__('iframe: %d', 'cgss'), $iframe) . '</li>
131
+				<li>'.sprintf(__('Nested Tables: %d', 'cgss'), $nested_table) . '</li>
132
+				<li>'.sprintf(__('Tags with style attribute: %s(%s)', 'cgss'), $tag_style_count, $tag_style_attributes) . '</li>
133
+				<li>'.sprintf(__('Mobile optimization: Viewport Tag: %d, @media Queries: %d', 'cgss'), $vport, $media) . '</li>
134 134
 			</ul>';
135 135
 
136 136
 			return $design_html;
@@ -152,17 +152,17 @@  discard block
 block discarded – undo
152 152
 			$alive = $crawl['alive'];
153 153
 			$robot = $crawl['meta_robot'];
154 154
 
155
-			$on = __( 'on', 'cgss' );
156
-			$off = __( 'off', 'cgss' );
155
+			$on = __('on', 'cgss');
156
+			$off = __('off', 'cgss');
157 157
 
158 158
 			$crawl_html =
159 159
 			'<ul>
160
-				<li>'.sprintf(__('Your URL parameters: SSL security: %s, Static url: %s, underscores in Url: %s','cgss'), (!$ssl ? $off : $on ), (!$dynamic ? $off : $on ), (!$underscore ? $off : $on )).'</li>
161
-				<li>'.sprintf(__('If modified since header: %s','cgss'), ($if_mod == 0 ? $off : $on )).'</li>
162
-				<li>'.sprintf(__('Canonical Url: %s','cgss'), ($cano == 0 ? $off : $on )).'</li>
163
-				<li>'.sprintf(__('Meta Robot: %s','cgss'), (!$robot['ok'] ? $off : $on )).'</li>
164
-				<li>'.sprintf(__('IP Forward: %s','cgss'), ($ip ? $ip : $off )).'</li>
165
-				<li>'.sprintf(__('Keep alive connection: %s','cgss'), ($alive == 0 ? $off : $on )).'</li>
160
+				<li>'.sprintf(__('Your URL parameters: SSL security: %s, Static url: %s, underscores in Url: %s', 'cgss'), ( ! $ssl ? $off : $on), ( ! $dynamic ? $off : $on), ( ! $underscore ? $off : $on)) . '</li>
161
+				<li>'.sprintf(__('If modified since header: %s', 'cgss'), ($if_mod == 0 ? $off : $on)) . '</li>
162
+				<li>'.sprintf(__('Canonical Url: %s', 'cgss'), ($cano == 0 ? $off : $on)) . '</li>
163
+				<li>'.sprintf(__('Meta Robot: %s', 'cgss'), ( ! $robot['ok'] ? $off : $on)) . '</li>
164
+				<li>'.sprintf(__('IP Forward: %s', 'cgss'), ($ip ? $ip : $off)) . '</li>
165
+				<li>'.sprintf(__('Keep alive connection: %s', 'cgss'), ($alive == 0 ? $off : $on)) . '</li>
166 166
 			</ul>';
167 167
 
168 168
 			return $crawl_html;
@@ -181,16 +181,16 @@  discard block
 block discarded – undo
181 181
 			$css = $speed['css'];
182 182
 			$js = $speed['js'];
183 183
 
184
-			$on = __( 'on', 'cgss' );
185
-			$off = __( 'off', 'cgss' );
184
+			$on = __('on', 'cgss');
185
+			$off = __('off', 'cgss');
186 186
 
187 187
 			$speed_html =
188 188
 			'<ul>
189
-				<li>'. sprintf( __( 'Header response time %s s and page downloading time %s s', 'cgss' ), $res_time, $down_time ). '</li>
190
-				<li>'.sprintf(__('gZip compression: %s','cgss'), ($gzip ? $off : $on )).'</li>
191
-				<li>'.sprintf(__('Browser caching: %s','cgss'), ($cache ? $off : $on )).'</li>
192
-				<li>'.sprintf(__('Requests made by CSS is %s and by JS is %s','cgss'), $css['count'], $js['count']).'</li>
193
-				<li>'.sprintf(__('Resources can be compressed by %s kb for CSS and %s kb for JS','cgss'), $css['compress_num'], $js['compress_num']).'</li>
189
+				<li>'. sprintf(__('Header response time %s s and page downloading time %s s', 'cgss'), $res_time, $down_time) . '</li>
190
+				<li>'.sprintf(__('gZip compression: %s', 'cgss'), ($gzip ? $off : $on)) . '</li>
191
+				<li>'.sprintf(__('Browser caching: %s', 'cgss'), ($cache ? $off : $on)) . '</li>
192
+				<li>'.sprintf(__('Requests made by CSS is %s and by JS is %s', 'cgss'), $css['count'], $js['count']) . '</li>
193
+				<li>'.sprintf(__('Resources can be compressed by %s kb for CSS and %s kb for JS', 'cgss'), $css['compress_num'], $js['compress_num']) . '</li>
194 194
 			</ul>';
195 195
 
196 196
 			return $speed_html;
@@ -200,19 +200,19 @@  discard block
 block discarded – undo
200 200
 		// Render the HTML
201 201
 		public function render() {
202 202
 
203
-			$this->score_html	= $this->score_html();
204
-			$this->snippets_html	= $this->snippet_display();
203
+			$this->score_html = $this->score_html();
204
+			$this->snippets_html = $this->snippet_display();
205 205
 			$this->text_html = $this->text_display();
206 206
 			$this->design_html = $this->design_display();
207 207
 			$this->crawl_html = $this->crawl_display();
208 208
 			$this->speed_html = $this->speed_display();
209 209
 
210
-			$this->box( null, null, $this->score_html );
211
-			$this->box( __( 'Snippets', 'cgss' ), $this->dashicon('align-none'), $this->snippets_html );
212
-			$this->box( __( 'Text & Links', 'cgss' ), $this->dashicon('text'), $this->text_html );
213
-			$this->box( __( 'Design', 'cgss' ), $this->dashicon('smartphone'), $this->design_html );
214
-			$this->box( __( 'Crawl', 'cgss' ), $this->dashicon('randomize'), $this->crawl_html );
215
-			$this->box( __( 'Speed', 'cgss' ), $this->dashicon('clock'), $this->speed_html );
210
+			$this->box(null, null, $this->score_html);
211
+			$this->box(__('Snippets', 'cgss'), $this->dashicon('align-none'), $this->snippets_html);
212
+			$this->box(__('Text & Links', 'cgss'), $this->dashicon('text'), $this->text_html);
213
+			$this->box(__('Design', 'cgss'), $this->dashicon('smartphone'), $this->design_html);
214
+			$this->box(__('Crawl', 'cgss'), $this->dashicon('randomize'), $this->crawl_html);
215
+			$this->box(__('Speed', 'cgss'), $this->dashicon('clock'), $this->speed_html);
216 216
 		}
217 217
 
218 218
 
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
 
233 233
 		public function dashicon($icon) {
234 234
 
235
-			return '<span class="dashicons dashicons-'.$icon.'"></span>';
235
+			return '<span class="dashicons dashicons-' . $icon . '"></span>';
236 236
 		}
237 237
 	}
238 238
 } ?>
Please login to merge, or discard this patch.