Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexz707 authored and github-actions[bot] committed Jun 24, 2024
1 parent 59a7ef4 commit 5900b61
Show file tree
Hide file tree
Showing 11 changed files with 120 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
namespace Pimcore\Bundle\StudioBackendBundle\DependencyInjection\CompilerPass;

use Pimcore\Bundle\StudioBackendBundle\Exception\MustImplementInterfaceException;
use Pimcore\Bundle\StudioBackendBundle\Mercure\Provider\ServerTopicProviderInterface;
use Pimcore\Bundle\StudioBackendBundle\Mercure\Provider\ClientTopicProviderInterface;
use Pimcore\Bundle\StudioBackendBundle\Mercure\Provider\ServerTopicProviderInterface;
use Pimcore\Bundle\StudioBackendBundle\Mercure\Service\Loader\TaggedIteratorAdapter;
use Pimcore\Bundle\StudioBackendBundle\Util\Traits\MustImplementInterfaceTrait;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
Expand Down
1 change: 1 addition & 0 deletions src/Mercure/Controller/JwtController.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public function auth(): Response
$res->headers->setCookie(
$this->createCookie(0)
);

return $res;
}

Expand Down
23 changes: 22 additions & 1 deletion src/Mercure/Model/TopicCollection.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
<?php
declare(strict_types=1);

/**
* Pimcore
*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - Pimcore Commercial License (PCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
* @license http://www.pimcore.org/license GPLv3 and PCL
*/

namespace Pimcore\Bundle\StudioBackendBundle\Mercure\Model;

/**
Expand All @@ -18,12 +31,14 @@ public function __construct(

/**
* @param string|array<string> $topics
*
* @return void
*/
public function addServerPublishableTopic(string|array $topics): void
{
if (is_array($topics)) {
$this->serverPublishableTopics = array_merge($this->serverPublishableTopics, $topics);

return;
}

Expand All @@ -32,12 +47,14 @@ public function addServerPublishableTopic(string|array $topics): void

/**
* @param string|array<string> $topics
*
* @return void
*/
public function addServerSubscribableTopic(string|array $topics): void
{
if (is_array($topics)) {
$this->serverSubscribableTopics = array_merge($this->serverSubscribableTopics, $topics);

return;
}

Expand All @@ -46,12 +63,14 @@ public function addServerSubscribableTopic(string|array $topics): void

/**
* @param string|array<string> $topics
*
* @return void
*/
public function addClientPublishableTopic(string|array $topics): void
{
if (is_array($topics)) {
$this->clientPublishableTopics = array_merge($this->clientPublishableTopics, $topics);

return;
}

Expand All @@ -60,12 +79,14 @@ public function addClientPublishableTopic(string|array $topics): void

/**
* @param string|array<string> $topics
*
* @return void
*/
public function addClientSubscribableTopic(string|array $topics): void
{
if (is_array($topics)) {
$this->clientSubscribableTopics = array_merge($this->clientSubscribableTopics, $topics);

return;
}

Expand Down Expand Up @@ -103,4 +124,4 @@ public function getClientSubscribableTopics(): array
{
return array_unique($this->clientSubscribableTopics);
}
}
}
13 changes: 13 additions & 0 deletions src/Mercure/Provider/ClientTopicProviderInterface.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
<?php
declare(strict_types=1);

/**
* Pimcore
*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - Pimcore Commercial License (PCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
* @license http://www.pimcore.org/license GPLv3 and PCL
*/

namespace Pimcore\Bundle\StudioBackendBundle\Mercure\Provider;

interface ClientTopicProviderInterface
Expand Down
13 changes: 13 additions & 0 deletions src/Mercure/Provider/ServerTopicProviderInterface.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
<?php
declare(strict_types=1);

/**
* Pimcore
*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - Pimcore Commercial License (PCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
* @license http://www.pimcore.org/license GPLv3 and PCL
*/

namespace Pimcore\Bundle\StudioBackendBundle\Mercure\Provider;

interface ServerTopicProviderInterface
Expand Down
13 changes: 13 additions & 0 deletions src/Mercure/Service/ClientTokenService.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
<?php
declare(strict_types=1);

/**
* Pimcore
*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - Pimcore Commercial License (PCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
* @license http://www.pimcore.org/license GPLv3 and PCL
*/

namespace Pimcore\Bundle\StudioBackendBundle\Mercure\Service;

use Pimcore\Bundle\StudioBackendBundle\Mercure\Model\TopicCollection;
Expand Down
3 changes: 2 additions & 1 deletion src/Mercure/Service/Loader/TaggedIteratorAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
namespace Pimcore\Bundle\StudioBackendBundle\Mercure\Service\Loader;

use Pimcore\Bundle\StudioBackendBundle\Mercure\Model\TopicCollection;
use Pimcore\Bundle\StudioBackendBundle\Mercure\Provider\ServerTopicProviderInterface;
use Pimcore\Bundle\StudioBackendBundle\Mercure\Provider\ClientTopicProviderInterface;
use Pimcore\Bundle\StudioBackendBundle\Mercure\Provider\ServerTopicProviderInterface;
use Symfony\Component\DependencyInjection\Attribute\TaggedIterator;

/**
Expand Down Expand Up @@ -48,6 +48,7 @@ public function loadTopics(): TopicCollection
$collection->addClientSubscribableTopic($topicProvider->getClientSubscribableTopic());
}
}

return $collection;
}
}
15 changes: 14 additions & 1 deletion src/Mercure/Service/Loader/TopicLoaderInterface.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
<?php
declare(strict_types=1);

/**
* Pimcore
*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - Pimcore Commercial License (PCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
* @license http://www.pimcore.org/license GPLv3 and PCL
*/

namespace Pimcore\Bundle\StudioBackendBundle\Mercure\Service\Loader;

use Pimcore\Bundle\StudioBackendBundle\Mercure\Model\TopicCollection;
Expand All @@ -14,4 +27,4 @@ interface TopicLoaderInterface
* @return TopicCollection
*/
public function loadTopics(): TopicCollection;
}
}
14 changes: 14 additions & 0 deletions src/Mercure/Service/PublishService.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
<?php
declare(strict_types=1);

