Skip to content

Code refactor

Code refactor #34

Triggered via push January 14, 2024 16:18
Status Failure
Total duration 40s
Artifacts
Matrix: types
Fit to window
Zoom out
Zoom in

Annotations

20 errors
PHP 8.1 - Static Analysis: src/Actions/OrderAction.php#L9
Property Igniter\Cart\Actions\OrderAction::$model overriding property Igniter\System\Actions\ModelAction::$model (Igniter\Flame\Database\Model) should also have native type Igniter\Flame\Database\Model.
PHP 8.1 - Static Analysis: src/FormWidgets/StockEditor.php#L1
Ignored error pattern #^Access to an undefined property Igniter\\Flame\\Database\\Model\:\:\$stocks\.$# in path /home/runner/work/ti-ext-cart/ti-ext-cart/src/FormWidgets/StockEditor.php was not matched in reported errors.
PHP 8.1 - Static Analysis: src/FormWidgets/StockEditor.php#L1
Ignored error pattern #^Call to an undefined method Igniter\\Flame\\Database\\Model\:\:getStockByLocation\(\)\.$# in path /home/runner/work/ti-ext-cart/ti-ext-cart/src/FormWidgets/StockEditor.php was not matched in reported errors.
PHP 8.1 - Static Analysis: src/FormWidgets/StockEditor.php#L1
Ignored error pattern #^Call to an undefined method Igniter\\Flame\\Database\\Model\:\:getStockableLocations\(\)\.$# in path /home/runner/work/ti-ext-cart/ti-ext-cart/src/FormWidgets/StockEditor.php was not matched in reported errors.
PHP 8.1 - Static Analysis: src/FormWidgets/StockEditor.php#L1
Ignored error pattern #^Call to an undefined method Igniter\\Flame\\Database\\Model\:\:getStockableName\(\)\.$# in path /home/runner/work/ti-ext-cart/ti-ext-cart/src/FormWidgets/StockEditor.php was not matched in reported errors.
PHP 8.1 - Static Analysis: src/FormWidgets/StockEditor.php#L61
Call to an undefined method Illuminate\Database\Eloquent\Model::getStockableName().
PHP 8.2 - Static Analysis: src/Actions/OrderAction.php#L9
Property Igniter\Cart\Actions\OrderAction::$model overriding property Igniter\System\Actions\ModelAction::$model (Igniter\Flame\Database\Model) should also have native type Igniter\Flame\Database\Model.
PHP 8.1 - Static Analysis: src/FormWidgets/StockEditor.php#L107
Call to an undefined method Illuminate\Database\Eloquent\Model::getStockableLocations().
PHP 8.2 - Static Analysis: src/FormWidgets/StockEditor.php#L1
Ignored error pattern #^Access to an undefined property Igniter\\Flame\\Database\\Model\:\:\$stocks\.$# in path /home/runner/work/ti-ext-cart/ti-ext-cart/src/FormWidgets/StockEditor.php was not matched in reported errors.
PHP 8.1 - Static Analysis: src/FormWidgets/StockEditor.php#L117
Call to an undefined method Illuminate\Database\Eloquent\Model::getStockByLocation().
PHP 8.2 - Static Analysis: src/FormWidgets/StockEditor.php#L1
Ignored error pattern #^Call to an undefined method Igniter\\Flame\\Database\\Model\:\:getStockByLocation\(\)\.$# in path /home/runner/work/ti-ext-cart/ti-ext-cart/src/FormWidgets/StockEditor.php was not matched in reported errors.
PHP 8.1 - Static Analysis: src/FormWidgets/StockEditor.php#L133
Access to an undefined property Illuminate\Database\Eloquent\Model::$stocks.
PHP 8.2 - Static Analysis: src/FormWidgets/StockEditor.php#L1
Ignored error pattern #^Call to an undefined method Igniter\\Flame\\Database\\Model\:\:getStockableLocations\(\)\.$# in path /home/runner/work/ti-ext-cart/ti-ext-cart/src/FormWidgets/StockEditor.php was not matched in reported errors.
PHP 8.1 - Static Analysis: src/Models/MenuItemOptionValue.php#L63
Ignored error pattern #^Access to an undefined property Igniter\\Cart\\Models\\MenuItemOptionValue\:\:\$override_price\.$# in path /home/runner/work/ti-ext-cart/ti-ext-cart/src/Models/MenuItemOptionValue.php is expected to occur 2 times, but occurred only 1 time.
PHP 8.2 - Static Analysis: src/FormWidgets/StockEditor.php#L1
Ignored error pattern #^Call to an undefined method Igniter\\Flame\\Database\\Model\:\:getStockableName\(\)\.$# in path /home/runner/work/ti-ext-cart/ti-ext-cart/src/FormWidgets/StockEditor.php was not matched in reported errors.
PHP 8.2 - Static Analysis: src/FormWidgets/StockEditor.php#L61
Call to an undefined method Illuminate\Database\Eloquent\Model::getStockableName().
PHP 8.2 - Static Analysis: src/FormWidgets/StockEditor.php#L107
Call to an undefined method Illuminate\Database\Eloquent\Model::getStockableLocations().
PHP 8.2 - Static Analysis: src/FormWidgets/StockEditor.php#L117
Call to an undefined method Illuminate\Database\Eloquent\Model::getStockByLocation().
PHP 8.2 - Static Analysis: src/FormWidgets/StockEditor.php#L133
Access to an undefined property Illuminate\Database\Eloquent\Model::$stocks.
PHP 8.2 - Static Analysis: src/Models/MenuItemOptionValue.php#L63
Ignored error pattern #^Access to an undefined property Igniter\\Cart\\Models\\MenuItemOptionValue\:\:\$override_price\.$# in path /home/runner/work/ti-ext-cart/ti-ext-cart/src/Models/MenuItemOptionValue.php is expected to occur 2 times, but occurred only 1 time.