Skip to content

Commit

Permalink
Merge pull request #162 from emelnychenko/patch-1
Browse files Browse the repository at this point in the history
PHP 7.2 type warning
  • Loading branch information
hlu2 authored Jul 20, 2018
2 parents 2943e4d + bb70b35 commit 8d51279
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ReportService/ReportService.php
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ private function useMinorVersion()
private function getReportQueryParameters()
{
$uriParameterList = array();
$uriParameterString = null;
$uriParameterString = '';

if (!is_null($this->report_date)) {
array_push($uriParameterList, array("report_date", $this->getReportDate()));
Expand Down Expand Up @@ -1156,7 +1156,7 @@ private function getReportQueryParameters()


foreach ($uriParameterList as $uriParameter) {
if (sizeof($uriParameterString) > 0) {
if (strlen($uriParameterString) > 0) {
$uriParameterString .= "&";
}
$uriParameterString .= $uriParameter[0];
Expand All @@ -1178,7 +1178,7 @@ public function executeReport($reportName)
$querySeparator = "?";
$reportQueryParameters = $this->getReportQueryParameters();

if ($reportQueryParameters) {
if (strlen($reportQueryParameters) > 0) {
$httpRequestUri = implode(CoreConstants::SLASH_CHAR, array('company', $this->serviceContext->realmId, $urlResource, $reportName, $querySeparator));
$httpRequestUri .= $reportQueryParameters;
} else {
Expand Down

0 comments on commit 8d51279

Please sign in to comment.