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
Branch master (d55b03)
by t
61:10
created
src/ihelpers/DateTime.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -38,10 +38,10 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public function dayRange($offset = 0)
40 40
     {
41
-        $day = (int) (date('d') + $offset);
41
+        $day = (int)(date('d') + $offset);
42 42
         return [
43
-            mktime(0, 0, 0, (int) date('m'), $day, (int) date('Y')),
44
-            mktime(23, 59, 59, (int) date('m'), $day, (int) date('Y')),
43
+            mktime(0, 0, 0, (int)date('m'), $day, (int)date('Y')),
44
+            mktime(23, 59, 59, (int)date('m'), $day, (int)date('Y')),
45 45
         ];
46 46
     }
47 47
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     public function weekRange($offset = 0)
58 58
     {
59 59
         $timestamp = time();
60
-        $offset = (int) $offset;
60
+        $offset = (int)$offset;
61 61
         return [
62 62
             strtotime(date('Y-m-d', strtotime('Sunday ' . ($offset - 1) . ' week', $timestamp))),
63 63
             strtotime(date('Y-m-d', strtotime('Saturday ' . $offset . ' week', $timestamp))) + 24 * 3600 - 1,
@@ -73,9 +73,9 @@  discard block
 block discarded – undo
73 73
      */
74 74
     public function monthRange($offset = 0)
75 75
     {
76
-        $month = (int) (date('m') + $offset);
77
-        $begin = mktime(0, 0, 0, $month, 1, (int) date('Y'));
78
-        $end = mktime(23, 59, 59, $month, (int) date('t', $begin), (int) date('Y'));
76
+        $month = (int)(date('m') + $offset);
77
+        $begin = mktime(0, 0, 0, $month, 1, (int)date('Y'));
78
+        $end = mktime(23, 59, 59, $month, (int)date('t', $begin), (int)date('Y'));
79 79
 
80 80
         return [$begin, $end];
81 81
     }
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      */
90 90
     public function yearRange($offset = 0)
91 91
     {
92
-        $year = (int) (date('Y') + $offset);
92
+        $year = (int)(date('Y') + $offset);
93 93
         return [
94 94
             mktime(0, 0, 0, 1, 1, $year),
95 95
             mktime(23, 59, 59, 12, 31, $year),
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     public function day($offset = 0, $time = null)
108 108
     {
109 109
         $timestamp = null === $time ? time() : $time;
110
-        $offset = (int) $offset;
110
+        $offset = (int)$offset;
111 111
         return $timestamp + 3600 * 24 * $offset;
112 112
     }
113 113
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
     public function week($offset = 0, $time = null)
123 123
     {
124 124
         $timestamp = null === $time ? time() : $time;
125
-        $offset = (int) $offset;
125
+        $offset = (int)$offset;
126 126
         return $timestamp + 3600 * 24 * 7 * $offset;
127 127
     }
128 128
 
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     public function month($offset = 0, $time = null)
138 138
     {
139 139
         $timestamp = null === $time ? time() : $time;
140
-        $offset = (int) $offset;
140
+        $offset = (int)$offset;
141 141
         return $timestamp + 3600 * 24 * date('t', $timestamp) * $offset;
142 142
     }
143 143
 
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
     public function year($offset = 0, $time = null)
153 153
     {
154 154
         $timestamp = null === $time ? time() : $time;
155
-        $offset = (int) $offset;
155
+        $offset = (int)$offset;
156 156
         return $timestamp + 3600 * 24 * (date('z', mktime(0, 0, 0, 12, 31, date('Y', $timestamp))) + 1) * $offset;
157 157
     }
158 158
 
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
     public function isLeapYear($time = null)
193 193
     {
194 194
         $timestamp = null === $time ? time() : $time;
195
-        return (bool) date('L', $timestamp);
195
+        return (bool)date('L', $timestamp);
196 196
     }
197 197
 
198 198
     /**
@@ -207,6 +207,6 @@  discard block
 block discarded – undo
207 207
     public function yearPosition($time = null)
208 208
     {
209 209
         $timestamp = null === $time ? time() : $time;
210
-        return (int) date('z', $timestamp) + 1;
210
+        return (int)date('z', $timestamp) + 1;
211 211
     }
212 212
 }
Please login to merge, or discard this patch.