@@ -131,8 +131,8 @@ discard block |
||
131 | 131 | $month = IntHelper::parseNullableInt($month); |
132 | 132 | $year = IntHelper::parseNullableInt($year); |
133 | 133 | |
134 | - $month = $month ?: (int)date('m') + (intval(date('d')) >= 20 ? 1 : 0); |
|
135 | - $year = $year ?: (int)date('Y'); |
|
134 | + $month = $month ?: (int) date('m') + (intval(date('d')) >= 20 ? 1 : 0); |
|
135 | + $year = $year ?: (int) date('Y'); |
|
136 | 136 | |
137 | 137 | return $this->getPunchesFromPage($this->getPunchesPage($month, $year)); |
138 | 138 | } |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | } |
162 | 162 | $punches = $this->getPunches($month, $year); |
163 | 163 | |
164 | - return array_filter($punches['punches'], function (\DateTime $punchDateTime) use ($day) { |
|
164 | + return array_filter($punches['punches'], function(\DateTime $punchDateTime) use ($day) { |
|
165 | 165 | return (int) $punchDateTime->format('d') === (int) $day; |
166 | 166 | }); |
167 | 167 | } |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | private function getPunchesFromPage(IHttpResponse $punchesPageResponse) |
360 | 360 | { |
361 | 361 | if ($punchesPageResponse->getHttpStatus() !== IHttpClient::HTTP_STATUS_OK) { |
362 | - throw new InvalidArgumentException('The request returned http status ' . $punchesPageResponse->getHttpStatus()); |
|
362 | + throw new InvalidArgumentException('The request returned http status '.$punchesPageResponse->getHttpStatus()); |
|
363 | 363 | } |
364 | 364 | |
365 | 365 | $punches = $this->parsePunchesPage($punchesPageResponse); |