mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-25 23:58:39 +00:00
autofixes
This commit is contained in:
parent
86d62a1bb5
commit
ba7737d0ad
|
|
@ -176,7 +176,7 @@ final class Kmeans
|
|||
|
||||
foreach ($clusterCenters as $key => $center) {
|
||||
$center->group = ($key);
|
||||
$center->name = (string) $key;
|
||||
$center->name = (string) $key;
|
||||
}
|
||||
|
||||
$this->clusterCenters = $clusterCenters;
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ final class ConsoleRequest extends RequestAbstract
|
|||
*/
|
||||
public function __construct(UriInterface $uri = null, Localization $l11n = null)
|
||||
{
|
||||
$this->header = new ConsoleHeader();
|
||||
$this->header = new ConsoleHeader();
|
||||
$this->header->l11n = $l11n ?? new Localization();
|
||||
|
||||
$this->uri = $uri ?? new Argument();
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ final class ConsoleResponse extends ResponseAbstract implements RenderableInterf
|
|||
*/
|
||||
public function __construct(Localization $l11n = null)
|
||||
{
|
||||
$this->header = new ConsoleHeader();
|
||||
$this->header = new ConsoleHeader();
|
||||
$this->header->l11n = $l11n ?? new Localization();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ final class HttpRequest extends RequestAbstract
|
|||
*/
|
||||
public function __construct(UriInterface $uri = null, Localization $l11n = null)
|
||||
{
|
||||
$this->header = new HttpHeader();
|
||||
$this->header = new HttpHeader();
|
||||
$this->header->l11n = $l11n ?? new Localization();
|
||||
|
||||
if ($uri !== null) {
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ final class HttpResponse extends ResponseAbstract implements RenderableInterface
|
|||
*/
|
||||
public function __construct(Localization $l11n = null)
|
||||
{
|
||||
$this->header = new HttpHeader();
|
||||
$this->header = new HttpHeader();
|
||||
$this->header->l11n = $l11n ?? new Localization();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ class PacketManager
|
|||
*/
|
||||
public function handle(string $data, $client) : void
|
||||
{
|
||||
$request = new SocketRequest();
|
||||
$request = new SocketRequest();
|
||||
$request->header->account = $client->getAccount()->getId();
|
||||
|
||||
$response = new SocketResponse();
|
||||
|
|
|
|||
|
|
@ -620,7 +620,7 @@ class Directory extends FileAbstract implements DirectoryInterface, FtpContainer
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getParent(): ContainerInterface
|
||||
public function getParent() : ContainerInterface
|
||||
{
|
||||
$uri = clone $this->uri;
|
||||
$uri->setPath(self::parent($this->path));
|
||||
|
|
|
|||
|
|
@ -130,9 +130,9 @@ class AddressTest extends \PHPUnit\Framework\TestCase
|
|||
],
|
||||
];
|
||||
|
||||
$this->address->fao = 'fao';
|
||||
$this->address->fao = 'fao';
|
||||
$this->address->recipient = 'recipient';
|
||||
$this->address->location = new Location();
|
||||
$this->address->location = new Location();
|
||||
|
||||
self::assertEquals($expected, $this->address->toArray());
|
||||
}
|
||||
|
|
@ -160,9 +160,9 @@ class AddressTest extends \PHPUnit\Framework\TestCase
|
|||
],
|
||||
];
|
||||
|
||||
$this->address->fao = 'fao';
|
||||
$this->address->fao = 'fao';
|
||||
$this->address->recipient = 'recipient';
|
||||
$this->address->location = new Location();
|
||||
$this->address->location = new Location();
|
||||
|
||||
self::assertEquals($expected, $this->address->jsonSerialize());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -175,9 +175,9 @@ class LocationTest extends \PHPUnit\Framework\TestCase
|
|||
|
||||
$this->location->postal = '0123456789';
|
||||
$this->location->setType(AddressType::BUSINESS);
|
||||
$this->location->city = 'city';
|
||||
$this->location->city = 'city';
|
||||
$this->location->address = 'Some address here';
|
||||
$this->location->state = 'This is a state 123';
|
||||
$this->location->state = 'This is a state 123';
|
||||
$this->location->setCountry('Country');
|
||||
$this->location->setGeo(['lat' => 12.1, 'long' => 11.2,]);
|
||||
|
||||
|
|
@ -205,9 +205,9 @@ class LocationTest extends \PHPUnit\Framework\TestCase
|
|||
|
||||
$this->location->postal = '0123456789';
|
||||
$this->location->setType(AddressType::BUSINESS);
|
||||
$this->location->city = 'city';
|
||||
$this->location->city = 'city';
|
||||
$this->location->address = 'Some address here';
|
||||
$this->location->state = 'This is a state 123';
|
||||
$this->location->state = 'This is a state 123';
|
||||
$this->location->setCountry('Country');
|
||||
$this->location->setGeo(['lat' => 12.1, 'long' => 11.2,]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user