Skip to content

Commit 073ed0b

Browse files
github-actions[bot]DACHCOM Bot
and
DACHCOM Bot
authored
[CS] Refactor (#207)
Co-authored-by: DACHCOM Bot <[email protected]>
1 parent 64096b1 commit 073ed0b

File tree

131 files changed

+1540
-115
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+1540
-115
lines changed

src/Adapter/Group/AbstractGroup.php

+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
<?php
22

3+
/*
4+
* This source file is available under two different licenses:
5+
* - GNU General Public License version 3 (GPLv3)
6+
* - DACHCOM Commercial License (DCL)
7+
* Full copyright and license information is available in
8+
* LICENSE.md which is distributed with this source code.
9+
*
10+
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
11+
* @license GPLv3 and DCL
12+
*/
13+
314
namespace MembersBundle\Adapter\Group;
415

516
use Pimcore\Model\DataObject\Concrete;

src/Adapter/Group/GroupInterface.php

+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
<?php
22

3+
/*
4+
* This source file is available under two different licenses:
5+
* - GNU General Public License version 3 (GPLv3)
6+
* - DACHCOM Commercial License (DCL)
7+
* Full copyright and license information is available in
8+
* LICENSE.md which is distributed with this source code.
9+
*
10+
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
11+
* @license GPLv3 and DCL
12+
*/
13+
314
namespace MembersBundle\Adapter\Group;
415

516
interface GroupInterface

src/Adapter/Group/GroupTrait.php

+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
<?php
22

3+
/*
4+
* This source file is available under two different licenses:
5+
* - GNU General Public License version 3 (GPLv3)
6+
* - DACHCOM Commercial License (DCL)
7+
* Full copyright and license information is available in
8+
* LICENSE.md which is distributed with this source code.
9+
*
10+
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
11+
* @license GPLv3 and DCL
12+
*/
13+
314
namespace MembersBundle\Adapter\Group;
415

516
trait GroupTrait

src/Adapter/Sso/AbstractSSoIdentity.php

+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
<?php
22

3+
/*
4+
* This source file is available under two different licenses:
5+
* - GNU General Public License version 3 (GPLv3)
6+
* - DACHCOM Commercial License (DCL)
7+
* Full copyright and license information is available in
8+
* LICENSE.md which is distributed with this source code.
9+
*
10+
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
11+
* @license GPLv3 and DCL
12+
*/
13+
314
namespace MembersBundle\Adapter\Sso;
415

516
use Pimcore\Model\DataObject\Concrete;

src/Adapter/Sso/SsoIdentityInterface.php

+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
<?php
22

3+
/*
4+
* This source file is available under two different licenses:
5+
* - GNU General Public License version 3 (GPLv3)
6+
* - DACHCOM Commercial License (DCL)
7+
* Full copyright and license information is available in
8+
* LICENSE.md which is distributed with this source code.
9+
*
10+
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
11+
* @license GPLv3 and DCL
12+
*/
13+
314
namespace MembersBundle\Adapter\Sso;
415

516
interface SsoIdentityInterface

src/Adapter/User/AbstractCustomerUser.php

+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
<?php
22

3+
/*
4+
* This source file is available under two different licenses:
5+
* - GNU General Public License version 3 (GPLv3)
6+
* - DACHCOM Commercial License (DCL)
7+
* Full copyright and license information is available in
8+
* LICENSE.md which is distributed with this source code.
9+
*
10+
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
11+
* @license GPLv3 and DCL
12+
*/
13+
314
namespace MembersBundle\Adapter\User;
415

516
use CustomerManagementFrameworkBundle\Model\CustomerInterface;

src/Adapter/User/AbstractSsoAwareUser.php

+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
<?php
22

3+
/*
4+
* This source file is available under two different licenses:
5+
* - GNU General Public License version 3 (GPLv3)
6+
* - DACHCOM Commercial License (DCL)
7+
* Full copyright and license information is available in
8+
* LICENSE.md which is distributed with this source code.
9+
*
10+
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
11+
* @license GPLv3 and DCL
12+
*/
13+
314
namespace MembersBundle\Adapter\User;
415

516
use Pimcore\Model\DataObject\Concrete;

src/Adapter/User/AbstractUser.php

+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
<?php
22

3+
/*
4+
* This source file is available under two different licenses:
5+
* - GNU General Public License version 3 (GPLv3)
6+
* - DACHCOM Commercial License (DCL)
7+
* Full copyright and license information is available in
8+
* LICENSE.md which is distributed with this source code.
9+
*
10+
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
11+
* @license GPLv3 and DCL
12+
*/
13+
314
namespace MembersBundle\Adapter\User;
415

516
use Pimcore\Model\DataObject\Concrete;

src/Adapter/User/SsoAwareUserInterface.php

+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
<?php
22

3+
/*
4+
* This source file is available under two different licenses:
5+
* - GNU General Public License version 3 (GPLv3)
6+
* - DACHCOM Commercial License (DCL)
7+
* Full copyright and license information is available in
8+
* LICENSE.md which is distributed with this source code.
9+
*
10+
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
11+
* @license GPLv3 and DCL
12+
*/
13+
314
namespace MembersBundle\Adapter\User;
415

516
use MembersBundle\Adapter\Sso\SsoIdentityInterface;

src/Adapter/User/UserInterface.php

+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
<?php
22

3+
/*
4+
* This source file is available under two different licenses:
5+
* - GNU General Public License version 3 (GPLv3)
6+
* - DACHCOM Commercial License (DCL)
7+
* Full copyright and license information is available in
8+
* LICENSE.md which is distributed with this source code.
9+
*
10+
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
11+
* @license GPLv3 and DCL
12+
*/
13+
314
namespace MembersBundle\Adapter\User;
415

516
use Carbon\Carbon;

src/Adapter/User/UserTrait.php

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
<?php
22

3+
/*
4+
* This source file is available under two different licenses:
5+
* - GNU General Public License version 3 (GPLv3)
6+
* - DACHCOM Commercial License (DCL)
7+
* Full copyright and license information is available in
8+
* LICENSE.md which is distributed with this source code.
9+
*
10+
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
11+
* @license GPLv3 and DCL
12+
*/
13+
314
namespace MembersBundle\Adapter\User;
415

516
use MembersBundle\Adapter\Group\GroupInterface;
@@ -48,7 +59,7 @@ public function eraseCredentials(): void
4859
*/
4960
public function isEqualTo(UserInterface $user): bool
5061
{
51-
return $user instanceof self && $user->getId() === $this->getId();
62+
return $user instanceof self && $user->getId() === $this->getId();
5263
}
5364

5465
public function getRoles(): array

src/Command/ClassInstallerCommand.php

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
<?php
22

3+
/*
4+
* This source file is available under two different licenses:
5+
* - GNU General Public License version 3 (GPLv3)
6+
* - DACHCOM Commercial License (DCL)
7+
* Full copyright and license information is available in
8+
* LICENSE.md which is distributed with this source code.
9+
*
10+
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
11+
* @license GPLv3 and DCL
12+
*/
13+
314
namespace MembersBundle\Command;
415

516
use MembersBundle\Tool\ClassInstaller;
@@ -14,7 +25,6 @@ class ClassInstallerCommand extends Command
1425
{
1526
protected static $defaultName = 'members:install:class';
1627
protected static $defaultDescription = 'Install Members Default Classes';
17-
1828
protected ClassInstaller $classInstaller;
1929

2030
public function setClassInstaller(ClassInstaller $classInstaller): void

src/Command/OAuthSetupCommand.php

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
<?php
22

3+
/*
4+
* This source file is available under two different licenses:
5+
* - GNU General Public License version 3 (GPLv3)
6+
* - DACHCOM Commercial License (DCL)
7+
* Full copyright and license information is available in
8+
* LICENSE.md which is distributed with this source code.
9+
*
10+
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
11+
* @license GPLv3 and DCL
12+
*/
13+
314
namespace MembersBundle\Command;
415

516
use MembersBundle\Adapter\Sso\SsoIdentityInterface;
@@ -19,7 +30,6 @@ class OAuthSetupCommand extends Command
1930
{
2031
protected static $defaultName = 'members:oauth:setup';
2132
protected static $defaultDescription = 'This command helps you the enhance Members with oauth2 connectors.';
22-
2333
protected ClassManagerInterface $classManager;
2434
protected ClassInstaller $classInstaller;
2535

src/Configuration/Configuration.php

+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
<?php
22

3+
/*
4+
* This source file is available under two different licenses:
5+
* - GNU General Public License version 3 (GPLv3)
6+
* - DACHCOM Commercial License (DCL)
7+
* Full copyright and license information is available in
8+
* LICENSE.md which is distributed with this source code.
9+
*
10+
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
11+
* @license GPLv3 and DCL
12+
*/
13+
314
namespace MembersBundle\Configuration;
415

516
class Configuration

src/Controller/AbstractController.php

+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
<?php
22

3+
/*
4+
* This source file is available under two different licenses:
5+
* - GNU General Public License version 3 (GPLv3)
6+
* - DACHCOM Commercial License (DCL)
7+
* Full copyright and license information is available in
8+
* LICENSE.md which is distributed with this source code.
9+
*
10+
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
11+
* @license GPLv3 and DCL
12+
*/
13+
314
namespace MembersBundle\Controller;
415

516
use Pimcore\Controller\FrontendController;

src/Controller/Admin/RestrictionController.php

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,24 @@
11
<?php
22

3+
/*
4+
* This source file is available under two different licenses:
5+
* - GNU General Public License version 3 (GPLv3)
6+
* - DACHCOM Commercial License (DCL)
7+
* Full copyright and license information is available in
8+
* LICENSE.md which is distributed with this source code.
9+
*
10+
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
11+
* @license GPLv3 and DCL
12+
*/
13+
314
namespace MembersBundle\Controller\Admin;
415

516
use MembersBundle\Adapter\Group\GroupInterface;
17+
use MembersBundle\Configuration\Configuration;
618
use MembersBundle\Manager\ClassManagerInterface;
719
use MembersBundle\Restriction\Restriction;
820
use MembersBundle\Service\RestrictionService;
921
use Pimcore\Bundle\AdminBundle\Controller\AdminAbstractController;
10-
use MembersBundle\Configuration\Configuration;
1122
use Pimcore\Model\Element\ElementInterface;
1223
use Pimcore\Model\Element\Service;
1324
use Symfony\Component\HttpFoundation\JsonResponse;

src/Controller/AuthController.php

+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
<?php
22

3+
/*
4+
* This source file is available under two different licenses:
5+
* - GNU General Public License version 3 (GPLv3)
6+
* - DACHCOM Commercial License (DCL)
7+
* Full copyright and license information is available in
8+
* LICENSE.md which is distributed with this source code.
9+
*
10+
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
11+
* @license GPLv3 and DCL
12+
*/
13+
314
namespace MembersBundle\Controller;
415

516
use MembersBundle\Form\Factory\FactoryInterface;

src/Controller/ChangePasswordController.php

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
<?php
22

3+
/*
4+
* This source file is available under two different licenses:
5+
* - GNU General Public License version 3 (GPLv3)
6+
* - DACHCOM Commercial License (DCL)
7+
* Full copyright and license information is available in
8+
* LICENSE.md which is distributed with this source code.
9+
*
10+
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
11+
* @license GPLv3 and DCL
12+
*/
13+
314
namespace MembersBundle\Controller;
415

516
use MembersBundle\Adapter\User\UserInterface;
@@ -9,11 +20,11 @@
920
use MembersBundle\Form\Factory\FactoryInterface;
1021
use MembersBundle\Manager\UserManagerInterface;
1122
use MembersBundle\MembersEvents;
12-
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1323
use Symfony\Component\HttpFoundation\RedirectResponse;
1424
use Symfony\Component\HttpFoundation\Request;
1525
use Symfony\Component\HttpFoundation\Response;
1626
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
27+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1728

1829
class ChangePasswordController extends AbstractController
1930
{

src/Controller/DeleteAccountController.php

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
<?php
22

3+
/*
4+
* This source file is available under two different licenses:
5+
* - GNU General Public License version 3 (GPLv3)
6+
* - DACHCOM Commercial License (DCL)
7+
* Full copyright and license information is available in
8+
* LICENSE.md which is distributed with this source code.
9+
*
10+
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
11+
* @license GPLv3 and DCL
12+
*/
13+
314
namespace MembersBundle\Controller;
415

516
use MembersBundle\Adapter\User\UserInterface;
@@ -8,11 +19,11 @@
819
use MembersBundle\Form\Factory\FactoryInterface;
920
use MembersBundle\Manager\UserManagerInterface;
1021
use MembersBundle\MembersEvents;
11-
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1222
use Symfony\Component\HttpFoundation\RedirectResponse;
1323
use Symfony\Component\HttpFoundation\Request;
1424
use Symfony\Component\HttpFoundation\Response;
1525
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
26+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1627

1728
class DeleteAccountController extends AbstractController
1829
{

0 commit comments

Comments
 (0)