Attributes fixes and warning removal

- when the payments array was folded into sale_data there was an earlier payments[] reference in the foreach loop that didn't get folded in.
- Update PHPdoc
- Added ::class to remove polymorphic call warning
- Removed unreachable 'break;' statement after return statement.
- Added missing return type
- fixed missing assignment of mailchimp_api_key
This commit is contained in:
objecttothis
2023-11-07 21:48:05 +04:00
committed by jekkos
parent 6a316c56f6
commit 405583c832
49 changed files with 186 additions and 172 deletions

View File

@@ -7,6 +7,7 @@ use App\Models\Module;
use CodeIgniter\Model;
use CodeIgniter\Session\Session;
use Config\OSPOS;
use Config\Services;
/**
@@ -30,7 +31,7 @@ class Secure_Controller extends BaseController
{
$this->employee = model(Employee::class);
$this->module = model(Module::class);
$config = config('OSPOS')->settings;
$config = config(OSPOS::class)->settings;
$validation = Services::validation();
if(!$this->employee->is_logged_in())
@@ -78,7 +79,7 @@ class Secure_Controller extends BaseController
* AJAX function used to confirm whether values sent in the request are numeric
* @return void
*/
public function getCheckNumeric()
public function getCheckNumeric(): void
{
$result = true;