Skip to content

Commit 248cb23

Browse files
herbertrothgithub-actions[bot]
authored andcommitted
Apply php-cs-fixer changes
1 parent 0c30321 commit 248cb23

17 files changed

+106
-22
lines changed

src/Contract/Lib/Cache/RuntimeCacheResolverContract.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
use Pimcore\Cache\RuntimeCache;
2020

21-
2221
class RuntimeCacheResolverContract implements RuntimeCacheResolverContractInterface
2322
{
2423
public function load(string $id): mixed

src/Contract/Lib/Cache/RuntimeCacheResolverContractInterface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
namespace Pimcore\Bundle\StaticResolverBundle\Contract\Lib\Cache;
1818

19-
2019
interface RuntimeCacheResolverContractInterface
2120
{
2221
public function load(string $id): mixed;

src/Contract/Lib/CacheResolverContract.php

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
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\Lib;
518

619
use DateInterval;
720
use Pimcore\Cache;
821

922
class CacheResolverContract implements CacheResolverContractInterface
1023
{
11-
1224
public function load(string $key): mixed
1325
{
1426
return Cache::load($key);
@@ -41,8 +53,7 @@ public function save(
4153
DateInterval|int|null $lifetime = null,
4254
int $priority = 0,
4355
bool $force = false
44-
): void
45-
{
56+
): void {
4657
Cache::save($data, $key, $tags, $lifetime, $priority, $force);
4758
}
4859

src/Contract/Lib/CacheResolverContractInterface.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
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\Lib;
518

619
use DateInterval;
720

821
interface CacheResolverContractInterface
922
{
10-
1123
public function load(string $key): mixed;
1224

1325
public function remove(string $key): bool;

src/Contract/Lib/ConfigResolverContract.php

Lines changed: 14 additions & 2 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\Lib;
518

619
use Pimcore\Config;
@@ -11,8 +24,7 @@ public function getWebsiteConfigValue(
1124
?string $key = null,
1225
mixed $default = null,
1326
?string $language = null
14-
): mixed
15-
{
27+
): mixed {
1628
return Config::getWebsiteConfigValue($key, $default, $language);
1729
}
1830

src/Contract/Lib/ConfigResolverContractInterface.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
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\Lib;
518

619
interface ConfigResolverContractInterface
720
{
8-
921
public function getEnvironment(): string;
1022

1123
public function getWebsiteConfigValue(?string $key = null, mixed $default = null, ?string $language = null): mixed;

src/Contract/Lib/PimcoreResolverContract.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
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\Lib;
518

619
use Pimcore;
720

821
class PimcoreResolverContract implements PimcoreResolverContractInterface
922
{
10-
1123
public function isInstalled(): bool
1224
{
1325
return Pimcore::isInstalled();

src/Contract/Lib/PimcoreResolverContractInterface.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\Lib;
518

619
interface PimcoreResolverContractInterface

src/Contract/Lib/ToolResolverContract.php

Lines changed: 13 additions & 1 deletion
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\Lib;
518

619
use Exception;
@@ -9,7 +22,6 @@
922

1023
class ToolResolverContract implements ToolResolverContractInterface
1124
{
12-
1325
/**
1426
* @throws Exception
1527
*/

src/Contract/Lib/ToolResolverContractInterface.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\Lib;
518

619
use Exception;

0 commit comments

Comments
 (0)