Completed
Push — master ( 62b222...3fdac6 )
by
unknown
07:01
created
includes/admin/fields/date-picker.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
 				}
96 96
 
97 97
 			} else {
98
-			    // @todo eventually if a date range picker is needed, this can be extended
98
+				// @todo eventually if a date range picker is needed, this can be extended
99 99
 			}
100 100
 
101 101
 			?>
Please login to merge, or discard this patch.
includes/admin/fields/datetime-format.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -335,7 +335,7 @@
 block discarded – undo
335 335
 	 */
336 336
 	private function meridiem() {
337 337
 
338
-	    ?>
338
+		?>
339 339
 		<div>
340 340
 			<label for="<?php echo $this->id; ?>-meridiem">
341 341
 				<?php _e( 'Meridiem', 'google-calendar-events' ); ?>
Please login to merge, or discard this patch.
includes/admin/fields/standard.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 		       value="<?php echo $this->value; ?>"
58 58
 		       class="<?php echo $this->class; ?>"<?php
59 59
 				echo $this->style ? 'style="' . $this->style . '" ' : ' ';
60
-		        echo $this->placeholder ? 'placeholder="' . $this->placeholder . '"' : ' ';
60
+				echo $this->placeholder ? 'placeholder="' . $this->placeholder . '"' : ' ';
61 61
 				echo $this->attributes; ?>/>
62 62
 		<?php
63 63
 
Please login to merge, or discard this patch.
includes/admin/pages/licenses.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,8 +75,8 @@
 block discarded – undo
75 75
 			'keys' => array(
76 76
 				'title' => __( 'Premium Add-on License Keys', 'google-calendar-events' ),
77 77
 				'description' => __( 'Enter your add-on license keys below, making sure to activate each one to ensure they are valid.', 'google-calendar-events' ) .
78
-				                 '<br/><br/>' .
79
-				                 '<em>' . __( 'Your license keys are used for access to automatic upgrades and premium support.', 'google-calendar-events' ) . '</em>',
78
+								 '<br/><br/>' .
79
+								 '<em>' . __( 'Your license keys are used for access to automatic upgrades and premium support.', 'google-calendar-events' ) . '</em>',
80 80
 			),
81 81
 		);
82 82
 		return apply_filters( 'simcal_add_' . $this->option_group . '_' . $this->id .'_sections', $sections );
Please login to merge, or discard this patch.
includes/admin/post-types.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -272,9 +272,9 @@
 block discarded – undo
272 272
 
273 273
 		if ( $post_type == 'calendar' && isset( $post->ID ) ) {
274 274
 			echo '<a id="simcal-clear-cache" class="button" data-id="' . $post->ID . ' ">' .
275
-			     '<i class="simcal-icon-spinner simcal-icon-spin" style="display: none;"></i> ' .
276
-			     __( 'Clear cache', 'google-calendar-events' ) .
277
-			     '</a>';
275
+				 '<i class="simcal-icon-spinner simcal-icon-spin" style="display: none;"></i> ' .
276
+				 __( 'Clear cache', 'google-calendar-events' ) .
277
+				 '</a>';
278 278
 		}
279 279
 	}
280 280
 
Please login to merge, or discard this patch.
includes/feeds/admin/google-admin.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -82,12 +82,12 @@  discard block
 block discarded – undo
