Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
namespace factory;
|
||||
class Apanel {
|
||||
static public function check_delivery( $basket )
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
namespace factory;
|
||||
class Tickets {
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ class Users
|
||||
{
|
||||
global $mdb;
|
||||
|
||||
$result = $mdb -> get( 'users', '*', [ 'email' => strtolower( $email ) ] );
|
||||
$result = $mdb -> get( 'users', '*', [ 'email' => strtolower( (string) $email ) ] );
|
||||
if ( $result === false )
|
||||
return false;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user