mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-03-31 13:24:25 -04:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user