Skip to content

Commit 5fca52b

Browse files
committed
🔥 Improve Code Style
1 parent fa9e285 commit 5fca52b

19 files changed

+18
-4903
lines changed

composer.lock

Lines changed: 0 additions & 4882 deletions
This file was deleted.

src/AbstractComponent.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
use League\Flysystem\FilesystemAdapter;
99
use League\Flysystem\PathNormalizer;
1010
use League\Flysystem\WhitespacePathNormalizer;
11-
use League\Flysystem\UrlGeneration\PublicUrlGenerator;
12-
use League\Flysystem\UrlGeneration\TemporaryUrlGenerator;
1311
use yii\base\Component;
1412

1513
/**
@@ -134,4 +132,4 @@ public function convertToDateTime($dateValue)
134132
* @return FilesystemAdapter
135133
*/
136134
abstract protected function initAdapter();
137-
}
135+
}

src/AsyncAwsS3Component.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,4 @@ protected function initAdapter()
142142

143143
return new AsyncAwsS3Adapter($this->client, $this->bucket, (string) $this->prefix);
144144
}
145-
}
145+
}

src/AwsS3Component.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,4 @@ protected function initAdapter()
152152

153153
return new AwsS3V3Adapter($this->client, $this->bucket, (string) $this->prefix, null, null, $this->options, $this->streamReads);
154154
}
155-
}
155+
}

src/FtpComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,4 +189,4 @@ protected function initAdapter()
189189

190190
return $adapter;
191191
}
192-
}
192+
}

src/LocalComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,4 @@ protected function initAdapter()
7676

7777
return $adapter;
7878
}
79-
}
79+
}

src/SftpComponent.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use diecoding\flysystem\adapter\SftpAdapter;
66
use diecoding\flysystem\traits\UrlGeneratorComponentTrait;
7-
use League\Flysystem\Config;
87
use League\Flysystem\PathPrefixing\PathPrefixedAdapter;
98
use League\Flysystem\PhpseclibV3\SftpConnectionProvider;
109
use Yii;
@@ -177,4 +176,4 @@ protected function initAdapter()
177176

178177
return $adapter;
179178
}
180-
}
179+
}

src/WebDavComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,4 @@ protected function initAdapter()
117117

118118
return new WebDAVAdapter($this->client, (string) $this->prefix, $this->debug ? WebDAVAdapter::ON_VISIBILITY_THROW_ERROR : WebDAVAdapter::ON_VISIBILITY_IGNORE);
119119
}
120-
}
120+
}

src/ZipArchiveComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ protected function initAdapter()
7575

7676
return $adapter;
7777
}
78-
}
78+
}

src/actions/FileAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ public function run($data = null)
7373
'inline' => true,
7474
]);
7575
}
76-
}
76+
}

0 commit comments

Comments
 (0)