mirror of
https://github.com/Karaka-Management/oms-Exchange.git
synced 2026-01-29 01:08:41 +00:00
Static analysis fixes
This commit is contained in:
parent
d8aaf7f225
commit
9f6c27766a
|
|
@ -38,7 +38,17 @@ class Navigation
|
|||
*/
|
||||
public static function install(string $path = null, DatabasePool $dbPool = null) : void
|
||||
{
|
||||
$navData = \json_decode(file_get_contents(__DIR__ . '/Navigation.install.json'), true);
|
||||
$navFile = \file_get_contents(__DIR__ . '/Navigation.install.json');
|
||||
|
||||
if ($navFile === false) {
|
||||
throw new \Exception();
|
||||
}
|
||||
|
||||
$navData = \json_decode($navFile, true);
|
||||
|
||||
if ($navData === false) {
|
||||
throw new \Exception();
|
||||
}
|
||||
|
||||
$class = '\\Modules\\Navigation\\Admin\\Installer';
|
||||
/** @var $class \Modules\Navigation\Admin\Installer */
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ declare(strict_types=1);
|
|||
namespace Modules\Exchange\Models;
|
||||
|
||||
use phpOMS\DataStorage\Database\Connection\ConnectionInterface;
|
||||
use phpOMS\Message\RequestAbstract;
|
||||
|
||||
/**
|
||||
* Import abstract
|
||||
|
|
@ -37,13 +38,13 @@ abstract class ImporterAbstract
|
|||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param ConnectionInterface $local Database connection
|
||||
* @param ConnectionInterface $local Database connection
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function __construct(ConnectionInterface $local)
|
||||
{
|
||||
$this->remote = $remote;
|
||||
$this->local = $local;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user