From ba7737d0ad548563cb776f1b0ec54f1020d3a837 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 24 Nov 2020 18:44:22 +0100 Subject: [PATCH] autofixes --- Algorithm/Clustering/Kmeans.php | 2 +- Message/Console/ConsoleRequest.php | 2 +- Message/Console/ConsoleResponse.php | 2 +- Message/Http/HttpRequest.php | 2 +- Message/Http/HttpResponse.php | 2 +- Message/Socket/PacketManager.php | 2 +- System/File/Ftp/Directory.php | 2 +- tests/Stdlib/Base/AddressTest.php | 8 ++++---- tests/Stdlib/Base/LocationTest.php | 8 ++++---- 9 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Algorithm/Clustering/Kmeans.php b/Algorithm/Clustering/Kmeans.php index b4e5dfdc7..ad33ff375 100644 --- a/Algorithm/Clustering/Kmeans.php +++ b/Algorithm/Clustering/Kmeans.php @@ -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; diff --git a/Message/Console/ConsoleRequest.php b/Message/Console/ConsoleRequest.php index 34de81f0f..5a8779697 100644 --- a/Message/Console/ConsoleRequest.php +++ b/Message/Console/ConsoleRequest.php @@ -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(); diff --git a/Message/Console/ConsoleResponse.php b/Message/Console/ConsoleResponse.php index 775e3e89c..50e0012ac 100644 --- a/Message/Console/ConsoleResponse.php +++ b/Message/Console/ConsoleResponse.php @@ -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(); } diff --git a/Message/Http/HttpRequest.php b/Message/Http/HttpRequest.php index 566b31ced..06b31da7e 100644 --- a/Message/Http/HttpRequest.php +++ b/Message/Http/HttpRequest.php @@ -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) { diff --git a/Message/Http/HttpResponse.php b/Message/Http/HttpResponse.php index fd57cb0d6..5ec47ba08 100644 --- a/Message/Http/HttpResponse.php +++ b/Message/Http/HttpResponse.php @@ -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(); } diff --git a/Message/Socket/PacketManager.php b/Message/Socket/PacketManager.php index 2057a57ad..5e758e476 100644 --- a/Message/Socket/PacketManager.php +++ b/Message/Socket/PacketManager.php @@ -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(); diff --git a/System/File/Ftp/Directory.php b/System/File/Ftp/Directory.php index 75890971b..7813165ef 100644 --- a/System/File/Ftp/Directory.php +++ b/System/File/Ftp/Directory.php @@ -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)); diff --git a/tests/Stdlib/Base/AddressTest.php b/tests/Stdlib/Base/AddressTest.php index d21b8d84e..110280f60 100644 --- a/tests/Stdlib/Base/AddressTest.php +++ b/tests/Stdlib/Base/AddressTest.php @@ -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()); } diff --git a/tests/Stdlib/Base/LocationTest.php b/tests/Stdlib/Base/LocationTest.php index b0d954d06..13421d69c 100644 --- a/tests/Stdlib/Base/LocationTest.php +++ b/tests/Stdlib/Base/LocationTest.php @@ -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,]);