Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

Commit

Permalink
CS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fracsi committed Apr 8, 2021
1 parent 6174932 commit 22c725f
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 16 deletions.
1 change: 0 additions & 1 deletion src/MailchimpBundle/ApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use MailchimpMarketing\Api\ListsApi;
use MailchimpMarketing\Api\PingApi;
use MailchimpMarketing\ApiClient as BaseApiClient;

use function mb_strtolower;
use function md5;

Expand Down
7 changes: 3 additions & 4 deletions src/MailchimpBundle/Controller/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@

namespace Wgg\MailchimpBundle\Controller;

use function array_filter;
use Exception;
use function is_array;
use function json_decode;
use Pimcore\Bundle\AdminBundle\Controller\AdminController as BaseAdminController;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Annotation\Route;
use Wgg\MailchimpBundle\ApiClient;
use Wgg\MailchimpBundle\MailchimpConfiguration;

use function array_filter;
use function is_array;
use function json_decode;

class AdminController extends BaseAdminController
{
private MailchimpConfiguration $cookieConfiguration;
Expand Down
5 changes: 2 additions & 3 deletions src/MailchimpBundle/ListOptionsProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@

namespace Wgg\MailchimpBundle;

use function implode;
use function md5;
use Pimcore\Cache;
use Pimcore\Model\DataObject\ClassDefinition\DynamicOptionsProvider\MultiSelectOptionsProviderInterface;
use Pimcore\Model\DataObject\ClassDefinition\DynamicOptionsProvider\SelectOptionsProviderInterface;

use function implode;
use function md5;

class ListOptionsProvider implements MultiSelectOptionsProviderInterface, SelectOptionsProviderInterface
{
private ApiClient $apiClient;
Expand Down
3 changes: 1 addition & 2 deletions src/MailchimpBundle/Storage/FileStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@

namespace Wgg\MailchimpBundle\Storage;

use function file_exists;
use Pimcore\Config;
use Pimcore\File;
use Symfony\Component\Yaml\Yaml;

use function file_exists;

class FileStorage implements StorageInterface
{
public function read(): array
Expand Down
3 changes: 1 addition & 2 deletions src/MailchimpBundle/Storage/SettingsStoreStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

namespace Wgg\MailchimpBundle\Storage;

use Pimcore\Model\Tool\SettingsStore;

use function explode;
use function implode;
use Pimcore\Model\Tool\SettingsStore;

class SettingsStoreStorage implements StorageInterface
{
Expand Down
3 changes: 1 addition & 2 deletions tests/ListOptionsProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
use Pimcore\Test\KernelTestCase;
use stdClass;
use Symfony\Component\Filesystem\Filesystem;
use function ucfirst;
use Wgg\MailchimpBundle\ApiClient;
use Wgg\MailchimpBundle\ListOptionsProvider;

use function ucfirst;

class ListOptionsProviderTest extends KernelTestCase
{
private Filesystem $fs;
Expand Down
3 changes: 1 addition & 2 deletions tests/MailchimpConfigurationSettingsStoreStorageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@

namespace Wgg\MailchimpBundle\Tests;

use function implode;
use Pimcore\Model\Tool\SettingsStore;
use Pimcore\Test\KernelTestCase;
use Symfony\Component\Filesystem\Filesystem;
use Wgg\MailchimpBundle\MailchimpConfiguration;

use function implode;

class MailchimpConfigurationSettingsStoreStorageTest extends KernelTestCase
{
private Filesystem $fs;
Expand Down

0 comments on commit 22c725f

Please sign in to comment.