autofixes

This commit is contained in:
Dennis Eichhorn 2020-11-24 18:44:22 +01:00
parent 86d62a1bb5
commit ba7737d0ad
9 changed files with 15 additions and 15 deletions

View File

@ -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;

View File

@ -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();

View File

@ -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();
}

View File

@ -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) {

View File

@ -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();
}

View File

@ -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();

View File

@ -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));

View File

@ -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());
}

View File

@ -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,]);