82 82
 		return array(
83 83
 			'name' => $this->feed->name,
84 84
 			'description' => __( "To read events from your public Google Calendars you'll need create a Google API key and save it here.", 'google-calendar-events' ) .
85
-			                 '<br/><br/>' .
86
-			                 '<em style="font-size: 14px;">' .
87
-			                 sprintf( __( '<strong>Note:</strong> Calendars configured to use the <strong><a href="%s" target="_blank">Google Calendar Pro add-on</a></strong> use a different method of authorization.', 'google-calendar-events' ),
88
-				                 simcal_ga_campaign_url( simcal_get_url( 'gcal-pro' ), 'core-plugin', 'settings-link' )
89
-			                 ) .
90
-			                 '</em>',
85
+							 '<br/><br/>' .
86
+							 '<em style="font-size: 14px;">' .
87
+							 sprintf( __( '<strong>Note:</strong> Calendars configured to use the <strong><a href="%s" target="_blank">Google Calendar Pro add-on</a></strong> use a different method of authorization.', 'google-calendar-events' ),
88
+								 simcal_ga_campaign_url( simcal_get_url( 'gcal-pro' ), 'core-plugin', 'settings-link' )
89
+							 ) .
90
+							 '</em>',
91 91
 			'fields' => array(
92 92
 				'api_key' => array(
93 93
 					'type'       => 'standard',
@@ -273,12 +273,12 @@  discard block
 block discarded – undo
273 273
 					'post'        => $post_id,
274 274
 					'dismissable' => false,
275 275
 					'content'     => '<p>' .
276
-					                 '<i class="simcal-icon-warning"></i> ' .
277
-					                 sprintf(
278
-						                 __( 'Your Google Calendar events will not show up until you <a href="%s">create and save a Google API key</a>.', 'google-calendar-events' ),
279
-						                 admin_url( 'edit.php?post_type=calendar&page=simple-calendar_settings&tab=feeds' )
280
-					                 ) .
281
-					                 '</p>',
276
+									 '<i class="simcal-icon-warning"></i> ' .
277
+									 sprintf(
278
+										 __( 'Your Google Calendar events will not show up until you <a href="%s">create and save a Google API key</a>.', 'google-calendar-events' ),
279
+										 admin_url( 'edit.php?post_type=calendar&page=simple-calendar_settings&tab=feeds' )
280
+									 ) .
281
+									 '</p>',
282 282
 				)
283 283
 			);
284 284
 
@@ -305,11 +305,11 @@  discard block
 block discarded – undo
305 305
 						'post'        => $post_id,
306 306
 						'dismissable' => false,
307 307
 						'content'     => '<p>' .
308
-						                 '<i class="simcal-icon-warning"></i> ' .
309
-						                 __( 'While trying to retrieve events, Google returned an error:', 'google-calendar-events' ) .
310
-						                 '<br>' . $message . '<br>' .
311
-						                 __( 'Please ensure that both your Google Calendar ID and API Key are valid and that the Google Calendar you want to display is public.', 'google-calendar-events' ) .
312
-						                 '</p>',
308
+										 '<i class="simcal-icon-warning"></i> ' .
309
+										 __( 'While trying to retrieve events, Google returned an error:', 'google-calendar-events' ) .
310
+										 '<br>' . $message . '<br>' .
311
+										 __( 'Please ensure that both your Google Calendar ID and API Key are valid and that the Google Calendar you want to display is public.', 'google-calendar-events' ) .
312
+										 '</p>',
313 313
 					)
314 314
 				);
315 315
 
Please login to merge, or discard this patch.
includes/calendars/admin/default-calendar-admin.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -298,8 +298,8 @@
 block discarded – undo
298 298
 						'name'    => '_default_calendar_expand_multi_day_events',
299 299
 						'id'      => '_default_calendar_expand_multi_day_events',
300 300
 						'tooltip' => __( 'For events spanning multiple days, you can display them on each day of the event, ' .
301
-						                 'only on the first day of the event, or on all days of the event, but only up to the current day. ' .
302
-						                 'Third option applies to list views only.', 'google-calendar-events' ),
301
+										 'only on the first day of the event, or on all days of the event, but only up to the current day. ' .
302
+										 'Third option applies to list views only.', 'google-calendar-events' ),
303 303
 						'value'   => $multi_day_value,
304 304
 						'options' => array(
305 305
 							'yes'              => __( 'Yes, display on all days of event', 'google-calendar-events' ),
Please login to merge, or discard this patch.
includes/abstracts/calendar.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -784,8 +784,8 @@
 block discarded – undo
784 784
 				if ( 'yes' == $poweredby ) {
785 785
 					$align = is_rtl() ? 'left' : 'right';
786 786
 					echo '<small class="simcal-powered simcal-align-' . $align .'">' .
787
-					     sprintf( __( 'Powered by <a href="%s" target="_blank">Simple Calendar</a>', 'google-calendar-events' ), simcal_get_url( 'home' ) ) .
788
-					     '</small>';
787
+						 sprintf( __( 'Powered by <a href="%s" target="_blank">Simple Calendar</a>', 'google-calendar-events' ), simcal_get_url( 'home' ) ) .
788
+						 '</small>';
789 789
 				}
790 790
 
791 791
 				echo '</div>';
Please login to merge, or discard this patch.
includes/events/event-builder.php 1 patch
Indentation   +64 added lines, -64 removed lines patch added patch discarded remove patch
@@ -594,21 +594,21 @@  discard block
 block discarded – undo
594 594
 		if ( ! $event->whole_day ) {
595 595
 
596 596
 			$time_start = $this->calendar->datetime_separator .
597
-			              ' <span class="simcal-event-start simcal-event-start-time" ' .
598
-			              'data-event-start="' . $start->getTimestamp() . '" ' .
599
-			              'data-event-format="' . $this->calendar->time_format . '" ' .
600
-			              'itemprop="startDate" data-content="' . $start->toIso8601String() . '">' .
601
-			              date_i18n( $this->calendar->time_format, $start->getTimestamp() ) .
602
-			              '</span> ';
597
+						  ' <span class="simcal-event-start simcal-event-start-time" ' .
598
+						  'data-event-start="' . $start->getTimestamp() . '" ' .
599
+						  'data-event-format="' . $this->calendar->time_format . '" ' .
600
+						  'itemprop="startDate" data-content="' . $start->toIso8601String() . '">' .
601
+						  date_i18n( $this->calendar->time_format, $start->getTimestamp() ) .
602
+						  '</span> ';
603 603
 
604 604
 			if ( $end instanceof Carbon ) {
605 605
 
606 606
 				$time_end = ' <span class="simcal-event-end simcal-event-end-time" ' .
607
-				            'data-event-end="' . $end->getTimestamp() . '" ' .
608
-				            'data-event-format="' . $this->calendar->time_format . '" ' .
609
-				            'itemprop="endDate" data-content="' . $end->toIso8601String() . '">' .
610
-				            date_i18n( $this->calendar->time_format, $end->getTimestamp() ) .
611
-				            '</span> ';
607
+							'data-event-end="' . $end->getTimestamp() . '" ' .
608
+							'data-event-format="' . $this->calendar->time_format . '" ' .
609
+							'itemprop="endDate" data-content="' . $end->toIso8601String() . '">' .
610
+							date_i18n( $this->calendar->time_format, $end->getTimestamp() ) .
611
+							'</span> ';
612 612
 
613 613
 			}
614 614
 
@@ -617,23 +617,23 @@  discard block
 block discarded – undo
617 617
 		if ( $event->multiple_days ) {
618 618
 
619 619
 			$output = ' <span class="simcal-event-start simcal-event-start-date" ' .
620
-			          'data-event-start="' . $start->getTimestamp() . '" ' .
621
-			          'data-event-format="' . $this->calendar->date_format . '" ' .
622
-			          'itemprop="startDate" data-content="' . $start->toIso8601String() . '">' .
623
-			          date_i18n( $this->calendar->date_format, $start->getTimestamp() ) .
624
-			          '</span> ' .
625
-			          $time_start;
620
+					  'data-event-start="' . $start->getTimestamp() . '" ' .
621
+					  'data-event-format="' . $this->calendar->date_format . '" ' .
622
+					  'itemprop="startDate" data-content="' . $start->toIso8601String() . '">' .
623
+					  date_i18n( $this->calendar->date_format, $start->getTimestamp() ) .
624
+					  '</span> ' .
625
+					  $time_start;
626 626
 
627 627
 			if ( $end instanceof Carbon ) {
628 628
 
629 629
 				$output .= '-' .
630
-				           ' <span class="simcal-event-start simcal-event-end-date" ' .
631
-				           'data-event-start="' . $end->getTimestamp() . '" ' .
632
-				           'data-event-format="' . $this->calendar->date_format . '" ' .
633
-				           'itemprop="endDate" data-content="' . $end->toIso8601String() . '">' .
634
-				           date_i18n( $this->calendar->date_format, $end->getTimestamp() ) .
635
-				           '</span> ' .
636
-				           $time_end;
630
+						   ' <span class="simcal-event-start simcal-event-end-date" ' .
631
+						   'data-event-start="' . $end->getTimestamp() . '" ' .
632
+						   'data-event-format="' . $this->calendar->date_format . '" ' .
633
+						   'itemprop="endDate" data-content="' . $end->toIso8601String() . '">' .
634
+						   date_i18n( $this->calendar->date_format, $end->getTimestamp() ) .
635
+						   '</span> ' .
636
+						   $time_end;
637 637
 			}
638 638
 
639 639
 		} else {
@@ -641,12 +641,12 @@  discard block
 block discarded – undo
641 641
 			$time_end = ! empty( $time_start ) && ! empty( $time_end ) ? ' - ' . $time_end : '';
642 642
 
643 643
 			$output = ' <span class="simcal-event-start simcal-event-start-date" ' .
644
-			          'data-event-start="' . $start->getTimestamp() . '" ' .
645
-			          'data-event-format="' . $this->calendar->date_format . '">' .
646
-			          date_i18n( $this->calendar->date_format, $start->getTimestamp() ) .
647
-			          '</span> ' .
648
-			          $time_start .
649
-			          $time_end;
644
+					  'data-event-start="' . $start->getTimestamp() . '" ' .
645
+					  'data-event-format="' . $this->calendar->date_format . '">' .
646
+					  date_i18n( $this->calendar->date_format, $start->getTimestamp() ) .
647
+					  '</span> ' .
648
+					  $time_start .
649
+					  $time_end;
650 650
 
651 651
 		}
652 652
 
@@ -705,11 +705,11 @@  discard block
 block discarded – undo
705 705
 		}
706 706
 
707 707
 		return '<span class="simcal-event-' . $bound . ' ' . 'simcal-event-' . $bound . '-' . $format . '" ' .
708
-		       'data-event-' . $bound . '="' . $event_dt->getTimestamp() . '" ' .
709
-		       'data-event-format="' . $dt_format . '" ' .
710
-		       'itemprop="' . $bound . 'Date" data-content="' . $event_dt->toIso8601String() . '">' .
711
-		       $value .
712
-		       '</span>';
708
+			   'data-event-' . $bound . '="' . $event_dt->getTimestamp() . '" ' .
709
+			   'data-event-format="' . $dt_format . '" ' .
710
+			   'itemprop="' . $bound . 'Date" data-content="' . $event_dt->toIso8601String() . '">' .
711
+			   $value .
712
+			   '</span>';
713 713
 	}
