Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
herbertroth authored and github-actions[bot] committed Sep 18, 2024
1 parent f0e4e78 commit e365cd6
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function get(object $object, array $config = null): mixed
if (is_bool($value) || $source['forceBool']) {
$values[] = $source['fieldname'];
} else {
if(is_array($value)) {
if (is_array($value)) {
$values = array_merge($values, $value);
} else {
$values[] = $value;
Expand All @@ -77,7 +77,7 @@ public function get(object $object, array $config = null): mixed
if (is_bool($value) || $source['forceBool']) {
$values[] = $source['fieldname'];
} else {
if(is_array($value)) {
if (is_array($value)) {
$values = array_merge($values, $value);
} else {
$values[] = $value;
Expand Down
2 changes: 1 addition & 1 deletion src/IndexService/IndexUpdateService.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ protected function resetIds(array $idList, string $triggerInfo, bool $onlyResetU
return;
}

if(is_array($tenantNameList) && count($tenantNameList) === 0) {
if (is_array($tenantNameList) && count($tenantNameList) === 0) {
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,7 @@ protected function convertBucketValues(array $bucket): array
$data['key_as_string'] = $bucket['key_as_string'];
} elseif (is_array($reverseAggregationBucket) && array_key_exists('doc_count', $reverseAggregationBucket)) { // reverse aggregation
$data['reverse_count'] = $reverseAggregationBucket['doc_count'];
} elseif(is_array($subAggregationBuckets) && isset($subAggregationBuckets['buckets'])) { // sub aggregations
} elseif (is_array($subAggregationBuckets) && isset($subAggregationBuckets['buckets'])) { // sub aggregations
foreach ($subAggregationBuckets['buckets'] as $bucket) {
$data[$subAggregationField][] = $this->convertBucketValues($bucket);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Currency.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ protected function getFormatter(): IntlFormatter

public function toCurrency(null|float|int|string|Decimal $value, array|string $pattern = 'default'): string
{
if($value == null) {
if ($value == null) {
return '';
}

Expand Down
2 changes: 1 addition & 1 deletion src/Model/DefaultMockup.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function __call(string $method, array $args): mixed
$attributeName = substr($method, 3);
}

foreach([$attributeName, lcfirst($attributeName)] as $attrName) {
foreach ([$attributeName, lcfirst($attributeName)] as $attrName) {

if (is_array($this->params) && array_key_exists($attrName, $this->params)) {
return $this->params[$attrName];
Expand Down
4 changes: 2 additions & 2 deletions src/PricingManager/Condition/DateRange.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ public function fromJSON(string $string): ConditionInterface
$json = json_decode($string);

$starting = \DateTime::createFromFormat('d.m.Y', $json->starting, new DateTimeZone('UTC'));
if($starting instanceof \DateTime) {
if ($starting instanceof \DateTime) {
$starting->setTime(0, 0, 0);
$this->setStarting($starting);
}

$ending = \DateTime::createFromFormat('d.m.Y', $json->ending, new DateTimeZone('UTC'));
if($ending instanceof \DateTime) {
if ($ending instanceof \DateTime) {
$ending->setTime(23, 59, 59);
$this->setEnding($ending);
}
Expand Down

0 comments on commit e365cd6

Please sign in to comment.