/**
* Pimcore
*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - Pimcore Commercial License (PCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
* @license http://www.pimcore.org/license GPLv3 and PCL
*/

namespace Pimcore\Bundle\StudioBackendBundle\Mercure\Service;

use JsonException;
Expand All @@ -19,6 +32,7 @@ public function __construct(

/**
* @param string|array<string> $topics
*
* @throws JsonEncodingException
*/
public function publish(
Expand Down
14 changes: 14 additions & 0 deletions src/Mercure/Service/PublishServiceInterface.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
<?php
declare(strict_types=1);

/**
* Pimcore
*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - Pimcore Commercial License (PCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
* @license http://www.pimcore.org/license GPLv3 and PCL
*/

namespace Pimcore\Bundle\StudioBackendBundle\Mercure\Service;

use Pimcore\Bundle\StudioBackendBundle\Exception\JsonEncodingException;
Expand All @@ -9,6 +22,7 @@ interface PublishServiceInterface
{
/**
* @param string|array<string> $topics
*
* @throws JsonEncodingException
*/
public function publish(
Expand Down
13 changes: 13 additions & 0 deletions src/Mercure/Service/ServerTokenService.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
<?php
declare(strict_types=1);

/**
* Pimcore
*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - Pimcore Commercial License (PCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
* @license http://www.pimcore.org/license GPLv3 and PCL
*/

namespace Pimcore\Bundle\StudioBackendBundle\Mercure\Service;

use Pimcore\Bundle\StudioBackendBundle\Mercure\Model\TopicCollection;
Expand Down

0 comments on commit 5900b61

Please sign in to comment.