Skip to content

Commit

Permalink
Code checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
webeweb committed May 28, 2024
1 parent 06431bb commit 4db4716
Show file tree
Hide file tree
Showing 31 changed files with 0 additions and 127 deletions.
1 change: 0 additions & 1 deletion lib/curl/Tests/Factory/CurlFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ public function testNewCurlRequestWithHead(): void {
public function testNewCurlRequestWithInvalidArgumentException(): void {

try {

CurlFactory::newCurlRequest("exception");
} catch (Throwable $ex) {

Expand Down
1 change: 0 additions & 1 deletion lib/curl/Tests/Request/GetRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ public function testCallWithRequestTimeoutException(): void {
$obj->addQueryData("sleep", "60");

try {

$obj->call();
} catch (Throwable $ex) {

Expand Down
1 change: 0 additions & 1 deletion lib/easilys/Tests/Provider/ApiProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public function testLogin(): void {
$this->assertEquals($this->easilys["endpoint"], $res->getEndpointPath());
$this->assertNotEmpty($res->getAccessToken());
} catch (Throwable $ex) {

$this->assertInstanceOf(ProviderException::class, $ex);
}
}
Expand Down
12 changes: 0 additions & 12 deletions lib/easilys/Tests/Provider/General/ApiProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,8 @@ public function testGetSite(): void {
try {

$res = $obj->sendRequest($request);

$this->assertInstanceOf(GetSitesResponse::class, $res);
} catch (Throwable $ex) {

$this->assertInstanceOf(ProviderException::class, $ex);
}
}
Expand All @@ -72,10 +70,8 @@ public function testGetSites(): void {
try {

$res = $obj->sendRequest($request);

$this->assertInstanceOf(GetSitesResponse::class, $res);
} catch (Throwable $ex) {

$this->assertInstanceOf(ProviderException::class, $ex);
}
}
Expand All @@ -97,10 +93,8 @@ public function testGetSitesFromTreeWithParent(): void {
try {

$res = $obj->sendRequest($request);

$this->assertInstanceOf(GetSitesResponse::class, $res);
} catch (Throwable $ex) {

$this->assertInstanceOf(ProviderException::class, $ex);
}
}
Expand All @@ -121,10 +115,8 @@ public function testGetSitesNotInTree(): void {
try {

$res = $obj->sendRequest($request);

$this->assertInstanceOf(GetSitesResponse::class, $res);
} catch (Throwable $ex) {

$this->assertInstanceOf(ProviderException::class, $ex);
}
}
Expand All @@ -145,10 +137,8 @@ public function testGetSitesRoot(): void {
try {

$res = $obj->sendRequest($request);

$this->assertInstanceOf(GetSitesResponse::class, $res);
} catch (Throwable $ex) {

$this->assertInstanceOf(ProviderException::class, $ex);
}
}
Expand All @@ -170,10 +160,8 @@ public function testGetSitesRootTree(): void {
try {

$res = $obj->sendRequest($request);

$this->assertInstanceOf(GetSitesResponse::class, $res);
} catch (Throwable $ex) {

$this->assertInstanceOf(ProviderException::class, $ex);
}
}
Expand Down
12 changes: 0 additions & 12 deletions lib/easilys/Tests/Provider/Products/ApiProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,8 @@ public function testGetPriceListHeadersSite(): void {
try {

$res = $obj->sendRequest($request);

$this->assertInstanceOf(GetPriceListHeadersSiteResponse::class, $res);
} catch (Throwable $ex) {

$this->assertInstanceOf(ProviderException::class, $ex);
}
}
Expand All @@ -78,10 +76,8 @@ public function testGetPriceListSupplierProductsSite(): void {
try {

$res = $obj->sendRequest($request);

$this->assertInstanceOf(GetPriceListSupplierProductsSiteResponse::class, $res);
} catch (Throwable $ex) {

$this->assertInstanceOf(ProviderException::class, $ex);
}
}
Expand All @@ -102,10 +98,8 @@ public function testGetProductsSite(): void {
try {

$res = $obj->sendRequest($request);

$this->assertInstanceOf(GetProductsSiteResponse::class, $res);
} catch (Throwable $ex) {

$this->assertInstanceOf(ProviderException::class, $ex);
}
}
Expand All @@ -125,10 +119,8 @@ public function testGetQualities(): void {
try {

$res = $obj->sendRequest($request);

$this->assertInstanceOf(GetQualitiesResponse::class, $res);
} catch (Throwable $ex) {

$this->assertInstanceOf(ProviderException::class, $ex);
}
}
Expand All @@ -148,10 +140,8 @@ public function testGetRanges(): void {
try {

$res = $obj->sendRequest($request);

$this->assertInstanceOf(GetRangesResponse::class, $res);
} catch (Throwable $ex) {

$this->assertInstanceOf(ProviderException::class, $ex);
}
}
Expand All @@ -171,10 +161,8 @@ public function testGetUnits(): void {
try {

$res = $obj->sendRequest($request);

$this->assertInstanceOf(GetUnitsResponse::class, $res);
} catch (Throwable $ex) {

$this->assertInstanceOf(ProviderException::class, $ex);
}
}
Expand Down
2 changes: 0 additions & 2 deletions lib/easilys/Tests/Provider/Suppliers/ApiProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@ public function testGetStorehousesSite(): void {
try {

$res = $obj->sendRequest($request);

$this->assertInstanceOf(GetStorehousesSiteResponse::class, $res);
} catch (Throwable $ex) {

$this->assertInstanceOf(ProviderException::class, $ex);
}
}
Expand Down
16 changes: 0 additions & 16 deletions lib/ftp/Tests/Client/FtpClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ public function testChdirWithFtpException(): void {
$obj = $this->client;

try {

$obj->chdir("/chdir");
} catch (Throwable $ex) {

Expand All @@ -136,7 +135,6 @@ public function testChmod(): void {
$obj = $this->client;

try {

$obj->chmod(0644, $this->remoteFile);
} catch (Throwable $ex) {

Expand Down Expand Up @@ -166,7 +164,6 @@ public function testConnectWithFtpException(): void {
$obj->getAuthenticator()->setPort(80);

try {

$obj->connect(3);
} catch (Throwable $ex) {

Expand Down Expand Up @@ -195,7 +192,6 @@ public function testDelete(): void {
$obj = $this->client;

try {

$obj->delete($this->remoteFile);
} catch (Throwable $ex) {

Expand Down Expand Up @@ -250,7 +246,6 @@ public function testFgetWithFtpException(): void {
$obj = $this->client;

try {

$obj->fget($localStream, "/fget");
} catch (Throwable $ex) {

Expand Down Expand Up @@ -284,7 +279,6 @@ public function testFput(): void {
$obj = $this->client;

try {

$obj->fput("/fput", $localStream);
} catch (Throwable $ex) {

Expand Down Expand Up @@ -328,7 +322,6 @@ public function testGetWithFtpException(): void {
$obj = $this->client;

try {

$obj->get($this->localFile, "/get");
} catch (Throwable $ex) {

Expand Down Expand Up @@ -359,7 +352,6 @@ public function testLoginWithFtpException(): void {
$obj->connect();

try {

$obj->login();
} catch (Throwable $ex) {

Expand Down Expand Up @@ -403,7 +395,6 @@ public function testMdtmWithFtpException(): void {
$obj = $this->client;

try {

$obj->mdtm("/mdtm");
} catch (Throwable $ex) {

Expand All @@ -430,7 +421,6 @@ public function testMkdir(): void {
$obj = $this->client;

try {

$obj->mkdir("/mkdir");
} catch (Throwable $ex) {

Expand Down Expand Up @@ -548,7 +538,6 @@ public function testNlistWithFtpException(): void {
$obj = $this->client;

try {

$obj->nlist("/nlist");
} catch (Throwable $ex) {

Expand All @@ -575,7 +564,6 @@ public function testPut(): void {
$obj = $this->client;

try {

$obj->put($this->myself, "/put");
} catch (Throwable $ex) {

Expand Down Expand Up @@ -619,7 +607,6 @@ public function testRawListWithFtpException(): void {
$obj = $this->client;

try {

$obj->rawList("/rawList");
} catch (Throwable $ex) {

Expand Down Expand Up @@ -661,7 +648,6 @@ public function testRename(): void {
$obj = $this->client;

try {

$obj->rename($this->remoteDir, "/rename");
} catch (Throwable $ex) {

Expand Down Expand Up @@ -690,7 +676,6 @@ public function testRmdir(): void {
$obj = $this->client;

try {

$obj->rmdir($this->remoteDir);
} catch (Throwable $ex) {

Expand Down Expand Up @@ -734,7 +719,6 @@ public function testSizetWithFtpException(): void {
$obj = $this->client;

try {

$obj->size("/size");
} catch (Throwable $ex) {

Expand Down
1 change: 0 additions & 1 deletion lib/ftp/Tests/Client/FtpsClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ public function testConnectWithFtpException(): void {
$obj->getAuthenticator()->setPort(80);

try {

$obj->connect(3);
} catch (Throwable $ex) {

Expand Down
7 changes: 0 additions & 7 deletions lib/ftp/Tests/Client/SftpClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ public function testConnectWithFtpException(): void {
$obj->getAuthenticator()->setPort(80);

try {

$obj->connect();
} catch (Throwable $ex) {

Expand Down Expand Up @@ -105,7 +104,6 @@ public function testDelete(): void {
$obj = $this->client;

try {

$obj->delete($this->remoteDir);
} catch (Throwable $ex) {

Expand Down Expand Up @@ -151,7 +149,6 @@ public function testLoginWithFtpException(): void {
$obj->connect();

try {

$obj->login();
} catch (Throwable $ex) {

Expand All @@ -178,7 +175,6 @@ public function testMkdir(): void {
$obj = $this->client;

try {

$obj->mkdir("/mkdir");
} catch (Throwable $ex) {

Expand Down Expand Up @@ -208,7 +204,6 @@ public function testPut(): void {
$obj = $this->client;

try {

$obj->put($myself, "/put");
} catch (Throwable $ex) {

Expand All @@ -235,7 +230,6 @@ public function testRename(): void {
$obj = $this->client;

try {

$obj->rename($this->remoteDir, "/rename");
} catch (Throwable $ex) {

Expand Down Expand Up @@ -264,7 +258,6 @@ public function testRmdir(): void {
$obj = $this->client;

try {

$obj->rmdir($this->remoteDir);
} catch (Throwable $ex) {

Expand Down
2 changes: 0 additions & 2 deletions lib/querybuilder/Tests/Factory/QueryBuilderFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ public function testNewQueryBuilderOperator(): void {
public function testNewQueryBuilderOperatorWithInvalidArgumentException(): void {

try {

QueryBuilderFactory::newQueryBuilderOperator("operator");
} catch (Throwable $ex) {

Expand Down Expand Up @@ -145,7 +144,6 @@ public function testNewQueryBuilderType(): void {
public function testNewQueryBuilderTypeWithInvalidArgumentException(): void {

try {

QueryBuilderFactory::newQueryBuilderType("type");
} catch (Throwable $ex) {

Expand Down
2 changes: 0 additions & 2 deletions lib/querybuilder/Tests/Model/AbstractQueryBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ public function testSetInputWithInvalidArgumentException(): void {
$obj = new TestAbstractQueryBuilder();

try {

$obj->setInput("input");
} catch (Throwable $ex) {

Expand Down Expand Up @@ -109,7 +108,6 @@ public function testSetTypeWithInvalidArgumentException(): void {
$obj = new TestAbstractQueryBuilder();

try {

$obj->setType("type");
} catch (Throwable $ex) {

Expand Down
1 change: 0 additions & 1 deletion lib/querybuilder/Tests/Model/QueryBuilderFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ public function testSetOperatorsWithInvalidArgumentException(): void {
$obj = new QueryBuilderFilter("id", QueryBuilderTypeInterface::TYPE_BOOLEAN, []);

try {

$obj->setOperators(["exception"]);
} catch (Throwable $ex) {

Expand Down
Loading

0 comments on commit 4db4716

Please sign in to comment.