Skip to content

Commit

Permalink
[PSR4] UsersModule - (Rector) Fix uses of changed classes
Browse files Browse the repository at this point in the history
remp/crm#2228
  • Loading branch information
markoph committed Jan 22, 2024
1 parent e10324b commit 980176e
Show file tree
Hide file tree
Showing 23 changed files with 69 additions and 69 deletions.
4 changes: 2 additions & 2 deletions src/DataProviders/UserFormDataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
use Crm\ApplicationModule\DataProvider\DataProviderException;
use Crm\ApplicationModule\Hermes\HermesMessage;
use Crm\PaymentsModule\Repository\PaymentsRepository;
use Crm\UsersModule\DataProvider\UserFormDataProviderInterface;
use Crm\UsersModule\Repository\UsersRepository;
use Crm\UsersModule\DataProviders\UserFormDataProviderInterface;
use Crm\UsersModule\Repositories\UsersRepository;
use Nette\Application\UI\Form;
use Tomaj\Hermes\Emitter;

Expand Down
2 changes: 1 addition & 1 deletion src/Events/AddressChangedHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Crm\ApplicationModule\Hermes\HermesMessage;
use Crm\PaymentsModule\Repository\PaymentsRepository;
use Crm\UsersModule\Events\AddressChangedEvent;
use Crm\UsersModule\Repository\UsersRepository;
use Crm\UsersModule\Repositories\UsersRepository;
use League\Event\AbstractListener;
use League\Event\EventInterface;
use Tomaj\Hermes\Emitter as HermesEmitter;
Expand Down
2 changes: 1 addition & 1 deletion src/Events/AddressRemovedHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Crm\InvoicesModule\Events;

use Crm\UsersModule\Events\IAddressEvent;
use Crm\UsersModule\Repository\UsersRepository;
use Crm\UsersModule\Repositories\UsersRepository;
use League\Event\AbstractListener;
use League\Event\EventInterface;

Expand Down
2 changes: 1 addition & 1 deletion src/Events/NewAddressHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Crm\ApplicationModule\Hermes\HermesMessage;
use Crm\PaymentsModule\Repository\PaymentsRepository;
use Crm\UsersModule\Events\NewAddressEvent;
use Crm\UsersModule\Repository\UsersRepository;
use Crm\UsersModule\Repositories\UsersRepository;
use League\Event\AbstractListener;
use League\Event\EventInterface;
use Tomaj\Hermes\Emitter as HermesEmitter;
Expand Down
10 changes: 5 additions & 5 deletions src/Forms/ChangeInvoiceDetailsFormFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
use Crm\ApplicationModule\DataProvider\DataProviderManager;
use Crm\ApplicationModule\Hermes\HermesMessage;
use Crm\PaymentsModule\Repository\PaymentsRepository;
use Crm\UsersModule\DataProvider\AddressFormDataProviderInterface;
use Crm\UsersModule\Repository\AddressChangeRequestsRepository;
use Crm\UsersModule\Repository\AddressesRepository;
use Crm\UsersModule\Repository\CountriesRepository;
use Crm\UsersModule\Repository\UsersRepository;
use Crm\UsersModule\DataProviders\AddressFormDataProviderInterface;
use Crm\UsersModule\Repositories\AddressChangeRequestsRepository;
use Crm\UsersModule\Repositories\AddressesRepository;
use Crm\UsersModule\Repositories\CountriesRepository;
use Crm\UsersModule\Repositories\UsersRepository;
use Nette\Application\BadRequestException;
use Nette\Application\UI\Form;
use Nette\Localization\Translator;
Expand Down
4 changes: 2 additions & 2 deletions src/Forms/ChangeInvoiceFormFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

