Skip to content

Commit

Permalink
php stan used on Invoice handler class
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed Nov 25, 2023
1 parent 85595e6 commit 846b20e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/AbraFlexi/FakturaVydana.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public function vytvorVazbuZDD($income)
public function zrusVazbuZdd($id = null)
{
$unbondRequest = [
'id' => is_null($id) ? $this->getRecordIent() : $id,
'id' => is_null($id) ? $this->getRecordIdent() : $id,
'zrus-vazbu-zdd'
];

Expand All @@ -205,9 +205,7 @@ public function getQrCodeImage($size = 140)
'GET',
'png'
);
if ($this->lastResponseCode == 200) {
return $this->lastCurlResponse;
}
return $this->lastResponseCode == 200 ? $this->lastCurlResponse : '';
}

/**
Expand All @@ -225,14 +223,14 @@ public function getQrCodeBase64($size = 140)
/**
* Get Number of days overdue
*
* @param string $dueDate AbraFlexi date
* @param string|Date $dueDate AbraFlexi date
*
* @return int
*/
public static function overdueDays($dueDate)
{
if (is_object($dueDate) && array_key_exists('isNull', get_class_vars(get_class($dueDate))) && ($dueDate->isNull === true)) {
throw new Exception('$dueDate->isNull is true', self);
throw new Exception('$dueDate->isNull is true', $this);
}
$dateDiff = date_diff(
is_object($dueDate) ? $dueDate : RO::flexiDateToDateTime($dueDate),
Expand Down

0 comments on commit 846b20e

Please sign in to comment.