@@ -120,8 +120,8 @@ discard block |
||
120 | 120 | */ |
121 | 121 | public function getPunchs($month = null, $year = null) |
122 | 122 | { |
123 | - $month = $month !== null ? $month : (int)date('m'); |
|
124 | - $year = $year !== null ? $year : (int)date('Y'); |
|
123 | + $month = $month !== null ? $month : (int) date('m'); |
|
124 | + $year = $year !== null ? $year : (int) date('Y'); |
|
125 | 125 | |
126 | 126 | if (!$this->isValidPeriod($month, $year)) { |
127 | 127 | throw new InvalidArgumentException('Invalid period of time'); |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | private function getPunchsFromPage(IHttpResponse $punchsPageResponse) |
305 | 305 | { |
306 | 306 | if ($punchsPageResponse->getHttpStatus() !== IHttpClient::HTTP_STATUS_OK) { |
307 | - throw new InvalidArgumentException('The request returned http status ' . $punchsPageResponse->getHttpStatus()); |
|
307 | + throw new InvalidArgumentException('The request returned http status '.$punchsPageResponse->getHttpStatus()); |
|
308 | 308 | } |
309 | 309 | |
310 | 310 | $punchs = $this->parsePunchsPage($punchsPageResponse); |