Skip to content
This repository was archived by the owner on May 30, 2023. It is now read-only.

Commit bb9e5e6

Browse files
author
Robert Kummer
authored
Merge pull request #22 from ipunkt/analysis-z3yAZP
Apply fixes from StyleCI
2 parents 7a920f2 + 0c0630b commit bb9e5e6

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

app/Exceptions/LocalProxyFileCanNotByDeleted.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ public static function throwException(): self
88
{
99
return new static('Local proxy file can not be deleted.');
1010
}
11-
}
11+
}

app/Jobs/UpdateLocalFile.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function handle()
5151

5252
/** @var LocalFile|RemoteFile $currentFile */
5353
$currentFile = $this->proxyFile->file;
54-
if (!$filesystem->delete($currentFile->getLocalStoragePath())) {
54+
if (! $filesystem->delete($currentFile->getLocalStoragePath())) {
5555
throw LocalProxyFileCanNotByDeleted::throwException();
5656
}
5757
$currentFile->forceDelete();
@@ -74,7 +74,7 @@ public function handle()
7474
'path' => uniqid('', true),
7575
]);
7676

77-
if (!$filesystem->exists('local')) {
77+
if (! $filesystem->exists('local')) {
7878
$filesystem->makeDirectory('local');
7979
}
8080

app/Jobs/UpdateRemoteFile.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function handle()
6868

6969
/** @var LocalFile|RemoteFile $currentFile */
7070
$currentFile = $this->proxyFile->file;
71-
if (!$this->getFilesystem()->delete($currentFile->getLocalStoragePath())) {
71+
if (! $this->getFilesystem()->delete($currentFile->getLocalStoragePath())) {
7272
throw LocalProxyFileCanNotByDeleted::throwException();
7373
}
7474
$currentFile->forceDelete();
@@ -78,7 +78,7 @@ public function handle()
7878
try {
7979
\DB::beginTransaction();
8080

81-
$content = (string)$response->getBody();
81+
$content = (string) $response->getBody();
8282

8383
$filename = basename($this->url);
8484
$parts = explode('.', $filename);
@@ -132,17 +132,18 @@ private function cacheRemoteFileLocally(RemoteFile $remoteFile, string $content)
132132
}
133133

134134
/**
135-
* sets up filesystem
135+
* sets up filesystem.
136136
*
137137
* @return Filesystem|\Illuminate\Filesystem\FilesystemAdapter
138138
*/
139139
private function getFilesystem()
140140
{
141141
/** @var Filesystem|\Illuminate\Filesystem\FilesystemAdapter $filesystem */
142142
$filesystem = app(Filesystem::class);
143-
if (!$filesystem->exists('remote')) {
143+
if (! $filesystem->exists('remote')) {
144144
$filesystem->makeDirectory('remote');
145145
}
146+
146147
return $filesystem;
147148
}
148149
}

0 commit comments

Comments
 (0)