Skip to content

Commit 69f0979

Browse files
OpenDXP Botgithub-actions[bot]
authored andcommitted
Apply php-cs-fixer changes
1 parent d75953e commit 69f0979

12 files changed

Lines changed: 70 additions & 31 deletions
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
$rulesFile = __DIR__ . '/.php-cs-fixer-rules-global.php';
4+
$finderFile = __DIR__ . '/.php-cs-fixer-finder.dist.php';
5+
6+
if (!file_exists($finderFile)) {
7+
throw new RuntimeException('Finder file not found: ' . $finderFile);
8+
}
9+
10+
$finder = require $finderFile;
11+
$rules = require $rulesFile;
12+
13+
$rules['header_comment'] = [
14+
'comment_type' => 'PHPDoc',
15+
'header' => 'OpenDXP' . PHP_EOL
16+
. PHP_EOL .
17+
'This source file is licensed under the GNU General Public License version 3 (GPLv3).' . PHP_EOL
18+
. PHP_EOL .
19+
'Full copyright and license information is available in' . PHP_EOL .
20+
'LICENSE.md which is distributed with this source code.' . PHP_EOL
21+
. PHP_EOL .
22+
'@copyright Copyright (c) CoreShop GmbH (https://www.coreshop.com)' . PHP_EOL .
23+
'@copyright Modification Copyright (c) OpenDXP (https://www.opendxp.io)' . PHP_EOL .
24+
'@license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License version 3 (GPLv3)'
25+
];
26+
27+
$config = new PhpCsFixer\Config();
28+
$config->setRules($rules);
29+
$config->setFinder($finder);
30+
31+
return $config;

src/Controller/Admin/Document/DocumentController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ public function getSiteCustomSettingsAction(Request $request, EventDispatcherInt
737737
$customSettings = $event->getConfigNodes();
738738

739739
return $this->adminJson([
740-
'data' => $customSettings
740+
'data' => $customSettings,
741741
]);
742742
}
743743

src/Dto/SiteCustomSettings/CheckboxNodeConfig.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
* Full copyright and license information is available in
1111
* LICENSE.md which is distributed with this source code.
1212
*
13-
* @copyright Copyright (c) OpenDXP (https://www.opendxp.io)
13+
* @copyright Copyright (c) Pimcore GmbH (https://pimcore.com)
14+
* @copyright Modification Copyright (c) OpenDXP (https://www.opendxp.io)
1415
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License version 3 (GPLv3)
1516
*/
1617

@@ -38,4 +39,4 @@ public function toArray(): array
3839
'uncheckedValue' => $this->uncheckedValue,
3940
];
4041
}
41-
}
42+
}

src/Dto/SiteCustomSettings/DropdownNodeConfig.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
* Full copyright and license information is available in
1111
* LICENSE.md which is distributed with this source code.
1212
*
13-
* @copyright Copyright (c) OpenDXP (https://www.opendxp.io)
13+
* @copyright Copyright (c) Pimcore GmbH (https://pimcore.com)
14+
* @copyright Modification Copyright (c) OpenDXP (https://www.opendxp.io)
1415
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License version 3 (GPLv3)
1516
*/
1617

@@ -21,8 +22,8 @@
2122
final readonly class DropdownNodeConfig implements NodeConfigInterface
2223
{
2324
public function __construct(
24-
public array $store = [],
25-
public bool $required = false,
25+
public array $store = [],
26+
public bool $required = false,
2627
public string $displayField = 'label',
2728
public string $valueField = 'value',
2829
) {
@@ -42,4 +43,4 @@ public function toArray(): array
4243
'valueField' => $this->valueField,
4344
];
4445
}
45-
}
46+
}

src/Dto/SiteCustomSettings/InputNodeConfig.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
* Full copyright and license information is available in
1111
* LICENSE.md which is distributed with this source code.
1212
*
13-
* @copyright Copyright (c) OpenDXP (https://www.opendxp.io)
13+
* @copyright Copyright (c) Pimcore GmbH (https://pimcore.com)
14+
* @copyright Modification Copyright (c) OpenDXP (https://www.opendxp.io)
1415
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License version 3 (GPLv3)
1516
*/
1617

@@ -36,4 +37,4 @@ public function toArray(): array
3637
'required' => $this->required,
3738
];
3839
}
39-
}
40+
}

src/Dto/SiteCustomSettings/NodeConfigInterface.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
* Full copyright and license information is available in
1111
* LICENSE.md which is distributed with this source code.
1212
*
13-
* @copyright Copyright (c) OpenDXP (https://www.opendxp.io)
13+
* @copyright Copyright (c) Pimcore GmbH (https://pimcore.com)
14+
* @copyright Modification Copyright (c) OpenDXP (https://www.opendxp.io)
1415
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License version 3 (GPLv3)
1516
*/
1617

@@ -23,4 +24,4 @@ interface NodeConfigInterface
2324
public function getType(): SiteCustomConfigNodeType;
2425

2526
public function toArray(): array;
26-
}
27+
}

src/Dto/SiteCustomSettings/TextNodeConfig.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
* Full copyright and license information is available in
1111
* LICENSE.md which is distributed with this source code.
1212
*
13-
* @copyright Copyright (c) OpenDXP (https://www.opendxp.io)
13+
* @copyright Copyright (c) Pimcore GmbH (https://pimcore.com)
14+
* @copyright Modification Copyright (c) OpenDXP (https://www.opendxp.io)
1415
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License version 3 (GPLv3)
1516
*/
1617

@@ -36,4 +37,4 @@ public function toArray(): array
3637
'required' => $this->required,
3738
];
3839
}
39-
}
40+
}

src/Enum/SiteCustomConfigNodeType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ enum SiteCustomConfigNodeType: string
2121
case TEXT = 'text';
2222
case CHECKBOX = 'checkbox';
2323
case DROPDOWN = 'combobox';
24-
}
24+
}

src/Event/SiteCustomSettingsEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ public function getSite(): Site
5252
{
5353
return $this->site;
5454
}
55-
}
55+
}

tests/Support/Helper/Unit.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@
1010
* Full copyright and license information is available in
1111
* LICENSE.md which is distributed with this source code.
1212
*
13-
* @copyright Copyright (c) OpenDXP (https://www.opendxp.io)
13+
* @copyright Copyright (c) Pimcore GmbH (https://pimcore.com)
14+
* @copyright Modification Copyright (c) OpenDXP (https://www.opendxp.io)
1415
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License version 3 (GPLv3)
1516
*/
1617

1718
namespace OpenDxp\Bundle\AdminBundle\Tests\Support\Helper;
1819

1920
class Unit extends \Codeception\Module
2021
{
21-
}
22+
}

0 commit comments

Comments
 (0)