Passed
Push — master ( 90a9ca...fc67d4 )
by
unknown
07:30
created
lite/includes/popular-posts/class-popular-posts-inline.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 
99 99
 		$display_count = 0;
100 100
 		foreach ( $posts as $post ) {
101
-			$display_count ++;
101
+			$display_count++;
102 102
 			if ( $display_count > $limit ) {
103 103
 				break;
104 104
 			}
@@ -108,8 +108,8 @@  discard block
 block discarded – undo
108 108
 			$html .= '</div>';
109 109
 		}
110 110
 
111
-		$html .= '</div>';// Text div.
112
-		$html .= '</div><p></p>';// Main div.
111
+		$html .= '</div>'; // Text div.
112
+		$html .= '</div><p></p>'; // Main div.
113 113
 
114 114
 		return $html;
115 115
 
@@ -217,12 +217,12 @@  discard block
 block discarded – undo
217 217
 			$count = 0;
218 218
 
219 219
 			foreach ( $words as $index => $word ) {
220
-				$count ++;
220
+				$count++;
221 221
 				if ( $count > $after_count ) {
222 222
 					$p_index = strpos( $word, '</p>' );
223 223
 					// Make sure the paragraph tag is not wrapped in another element like a blockquote.
224 224
 					if ( false !== $p_index && false === strpos( $word, '</p></' ) ) {
225
-						$words[ $index ] = substr_replace( $word, $this->shortcode_output( array() ), $p_index + 4, 0 );
225
+						$words[$index] = substr_replace( $word, $this->shortcode_output( array() ), $p_index + 4, 0 );
226 226
 						$this->posts     = array();
227 227
 						break;
228 228
 					}
Please login to merge, or discard this patch.
includes/admin/notification-event.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -126,14 +126,14 @@  discard block
 block discarded – undo
126 126
 			$this->notification_recurrence_name = $this->notification_id . '_' . $this->notification_interval . '_days';
127 127
 			$this->notification_id              = $this->notification_id . '_' . time();
128 128
 			$this->notification_active_for      = date( "m/d/Y", strtotime( "+" . ( $this->notification_interval - 2 ) . " day" ) );
129
-			$this->report_start_from            = "-". $this->notification_interval ." day";
129
+			$this->report_start_from            = "-" . $this->notification_interval . " day";
130 130
 
131
-			if( ! isset( $this->notification_first_run_time ) || empty( $this->notification_first_run_time ) ) {
132
-				$this->notification_first_run_time = "+". $this->notification_interval ." day";
131
+			if ( ! isset( $this->notification_first_run_time ) || empty( $this->notification_first_run_time ) ) {
132
+				$this->notification_first_run_time = "+" . $this->notification_interval . " day";
133 133
 			}
134 134
 
135
-			if( ! isset( $this->notification_icon ) || empty( $this->notification_icon ) ) {
136
-				$this->notification_icon        = '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
135
+			if ( ! isset( $this->notification_icon ) || empty( $this->notification_icon ) ) {
136
+				$this->notification_icon = '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
137 137
 <circle cx="16" cy="16" r="16" fill="#D3F8EA"/>
138 138
 <path d="M21.8634 18.6429C21.8634 18.8571 21.7831 19.0268 21.6224 19.1518C21.5688 19.3482 21.542 19.6786 21.542 20.1429C21.542 20.6071 21.5688 20.9375 21.6224 21.1339C21.7831 21.2768 21.8634 21.4464 21.8634 21.6429V22.0714C21.8634 22.25 21.8009 22.4018 21.6759 22.5268C21.5509 22.6518 21.3992 22.7143 21.2206 22.7143H12.4349C11.7206 22.7143 11.1134 22.4643 10.6134 21.9643C10.1134 21.4643 9.86345 20.8571 9.86345 20.1429V11.5714C9.86345 10.8571 10.1134 10.25 10.6134 9.75C11.1134 9.25 11.7206 9 12.4349 9H21.2206C21.3992 9 21.5509 9.0625 21.6759 9.1875C21.8009 9.3125 21.8634 9.46429 21.8634 9.64286V18.6429ZM13.292 12.5893V13.125C13.292 13.2321 13.3456 13.2857 13.4527 13.2857H19.1313C19.2384 13.2857 19.292 13.2321 19.292 13.125V12.5893C19.292 12.4821 19.2384 12.4286 19.1313 12.4286H13.4527C13.3456 12.4286 13.292 12.4821 13.292 12.5893ZM13.292 14.3036V14.8393C13.292 14.9464 13.3456 15 13.4527 15H19.1313C19.2384 15 19.292 14.9464 19.292 14.8393V14.3036C19.292 14.1964 19.2384 14.1429 19.1313 14.1429H13.4527C13.3456 14.1429 13.292 14.1964 13.292 14.3036ZM20.0688 21C20.0152 20.4286 20.0152 19.8571 20.0688 19.2857H12.4349C12.2027 19.2857 11.9974 19.375 11.8188 19.5536C11.6581 19.7143 11.5777 19.9107 11.5777 20.1429C11.5777 20.375 11.6581 20.5804 11.8188 20.7589C11.9974 20.9196 12.2027 21 12.4349 21H20.0688Z" fill="#1EC185"/>
139 139
 </svg>';
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
 		                      ( $schedule['hour'] * HOUR_IN_SECONDS ) +
233 233
 		                      ( $schedule['minute'] * MINUTE_IN_SECONDS ) +
234 234
 		                      $schedule['second'];
235
-		$date               = strtotime( $this->notification_first_run_time ) + $schedule['offset'];
235
+		$date = strtotime( $this->notification_first_run_time ) + $schedule['offset'];
236 236
 
237 237
 		return $date;
238 238
 	}
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
 		$notification['start']   = $this->notification_active_from;
267 267
 		$notification['end']     = $this->notification_active_for;
268 268
 
269
-		$notification_data =  apply_filters( $this->notification_id, $notification );
269
+		$notification_data = apply_filters( $this->notification_id, $notification );
270 270
 
271 271
 		if ( is_array( $notification_data ) && ! empty( $notification_data ) ) {
272 272
 			MonsterInsights()->notifications->add( $notification_data );
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
 	 *
285 285
 	 * @since 7.12.3
286 286
 	 */
287
-	public function get_report( $report_name="overview", $report_start_from="-30 day", $report_end_to="-1 day" ) {
287
+	public function get_report( $report_name = "overview", $report_start_from = "-30 day", $report_end_to = "-1 day" ) {
288 288
 		// get overview report data
289 289
 		$data   = array();
290 290
 		$report = MonsterInsights()->reporting->get_report( $report_name );
Please login to merge, or discard this patch.