@@ -56,7 +56,7 @@ |
||
56 | 56 | { |
57 | 57 | $json = json_decode($this->body); |
58 | 58 | if (json_last_error() !== JSON_ERROR_NONE) { |
59 | - throw new \InvalidArgumentException('Failed to decode json:' . json_last_error_msg()); |
|
59 | + throw new \InvalidArgumentException('Failed to decode json:'.json_last_error_msg()); |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | return $json; |
@@ -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 | if (!$this->isValidPeriod($month, $year)) { |
138 | 138 | throw new InvalidArgumentException(sprintf('Invalid period of time: [%s-%s]', $month, $year)); |
@@ -335,7 +335,7 @@ discard block |
||
335 | 335 | private function getPunchesFromPage(IHttpResponse $punchesPageResponse) |
336 | 336 | { |
337 | 337 | if ($punchesPageResponse->getHttpStatus() !== IHttpClient::HTTP_STATUS_OK) { |
338 | - throw new InvalidArgumentException('The request returned http status ' . $punchesPageResponse->getHttpStatus()); |
|
338 | + throw new InvalidArgumentException('The request returned http status '.$punchesPageResponse->getHttpStatus()); |
|
339 | 339 | } |
340 | 340 | |
341 | 341 | $punches = $this->parsePunchesPage($punchesPageResponse); |