mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-15 15:39:31 +00:00
Fixed code style.
This commit is contained in:
parent
2853e471c4
commit
d0b1024d80
212 changed files with 495 additions and 1005 deletions
|
|
@ -20,7 +20,6 @@
|
|||
|
||||
namespace App\Helpers;
|
||||
|
||||
|
||||
use Brick\Math\BigDecimal;
|
||||
use Doctrine\DBAL\Platforms\AbstractPlatform;
|
||||
use Doctrine\DBAL\Types\Type;
|
||||
|
|
@ -35,13 +34,13 @@ class BigDecimalType extends Type
|
|||
}
|
||||
|
||||
/**
|
||||
* @param string $value
|
||||
* @param AbstractPlatform $platform
|
||||
* @param string $value
|
||||
*
|
||||
* @return BigDecimal|\Brick\Math\BigNumber|mixed
|
||||
*/
|
||||
public function convertToPHPValue($value, AbstractPlatform $platform)
|
||||
{
|
||||
if ($value === null) {
|
||||
if (null === $value) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
@ -49,13 +48,11 @@ class BigDecimalType extends Type
|
|||
}
|
||||
|
||||
/**
|
||||
* @param BigDecimal $value
|
||||
* @param AbstractPlatform $platform
|
||||
* @return mixed
|
||||
* @param BigDecimal $value
|
||||
*/
|
||||
public function convertToDatabaseValue($value, AbstractPlatform $platform)
|
||||
{
|
||||
if ($value === null) {
|
||||
if (null === $value) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
@ -71,4 +68,4 @@ class BigDecimalType extends Type
|
|||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue