mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-08 05:18:40 +00:00
Automated formatting changes
This commit is contained in:
parent
002112fca4
commit
0d83f2a22b
|
|
@ -87,7 +87,7 @@ final class QuickSort implements SortInterface
|
||||||
private static function partition(array &$list, int $lo, int $hi, int $order) : int
|
private static function partition(array &$list, int $lo, int $hi, int $order) : int
|
||||||
{
|
{
|
||||||
$pivot = $list[$hi];
|
$pivot = $list[$hi];
|
||||||
$i = $lo - 1;
|
$i = $lo - 1;
|
||||||
|
|
||||||
for ($j = $lo; $j <= $hi - 1; ++$j) {
|
for ($j = $lo; $j <= $hi - 1; ++$j) {
|
||||||
if (!$list[$j]->compare($pivot, $order)) {
|
if (!$list[$j]->compare($pivot, $order)) {
|
||||||
|
|
|
||||||
|
|
@ -172,7 +172,7 @@ final class ApplicationManager
|
||||||
}
|
}
|
||||||
|
|
||||||
$classPath = \substr(\realpath($appPath) . '/Admin/Installer', \strlen(\realpath(__DIR__ . '/../../')));
|
$classPath = \substr(\realpath($appPath) . '/Admin/Installer', \strlen(\realpath(__DIR__ . '/../../')));
|
||||||
$class = \str_replace('/', '\\', $classPath);
|
$class = \str_replace('/', '\\', $classPath);
|
||||||
|
|
||||||
/** @var $class InstallerAbstract */
|
/** @var $class InstallerAbstract */
|
||||||
$class::reInit($info);
|
$class::reInit($info);
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,6 @@ namespace phpOMS\Application;
|
||||||
use phpOMS\DataStorage\Database\DatabasePool;
|
use phpOMS\DataStorage\Database\DatabasePool;
|
||||||
use phpOMS\System\File\PathException;
|
use phpOMS\System\File\PathException;
|
||||||
use phpOMS\System\File\PermissionException;
|
use phpOMS\System\File\PermissionException;
|
||||||
use phpOMS\Utils\ArrayUtils;
|
|
||||||
use phpOMS\Utils\Parser\Php\ArrayParser;
|
use phpOMS\Utils\Parser\Php\ArrayParser;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -17,9 +17,9 @@ namespace phpOMS\tests\Algorithm\PathFinding;
|
||||||
use phpOMS\Algorithm\PathFinding\AStar;
|
use phpOMS\Algorithm\PathFinding\AStar;
|
||||||
use phpOMS\Algorithm\PathFinding\AStarNode;
|
use phpOMS\Algorithm\PathFinding\AStarNode;
|
||||||
use phpOMS\Algorithm\PathFinding\Grid;
|
use phpOMS\Algorithm\PathFinding\Grid;
|
||||||
use phpOMS\Algorithm\PathFinding\Path;
|
|
||||||
use phpOMS\Algorithm\PathFinding\HeuristicType;
|
use phpOMS\Algorithm\PathFinding\HeuristicType;
|
||||||
use phpOMS\Algorithm\PathFinding\MovementType;
|
use phpOMS\Algorithm\PathFinding\MovementType;
|
||||||
|
use phpOMS\Algorithm\PathFinding\Path;
|
||||||
|
|
||||||
require_once __DIR__ . '/../../Autoloader.php';
|
require_once __DIR__ . '/../../Autoloader.php';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,11 +15,11 @@ declare(strict_types=1);
|
||||||
namespace phpOMS\tests\Algorithm\PathFinding;
|
namespace phpOMS\tests\Algorithm\PathFinding;
|
||||||
|
|
||||||
use phpOMS\Algorithm\PathFinding\Grid;
|
use phpOMS\Algorithm\PathFinding\Grid;
|
||||||
use phpOMS\Algorithm\PathFinding\Path;
|
|
||||||
use phpOMS\Algorithm\PathFinding\HeuristicType;
|
use phpOMS\Algorithm\PathFinding\HeuristicType;
|
||||||
use phpOMS\Algorithm\PathFinding\JumpPointNode;
|
use phpOMS\Algorithm\PathFinding\JumpPointNode;
|
||||||
use phpOMS\Algorithm\PathFinding\JumpPointSearch;
|
use phpOMS\Algorithm\PathFinding\JumpPointSearch;
|
||||||
use phpOMS\Algorithm\PathFinding\MovementType;
|
use phpOMS\Algorithm\PathFinding\MovementType;
|
||||||
|
use phpOMS\Algorithm\PathFinding\Path;
|
||||||
|
|
||||||
require_once __DIR__ . '/../../Autoloader.php';
|
require_once __DIR__ . '/../../Autoloader.php';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -76,8 +76,8 @@ class ApplicationManagerTest extends \PHPUnit\Framework\TestCase
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\Application\ApplicationManager
|
* @covers phpOMS\Application\ApplicationManager
|
||||||
* @covers phpOMS\Application\InstallerAbstract
|
* @covers phpOMS\Application\InstallerAbstract
|
||||||
* @covers phpOMS\Application\UninstallerAbstract
|
|
||||||
* @covers phpOMS\Application\StatusAbstract
|
* @covers phpOMS\Application\StatusAbstract
|
||||||
|
* @covers phpOMS\Application\UninstallerAbstract
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInstallUninstall() : void
|
public function testInstallUninstall() : void
|
||||||
|
|
|
||||||
|
|
@ -27,17 +27,17 @@ class InstallerAbstractTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
protected InstallerAbstract $installer;
|
protected InstallerAbstract $installer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
protected function setUp() : void
|
protected function setUp() : void
|
||||||
{
|
{
|
||||||
$this->installer = new class() extends InstallerAbstract {
|
$this->installer = new class() extends InstallerAbstract {
|
||||||
public const PATH = __DIR__ . '/Invalid';
|
public const PATH = __DIR__ . '/Invalid';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\Application\InstallerAbstract
|
* @covers phpOMS\Application\InstallerAbstract
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
<?php
|
<?phpdeclare(strict_types=1);
|
||||||
|
|
|
||||||
|
|
@ -27,17 +27,17 @@ class StatusAbstractTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
protected StatusAbstract $status;
|
protected StatusAbstract $status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
protected function setUp() : void
|
protected function setUp() : void
|
||||||
{
|
{
|
||||||
$this->status = new class() extends StatusAbstract {
|
$this->status = new class() extends StatusAbstract {
|
||||||
public const PATH = __DIR__ . '/Invalid';
|
public const PATH = __DIR__ . '/Invalid';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\Application\StatusAbstract
|
* @covers phpOMS\Application\StatusAbstract
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -15,5 +15,5 @@ declare(strict_types=1);
|
||||||
return [
|
return [
|
||||||
'/POST:App:Testapp.*?\-create/' => [
|
'/POST:App:Testapp.*?\-create/' => [
|
||||||
'callback' => ['\phpOMS\tess\Application\Apps\Testapp\Controller\Controller:testHook'],
|
'callback' => ['\phpOMS\tess\Application\Apps\Testapp\Controller\Controller:testHook'],
|
||||||
]
|
],
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace phpOMS\tests\Message\Http;
|
namespace phpOMS\tests\Message\Http;
|
||||||
|
|
||||||
|
use phpOMS\Localization\ISO639x1Enum;
|
||||||
use phpOMS\Localization\Localization;
|
use phpOMS\Localization\Localization;
|
||||||
use phpOMS\Message\Http\BrowserType;
|
use phpOMS\Message\Http\BrowserType;
|
||||||
use phpOMS\Message\Http\HttpRequest;
|
use phpOMS\Message\Http\HttpRequest;
|
||||||
|
|
@ -23,7 +24,6 @@ use phpOMS\Message\Http\Rest;
|
||||||
use phpOMS\Router\RouteVerb;
|
use phpOMS\Router\RouteVerb;
|
||||||
use phpOMS\System\MimeType;
|
use phpOMS\System\MimeType;
|
||||||
use phpOMS\Uri\HttpUri;
|
use phpOMS\Uri\HttpUri;
|
||||||
use phpOMS\Localization\ISO639x1Enum;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox phpOMS\tests\Message\Http\HttpRequestTest: HttpRequest wrapper for http requests
|
* @testdox phpOMS\tests\Message\Http\HttpRequestTest: HttpRequest wrapper for http requests
|
||||||
|
|
|
||||||
|
|
@ -14,10 +14,10 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace phpOMS\tests\Message\Http;
|
namespace phpOMS\tests\Message\Http;
|
||||||
|
|
||||||
|
use phpOMS\Localization\ISO639x1Enum;
|
||||||
|
use phpOMS\Localization\Localization;
|
||||||
use phpOMS\Message\Http\HttpResponse;
|
use phpOMS\Message\Http\HttpResponse;
|
||||||
use phpOMS\System\MimeType;
|
use phpOMS\System\MimeType;
|
||||||
use phpOMS\Localization\Localization;
|
|
||||||
use phpOMS\Localization\ISO639x1Enum;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox phpOMS\tests\Message\Http\ResponseTest: HttpResponse wrapper for http responses
|
* @testdox phpOMS\tests\Message\Http\ResponseTest: HttpResponse wrapper for http responses
|
||||||
|
|
@ -112,7 +112,6 @@ class ResponseTest extends \PHPUnit\Framework\TestCase
|
||||||
*/
|
*/
|
||||||
public function testLangaugeOutput() : void
|
public function testLangaugeOutput() : void
|
||||||
{
|
{
|
||||||
|
|
||||||
$this->response->header->l11n = new Localization();
|
$this->response->header->l11n = new Localization();
|
||||||
$this->response->header->l11n->setLanguage(ISO639x1Enum::_DE);
|
$this->response->header->l11n->setLanguage(ISO639x1Enum::_DE);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,6 @@ namespace phpOMS\tests\Message;
|
||||||
|
|
||||||
require_once __DIR__ . '/../Autoloader.php';
|
require_once __DIR__ . '/../Autoloader.php';
|
||||||
|
|
||||||
use phpOMS\Localization\ISO639x1Enum;
|
|
||||||
use phpOMS\Message\RequestAbstract;
|
use phpOMS\Message\RequestAbstract;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -67,7 +66,7 @@ class RequestAbstractTest extends \PHPUnit\Framework\TestCase
|
||||||
*/
|
*/
|
||||||
public function testInvalidDataKeyOutput() : void
|
public function testInvalidDataKeyOutput() : void
|
||||||
{
|
{
|
||||||
self::assertEquals(null, $this->request->getData('invalid'));
|
self::assertNull($this->request->getData('invalid'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -84,7 +83,7 @@ class RequestAbstractTest extends \PHPUnit\Framework\TestCase
|
||||||
self::assertEquals(2, $this->request->getData('key2', 'int'));
|
self::assertEquals(2, $this->request->getData('key2', 'int'));
|
||||||
|
|
||||||
$this->request->setData('key3', '1');
|
$this->request->setData('key3', '1');
|
||||||
self::assertEquals(true, $this->request->getData('key3', 'bool'));
|
self::assertTrue($this->request->getData('key3', 'bool'));
|
||||||
|
|
||||||
$this->request->setData('key4', '1.23');
|
$this->request->setData('key4', '1.23');
|
||||||
self::assertEquals(1.23, $this->request->getData('key4', 'float'));
|
self::assertEquals(1.23, $this->request->getData('key4', 'float'));
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,6 @@ class ModuleAbstractTest extends \PHPUnit\Framework\TestCase
|
||||||
$models[] = new BaseModel();
|
$models[] = new BaseModel();
|
||||||
$models[1]->hasManyRelations = [];
|
$models[1]->hasManyRelations = [];
|
||||||
|
|
||||||
|
|
||||||
$this->createModels(1, $models, BaseModelMapper::class, '', '127.0.0.1');
|
$this->createModels(1, $models, BaseModelMapper::class, '', '127.0.0.1');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -221,8 +221,8 @@ class ModuleManagerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A module can be re-initialized
|
* @testdox A module can be re-initialized
|
||||||
* @covers phpOMS\Module\ModuleManager
|
|
||||||
* @covers phpOMS\Module\InstallerAbstract
|
* @covers phpOMS\Module\InstallerAbstract
|
||||||
|
* @covers phpOMS\Module\ModuleManager
|
||||||
* @covers phpOMS\Module\StatusAbstract
|
* @covers phpOMS\Module\StatusAbstract
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -14,5 +14,5 @@ declare(strict_types=1);
|
||||||
|
|
||||||
return ['Test' => [
|
return ['Test' => [
|
||||||
'Key' => 'Value',
|
'Key' => 'Value',
|
||||||
]
|
],
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
return '<strong>Test</strong>';
|
return '<strong>Test</strong>';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user