@@ -2013,26 +2013,26 @@ |
||
2013 | 2013 | } |
2014 | 2014 | } |
2015 | 2015 | |
2016 | - private static function getArrayItem(null|array|bool|SimpleXMLElement $array, int|string $key = 0): mixed |
|
2016 | + private static function getArrayItem(null | array | bool | SimpleXMLElement $array, int | string $key = 0): mixed |
|
2017 | 2017 | { |
2018 | 2018 | return ($array === null || is_bool($array)) ? null : ($array[$key] ?? null); |
2019 | 2019 | } |
2020 | 2020 | |
2021 | - private static function getArrayItemString(null|array|bool|SimpleXMLElement $array, int|string $key = 0): string |
|
2021 | + private static function getArrayItemString(null | array | bool | SimpleXMLElement $array, int | string $key = 0): string |
|
2022 | 2022 | { |
2023 | 2023 | $retVal = self::getArrayItem($array, $key); |
2024 | 2024 | |
2025 | 2025 | return ($retVal === null || is_scalar($retVal) || $retVal instanceof Stringable) ? ((string) $retVal) : ''; |
2026 | 2026 | } |
2027 | 2027 | |
2028 | - private static function getArrayItemIntOrSxml(null|array|bool|SimpleXMLElement $array, int|string $key = 0): int|SimpleXMLElement |
|
2028 | + private static function getArrayItemIntOrSxml(null | array | bool | SimpleXMLElement $array, int | string $key = 0): int | SimpleXMLElement |
|
2029 | 2029 | { |
2030 | 2030 | $retVal = self::getArrayItem($array, $key); |
2031 | 2031 | |
2032 | 2032 | return (is_int($retVal) || $retVal instanceof SimpleXMLElement) ? $retVal : 0; |
2033 | 2033 | } |
2034 | 2034 | |
2035 | - private static function dirAdd(null|SimpleXMLElement|string $base, null|SimpleXMLElement|string $add): string |
|
2035 | + private static function dirAdd(null | SimpleXMLElement | string $base, null | SimpleXMLElement | string $add): string |
|
2036 | 2036 | { |
2037 | 2037 | $base = (string) $base; |
2038 | 2038 | $add = (string) $add; |
@@ -920,7 +920,7 @@ |
||
920 | 920 | * |
921 | 921 | * @return $this |
922 | 922 | */ |
923 | - public function setFormulaAttributes(null|array $attributes): self |
|
923 | + public function setFormulaAttributes(null | array $attributes): self |
|
924 | 924 | { |
925 | 925 | $this->formulaAttributes = $attributes; |
926 | 926 |