Automatic pass to convert with php-cs-fixer

This commit is contained in:
2023-04-13 21:33:52 +02:00
parent 63b150a493
commit 0111c96f1d
105 changed files with 10478 additions and 8273 deletions

View File

@@ -1,20 +1,24 @@
<?php
/** DomFramework
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
/**
* DomFramework
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework;
/** The graph Axis Horizontal class */
/**
* The graph Axis Horizontal class
*/
class GraphAxisHorizontal extends GraphAxisGeneral
{
/** Calculate the position in pixels for a value
* If the value is out of range, return null to not draw the point
* @param string|float|integer $value The value to position
*/
/**
* Calculate the position in pixels for a value
* If the value is out of range, return null to not draw the point
* @param string|float|integer $value The value to position
*/
public function position($value)
{
if ($value === null) {
@@ -53,7 +57,7 @@ class GraphAxisHorizontal extends GraphAxisGeneral
"No data defined for Axis"
) . " " . get_class($this), 406);
}
$pos = array_search($value, $this->data);
$pos = array_search($value, $this->data, true);
if ($pos === false) {
return null;
}
@@ -62,10 +66,11 @@ class GraphAxisHorizontal extends GraphAxisGeneral
}
}
/** Calculate the positionMin, used for labeled axies
* If the value is out of range, return null to not draw the point
* @param string|float|integer $value The value to position
*/
/**
* Calculate the positionMin, used for labeled axies
* If the value is out of range, return null to not draw the point
* @param string|float|integer $value The value to position
*/
public function positionMin($value)
{
if ($this->numerical) {
@@ -77,7 +82,7 @@ class GraphAxisHorizontal extends GraphAxisGeneral
"No data defined for Axis"
) . " " . get_class($this), 406);
}
$pos = array_search($value, $this->data);
$pos = array_search($value, $this->data, true);
if ($pos === false) {
return null;
}
@@ -85,10 +90,11 @@ class GraphAxisHorizontal extends GraphAxisGeneral
return intval($this->left + $width * $pos);
}
/** Calculate the positionMax, used for labeled axies
* If the value is out of range, return null to not draw the point
* @param string|float|integer $value The value to position
*/
/**
* Calculate the positionMax, used for labeled axies
* If the value is out of range, return null to not draw the point
* @param string|float|integer $value The value to position
*/
public function positionMax($value)
{
$posCenter = $this->position($value);
@@ -101,7 +107,7 @@ class GraphAxisHorizontal extends GraphAxisGeneral
"No data defined for Axis"
) . " " . get_class($this), 406);
}
$pos = array_search($value, $this->data);
$pos = array_search($value, $this->data, true);
if ($pos === false) {
return null;
}