Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Casmo authored and github-actions[bot] committed Mar 27, 2023
1 parent b3b4beb commit fe52ae5
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions src/UploadcareAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ public function write(string $path, string $contents, Config $config): void
content: $contents,
filename: $path
);
}
catch (InvalidArgumentException $e) {
} catch (InvalidArgumentException $e) {
throw new UnableToWriteFile($e->getMessage());
}
}
Expand All @@ -111,8 +110,7 @@ public function writeGetUuid(string $path, string $contents, $config): string|bo
content: $contents,
filename: $path
);
}
catch (InvalidArgumentException $e) {
} catch (InvalidArgumentException $e) {
throw new UnableToWriteFile($e->getMessage());
}

Expand All @@ -131,8 +129,7 @@ public function writeStream(string $path, $contents, Config $config): void
handle: $contents,
filename: $path
);
}
catch (InvalidArgumentException $e) {
} catch (InvalidArgumentException $e) {
throw new UnableToWriteFile($e->getMessage());
}
}
Expand All @@ -149,8 +146,7 @@ public function writeStreamGetUuid(string $path, $contents, $config): string|boo
handle: $contents,
filename: $path
);
}
catch (InvalidArgumentException $e) {
} catch (InvalidArgumentException $e) {
throw new UnableToWriteFile($e->getMessage());
}

Expand Down Expand Up @@ -246,8 +242,7 @@ public function read(string $path): string

try {
$content = file_get_contents($url);
}
catch (ErrorException $e) {
} catch (ErrorException $e) {
throw new UnableToReadFile($e->getMessage());
}

Expand All @@ -265,8 +260,7 @@ public function readStream(string $path)

try {
$stream = fopen($url, 'rb');
}
catch (ErrorException $e) {
} catch (ErrorException $e) {
throw new UnableToReadFile($e->getMessage());
}

Expand All @@ -280,8 +274,7 @@ public function delete(string $path): void
{
try {
$this->api->file()->deleteFile($path);
}
catch (HttpException $e) {
} catch (HttpException $e) {
throw new UnableToDeleteFile($e->getMessage());
}
}
Expand Down Expand Up @@ -326,8 +319,7 @@ public function getFileinfo(string $path): FileAttributes
{
try {
$info = $this->api->file()->fileInfo($path);
}
catch (\Exception $e) {
} catch (\Exception $e) {
throw new UnableToRetrieveMetadata($e->getMessage());
}

Expand Down

0 comments on commit fe52ae5

Please sign in to comment.