Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
usox committed Nov 26, 2024
1 parent fcac004 commit a90d66f
Show file tree
Hide file tree
Showing 15 changed files with 1,165 additions and 432 deletions.
1,555 changes: 1,141 additions & 414 deletions composer.lock

Large diffs are not rendered by default.

16 changes: 11 additions & 5 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
<?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd" backupGlobals="true" bootstrap="vendor/autoload.php" colors="true" cacheDirectory=".phpunit.cache" backupStaticProperties="false" requireCoverageMetadata="false">
<coverage includeUncoveredFiles="false"/>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.4/phpunit.xsd"
backupGlobals="true"
bootstrap="vendor/autoload.php"
colors="true"
cacheDirectory=".phpunit.cache"
>
<coverage/>
<testsuites>
<testsuite name="Unittests">
<directory>tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">./</directory>
<directory>src</directory>
</include>
<exclude>
<directory suffix=".php">vendor/</directory>
<directory suffix=".php">tests/</directory>
<directory>vendor/</directory>
<directory>tests/</directory>
</exclude>
</source>
</phpunit>
2 changes: 1 addition & 1 deletion src/Handler/DeeplBatchTranslationRequestHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function getMethod(): string

public function getPath(): string
{
return static::API_ENDPOINT;
return self::API_ENDPOINT;
}

public function getBody(): StreamInterface
Expand Down
2 changes: 1 addition & 1 deletion src/Handler/DeeplFileRequestHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function getMethod(): string

public function getPath(): string
{
return sprintf(static::API_ENDPOINT, $this->fileSubmission->getDocumentId());
return sprintf(self::API_ENDPOINT, $this->fileSubmission->getDocumentId());
}

public function getBody(): StreamInterface
Expand Down
2 changes: 1 addition & 1 deletion src/Handler/DeeplFileSubmissionRequestHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function getMethod(): string

public function getPath(): string
{
return static::API_ENDPOINT;
return self::API_ENDPOINT;
}

public function getBody(): StreamInterface
Expand Down
2 changes: 1 addition & 1 deletion src/Handler/DeeplFileTranslationStatusRequestHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function getMethod(): string

public function getPath(): string
{
return sprintf(static::API_ENDPOINT, $this->fileSubmission->getDocumentId());
return sprintf(self::API_ENDPOINT, $this->fileSubmission->getDocumentId());
}

public function getBody(): StreamInterface
Expand Down
2 changes: 1 addition & 1 deletion src/Handler/DeeplGlossariesListRetrievalRequestHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function getMethod(): string

public function getPath(): string
{
return static::API_ENDPOINT;
return self::API_ENDPOINT;
}

public function getBody(): StreamInterface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function getMethod(): string

public function getPath(): string
{
return static::API_ENDPOINT;
return self::API_ENDPOINT;
}

public function getBody(): StreamInterface
Expand Down
2 changes: 1 addition & 1 deletion src/Handler/DeeplGlossaryCreateRequestHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function getMethod(): string

public function getPath(): string
{
return static::API_ENDPOINT;
return self::API_ENDPOINT;
}

public function getBody(): StreamInterface
Expand Down
2 changes: 1 addition & 1 deletion src/Handler/DeeplGlossaryDeleteRequestHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function getMethod(): string

public function getPath(): string
{
return sprintf(static::API_ENDPOINT, $this->submission->getId());
return sprintf(self::API_ENDPOINT, $this->submission->getId());
}

public function getBody(): StreamInterface
Expand Down
2 changes: 1 addition & 1 deletion src/Handler/DeeplGlossaryEntriesRetrieveRequestHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function getMethod(): string

public function getPath(): string
{
return sprintf(static::API_ENDPOINT, $this->submission->getId());
return sprintf(self::API_ENDPOINT, $this->submission->getId());
}

public function getBody(): StreamInterface
Expand Down
2 changes: 1 addition & 1 deletion src/Handler/DeeplGlossaryRetrieveRequestHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function getMethod(): string

public function getPath(): string
{
return sprintf(static::API_ENDPOINT, $this->submission->getId());
return sprintf(self::API_ENDPOINT, $this->submission->getId());
}

public function getBody(): StreamInterface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function getMethod(): string

public function getPath(): string
{
return static::API_ENDPOINT;
return self::API_ENDPOINT;
}

public function getBody(): StreamInterface
Expand Down
2 changes: 1 addition & 1 deletion src/Handler/DeeplTranslationRequestHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function getMethod(): string

public function getPath(): string
{
return static::API_ENDPOINT;
return self::API_ENDPOINT;
}

public function getBody(): StreamInterface
Expand Down
2 changes: 1 addition & 1 deletion src/Handler/DeeplUsageRequestHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function getMethod(): string

public function getPath(): string
{
return static::API_ENDPOINT;
return self::API_ENDPOINT;
}

public function getBody(): StreamInterface
Expand Down

0 comments on commit a90d66f

Please sign in to comment.