phpcs+phpstan fixes

This commit is contained in:
Dennis Eichhorn 2019-02-07 00:05:31 +01:00
parent 4b3849885a
commit 77ac661f52
4 changed files with 8 additions and 5 deletions

View File

@ -36,7 +36,7 @@ class Navigation
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public static function install(string $path = null, DatabasePool $dbPool = null) : void public static function install(string $path, DatabasePool $dbPool) : void
{ {
\Modules\Navigation\Admin\Installer::installExternal($dbPool, ['path' => __DIR__ . '/Navigation.install.json']); \Modules\Navigation\Admin\Installer::installExternal($dbPool, ['path' => __DIR__ . '/Navigation.install.json']);
} }

View File

@ -40,7 +40,7 @@ final class BackendController extends Controller
* @since 1.0.0 * @since 1.0.0
* @codeCoverageIgnore * @codeCoverageIgnore
*/ */
public function viewBillingInvoiceList(RequestAbstract $request, ResponseAbstract $response, $data = null) : \Serializable public function viewBillingInvoiceList(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
{ {
$view = new View($this->app, $request, $response); $view = new View($this->app, $request, $response);
$view->setTemplate('/Modules/Billing/Theme/Backend/invoice-list'); $view->setTemplate('/Modules/Billing/Theme/Backend/invoice-list');
@ -59,7 +59,7 @@ final class BackendController extends Controller
* @since 1.0.0 * @since 1.0.0
* @codeCoverageIgnore * @codeCoverageIgnore
*/ */
public function viewBillingInvoiceCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : \Serializable public function viewBillingInvoiceCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
{ {
$view = new View($this->app, $request, $response); $view = new View($this->app, $request, $response);
$view->setTemplate('/Modules/Billing/Theme/Backend/invoice-create'); $view->setTemplate('/Modules/Billing/Theme/Backend/invoice-create');
@ -78,7 +78,7 @@ final class BackendController extends Controller
* @since 1.0.0 * @since 1.0.0
* @codeCoverageIgnore * @codeCoverageIgnore
*/ */
public function viewBillingPurchaInvoiceList(RequestAbstract $request, ResponseAbstract $response, $data = null) : \Serializable public function viewBillingPurchaInvoiceList(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
{ {
$view = new View($this->app, $request, $response); $view = new View($this->app, $request, $response);
$view->setTemplate('/Modules/Billing/Theme/Backend/purchase-invoice-list'); $view->setTemplate('/Modules/Billing/Theme/Backend/purchase-invoice-list');

View File

@ -138,10 +138,11 @@ class Invoice implements \JsonSerializable
private $trackings = []; private $trackings = [];
private $elements = []; private $elements = [];
/** /**
* Reference to other invoice (delivery note/credit note etc). * Reference to other invoice (delivery note/credit note etc).
* *
* @var \DateTime * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private $reference = 0; private $reference = 0;

View File

@ -14,6 +14,8 @@ declare(strict_types=1);
namespace Modules\Billing\Models; namespace Modules\Billing\Models;
use phpOMS\Localization\Money;
/** /**
* Invoice class. * Invoice class.
* *