Compare commits

...

2 Commits

Author SHA1 Message Date
Beu
9a6d7a9284 floor to prevent implicit conversion 2023-01-17 12:32:10 +01:00
Beu
fab4b98787 fix property 2023-01-17 12:31:50 +01:00
2 changed files with 3 additions and 3 deletions

View File

@ -89,7 +89,7 @@ abstract class Formatter implements UsageInformationAble {
*/
public static function formatTimeH($seconds) {
$hrs = floor($seconds / 3600);
$mins = intval(($seconds / 60) % 60);
$mins = intval(floor(($seconds / 60) % 60));
$sec = intval($seconds % 60);
$hrs = str_pad($hrs, 2, '0', STR_PAD_LEFT);

View File

@ -73,7 +73,7 @@ class CheckBoxDesign implements Imageable, Styleable, SubStyleable
public function setStyle($style)
{
$this->style = (string)$style;
$this->url = null;
$this->imageUrl = null;
return $this;
}
@ -91,7 +91,7 @@ class CheckBoxDesign implements Imageable, Styleable, SubStyleable
public function setSubStyle($subStyle)
{
$this->subStyle = (string)$subStyle;
$this->url = null;
$this->imageUrl = null;
return $this;
}