Fix styling
This commit is contained in:
1 parent
6cfff43c22
commit
8659810fce
1 file changed
+3
-5
@@ -5,7 +5,6 @@ namespace Hekmatinasser\Verta\Traits;
|
|||||||
use DateTimeZone;
|
use DateTimeZone;
|
||||||
use Hekmatinasser\Verta\Verta;
|
use Hekmatinasser\Verta\Verta;
|
||||||
use InvalidArgumentException;
|
use InvalidArgumentException;
|
||||||
use ReturnTypeWillChange;
|
|
||||||
|
|
||||||
trait Accessor
|
trait Accessor
|
||||||
{
|
{
|
||||||
@@ -35,13 +34,12 @@ trait Accessor
|
|||||||
|
|
||||||
if (array_key_exists($name, $formats)) {
|
if (array_key_exists($name, $formats)) {
|
||||||
return (int) $this->format($formats[$name]);
|
return (int) $this->format($formats[$name]);
|
||||||
}
|
} elseif ($name === 'quarter') {
|
||||||
elseif ($name === 'quarter') {
|
|
||||||
return (int) ceil($this->month / static::MONTHS_PER_QUARTER);
|
return (int) ceil($this->month / static::MONTHS_PER_QUARTER);
|
||||||
}
|
} elseif ($name === 'timezone') {
|
||||||
elseif ($name === 'timezone') {
|
|
||||||
return $this->getTimezone()->getName();
|
return $this->getTimezone()->getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new InvalidArgumentException(sprintf("Unknown getter '%s'", $name));
|
throw new InvalidArgumentException(sprintf("Unknown getter '%s'", $name));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user