Completed
Push — master ( 72dfec...61887c )
by
unknown
06:50
created
includes/admin/post-types.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -341,8 +341,11 @@
 block discarded – undo
341 341
 						</label>
342 342
 					</p>
343 343
 					<p><input type="button" value="<?php _e( 'Insert Calendar', 'google-calendar-events' ); ?>" id="simcal-insert-shortcode" class="button button-primary button-large" name="" /></p>
344
-				<?php else : ?>
345
-					<p><em><?php _e( 'Could not find any calendars to add to this post.', 'google-calendar-events' ); ?></em></p>
344
+				<?php else {
345
+	: ?>
346
+					<p><em><?php _e( 'Could not find any calendars to add to this post.', 'google-calendar-events' );
347
+}
348
+?></em></p>
346 349
 					<strong><a href="post-new.php?post_type=calendar"><?php _e( 'Please add and configure new calendar first.', 'google-calendar-events' ); ?></a></strong>
347 350
 				<?php endif; ?>
348 351
 			</div>
Please login to merge, or discard this patch.
includes/calendars/views/default-calendar-grid.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -453,10 +453,12 @@
 block discarded – undo
453 453
 					$list_events .= '<button class="simcal-events-toggle"><i class="simcal-icon-down simcal-icon-animate"></i></button>';
454 454
 				endif;
455 455
 
456
-			else :
456
+			else {
457
+				:
457 458
 
458 459
 				// Empty cell for day with no events.
459 460
 				$list_events = '<span class="simcal-no-events"></span>';
461
+			}
460 462
 
461 463
 			endif;
462 464
 
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
 	 *
74 74
 	 * @since 3.0.0
75 75
 	 *
76
-	 * @param string|Calendar $calendar
76
+	 * @param Default_Calendar $calendar
77 77
 	 */
78 78
 	public function __construct( $calendar = '' ) {
79 79
 		$this->calendar = $calendar;
Please login to merge, or discard this patch.
includes/calendars/views/default-calendar-list.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -576,9 +576,11 @@
 block discarded – undo
576 576
 
577 577
 			endforeach;
578 578
 
579
-		else :
579
+		else {
580
+			:
580 581
 
581 582
 			echo "\t" . '<p>';
583
+		}
582 584
 
583 585
 			$message = get_post_meta( $calendar->id, '_no_events_message', true );
584 586
 
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
 	 *
74 74
 	 * @since 3.0.0
75 75
 	 *
76
-	 * @param string|Calendar $calendar
76
+	 * @param Default_Calendar $calendar
77 77
 	 */
78 78
 	public function __construct( $calendar = '' ) {
79 79
 		$this->calendar = $calendar;
Please login to merge, or discard this patch.
includes/browser.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 
167 167
         /**
168 168
          * Set the name of the browser
169
-         * @param $browser string The name of the Browser
169
+         * @param string $browser string The name of the Browser
170 170
          */
171 171
         public function setBrowser($browser)
172 172
         {
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
 
275 275
         /**
276 276
          * Set the browser to be from AOL
277
-         * @param $isAol
277
+         * @param boolean $isAol
278 278
          */
279 279
         public function setAol($isAol)
280 280
         {
Please login to merge, or discard this patch.
includes/events/event.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -414,7 +414,7 @@
 block discarded – undo
414 414
 	 * @since  3.0.0
415 415
 	 * @access private
416 416
 	 *
417
-	 * @param  int|float $latlng
417
+	 * @param  integer $latlng
418 418
 	 *
419 419
 	 * @return int|float
420 420
 	 */
Please login to merge, or discard this patch.
includes/events/events.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 	 * @since 3.0.0
44 44
 	 *
45 45
 	 * @param array $e Events.
46
-	 * @param string|\DateTimeZone $tz Timezone.
46
+	 * @param string $tz Timezone.
47 47
 	 */
48 48
 	public function __construct( $e = array(), $tz = 'UTC' ) {
49 49
 		$this->set_events( $e );
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
 	 *
270 270
 	 * @since  3.0.0
271 271
 	 *
272
-	 * @param  int|string $present
272
+	 * @param  integer $present
273 273
 	 *
274 274
 	 * @return Events
275 275
 	 */
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
 	 *
291 291
 	 * @since  3.0.0
292 292
 	 *
293
-	 * @param  int|string $present
293
+	 * @param  integer $present
294 294
 	 *
295 295
 	 * @return Events
296 296
 	 */
Please login to merge, or discard this patch.
includes/functions/shared.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -400,7 +400,7 @@
 block discarded – undo
400 400
  * @since  3.0.0
401 401
  *
402 402
  * @param  string $tz
403
- * @param  mixed  $default
403
+ * @param  string  $default
404 404
  *
405 405
  * @return mixed|string
406 406
  */
Please login to merge, or discard this patch.
includes/events/event-builder.php 1 patch
Doc Comments   +9 added lines, -2 removed lines patch added patch discarded remove patch
@@ -584,8 +584,8 @@  discard block
 block discarded – undo
584 584
 	 * @since  3.0.0
585 585
 	 * @access private
586 586
 	 *
587
-	 * @param  $title
588
-	 * @param  $attr
587
+	 * @param  string $title
588
+	 * @param  string $attr
589 589
 	 *
590 590
 	 * @return string
591 591
 	 */
@@ -1023,6 +1023,13 @@  discard block
 block discarded – undo
1023 1023
 	}
1024 1024
 
1025 1025
 	//allow other plugins to replace own (registered) event tags with their value
1026
+
1027
+	/**
1028
+	 * @param string $tag
1029
+	 * @param string $partial
1030
+	 * @param string $attr
1031
+	 * @param Event $event
1032
+	 */
1026 1033
 	private function do_custom_event_tag( $tag, $partial, $attr, $event ) {
1027 1034
 		$returnvalue = apply_filters( 'simcal_event_tags_do_custom', "", $tag, $partial, $attr, $event );
1028 1035
 
Please login to merge, or discard this patch.