Skip to content

Commit b63ba03

Browse files
herbertrothgithub-actions[bot]
authored andcommitted
Apply php-cs-fixer changes
1 parent e98d401 commit b63ba03

File tree

4 files changed

+37
-23
lines changed

4 files changed

+37
-23
lines changed

src/Contract/Models/DataObject/DataObjectServiceResolverContract.php

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,41 @@
11
<?php
22
declare(strict_types=1);
33

4+
/**
5+
* Pimcore
6+
*
7+
* This source file is available under two different licenses:
8+
* - GNU General Public License version 3 (GPLv3)
9+
* - Pimcore Commercial License (PCL)
10+
* Full copyright and license information is available in
11+
* LICENSE.md which is distributed with this source code.
12+
*
13+
* @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
14+
* @license http://www.pimcore.org/license GPLv3 and PCL
15+
*/
16+
417
namespace Pimcore\Bundle\StaticResolverBundle\Contract\Models\DataObject;
518

619
use Exception;
20+
use Pimcore\Model;
721
use Pimcore\Model\Asset;
822
use Pimcore\Model\DataObject\AbstractObject;
923
use Pimcore\Model\DataObject\ClassDefinition;
1024
use Pimcore\Model\DataObject\ClassDefinition\Data;
1125
use Pimcore\Model\DataObject\ClassDefinition\Layout;
1226
use Pimcore\Model\DataObject\Concrete;
27+
use Pimcore\Model\DataObject\Fieldcollection;
1328
use Pimcore\Model\DataObject\Fieldcollection\Data\AbstractData as FieldCollectionData;
1429
use Pimcore\Model\DataObject\Folder;
30+
use Pimcore\Model\DataObject\Objectbrick;
1531
use Pimcore\Model\DataObject\Objectbrick\Data\AbstractData as ObjectBrickData;
1632
use Pimcore\Model\DataObject\Service;
1733
use Pimcore\Model\Document;
1834
use Pimcore\Model\Element\ElementInterface;
1935
use Pimcore\Model\UserInterface;
20-
use Pimcore\Model\DataObject\Fieldcollection;
21-
use Pimcore\Model\DataObject\Objectbrick;
22-
use Pimcore\Model;
2336

2437
class DataObjectServiceResolverContract implements DataObjectServiceResolverContractInterface
2538
{
26-
2739
public function useInheritedValues(bool $inheritValues, callable $fn, array $fnArgs = []): mixed
2840
{
2941
return Service::useInheritedValues($inheritValues, $fn, $fnArgs);
@@ -55,8 +67,7 @@ public function extractFieldDefinitions(
5567
string $targetClass,
5668
array $targetList,
5769
bool $insideDataType
58-
): array
59-
{
70+
): array {
6071

6172
return Service::extractFieldDefinitions($layout, $targetClass, $targetList, $insideDataType);
6273
}
@@ -84,8 +95,7 @@ public function getLanguagePermissions(
8495
FieldCollectionData|ObjectBrickData|AbstractObject $object,
8596
UserInterface $user,
8697
string $type
87-
): ?array
88-
{
98+
): ?array {
8999
return Service::getLanguagePermissions($object, $user, $type);
90100
}
91101

@@ -94,8 +104,7 @@ public function calculateCellValue(
94104
array $helperDefinitions,
95105
string $key,
96106
array $context = []
97-
): mixed
98-
{
107+
): mixed {
99108
return Service::calculateCellValue($object, $helperDefinitions, $key, $context);
100109
}
101110

@@ -122,16 +131,14 @@ public function loadAllObjectFields(AbstractObject $object): void
122131
public function getOptionsForSelectField(
123132
string|Concrete $object,
124133
ClassDefinition\Data\Multiselect|ClassDefinition\Data\Select|string $definition
125-
): array
126-
{
134+
): array {
127135
return Service::getOptionsForSelectField($object, $definition);
128136
}
129137

130138
public function getOptionsForMultiSelectField(
131139
string|Concrete $object,
132140
ClassDefinition\Data\Multiselect|ClassDefinition\Data\Select|string $fieldname
133-
): array
134-
{
141+
): array {
135142
return Service::getOptionsForMultiSelectField($object, $fieldname);
136143
}
137144

@@ -158,8 +165,7 @@ public function getUniqueKey(ElementInterface $element, int $nr = 0): string
158165
public function getCalculatedFieldValue(
159166
Fieldcollection\Data\AbstractData|Objectbrick\Data\AbstractData|Concrete $object,
160167
?Data\CalculatedValue $data
161-
): mixed
162-
{
168+
): mixed {
163169
return Service::getCalculatedFieldValue($object, $data);
164170
}
165171

@@ -176,8 +182,7 @@ public function doResetDirtyMap(Model\AbstractModel $container, ClassDefinition|
176182
public function recursiveResetDirtyMap(
177183
Model\AbstractModel $container,
178184
ClassDefinition|ClassDefinition\Data $fd
179-
): void
180-
{
185+
): void {
181186
Service::doResetDirtyMap($container, $fd);
182187
}
183188

@@ -241,8 +246,7 @@ public function getElementFromSession(
241246
int $elementId,
242247
string $sessionId,
243248
?string $postfix = ''
244-
): Asset|Document|AbstractObject|null
245-
{
249+
): Asset|Document|AbstractObject|null {
246250
return Service::getElementFromSession($type, $elementId, $sessionId, $postfix);
247251
}
248252

src/Contract/Models/DataObject/DataObjectServiceResolverContractInterface.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
<?php
22
declare(strict_types=1);
33

4+
/**
5+
* Pimcore
6+
*
7+
* This source file is available under two different licenses:
8+
* - GNU General Public License version 3 (GPLv3)
9+
* - Pimcore Commercial License (PCL)
10+
* Full copyright and license information is available in
11+
* LICENSE.md which is distributed with this source code.
12+
*
13+
* @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
14+
* @license http://www.pimcore.org/license GPLv3 and PCL
15+
*/
16+
417
namespace Pimcore\Bundle\StaticResolverBundle\Contract\Models\DataObject;
518

619
use Exception;

src/Models/DataObject/DataObjectServiceResolver.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
*/
2828
final class DataObjectServiceResolver extends DataObjectServiceResolverContract implements DataObjectServiceResolverInterface
2929
{
30-
3130
public function getCustomLayoutDefinitionForGridColumnConfig(ClassDefinition $class, int $objectId): array
3231
{
3332
return Service::getCustomLayoutDefinitionForGridColumnConfig($class, $objectId);
@@ -45,5 +44,4 @@ public function enrichLayoutPermissions(Data &$layout, ?array $allowedView, ?arr
4544
{
4645
Service::enrichLayoutPermissions($layout, $allowedView, $allowedEdit);
4746
}
48-
4947
}

src/Models/DataObject/DataObjectServiceResolverInterface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
*/
2727
interface DataObjectServiceResolverInterface extends DataObjectServiceResolverContractInterface
2828
{
29-
3029
public function getCustomLayoutDefinitionForGridColumnConfig(ClassDefinition $class, int $objectId): array;
3130

3231
public function enrichLayoutDefinition(

0 commit comments

Comments
 (0)