Skip to content

Commit

Permalink
[PSR4] ApplicationModule - (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 5badcdc commit ea87588
Show file tree
Hide file tree
Showing 32 changed files with 69 additions and 69 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Crm\InvoicesModule\Components\DownloadReceiptButton;

use Crm\ApplicationModule\Widget\BaseLazyWidget;
use Crm\ApplicationModule\Models\Widget\BaseLazyWidget;

/**
* Download receipt button widget.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Crm\InvoicesModule\Components\DownloadReceiptButton;

use Crm\ApplicationModule\Widget\LazyWidgetManager;
use Crm\ApplicationModule\Widget\WidgetFactoryInterface;
use Crm\ApplicationModule\Widget\WidgetInterface;
use Crm\ApplicationModule\Models\Widget\LazyWidgetManager;
use Crm\ApplicationModule\Models\Widget\WidgetFactoryInterface;
use Crm\ApplicationModule\Models\Widget\WidgetInterface;

class DownloadReceiptButtonFactory implements WidgetFactoryInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Crm\InvoicesModule\Components\DownloadReceiptButton;

use Crm\ApplicationModule\Widget\LazyWidgetManager;
use Crm\ApplicationModule\Widget\WidgetFactoryInterface;
use Crm\ApplicationModule\Widget\WidgetInterface;
use Crm\ApplicationModule\Models\Widget\LazyWidgetManager;
use Crm\ApplicationModule\Models\Widget\WidgetFactoryInterface;
use Crm\ApplicationModule\Models\Widget\WidgetInterface;

class ReceiptAdminButtonFactory implements WidgetFactoryInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Components/InvoiceButton/InvoiceAdminButtonFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Crm\InvoicesModule\Components\InvoiceButton;

use Crm\ApplicationModule\Widget\LazyWidgetManager;
use Crm\ApplicationModule\Widget\WidgetFactoryInterface;
use Crm\ApplicationModule\Widget\WidgetInterface;
use Crm\ApplicationModule\Models\Widget\LazyWidgetManager;
use Crm\ApplicationModule\Models\Widget\WidgetFactoryInterface;
use Crm\ApplicationModule\Models\Widget\WidgetInterface;
use Crm\InvoicesModule\Repositories\InvoicesRepository;

class InvoiceAdminButtonFactory implements WidgetFactoryInterface
Expand Down
4 changes: 2 additions & 2 deletions src/Components/InvoiceButton/InvoiceButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Crm\InvoicesModule\Components\InvoiceButton;

use Crm\ApplicationModule\Widget\BaseLazyWidget;
use Crm\ApplicationModule\Widget\LazyWidgetManager;
use Crm\ApplicationModule\Models\Widget\BaseLazyWidget;
use Crm\ApplicationModule\Models\Widget\LazyWidgetManager;
use Crm\InvoicesModule\Repositories\InvoicesRepository;
use Nette\Utils\DateTime;

Expand Down
6 changes: 3 additions & 3 deletions src/Components/InvoiceButton/InvoiceFrontendButtonFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Crm\InvoicesModule\Components\InvoiceButton;

use Crm\ApplicationModule\Widget\LazyWidgetManager;
use Crm\ApplicationModule\Widget\WidgetFactoryInterface;
use Crm\ApplicationModule\Widget\WidgetInterface;
use Crm\ApplicationModule\Models\Widget\LazyWidgetManager;
use Crm\ApplicationModule\Models\Widget\WidgetFactoryInterface;
use Crm\ApplicationModule\Models\Widget\WidgetInterface;
use Crm\InvoicesModule\Repositories\InvoicesRepository;

class InvoiceFrontendButtonFactory implements WidgetFactoryInterface
Expand Down
4 changes: 2 additions & 2 deletions src/Components/InvoiceDetailsWidget/InvoiceDetailsWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Crm\InvoicesModule\Components\InvoiceDetailsWidget;

use Crm\ApplicationModule\Widget\BaseLazyWidget;
use Crm\ApplicationModule\Widget\LazyWidgetManager;
use Crm\ApplicationModule\Models\Widget\BaseLazyWidget;
use Crm\ApplicationModule\Models\Widget\LazyWidgetManager;
use Crm\InvoicesModule\Forms\ChangeInvoiceDetailsFormFactory;
use Nette\Localization\Translator;

Expand Down
2 changes: 1 addition & 1 deletion src/Components/InvoiceLabel/InvoiceLabel.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Crm\InvoicesModule\Components\InvoiceLabel;

use Crm\ApplicationModule\Widget\BaseLazyWidget;
use Crm\ApplicationModule\Models\Widget\BaseLazyWidget;

/**
* Simple invoice badge component.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Crm\InvoicesModule\Components\PaymentSuccessInvoiceWidget;

use Crm\ApplicationModule\Widget\BaseLazyWidget;
use Crm\ApplicationModule\Widget\LazyWidgetManager;
use Crm\ApplicationModule\Models\Widget\BaseLazyWidget;
use Crm\ApplicationModule\Models\Widget\LazyWidgetManager;
use Crm\InvoicesModule\Forms\UserInvoiceFormFactory;
use Crm\InvoicesModule\Repositories\InvoicesRepository;
use Crm\PaymentsModule\Models\Gateways\BankTransfer;
Expand Down
2 changes: 1 addition & 1 deletion src/DataProviders/ConfigFormDataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Contributte\Translation\Translator;
use Crm\AdminModule\DataProviders\ConfigFormDataProviderInterface;
use Crm\ApplicationModule\DataProvider\DataProviderException;
use Crm\ApplicationModule\Models\DataProvider\DataProviderException;
use Crm\InvoicesModule\Repositories\InvoicesRepository;
use Nette\Application\UI\Form;

Expand Down
2 changes: 1 addition & 1 deletion src/DataProviders/InvoicesUserDataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Crm\InvoicesModule\DataProviders;

use Crm\ApplicationModule\User\UserDataProviderInterface;
use Crm\ApplicationModule\Models\User\UserDataProviderInterface;
use Crm\InvoicesModule\Models\Generator\InvoiceGenerator;
use Crm\PaymentsModule\Repositories\PaymentsRepository;

Expand Down
2 changes: 1 addition & 1 deletion src/DataProviders/UserFormDataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Crm\InvoicesModule\DataProviders;

use Crm\ApplicationModule\DataProvider\DataProviderException;
use Crm\ApplicationModule\Hermes\HermesMessage;
use Crm\ApplicationModule\Models\DataProvider\DataProviderException;
use Crm\PaymentsModule\Repositories\PaymentsRepository;
use Crm\UsersModule\DataProviders\UserFormDataProviderInterface;
use Crm\UsersModule\Repositories\UsersRepository;
Expand Down
2 changes: 1 addition & 1 deletion src/Events/PaymentStatusChangeHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Crm\InvoicesModule\Events;

use Crm\ApplicationModule\Config\ApplicationConfig;
use Crm\ApplicationModule\Hermes\HermesMessage;
use Crm\ApplicationModule\Models\Config\ApplicationConfig;
use Crm\PaymentsModule\Events\PaymentChangeStatusEvent;
use Crm\PaymentsModule\Repositories\PaymentsRepository;
use League\Event\AbstractListener;
Expand Down
2 changes: 1 addition & 1 deletion src/Events/PreNotificationEventHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Crm\InvoicesModule\Events;

use Crm\ApplicationModule\Config\ApplicationConfig;
use Crm\ApplicationModule\Models\Config\ApplicationConfig;
use Crm\InvoicesModule\Models\Generator\InvoiceGenerationException;
use Crm\InvoicesModule\Models\Generator\InvoiceGenerator;
use Crm\InvoicesModule\Models\Generator\PaymentNotInvoiceableException;
Expand Down
4 changes: 2 additions & 2 deletions src/Forms/ChangeInvoiceDetailsFormFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Crm\InvoicesModule\Forms;

use Crm\ApplicationModule\Config\ApplicationConfig;
use Crm\ApplicationModule\DataProvider\DataProviderManager;
use Crm\ApplicationModule\Hermes\HermesMessage;
use Crm\ApplicationModule\Models\Config\ApplicationConfig;
use Crm\ApplicationModule\Models\DataProvider\DataProviderManager;
use Crm\PaymentsModule\Repositories\PaymentsRepository;
use Crm\UsersModule\DataProviders\AddressFormDataProviderInterface;
use Crm\UsersModule\Repositories\AddressChangeRequestsRepository;
Expand Down
2 changes: 1 addition & 1 deletion src/Forms/ChangeInvoiceFormFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Crm\InvoicesModule\Forms;

use Crm\ApplicationModule\DataProvider\DataProviderManager;
use Crm\ApplicationModule\Models\DataProvider\DataProviderManager;
use Crm\InvoicesModule\Repositories\InvoicesRepository;
use Crm\UsersModule\DataProviders\AddressFormDataProviderInterface;
use Crm\UsersModule\Repositories\CountriesRepository;
Expand Down
4 changes: 2 additions & 2 deletions src/Forms/UserInvoiceFormFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Crm\InvoicesModule\Forms;

use Contributte\Translation\Translator;
use Crm\ApplicationModule\Config\ApplicationConfig;
use Crm\ApplicationModule\DataProvider\DataProviderManager;
use Crm\ApplicationModule\Models\Config\ApplicationConfig;
use Crm\ApplicationModule\Models\DataProvider\DataProviderManager;
use Crm\UsersModule\DataProviders\AddressFormDataProviderInterface;
use Crm\UsersModule\Repositories\AddressChangeRequestsRepository;
use Crm\UsersModule\Repositories\AddressesRepository;
Expand Down
20 changes: 10 additions & 10 deletions src/InvoicesModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

namespace Crm\InvoicesModule;

use Crm\ApplicationModule\Commands\CommandsContainerInterface;
use Crm\ApplicationModule\Criteria\ScenariosCriteriaStorage;
use Crm\ApplicationModule\Application\CommandsContainerInterface;
use Crm\ApplicationModule\Application\Managers\SeederManager;
use Crm\ApplicationModule\CrmModule;
use Crm\ApplicationModule\DataProvider\DataProviderManager;
use Crm\ApplicationModule\Event\EventsStorage;
use Crm\ApplicationModule\Event\LazyEventEmitter;
use Crm\ApplicationModule\Menu\MenuContainerInterface;
use Crm\ApplicationModule\Menu\MenuItem;
use Crm\ApplicationModule\SeederManager;
use Crm\ApplicationModule\User\UserDataRegistrator;
use Crm\ApplicationModule\Widget\LazyWidgetManagerInterface;
use Crm\ApplicationModule\Models\Criteria\ScenariosCriteriaStorage;
use Crm\ApplicationModule\Models\DataProvider\DataProviderManager;
use Crm\ApplicationModule\Models\Event\EventsStorage;
use Crm\ApplicationModule\Models\Event\LazyEventEmitter;
use Crm\ApplicationModule\Models\Menu\MenuContainerInterface;
use Crm\ApplicationModule\Models\Menu\MenuItem;
use Crm\ApplicationModule\Models\User\UserDataRegistrator;
use Crm\ApplicationModule\Models\Widget\LazyWidgetManagerInterface;
use Crm\InvoicesModule\Commands\SendInvoiceCommand;
use Crm\InvoicesModule\Components\DownloadReceiptButton\DownloadReceiptButtonFactory;
use Crm\InvoicesModule\Components\DownloadReceiptButton\ReceiptAdminButtonFactory;
Expand Down
8 changes: 4 additions & 4 deletions src/Models/Generator/InvoiceGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

use Contributte\PdfResponse\PdfResponse;
use Contributte\Translation\Translator;
use Crm\ApplicationModule\Config\ApplicationConfig;
use Crm\ApplicationModule\Helpers\PriceHelper;
use Crm\ApplicationModule\RedisClientFactory;
use Crm\ApplicationModule\RedisClientTrait;
use Crm\ApplicationModule\RedisClientTraitException;
use Crm\ApplicationModule\Models\Config\ApplicationConfig;
use Crm\ApplicationModule\Models\Redis\RedisClientFactory;
use Crm\ApplicationModule\Models\Redis\RedisClientTrait;
use Crm\ApplicationModule\Models\Redis\RedisClientTraitException;
use Crm\InvoicesModule\Models\InvoiceNumber\InvoiceNumberInterface;
use Crm\InvoicesModule\Repositories\InvoicesRepository;
use Crm\PaymentsModule\Repositories\PaymentsRepository;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Generator/ReceiptGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

use Contributte\PdfResponse\PdfResponse;
use Contributte\Translation\Translator;
use Crm\ApplicationModule\Config\ApplicationConfig;
use Crm\ApplicationModule\Helpers\LocalizedDateHelper;
use Crm\ApplicationModule\Helpers\PriceHelper;
use Crm\ApplicationModule\Helpers\UserDateHelper;
use Crm\ApplicationModule\Models\Config\ApplicationConfig;
use Latte\Engine;
use Latte\Essential\TranslatorExtension;
use Nette\Database\Table\ActiveRow;
Expand Down
2 changes: 1 addition & 1 deletion src/Repositories/InvoiceItemsRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Crm\InvoicesModule\Repositories;

use Crm\ApplicationModule\Repository;
use Crm\ApplicationModule\Models\Database\Repository;

class InvoiceItemsRepository extends Repository
{
Expand Down
4 changes: 2 additions & 2 deletions src/Repositories/InvoiceNumbersRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Crm\InvoicesModule\Repositories;

use Crm\ApplicationModule\Repository;
use Crm\ApplicationModule\Repository\AuditLogRepository;
use Crm\ApplicationModule\Models\Database\Repository;
use Crm\ApplicationModule\Repositories\AuditLogRepository;
use Nette\Database\Explorer;

class InvoiceNumbersRepository extends Repository
Expand Down
6 changes: 3 additions & 3 deletions src/Repositories/InvoicesRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace Crm\InvoicesModule\Repositories;

use Crm\ApplicationModule\Config\ApplicationConfig;
use Crm\ApplicationModule\Helpers\UserDateHelper;
use Crm\ApplicationModule\Hermes\HermesMessage;
use Crm\ApplicationModule\Repository;
use Crm\ApplicationModule\Repository\AuditLogRepository;
use Crm\ApplicationModule\Models\Config\ApplicationConfig;
use Crm\ApplicationModule\Models\Database\Repository;
use Crm\ApplicationModule\Repositories\AuditLogRepository;
use Crm\InvoicesModule\Events\NewInvoiceEvent;
use Crm\PaymentsModule\Repositories\PaymentsRepository;
use Crm\SubscriptionsModule\Models\PaymentItem\SubscriptionTypePaymentItem;
Expand Down
4 changes: 2 additions & 2 deletions src/Scenarios/HasInvoiceCriteria.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Crm\InvoicesModule\Scenarios;

use Contributte\Translation\Translator;
use Crm\ApplicationModule\Criteria\ScenarioParams\BooleanParam;
use Crm\ApplicationModule\Criteria\ScenariosCriteriaInterface;
use Crm\ApplicationModule\Models\Criteria\ScenarioParams\BooleanParam;
use Crm\ApplicationModule\Models\Criteria\ScenariosCriteriaInterface;
use Nette\Database\Table\ActiveRow;
use Nette\Database\Table\Selection;

Expand Down
6 changes: 3 additions & 3 deletions src/Seeders/ConfigsSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace Crm\InvoicesModule\Seeders;

use Crm\ApplicationModule\Builder\ConfigBuilder;
use Crm\ApplicationModule\Config\ApplicationConfig;
use Crm\ApplicationModule\Config\Repository\ConfigCategoriesRepository;
use Crm\ApplicationModule\Config\Repository\ConfigsRepository;
use Crm\ApplicationModule\Models\Config\ApplicationConfig;
use Crm\ApplicationModule\Repositories\ConfigCategoriesRepository;
use Crm\ApplicationModule\Repositories\ConfigsRepository;
use Crm\ApplicationModule\Seeders\ConfigsTrait;
use Crm\ApplicationModule\Seeders\ISeeder;
use Crm\InvoicesModule\Repositories\InvoicesRepository;
Expand Down
2 changes: 1 addition & 1 deletion src/Tests/BaseTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Crm\InvoicesModule\Tests;

use Crm\ApplicationModule\Config\Repository\ConfigsRepository;
use Crm\ApplicationModule\Repositories\ConfigsRepository;
use Crm\ApplicationModule\Seeders\CountriesSeeder;
use Crm\ApplicationModule\Tests\DatabaseTestCase;
use Crm\InvoicesModule\Repositories\InvoiceNumbersRepository;
Expand Down
6 changes: 3 additions & 3 deletions src/Tests/Events/PaymentStatusChangeHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Crm\InvoicesModule\Tests\Events;

use Crm\ApplicationModule\Config\ApplicationConfig;
use Crm\ApplicationModule\Config\Repository\ConfigCategoriesRepository;
use Crm\ApplicationModule\Config\Repository\ConfigsRepository;
use Crm\ApplicationModule\Models\Config\ApplicationConfig;
use Crm\ApplicationModule\Repositories\ConfigCategoriesRepository;
use Crm\ApplicationModule\Repositories\ConfigsRepository;
use Crm\ApplicationModule\Tests\DatabaseTestCase;
use Crm\InvoicesModule\Events\PaymentStatusChangeHandler;
use Crm\InvoicesModule\Hermes\GenerateInvoiceHandler;
Expand Down
2 changes: 1 addition & 1 deletion src/Tests/Generator/InvoicesGeneratorGenerateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Crm\InvoicesModule\Tests\Generator;

use Contributte\PdfResponse\PdfResponse;
use Crm\ApplicationModule\Config\Repository\ConfigsRepository;
use Crm\ApplicationModule\Repositories\ConfigsRepository;
use Crm\ApplicationModule\Tests\DatabaseTestCase;
use Crm\InvoicesModule\Models\Generator\InvoiceGenerator;
use Crm\InvoicesModule\Models\Generator\PaymentNotInvoiceableException;
Expand Down
4 changes: 2 additions & 2 deletions src/Tests/Hermes/GenerateInvoiceHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Crm\InvoicesModule\Tests\Hermes;

use Crm\ApplicationModule\Config\Repository\ConfigCategoriesRepository;
use Crm\ApplicationModule\Config\Repository\ConfigsRepository;
use Crm\ApplicationModule\Hermes\HermesMessage;
use Crm\ApplicationModule\Repositories\ConfigCategoriesRepository;
use Crm\ApplicationModule\Repositories\ConfigsRepository;
use Crm\ApplicationModule\Seeders\ConfigsSeeder;
use Crm\ApplicationModule\Tests\DatabaseTestCase;
use Crm\InvoicesModule\Hermes\GenerateInvoiceHandler;
Expand Down
4 changes: 2 additions & 2 deletions src/Tests/PreNotificationHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Crm\InvoicesModule\Tests;

use Crm\ApplicationModule\Config\Repository\ConfigsRepository;
use Crm\ApplicationModule\Event\LazyEventEmitter;
use Crm\ApplicationModule\Models\Event\LazyEventEmitter;
use Crm\ApplicationModule\Repositories\ConfigsRepository;
use Crm\InvoicesModule\Events\PreNotificationEventHandler;
use Crm\PaymentsModule\Events\PaymentChangeStatusEvent;
use Crm\PaymentsModule\Events\PaymentStatusChangeHandler;
Expand Down
6 changes: 3 additions & 3 deletions src/Tests/Repository/InvoicesRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Crm\InvoicesModule\Tests\Repository;

use Crm\ApplicationModule\Config\ApplicationConfig;
use Crm\ApplicationModule\Config\Repository\ConfigCategoriesRepository;
use Crm\ApplicationModule\Config\Repository\ConfigsRepository;
use Crm\ApplicationModule\Models\Config\ApplicationConfig;
use Crm\ApplicationModule\Repositories\ConfigCategoriesRepository;
use Crm\ApplicationModule\Repositories\ConfigsRepository;
use Crm\ApplicationModule\Seeders\ConfigsSeeder as ApplicationConfigsSeeder;
use Crm\ApplicationModule\Tests\DatabaseTestCase;
use Crm\InvoicesModule\Models\InvoiceNumber\InvoiceNumber;
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\ApplicationModule\Application\Core;
use Phinx\Migration\AbstractMigration;

class InvoicesCountryIdNullable extends AbstractMigration
Expand Down

0 comments on commit ea87588

Please sign in to comment.