use Crm\ApplicationModule\DataProvider\DataProviderManager;
use Crm\InvoicesModule\Repositories\InvoicesRepository;
use Crm\UsersModule\DataProvider\AddressFormDataProviderInterface;
use Crm\UsersModule\Repository\CountriesRepository;
use Crm\UsersModule\DataProviders\AddressFormDataProviderInterface;
use Crm\UsersModule\Repositories\CountriesRepository;
use Nette\Application\UI\Form;
use Nette\Localization\Translator;
use Tomaj\Form\Renderer\BootstrapRenderer;
Expand Down
10 changes: 5 additions & 5 deletions src/Forms/UserInvoiceFormFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
use Contributte\Translation\Translator;
use Crm\ApplicationModule\Config\ApplicationConfig;
use Crm\ApplicationModule\DataProvider\DataProviderManager;
use Crm\UsersModule\DataProvider\AddressFormDataProviderInterface;
use Crm\UsersModule\Repository\AddressChangeRequestsRepository;
use Crm\UsersModule\Repository\AddressesRepository;
use Crm\UsersModule\Repository\CountriesRepository;
use Crm\UsersModule\Repository\UsersRepository;
use Crm\UsersModule\DataProviders\AddressFormDataProviderInterface;
use Crm\UsersModule\Repositories\AddressChangeRequestsRepository;
use Crm\UsersModule\Repositories\AddressesRepository;
use Crm\UsersModule\Repositories\CountriesRepository;
use Crm\UsersModule\Repositories\UsersRepository;
use Nette\Application\UI\Form;
use Nette\Database\Table\ActiveRow;
use Tomaj\Form\Renderer\BootstrapRenderer;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Generator/InvoiceGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Crm\InvoicesModule\Models\InvoiceNumber\InvoiceNumberInterface;
use Crm\InvoicesModule\Repositories\InvoicesRepository;
use Crm\PaymentsModule\Repository\PaymentsRepository;
use Crm\UsersModule\Repository\AddressesRepository;
use Crm\UsersModule\Repositories\AddressesRepository;
use Latte\Engine;
use Latte\Essential\TranslatorExtension;
use Nette\Database\Table\ActiveRow;
Expand Down
2 changes: 1 addition & 1 deletion src/Presenters/InvoicesAdminPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use Crm\InvoicesModule\Repositories\InvoiceNumbersRepository;
use Crm\InvoicesModule\Repositories\InvoicesRepository;
use Crm\PaymentsModule\Repository\PaymentsRepository;
use Crm\UsersModule\Repository\AddressesRepository;
use Crm\UsersModule\Repositories\AddressesRepository;
use Nette\Application\BadRequestException;
use Nette\Application\Responses\FileResponse;
use Nette\Application\Responses\TextResponse;
Expand Down
2 changes: 1 addition & 1 deletion src/Repositories/InvoicesRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Crm\InvoicesModule\Events\NewInvoiceEvent;
use Crm\PaymentsModule\Repository\PaymentsRepository;
use Crm\SubscriptionsModule\Models\PaymentItem\SubscriptionTypePaymentItem;
use Crm\UsersModule\Repository\AddressesRepository;
use Crm\UsersModule\Repositories\AddressesRepository;
use IntlDateFormatter;
use League\Event\Emitter;
use Nette\Database\Explorer;
Expand Down
2 changes: 1 addition & 1 deletion src/Seeders/AddressTypesSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Crm\InvoicesModule\Seeders;

use Crm\ApplicationModule\Seeders\ISeeder;
use Crm\UsersModule\Repository\AddressTypesRepository;
use Crm\UsersModule\Repositories\AddressTypesRepository;
use Symfony\Component\Console\Output\OutputInterface;

class AddressTypesSeeder implements ISeeder
Expand Down
10 changes: 5 additions & 5 deletions src/Tests/BaseTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
use Crm\SubscriptionsModule\Seeders\SubscriptionExtensionMethodsSeeder;
use Crm\SubscriptionsModule\Seeders\SubscriptionLengthMethodSeeder;
use Crm\SubscriptionsModule\Seeders\SubscriptionTypeNamesSeeder;
use Crm\UsersModule\Repository\AddressTypesRepository;
use Crm\UsersModule\Repository\AddressesRepository;
use Crm\UsersModule\Repository\CountriesRepository;
use Crm\UsersModule\Repository\LoginAttemptsRepository;
use Crm\UsersModule\Repository\UsersRepository;
use Crm\UsersModule\Repositories\AddressTypesRepository;
use Crm\UsersModule\Repositories\AddressesRepository;
use Crm\UsersModule\Repositories\CountriesRepository;
use Crm\UsersModule\Repositories\LoginAttemptsRepository;
use Crm\UsersModule\Repositories\UsersRepository;

