|
@@ -131,8 +131,8 @@ discard block |
|
|
block discarded – undo |
|
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 |
|
|
block discarded – undo |
|
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); |
Please login to merge, or discard this patch.