714 714
 
715 715
 	/**
@@ -928,35 +928,35 @@  discard block
 block discarded – undo
928 928
 		$tagregexp = implode( '|', array_values( $this->tags ) );
929 929
 
930 930
 		return '/'
931
-		       . '\\['                              // Opening bracket
932
-		       . '(\\[?)'                           // 1: Optional second opening bracket for escaping tags: [[tag]]
933
-		       . "($tagregexp)"                     // 2: Tag name
934
-		       . '(?![\\w-])'                       // Not followed by word character or hyphen
935
-		       . '('                                // 3: Unroll the loop: Inside the opening tag
936
-		       .     '[^\\]\\/]*'                   // Not a closing bracket or forward slash
937
-		       .     '(?:'
938
-		       .         '\\/(?!\\])'               // A forward slash not followed by a closing bracket
939
-		       .         '[^\\]\\/]*'               // Not a closing bracket or forward slash
940
-		       .     ')*?'
941
-		       . ')'
942
-		       . '(?:'
943
-		       .     '(\\/)'                        // 4: Self closing tag ...
944
-		       .     '\\]'                          // ... and closing bracket
945
-		       . '|'
946
-		       .     '\\]'                          // Closing bracket
947
-		       .     '(?:'
948
-		       .         '('                        // 5: Unroll the loop: Optionally, anything between the opening and closing tags
949
-		       .             '[^\\[]*+'             // Not an opening bracket
950
-		       .             '(?:'
951
-		       .                 '\\[(?!\\/\\2\\])' // An opening bracket not followed by the closing tag
952
-		       .                 '[^\\[]*+'         // Not an opening bracket
953
-		       .             ')*+'
954
-		       .         ')'
955
-		       .         '\\[\\/\\2\\]'             // Closing tag
956
-		       .     ')?'
957
-		       . ')'
958
-		       . '(\\]?)'                           // 6: Optional second closing bracket for escaping tags: [[tag]]
959
-		       . '/s';
931
+			   . '\\['                              // Opening bracket
932
+			   . '(\\[?)'                           // 1: Optional second opening bracket for escaping tags: [[tag]]
933
+			   . "($tagregexp)"                     // 2: Tag name
934
+			   . '(?![\\w-])'                       // Not followed by word character or hyphen
935
+			   . '('                                // 3: Unroll the loop: Inside the opening tag
936
+			   .     '[^\\]\\/]*'                   // Not a closing bracket or forward slash
937
+			   .     '(?:'
938
+			   .         '\\/(?!\\])'               // A forward slash not followed by a closing bracket
939
+			   .         '[^\\]\\/]*'               // Not a closing bracket or forward slash
940
+			   .     ')*?'
941
+			   . ')'
942
+			   . '(?:'
943
+			   .     '(\\/)'                        // 4: Self closing tag ...
944
+			   .     '\\]'                          // ... and closing bracket
945
+			   . '|'
946
+			   .     '\\]'                          // Closing bracket
947
+			   .     '(?:'
948
+			   .         '('                        // 5: Unroll the loop: Optionally, anything between the opening and closing tags
949
+			   .             '[^\\[]*+'             // Not an opening bracket
950
+			   .             '(?:'
951
+			   .                 '\\[(?!\\/\\2\\])' // An opening bracket not followed by the closing tag
952
+			   .                 '[^\\[]*+'         // Not an opening bracket
953
+			   .             ')*+'
954
+			   .         ')'
955
+			   .         '\\[\\/\\2\\]'             // Closing tag
956
+			   .     ')?'
957
+			   . ')'
958
+			   . '(\\]?)'                           // 6: Optional second closing bracket for escaping tags: [[tag]]
959
+			   . '/s';
960 960
 	}
961 961
 
962 962
 }
Please login to merge, or discard this patch.