GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 721d75...27e207 )
by Ronald
03:05
created
src/Event/EventInterval.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -16,27 +16,27 @@
 block discarded – undo
16 16
  */
17 17
 class EventInterval {
18 18
 
19
-	/**
20
-	 * Return the number of times a duration fits into the start and end date taking into account
21
-	 * BAT's consideration that the end time for a BAT event includes that last minute.
22
-	 *
23
-	 * @param \DateTime $start_date
24
-	 * @param \DateTime $end_date
25
-	 * @param \DateInterval $duration
26
-	 *
27
-	 * @return float
28
-	 */
29
-	public static function divide(\DateTime $start_date, \DateTime $end_date, \DateInterval $duration) {
30
-		// Clone so that we don't change the original object. We are not using ImmutableDateTime to support PHP5.4
31
-		$temp_end_date = clone($end_date);
32
-
33
-		// Add a minute to deal with the fact that BAT considers the last minute included
34
-		$temp_end_date->add(new \DateInterval('PT1M'));
35
-
36
-		// Convert everything to seconds and calculate exactly how many times the duration fits in our event length
37
-		$duration_seconds = $duration->d * 86400 + $duration->h * 3600 + $duration->i * 60 + $duration->s;
38
-
39
-		return ($temp_end_date->getTimestamp() - $start_date->getTimestamp()) / $duration_seconds;
40
-	}
19
+  /**
20
+   * Return the number of times a duration fits into the start and end date taking into account
21
+   * BAT's consideration that the end time for a BAT event includes that last minute.
22
+   *
23
+   * @param \DateTime $start_date
24
+   * @param \DateTime $end_date
25
+   * @param \DateInterval $duration
26
+   *
27
+   * @return float
28
+   */
29
+  public static function divide(\DateTime $start_date, \DateTime $end_date, \DateInterval $duration) {
30
+    // Clone so that we don't change the original object. We are not using ImmutableDateTime to support PHP5.4
31
+    $temp_end_date = clone($end_date);
32
+
33
+    // Add a minute to deal with the fact that BAT considers the last minute included
34
+    $temp_end_date->add(new \DateInterval('PT1M'));
35
+
36
+    // Convert everything to seconds and calculate exactly how many times the duration fits in our event length
37
+    $duration_seconds = $duration->d * 86400 + $duration->h * 3600 + $duration->i * 60 + $duration->s;
38
+
39
+    return ($temp_end_date->getTimestamp() - $start_date->getTimestamp()) / $duration_seconds;
40
+  }
41 41
 
42 42
 }
Please login to merge, or discard this patch.
src/Event/AbstractEvent.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -455,6 +455,7 @@  discard block
 block discarded – undo
455 455
   /**
456 456
    * Transforms the event in a breakdown of days, hours and minutes with associated states.
457 457
    *
458
+   * @param EventItemizer $itemizer
458 459
    * @return array
459 460
    */
460 461
   public function itemize($itemizer) {
@@ -465,7 +466,7 @@  discard block
 block discarded – undo
465 466
   /**
466 467
    * Saves an event using the Store object
467 468
    *
468
-   * @param \Roomify\Bat\\Store\Store $store
469
+   * @param Store $store
469 470
    * @param string $granularity
470 471
    *
471 472
    * @return boolean
Please login to merge, or discard this patch.