Add strict types, add debug info

This commit is contained in:
James Cole
2022-07-16 09:25:10 +02:00
parent 5c3b4d1663
commit 9493046212
38 changed files with 222 additions and 86 deletions

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* AccountController.php
* Copyright (c) 2022 james@firefly-iii.org
@@ -29,4 +30,4 @@ use FireflyIII\Api\V2\Controllers\Controller;
class AccountController extends Controller
{
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* AccountController.php
* Copyright (c) 2022 james@firefly-iii.org

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* Controller.php
* Copyright (c) 2022 james@firefly-iii.org
@@ -82,6 +83,11 @@ class Controller extends BaseController
$manager->setSerializer(new JsonApiSerializer($baseUrl));
$objects = $paginator->getCollection();
// the transformer, at this point, needs to collect information that ALL items in the collection
// require, like meta data and stuff like that, and save it for later.
$transformer->collectMetaData($objects);
$resource = new FractalCollection($objects, $transformer, $key);
$resource->setPaginator(new IlluminatePaginatorAdapter($paginator));

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* AccountController.php
* Copyright (c) 2022 james@firefly-iii.org
@@ -29,4 +30,4 @@ use FireflyIII\Api\V2\Controllers\Controller;
class AccountController extends Controller
{
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* AccountController.php
* Copyright (c) 2022 james@firefly-iii.org
@@ -29,4 +30,4 @@ use FireflyIII\Api\V2\Controllers\Controller;
class AccountController extends Controller
{
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* AccountController.php
* Copyright (c) 2022 james@firefly-iii.org
@@ -29,4 +30,4 @@ use FireflyIII\Api\V2\Controllers\Controller;
class AccountController extends Controller
{
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* ShowController.php
* Copyright (c) 2022 james@firefly-iii.org

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* SumController.php
* Copyright (c) 2022 james@firefly-iii.org

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* SumController.php
* Copyright (c) 2022 james@firefly-iii.org

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* NetWorthController.php
* Copyright (c) 2022 james@firefly-iii.org

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* AccountController.php
* Copyright (c) 2022 james@firefly-iii.org
@@ -29,4 +30,4 @@ use FireflyIII\Api\V2\Controllers\Controller;
class AccountController extends Controller
{
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* ConfigurationController.php
* Copyright (c) 2022 james@firefly-iii.org
@@ -24,4 +25,4 @@ namespace FireflyIII\Api\V2\Controllers\System;
class ConfigurationController
{
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* DebugController.php
* Copyright (c) 2022 james@firefly-iii.org
@@ -26,4 +27,4 @@ use FireflyIII\Api\V2\Controllers\Controller;
class DebugController extends Controller
{
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* PreferencesController.php
* Copyright (c) 2022 james@firefly-iii.org

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* AccountController.php
* Copyright (c) 2022 james@firefly-iii.org

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* BillController.php
* Copyright (c) 2022 james@firefly-iii.org

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* VersionUpdateController.php
* Copyright (c) 2022 james@firefly-iii.org
@@ -27,4 +28,4 @@ namespace FireflyIII\Api\V2\Controllers;
class VersionUpdateController extends Controller
{
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* ListRequest.php
* Copyright (c) 2022 james@firefly-iii.org

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* AutoSum.php
* Copyright (c) 2022 james@firefly-iii.org