Skip to content

Commit

Permalink
Update laravel/pint requirement from 1.17.1 to 1.18.1 (#41)
Browse files Browse the repository at this point in the history
* Update laravel/pint requirement from 1.17.1 to 1.18.1

Updates the requirements on [laravel/pint](https://github.com/laravel/pint) to permit the latest version.
- [Release notes](https://github.com/laravel/pint/releases)
- [Changelog](https://github.com/laravel/pint/blob/main/CHANGELOG.md)
- [Commits](laravel/pint@v1.17.1...v1.18.1)

---
updated-dependencies:
- dependency-name: laravel/pint
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fixes coding style

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and dependabot[bot] authored Nov 7, 2024
1 parent b391d0b commit 4234f1f
Show file tree
Hide file tree
Showing 14 changed files with 62 additions and 62 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"guzzlehttp/guzzle": "^7.8"
},
"require-dev": {
"laravel/pint": "1.17.1",
"laravel/pint": "1.18.1",
"phpbench/phpbench": "^1.3",
"phpstan/phpstan": "^1.11",
"phpstan/phpstan-strict-rules": "^1.6",
Expand Down
4 changes: 2 additions & 2 deletions src/Blob/BlobClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public function exists(): bool
*/
public function upload($content, ?UploadBlobOptions $options = null): void
{
if($options === null) {
if ($options === null) {
$options = new UploadBlobOptions();
}

Expand Down Expand Up @@ -176,7 +176,7 @@ private function uploadInBlocks(StreamInterface $content, UploadBlobOptions $opt
$blockContent = StreamUtils::streamFor();
StreamUtils::copyToStream($content, $blockContent, $options->maximumTransferSize);

if($blockContent->getSize() === 0) {
if ($blockContent->getSize() === 0) {
break;
}

Expand Down
4 changes: 2 additions & 2 deletions src/Blob/BlobContainerClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public function getBlobsByHierarchy(?string $prefix = null, string $delimiter =
{
$nextMarker = "";

while(true) {
while (true) {
$response = $this->listBlobs($prefix, $delimiter, $nextMarker, $options?->pageSize);
$nextMarker = $response->nextMarker;

Expand Down Expand Up @@ -250,7 +250,7 @@ public function findBlobsByTag(string $tagFilterSqlExpression): \Generator
try {
$nextMarker = "";

while(true) {
while (true) {
$response = $this->client->get($this->uri, [
'query' => [
'restype' => 'container',
Expand Down
6 changes: 3 additions & 3 deletions src/Blob/BlobServiceClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static function fromConnectionString(string $connectionString): self
}

$sas = ConnectionStringHelper::getSas($connectionString);
if($sas !== null) {
if ($sas !== null) {
return new self($uri->withQuery($sas));
}

Expand Down Expand Up @@ -76,7 +76,7 @@ public function getBlobContainers(?string $prefix = null): \Generator
try {
$nextMarker = "";

while(true) {
while (true) {
$response = $this->client->get($this->uri, [
'query' => [
'comp' => 'list',
Expand Down Expand Up @@ -109,7 +109,7 @@ public function findBlobsByTag(string $tagFilterSqlExpression): \Generator
try {
$nextMarker = "";

while(true) {
while (true) {
$response = $this->client->get($this->uri, [
'query' => [
'comp' => 'blobs',
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Exceptions/BlobStorageExceptionFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function create(\Throwable $e): \Throwable
private function createFromRequestException(RequestException $e): \Exception
{
$response = $e->getResponse();
if($response === null) {
if ($response === null) {
return $e;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Responses/ListContainersResponseBody.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ private function __construct(
public static function fromXml(\SimpleXMLElement $xml): self
{
$containers = [];
foreach($xml->Containers->children() as $container) {
foreach ($xml->Containers->children() as $container) {
$containers[] = BlobContainer::fromXml($container);
}

Expand Down
26 changes: 13 additions & 13 deletions src/Blob/Sas/BlobContainerSasPermissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,43 +26,43 @@ public function __toString(): string
{
$permissions = "";

if($this->read) {
if ($this->read) {
$permissions .= "r";
}
if($this->add) {
if ($this->add) {
$permissions .= "a";
}
if($this->create) {
if ($this->create) {
$permissions .= "c";
}
if($this->write) {
if ($this->write) {
$permissions .= "w";
}
if($this->delete) {
if ($this->delete) {
$permissions .= "d";
}
if($this->deleteVersion) {
if ($this->deleteVersion) {
$permissions .= "x";
}
if($this->list) {
if ($this->list) {
$permissions .= "l";
}
if($this->find) {
if ($this->find) {
$permissions .= "f";
}
if($this->move) {
if ($this->move) {
$permissions .= "m";
}
if($this->execute) {
if ($this->execute) {
$permissions .= "e";
}
if($this->ownership) {
if ($this->ownership) {
$permissions .= "o";
}
if($this->permissions) {
if ($this->permissions) {
$permissions .= "p";
}
if($this->setImmutabilityPolicy) {
if ($this->setImmutabilityPolicy) {
$permissions .= "i";
}

Expand Down
28 changes: 14 additions & 14 deletions src/Blob/Sas/BlobSasPermissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,46 +27,46 @@ public function __toString(): string
{
$permissions = "";

if($this->read) {
if ($this->read) {
$permissions .= "r";
}
if($this->add) {
if ($this->add) {
$permissions .= "a";
}
if($this->create) {
if ($this->create) {
$permissions .= "c";
}
if($this->write) {
if ($this->write) {
$permissions .= "w";
}
if($this->delete) {
if ($this->delete) {
$permissions .= "d";
}
if($this->deleteVersion) {
if ($this->deleteVersion) {
$permissions .= "x";
}
if($this->permanentDelete) {
if ($this->permanentDelete) {
$permissions .= "y";
}
if($this->list) {
if ($this->list) {
$permissions .= "l";
}
if($this->tags) {
if ($this->tags) {
$permissions .= "t";
}
if($this->move) {
if ($this->move) {
$permissions .= "m";
}
if($this->execute) {
if ($this->execute) {
$permissions .= "e";
}
if($this->ownership) {
if ($this->ownership) {
$permissions .= "o";
}
if($this->permissions) {
if ($this->permissions) {
$permissions .= "p";
}
if($this->setImmutabilityPolicy) {
if ($this->setImmutabilityPolicy) {
$permissions .= "i";
}

Expand Down
8 changes: 4 additions & 4 deletions src/Common/Helpers/ConnectionStringHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ final class ConnectionStringHelper

public static function getBlobEndpoint(string $connectionString): ?UriInterface
{
if($connectionString === self::DEV_CONNECTION_STRING_SHORTCUT) {
if ($connectionString === self::DEV_CONNECTION_STRING_SHORTCUT) {
return new Uri(self::DEV_BLOB_ENDPOINT);
}

$segments = self::getSegments($connectionString);

if (isset($segments['BlobEndpoint'])) {
$uri = $segments['BlobEndpoint'];
} elseif(isset($segments['AccountName'], $segments['EndpointSuffix'])) {
} elseif (isset($segments['AccountName'], $segments['EndpointSuffix'])) {
$uri = sprintf('%s.blob.%s', $segments['AccountName'], $segments['EndpointSuffix']);
} else {
return null;
Expand All @@ -42,7 +42,7 @@ public static function getBlobEndpoint(string $connectionString): ?UriInterface

public static function getAccountName(string $connectionString): ?string
{
if($connectionString === self::DEV_CONNECTION_STRING_SHORTCUT) {
if ($connectionString === self::DEV_CONNECTION_STRING_SHORTCUT) {
return self::DEV_BLOB_ACCOUNT_NAME;
}

Expand All @@ -51,7 +51,7 @@ public static function getAccountName(string $connectionString): ?string

public static function getAccountKey(string $connectionString): ?string
{
if($connectionString === self::DEV_CONNECTION_STRING_SHORTCUT) {
if ($connectionString === self::DEV_CONNECTION_STRING_SHORTCUT) {
return self::DEV_BLOB_ACCOUNT_KEY;
}

Expand Down
24 changes: 12 additions & 12 deletions src/Common/Sas/AccountSasPermissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,40 +25,40 @@ public function __toString(): string
{
$permissions = "";

if($this->read) {
if ($this->read) {
$permissions .= "r";
}
if($this->write) {
if ($this->write) {
$permissions .= "w";
}
if($this->delete) {
if ($this->delete) {
$permissions .= "d";
}
if($this->permanentDelete) {
if ($this->permanentDelete) {
$permissions .= "y";
}
if($this->list) {
if ($this->list) {
$permissions .= "l";
}
if($this->add) {
if ($this->add) {
$permissions .= "a";
}
if($this->create) {
if ($this->create) {
$permissions .= "c";
}
if($this->update) {
if ($this->update) {
$permissions .= "u";
}
if($this->process) {
if ($this->process) {
$permissions .= "p";
}
if($this->tags) {
if ($this->tags) {
$permissions .= "t";
}
if($this->filter) {
if ($this->filter) {
$permissions .= "f";
}
if($this->setImmutabilityPolicy) {
if ($this->setImmutabilityPolicy) {
$permissions .= "i";
}

Expand Down
6 changes: 3 additions & 3 deletions src/Common/Sas/AccountSasResourceTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ public function __toString(): string
{
$permissions = "";

if($this->service) {
if ($this->service) {
$permissions .= "s";
}
if($this->container) {
if ($this->container) {
$permissions .= "c";
}
if($this->object) {
if ($this->object) {
$permissions .= "o";
}

Expand Down
8 changes: 4 additions & 4 deletions src/Common/Sas/AccountSasServices.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ public function __toString(): string
{
$permissions = "";

if($this->blob) {
if ($this->blob) {
$permissions .= "b";
}
if($this->queue) {
if ($this->queue) {
$permissions .= "q";
}
if($this->table) {
if ($this->table) {
$permissions .= "t";
}
if($this->file) {
if ($this->file) {
$permissions .= "f";
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Blob/BlobFeatureTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ protected function withFile(int $size, callable $callable): void

protected function markTestSkippedWhenUsingSimulator(): void
{
if(BlobUriParserHelper::isDevelopmentUri($this->serviceClient->uri)) {
if (BlobUriParserHelper::isDevelopmentUri($this->serviceClient->uri)) {
self::markTestSkipped("API unsupported in Azurite.");
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Blob/Feature/BlobClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ public function set_tags_throws_when_too_many_tags_are_provided(): void

$tags = [];

for($i = 0; $i < 1000; $i++) {
for ($i = 0; $i < 1000; $i++) {
$tags["tag-$i"] = "noop";
}

Expand Down

0 comments on commit 4234f1f

Please sign in to comment.