Mark all import related code as deprecated

This commit is contained in:
James Cole 2020-03-15 15:31:51 +01:00
parent 9d90beb790
commit 16f918a294
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
145 changed files with 265 additions and 16 deletions

View File

@ -40,6 +40,8 @@ use League\Fractal\Resource\Item;
/**
* Class ImportController
* @deprecated
* @codeCoverageIgnore
*/
class ImportController extends Controller
{

View File

@ -39,6 +39,8 @@ use Log;
/**
* Class CreateCSVImport.
* @deprecated
* @codeCoverageIgnore
*/
class CreateCSVImport extends Command
{

View File

@ -31,6 +31,8 @@ use Log;
/**
* Class CallbackController
* @deprecated
* @codeCoverageIgnore
*/
class CallbackController extends Controller
{

View File

@ -34,6 +34,8 @@ use Log;
/**
*
* Class IndexController
* @deprecated
* @codeCoverageIgnore
*/
class IndexController extends Controller
{

View File

@ -34,6 +34,8 @@ use Log;
/**
* Class JobConfigurationController
* @deprecated
* @codeCoverageIgnore
*/
class JobConfigurationController extends Controller
{

View File

@ -34,6 +34,8 @@ use Log;
/**
* Class JobStatusController
* @deprecated
* @codeCoverageIgnore
*/
class JobStatusController extends Controller
{

View File

@ -32,6 +32,8 @@ use Log;
/**
* Class PrerequisitesController
* @deprecated
* @codeCoverageIgnore
*/
class PrerequisitesController extends Controller
{

View File

@ -45,18 +45,19 @@ class StartFireflySession extends StartSession
$isScriptPage = strpos($uri, 'jscript');
$isDeletePage = strpos($uri, 'delete');
$isLoginPage = strpos($uri, '/login');
$isJsonPage = strpos($uri, '/json');
// also stop remembering "delete" URL's.
if (false === $isScriptPage && false === $isDeletePage
&& false === $isLoginPage
&& false === $isLoginPage && false === $isJsonPage
&& 'GET' === $request->method()
&& !$request->ajax()) {
$session->setPreviousUrl($uri);
//Log::debug(sprintf('Will set previous URL to %s', $uri));
Log::debug(sprintf('Will set previous URL to %s', $uri));
return;
}
//Log::debug(sprintf('Will NOT set previous URL to %s', $uri));
Log::debug(sprintf('Will NOT set previous URL to %s', $uri));
}
}

View File

@ -26,6 +26,8 @@ use Log;
/**
* Class Amount.
* @deprecated
* @codeCoverageIgnore
*/
class Amount implements ConverterInterface
{

View File

@ -24,6 +24,8 @@ namespace FireflyIII\Import\Converter;
/**
* Class AmountCredit
* @deprecated
* @codeCoverageIgnore
*/
class AmountCredit implements ConverterInterface
{

View File

@ -24,6 +24,8 @@ namespace FireflyIII\Import\Converter;
/**
* Class AmountDebit
* @deprecated
* @codeCoverageIgnore
*/
class AmountDebit implements ConverterInterface
{

View File

@ -24,6 +24,8 @@ namespace FireflyIII\Import\Converter;
/**
* Class AmountNegated
* @deprecated
* @codeCoverageIgnore
*/
class AmountNegated implements ConverterInterface
{

View File

@ -29,6 +29,8 @@ use Log;
/**
*
* Class BankDebitCredit
* @deprecated
* @codeCoverageIgnore
*/
class BankDebitCredit implements ConverterInterface
{

View File

@ -24,6 +24,8 @@ namespace FireflyIII\Import\Converter;
/**
* Interface ConverterInterface.
* @deprecated
* @codeCoverageIgnore
*/
interface ConverterInterface
{

View File

@ -34,6 +34,8 @@ use Log;
/**
* Class BunqJobConfiguration
* @deprecated
* @codeCoverageIgnore
*/
class BunqJobConfiguration implements JobConfigurationInterface
{

View File

@ -29,6 +29,8 @@ use Illuminate\Support\MessageBag;
/**
* Class FakeJobConfiguration
* @deprecated
* @codeCoverageIgnore
*/
class FakeJobConfiguration implements JobConfigurationInterface
{

View File

@ -37,6 +37,8 @@ use Illuminate\Support\MessageBag;
/**
* Class FileJobConfiguration
* @deprecated
* @codeCoverageIgnore
*/
class FileJobConfiguration implements JobConfigurationInterface
{

View File

@ -26,6 +26,8 @@ namespace FireflyIII\Import\JobConfiguration;
/**
*
* Class FinTSConfigurationSteps
* @deprecated
* @codeCoverageIgnore
*/
abstract class FinTSConfigurationSteps
{

View File

@ -32,6 +32,8 @@ use Illuminate\Support\MessageBag;
/**
*
* Class FinTSJobConfiguration
* @deprecated
* @codeCoverageIgnore
*/
class FinTSJobConfiguration implements JobConfigurationInterface
{

View File

@ -27,6 +27,8 @@ use Illuminate\Support\MessageBag;
/**
* Interface JobConfigurationInterface.
* @deprecated
* @codeCoverageIgnore
*/
interface JobConfigurationInterface
{

View File

@ -37,6 +37,8 @@ use Log;
/**
* Class SpectreJobConfiguration
* @deprecated
* @codeCoverageIgnore
*/
class SpectreJobConfiguration implements JobConfigurationInterface
{

View File

@ -35,6 +35,8 @@ use Log;
/**
* Class YnabJobConfiguration
* @deprecated
* @codeCoverageIgnore
*/
class YnabJobConfiguration implements JobConfigurationInterface
{

View File

@ -28,6 +28,8 @@ use FireflyIII\Repositories\Account\AccountRepositoryInterface;
/**
* Class AssetAccounts.
* @deprecated
* @codeCoverageIgnore
*/
class AssetAccountIbans implements MapperInterface
{

View File

@ -28,6 +28,8 @@ use FireflyIII\Repositories\Account\AccountRepositoryInterface;
/**
* Class AssetAccounts.
* @deprecated
* @codeCoverageIgnore
*/
class AssetAccounts implements MapperInterface
{

View File

@ -27,6 +27,8 @@ use FireflyIII\Repositories\Bill\BillRepositoryInterface;
/**
* Class Bills.
* @deprecated
* @codeCoverageIgnore
*/
class Bills implements MapperInterface
{

View File

@ -27,6 +27,8 @@ use FireflyIII\Repositories\Budget\BudgetRepositoryInterface;
/**
* Class Budgets.
* @deprecated
* @codeCoverageIgnore
*/
class Budgets implements MapperInterface
{

View File

@ -27,6 +27,8 @@ use FireflyIII\Repositories\Category\CategoryRepositoryInterface;
/**
* Class Categories.
* @deprecated
* @codeCoverageIgnore
*/
class Categories implements MapperInterface
{

View File

@ -24,6 +24,8 @@ namespace FireflyIII\Import\Mapper;
/**
* Interface MapperInterface.
* @deprecated
* @codeCoverageIgnore
*/
interface MapperInterface
{

View File

@ -28,6 +28,8 @@ use FireflyIII\Repositories\Account\AccountRepositoryInterface;
/**
* Class OpposingAccounts.
* @deprecated
* @codeCoverageIgnore
*/
class OpposingAccountIbans implements MapperInterface
{

View File

@ -28,6 +28,9 @@ use FireflyIII\Repositories\Account\AccountRepositoryInterface;
/**
* Class OpposingAccounts.
* @deprecated
* @codeCoverageIgnore
*
*/
class OpposingAccounts implements MapperInterface
{

View File

@ -27,6 +27,8 @@ use FireflyIII\Repositories\Tag\TagRepositoryInterface;
/**
* Class Tags.
* @deprecated
* @codeCoverageIgnore
*/
class Tags implements MapperInterface
{

View File

@ -26,6 +26,8 @@ use FireflyIII\Repositories\Currency\CurrencyRepositoryInterface;
/**
* Class TransactionCurrencies.
* @deprecated
* @codeCoverageIgnore
*/
class TransactionCurrencies implements MapperInterface
{

View File

@ -24,6 +24,8 @@ namespace FireflyIII\Import\MapperPreProcess;
/**
* Interface PreProcessorInterface.
* @deprecated
* @codeCoverageIgnore
*/
interface PreProcessorInterface
{

View File

@ -24,6 +24,8 @@ namespace FireflyIII\Import\MapperPreProcess;
/**
* Class TagsComma.
* @deprecated
* @codeCoverageIgnore
*/
class TagsComma implements PreProcessorInterface
{

View File

@ -24,6 +24,8 @@ namespace FireflyIII\Import\MapperPreProcess;
/**
* Class TagsSpace.
* @deprecated
* @codeCoverageIgnore
*/
class TagsSpace implements PreProcessorInterface
{

View File

@ -33,6 +33,8 @@ use Log;
/**
* This class contains all the routines necessary to connect to Bunq.
* @deprecated
* @codeCoverageIgnore
*/
class BunqPrerequisites implements PrerequisitesInterface
{

View File

@ -30,6 +30,8 @@ use Log;
* This class contains all the routines necessary for the fake import provider.
*
* Class FakePrerequisites
* @deprecated
* @codeCoverageIgnore
*/
class FakePrerequisites implements PrerequisitesInterface
{

View File

@ -30,6 +30,7 @@ use Log;
*
* This class contains all the routines necessary to import from a file. Hint: there are none.
*
* @deprecated
* @codeCoverageIgnore
*/
class FilePrerequisites implements PrerequisitesInterface

View File

@ -27,6 +27,8 @@ use Illuminate\Support\MessageBag;
/**
* Interface PrerequisitesInterface
* @deprecated
* @codeCoverageIgnore
*/
interface PrerequisitesInterface
{

View File

@ -29,6 +29,8 @@ use Log;
/**
* This class contains all the routines necessary to connect to Spectre.
* @deprecated
* @codeCoverageIgnore
*/
class SpectrePrerequisites implements PrerequisitesInterface
{

View File

@ -29,6 +29,8 @@ use Log;
/**
* Class YnabPrerequisites
* @deprecated
* @codeCoverageIgnore
*/
class YnabPrerequisites implements PrerequisitesInterface
{

View File

@ -32,6 +32,8 @@ use Log;
/**
* Class BunqRoutine
* @deprecated
* @codeCoverageIgnore
*/
class BunqRoutine implements RoutineInterface
{

View File

@ -33,6 +33,8 @@ use Log;
/**
* Class FakeRoutine
* @deprecated
* @codeCoverageIgnore
*/
class FakeRoutine implements RoutineInterface
{

View File

@ -30,6 +30,8 @@ use Log;
/**
* Class FileRoutine
* @deprecated
* @codeCoverageIgnore
*/
class FileRoutine implements RoutineInterface
{

View File

@ -33,6 +33,8 @@ use Illuminate\Support\Facades\Log;
/**
*
* Class FinTSRoutine
* @deprecated
* @codeCoverageIgnore
*/
class FinTSRoutine implements RoutineInterface
{

View File

@ -27,6 +27,8 @@ use FireflyIII\Models\ImportJob;
/**
* Interface RoutineInterface
* @deprecated
* @codeCoverageIgnore
*/
interface RoutineInterface
{

View File

@ -32,6 +32,8 @@ use Log;
/**
* Class SpectreRoutine
* @deprecated
* @codeCoverageIgnore
*/
class SpectreRoutine implements RoutineInterface
{

View File

@ -34,6 +34,8 @@ use Log;
/**
* Class YnabRoutine
* @deprecated
* @codeCoverageIgnore
*/
class YnabRoutine implements RoutineInterface
{

View File

@ -24,6 +24,8 @@ namespace FireflyIII\Import\Specifics;
/**
* Class AbnAmroDescription.
* @deprecated
* @codeCoverageIgnore
*
* Parses the description from txt files for ABN AMRO bank accounts.
*

View File

@ -24,6 +24,8 @@ namespace FireflyIII\Import\Specifics;
/**
* Class Belfius.
* @deprecated
* @codeCoverageIgnore
*
* Fixes Belfius CSV files to:
* - Correct descriptions for recurring transactions so doubles can be detected when the equivalent incoming

View File

@ -24,6 +24,8 @@ namespace FireflyIII\Import\Specifics;
/**
* Class IngBelgium.
* @deprecated
* @codeCoverageIgnore
*
* Parses the description and opposing account information (IBAN and name) from CSV files for ING Belgium bank accounts.
*

View File

@ -24,6 +24,8 @@ namespace FireflyIII\Import\Specifics;
/**
* Class IngDescription.
* @deprecated
* @codeCoverageIgnore
*
* Parses the description from CSV files for Ing bank accounts.
*

View File

@ -24,6 +24,8 @@ namespace FireflyIII\Import\Specifics;
/**
* Class PresidentsChoice.
* @deprecated
* @codeCoverageIgnore
*/
class PresidentsChoice implements SpecificInterface
{

View File

@ -24,6 +24,8 @@ namespace FireflyIII\Import\Specifics;
/**
* Class SnsDescription.
* @codeCoverageIgnore
* @deprecated
*/
class SnsDescription implements SpecificInterface
{

View File

@ -24,6 +24,8 @@ namespace FireflyIII\Import\Specifics;
/**
* Interface SpecificInterface.
* @codeCoverageIgnore
* @deprecated
*/
interface SpecificInterface
{

View File

@ -51,6 +51,8 @@ use Log;
* Creates new transactions based on arrays.
*
* Class ImportArrayStorage
* @codeCoverageIgnore
* @deprecated
*
*/
class ImportArrayStorage

View File

@ -31,7 +31,8 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
/**
* Class ImportJob.
*
* @codeCoverageIgnore
* @deprecated
* @property array $transactions
* @property array $configuration
* @property User $user

View File

@ -30,6 +30,7 @@ use Illuminate\Support\ServiceProvider;
/**
* @codeCoverageIgnore
* Class ImportServiceProvider.
* @deprecated
*/
class ImportServiceProvider extends ServiceProvider
{

View File

@ -37,6 +37,8 @@ use Symfony\Component\HttpFoundation\File\UploadedFile;
/**
* Class ImportJobRepository.
* @codeCoverageIgnore
* @deprecated
*
*/
class ImportJobRepository implements ImportJobRepositoryInterface

View File

@ -32,6 +32,8 @@ use Symfony\Component\HttpFoundation\File\UploadedFile;
/**
* Interface ImportJobRepositoryInterface.
* @codeCoverageIgnore
* @deprecated
*/
interface ImportJobRepositoryInterface
{

View File

@ -35,7 +35,9 @@ use Tests\Object\FakeApiContext;
* Special class to hide away bunq's static initialisation methods.
*
* Class ApiContext
*
* @codeCoverageIgnore
* @deprecated
*/
class ApiContext
{

View File

@ -32,6 +32,7 @@ use FireflyIII\Exceptions\FireflyException;
/**
* Class MonetaryAccount
* @codeCoverageIgnore
* @deprecated
*/
class MonetaryAccount
{

View File

@ -32,6 +32,7 @@ use FireflyIII\Exceptions\FireflyException;
/**
* Class Payment
* @codeCoverageIgnore
* @deprecated
*/
class Payment
{

View File

@ -25,7 +25,8 @@ namespace FireflyIII\Services\IP;
/**
* Interface IPRetrievalInterface
*
* @codeCoverageIgnore
* @deprecated
*/
interface IPRetrievalInterface
{

View File

@ -31,7 +31,9 @@ use RuntimeException;
/**
* Class IpifyOrg
*
* @codeCoverageIgnore
* @deprecated
*/
class IpifyOrg implements IPRetrievalInterface
{

View File

@ -33,6 +33,8 @@ use RuntimeException;
/**
* Class PwndVerifierV3
* @codeCoverageIgnore
* @codeCoverageIgnore
* @deprecated
*/
class PwndVerifierV3 implements Verifier
{

View File

@ -26,6 +26,7 @@ namespace FireflyIII\Services\Spectre\Exception;
/**
* @codeCoverageIgnore
* Class DuplicatedCustomerException
* @deprecated
*/
class DuplicatedCustomerException extends SpectreException
{

View File

@ -28,6 +28,7 @@ use Exception;
/**
* @codeCoverageIgnore
* Class SpectreException
* @deprecated
*/
class SpectreException extends Exception
{

View File

@ -26,6 +26,7 @@ namespace FireflyIII\Services\Spectre\Exception;
/**
* @codeCoverageIgnore
* Class WrongRequestFormatException
* @deprecated
*/
class WrongRequestFormatException extends SpectreException
{

View File

@ -30,6 +30,7 @@ use Carbon\Carbon;
*
* @codeCoverageIgnore
* @SuppressWarnings(PHPMD.ShortVariable)
* @deprecated
*/
class Account extends SpectreObject
{

View File

@ -32,6 +32,7 @@ use Carbon\Carbon;
* @codeCoverageIgnore
* @SuppressWarnings(PHPMD.ShortVariable)
* @SuppressWarnings(PHPMD.TooManyFields)
* @deprecated
*/
class Attempt extends SpectreObject
{

View File

@ -27,6 +27,7 @@ namespace FireflyIII\Services\Spectre\Object;
*
* @codeCoverageIgnore
* @SuppressWarnings(PHPMD.ShortVariable)
* @deprecated
*/
class Customer extends SpectreObject
{

View File

@ -27,6 +27,7 @@ namespace FireflyIII\Services\Spectre\Object;
* Class Holder
*
* @codeCoverageIgnore
* @deprecated
*/
class Holder extends SpectreObject
{

View File

@ -32,6 +32,7 @@ use Carbon\Carbon;
* @codeCoverageIgnore
* @SuppressWarnings(PHPMD.ShortVariable)
* @SuppressWarnings(PHPMD.TooManyFields)
* @deprecated
*/
class Login extends SpectreObject
{

View File

@ -25,6 +25,7 @@ namespace FireflyIII\Services\Spectre\Object;
/**
* @codeCoverageIgnore
* Class SpectreObject
* @deprecated
*/
class SpectreObject
{

View File

@ -28,6 +28,7 @@ use Carbon\Carbon;
/**
* @codeCoverageIgnore
* Class Token
* @deprecated
*/
class Token extends SpectreObject
{

View File

@ -29,6 +29,7 @@ use Carbon\Carbon;
* Class Transaction
*
* @codeCoverageIgnore
* @deprecated
*
* @SuppressWarnings(PHPMD.ShortVariable)
*/

View File

@ -31,6 +31,7 @@ use Carbon\Carbon;
* @SuppressWarnings(PHPMD.TooManyFields)
* @SuppressWarnings(PHPMD.ShortVariable)
* @codeCoverageIgnore
* @deprecated
*/
class TransactionExtra extends SpectreObject
{

View File

@ -29,7 +29,9 @@ use FireflyIII\Services\Spectre\Object\Token;
/**
* Class CreateTokenRequest
*
* @codeCoverageIgnore
* @deprecated
*/
class CreateTokenRequest extends SpectreRequest
{

View File

@ -30,7 +30,9 @@ use Log;
/**
* Class ListAccountsRequest
*
* @codeCoverageIgnore
* @deprecated
*/
class ListAccountsRequest extends SpectreRequest
{

View File

@ -29,7 +29,9 @@ use Log;
/**
* Class ListCustomersRequest
*
* @codeCoverageIgnore
* @deprecated
*/
class ListCustomersRequest extends SpectreRequest
{

View File

@ -31,7 +31,9 @@ use Log;
/**
* Class ListLoginsRequest
*
* @codeCoverageIgnore
* @deprecated
*/
class ListLoginsRequest extends SpectreRequest
{

View File

@ -30,7 +30,9 @@ use Log;
/**
* Class ListTransactionsRequest
*
* @codeCoverageIgnore
* @deprecated
*/
class ListTransactionsRequest extends SpectreRequest
{

View File

@ -27,7 +27,9 @@ use Log;
/**
* Class NewCustomerRequest
*
* @codeCoverageIgnore
* @deprecated
*/
class NewCustomerRequest extends SpectreRequest
{

View File

@ -32,7 +32,9 @@ use RuntimeException;
/**
* Class SpectreRequest
*
* @codeCoverageIgnore
* @deprecated
*/
abstract class SpectreRequest
{

View File

@ -27,7 +27,9 @@ use Log;
/**
* Class GetAccountsRequest
*
* @codeCoverageIgnore
* @deprecated
*/
class GetAccountsRequest extends YnabRequest
{

View File

@ -27,7 +27,9 @@ use Log;
/**
* Class GetBudgetsRequest
*
* @codeCoverageIgnore
* @deprecated
*/
class GetBudgetsRequest extends YnabRequest
{

View File

@ -27,7 +27,9 @@ use Log;
/**
* Class GetTransactionsRequest
*
* @codeCoverageIgnore
* @deprecated
*/
class GetTransactionsRequest extends YnabRequest
{

View File

@ -30,7 +30,9 @@ use RuntimeException;
/**
* Class YnabRequest
*
* @codeCoverageIgnore
* @deprecated
*/
abstract class YnabRequest
{

View File

@ -31,6 +31,8 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
/**
* Class ImportProvider.
*
* @deprecated
*/
class ImportProvider implements BinderInterface
{

View File

@ -28,6 +28,7 @@ use Illuminate\Support\Facades\Crypt;
/**
* @codeCoverageIgnore
* @deprecated
* Class FinTS
*/
class FinTS

View File

@ -25,7 +25,8 @@ namespace FireflyIII\Support\FinTS;
use Fhp\Model\StatementOfAccount\Transaction as FinTSTransaction;
/**
*
* @deprecated
* @codeCoverageIgnore
* Class MetadataParser
*/
class MetadataParser

View File

@ -32,7 +32,9 @@ use Log;
/**
* Trait GetSpectreCustomerTrait
*
* @codeCoverageIgnore
* @deprecated
*/
trait GetSpectreCustomerTrait
{

View File

@ -31,7 +31,9 @@ use Log;
/**
* Trait GetSpectreTokenTrait
*
* @codeCoverageIgnore
* @deprecated
*/
trait GetSpectreTokenTrait
{

View File

@ -28,6 +28,8 @@ use Illuminate\Support\MessageBag;
/**
* Interface BunqJobConfigurationInterface
* @deprecated
* @codeCoverageIgnore
*/
interface BunqJobConfigurationInterface
{

View File

@ -36,6 +36,8 @@ use Log;
/**
* Class ChooseAccountsHandler
* @deprecated
* @codeCoverageIgnore
*/
class ChooseAccountsHandler implements BunqJobConfigurationInterface
{

View File

@ -30,6 +30,8 @@ use Log;
/**
* Class NewBunqJobHandler
* @deprecated
* @codeCoverageIgnore
*/
class NewBunqJobHandler implements BunqJobConfigurationInterface
{

View File

@ -39,6 +39,8 @@ use Log;
/**
* Class ConfigureMappingHandler
* @deprecated
* @codeCoverageIgnore
*/
class ConfigureMappingHandler implements FileConfigurationInterface
{

View File

@ -38,6 +38,8 @@ use Log;
/**
* Class ConfigureRolesHandler
* @deprecated
* @codeCoverageIgnore
*/
class ConfigureRolesHandler implements FileConfigurationInterface
{

View File

@ -32,6 +32,8 @@ use Log;
/**
* Class ConfigureUploadHandler
* @deprecated
* @codeCoverageIgnore
*/
class ConfigureUploadHandler implements FileConfigurationInterface
{

Some files were not shown because too many files have changed in this diff Show More