abstract class BaseTestCase extends DatabaseTestCase
{
Expand Down
10 changes: 5 additions & 5 deletions src/Tests/Events/AddressChangedHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
use Crm\PaymentsModule\Repository\PaymentGatewaysRepository;
use Crm\PaymentsModule\Repository\PaymentItemsRepository;
use Crm\PaymentsModule\Repository\PaymentsRepository;
use Crm\UsersModule\Auth\UserManager;
use Crm\UsersModule\Events\AddressChangedEvent;
use Crm\UsersModule\Events\UserMetaEvent;
use Crm\UsersModule\Repository\AddressTypesRepository;
use Crm\UsersModule\Repository\AddressesRepository;
use Crm\UsersModule\Repository\CountriesRepository;
use Crm\UsersModule\Repository\UsersRepository;
use Crm\UsersModule\Models\Auth\UserManager;
use Crm\UsersModule\Repositories\AddressTypesRepository;
use Crm\UsersModule\Repositories\AddressesRepository;
use Crm\UsersModule\Repositories\CountriesRepository;
use Crm\UsersModule\Repositories\UsersRepository;
use Nette\Database\Table\ActiveRow;
use Nette\Utils\DateTime;
use Tomaj\Hermes\Dispatcher;
Expand Down
10 changes: 5 additions & 5 deletions src/Tests/Events/NewAddressHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
use Crm\PaymentsModule\Repository\PaymentGatewaysRepository;
use Crm\PaymentsModule\Repository\PaymentItemsRepository;
use Crm\PaymentsModule\Repository\PaymentsRepository;
use Crm\UsersModule\Auth\UserManager;
use Crm\UsersModule\Events\AddressChangedEvent;
use Crm\UsersModule\Events\NewAddressEvent;
use Crm\UsersModule\Repository\AddressTypesRepository;
use Crm\UsersModule\Repository\AddressesRepository;
use Crm\UsersModule\Repository\CountriesRepository;
use Crm\UsersModule\Repository\UsersRepository;
use Crm\UsersModule\Models\Auth\UserManager;
use Crm\UsersModule\Repositories\AddressTypesRepository;
use Crm\UsersModule\Repositories\AddressesRepository;
use Crm\UsersModule\Repositories\CountriesRepository;
use Crm\UsersModule\Repositories\UsersRepository;
use Nette\Database\Table\ActiveRow;
use Nette\Utils\DateTime;
use Tomaj\Hermes\Dispatcher;
Expand Down
4 changes: 2 additions & 2 deletions src/Tests/Events/PaymentStatusChangeHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
use Crm\PaymentsModule\Repository\PaymentGatewaysRepository;
use Crm\PaymentsModule\Repository\PaymentItemsRepository;
use Crm\PaymentsModule\Repository\PaymentsRepository;
use Crm\UsersModule\Auth\UserManager;
use Crm\UsersModule\Repository\UsersRepository;
use Crm\UsersModule\Models\Auth\UserManager;
use Crm\UsersModule\Repositories\UsersRepository;
use Nette\Database\Table\ActiveRow;
use Nette\Utils\DateTime;
use Tomaj\Hermes\Dispatcher;
Expand Down
10 changes: 5 additions & 5 deletions src/Tests/Generator/InvoicesGeneratorGenerateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
use Crm\PaymentsModule\Repository\PaymentGatewaysRepository;
use Crm\PaymentsModule\Repository\PaymentItemsRepository;
use Crm\PaymentsModule\Repository\PaymentsRepository;
use Crm\UsersModule\Auth\UserManager;
use Crm\UsersModule\Repository\AddressTypesRepository;
use Crm\UsersModule\Repository\AddressesRepository;
use Crm\UsersModule\Repository\CountriesRepository;
use Crm\UsersModule\Repository\UsersRepository;
use Crm\UsersModule\Models\Auth\UserManager;
use Crm\UsersModule\Repositories\AddressTypesRepository;
use Crm\UsersModule\Repositories\AddressesRepository;
use Crm\UsersModule\Repositories\CountriesRepository;
use Crm\UsersModule\Repositories\UsersRepository;
use Nette\Database\Table\ActiveRow;
use Nette\Utils\DateTime;

Expand Down
8 changes: 4 additions & 4 deletions src/Tests/HasInvoiceCriteriaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
use Crm\PaymentsModule\Repository\PaymentsRepository;
use Crm\PaymentsModule\Tests\PaymentsTestCase;
use Crm\SubscriptionsModule\Models\Builder\SubscriptionTypeBuilder;
use Crm\UsersModule\Auth\UserManager;
use Crm\UsersModule\Repository\AddressTypesRepository;
use Crm\UsersModule\Repository\AddressesRepository;
use Crm\UsersModule\Repository\CountriesRepository;
use Crm\UsersModule\Models\Auth\UserManager;
use Crm\UsersModule\Repositories\AddressTypesRepository;
use Crm\UsersModule\Repositories\AddressesRepository;
use Crm\UsersModule\Repositories\CountriesRepository;
use Nette\Utils\DateTime;
use PHPUnit\Framework\Attributes\DataProvider;

Expand Down
12 changes: 6 additions & 6 deletions src/Tests/Hermes/GenerateInvoiceHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
use Crm\SubscriptionsModule\Repositories\SubscriptionTypesRepository;
use Crm\SubscriptionsModule\Seeders\SubscriptionExtensionMethodsSeeder;
use Crm\SubscriptionsModule\Seeders\SubscriptionLengthMethodSeeder;
use Crm\UsersModule\Auth\UserManager;
use Crm\UsersModule\Repository\AccessTokensRepository;
use Crm\UsersModule\Repository\AddressTypesRepository;
use Crm\UsersModule\Repository\AddressesRepository;
use Crm\UsersModule\Repository\CountriesRepository;
use Crm\UsersModule\Repository\UsersRepository;
use Crm\UsersModule\Models\Auth\UserManager;
use Crm\UsersModule\Repositories\AccessTokensRepository;
use Crm\UsersModule\Repositories\AddressTypesRepository;
use Crm\UsersModule\Repositories\AddressesRepository;
use Crm\UsersModule\Repositories\CountriesRepository;
use Crm\UsersModule\Repositories\UsersRepository;
use Nette\Database\Table\ActiveRow;
use Nette\Utils\DateTime;

Expand Down
2 changes: 1 addition & 1 deletion src/Tests/InvoiceNumbersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use Crm\PaymentsModule\Repository\PaymentGatewaysRepository;
use Crm\PaymentsModule\Repository\PaymentsRepository;
use Crm\PaymentsModule\Seeders\PaymentGatewaysSeeder;
use Crm\UsersModule\Repository\UsersRepository;
use Crm\UsersModule\Repositories\UsersRepository;
use DateTime;

class InvoiceNumbersTest extends DatabaseTestCase
Expand Down
8 changes: 4 additions & 4 deletions src/Tests/PreNotificationHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
use Crm\PaymentsModule\Repository\PaymentMetaRepository;
use Crm\PaymentsModule\Repository\PaymentsRepository;
use Crm\SubscriptionsModule\Models\Builder\SubscriptionTypeBuilder;
use Crm\UsersModule\Auth\UserManager;
use Crm\UsersModule\Events\NotificationContext;
use Crm\UsersModule\Events\NotificationEvent;
use Crm\UsersModule\Events\PreNotificationEvent;
use Crm\UsersModule\Repository\AddressesRepository;
use Crm\UsersModule\Repository\CountriesRepository;
use Crm\UsersModule\Repository\UsersRepository;
use Crm\UsersModule\Models\Auth\UserManager;
use Crm\UsersModule\Repositories\AddressesRepository;
use Crm\UsersModule\Repositories\CountriesRepository;
use Crm\UsersModule\Repositories\UsersRepository;
use Nette\Utils\DateTime;

class PreNotificationHandlerTest extends BaseTestCase
Expand Down
10 changes: 5 additions & 5 deletions src/Tests/Repository/InvoicesRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
use Crm\SubscriptionsModule\Seeders\SubscriptionExtensionMethodsSeeder;
use Crm\SubscriptionsModule\Seeders\SubscriptionLengthMethodSeeder;
use Crm\SubscriptionsModule\Seeders\SubscriptionTypeNamesSeeder;
use Crm\UsersModule\Auth\UserManager;
use Crm\UsersModule\Repository\AddressTypesRepository;
use Crm\UsersModule\Repository\AddressesRepository;
use Crm\UsersModule\Repository\CountriesRepository;
use Crm\UsersModule\Repository\UsersRepository;
use Crm\UsersModule\Models\Auth\UserManager;
use Crm\UsersModule\Repositories\AddressTypesRepository;
use Crm\UsersModule\Repositories\AddressesRepository;
use Crm\UsersModule\Repositories\CountriesRepository;
use Crm\UsersModule\Repositories\UsersRepository;
use Nette\Database\Table\ActiveRow;
use Nette\Utils\DateTime;

Expand Down
10 changes: 5 additions & 5 deletions src/Tests/Repository/IsPaymentInvoiceableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
use Crm\PaymentsModule\Repository\PaymentItemsRepository;
use Crm\PaymentsModule\Repository\PaymentMetaRepository;
use Crm\PaymentsModule\Repository\PaymentsRepository;
use Crm\UsersModule\Auth\UserManager;
use Crm\UsersModule\Repository\AddressTypesRepository;
use Crm\UsersModule\Repository\AddressesRepository;
use Crm\UsersModule\Repository\CountriesRepository;
use Crm\UsersModule\Repository\UsersRepository;
use Crm\UsersModule\Models\Auth\UserManager;
use Crm\UsersModule\Repositories\AddressTypesRepository;
use Crm\UsersModule\Repositories\AddressesRepository;
use Crm\UsersModule\Repositories\CountriesRepository;
use Crm\UsersModule\Repositories\UsersRepository;
use Nette\Database\Table\ActiveRow;
use Nette\Utils\DateTime;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Crm\UsersModule\Repositories\CountriesRepository;
use Crm\ApplicationModule\Core;
use Crm\UsersModule\Repository\CountriesRepository;
use Phinx\Migration\AbstractMigration;

class InvoicesCountryIdNullable extends AbstractMigration
Expand Down

0 comments on commit 980176e

Please sign in to comment.