@@ -30,18 +30,14 @@ |
||
| 30 | 30 | use OCA\Files_external\Lib\StorageConfig; |
| 31 | 31 | use OCA\Files_External\Service\BackendService; |
| 32 | 32 | use OCA\Files_external\Service\GlobalStoragesService; |
| 33 | -use OCA\Files_external\Service\ImportLegacyStoragesService; |
|
| 34 | 33 | use OCA\Files_external\Service\UserStoragesService; |
| 35 | 34 | use OCP\IUserManager; |
| 36 | 35 | use OCP\IUserSession; |
| 37 | 36 | use Symfony\Component\Console\Command\Command; |
| 38 | -use Symfony\Component\Console\Helper\Table; |
|
| 39 | -use Symfony\Component\Console\Helper\TableHelper; |
|
| 40 | 37 | use Symfony\Component\Console\Input\ArrayInput; |
| 41 | 38 | use Symfony\Component\Console\Input\InputArgument; |
| 42 | 39 | use Symfony\Component\Console\Input\InputInterface; |
| 43 | 40 | use Symfony\Component\Console\Input\InputOption; |
| 44 | -use Symfony\Component\Console\Input\Input; |
|
| 45 | 41 | use Symfony\Component\Console\Output\OutputInterface; |
| 46 | 42 | |
| 47 | 43 | class Create extends Base { |
@@ -22,15 +22,12 @@ |
||
| 22 | 22 | namespace OCA\Files_External\Command; |
| 23 | 23 | |
| 24 | 24 | use OC\Core\Command\Base; |
| 25 | -use OCA\Files_external\Lib\StorageConfig; |
|
| 26 | 25 | use OCA\Files_external\NotFoundException; |
| 27 | 26 | use OCA\Files_external\Service\GlobalStoragesService; |
| 28 | 27 | use OCA\Files_external\Service\UserStoragesService; |
| 29 | 28 | use OCP\IUserManager; |
| 30 | 29 | use OCP\IUserSession; |
| 31 | 30 | use Symfony\Component\Console\Command\Command; |
| 32 | -use Symfony\Component\Console\Helper\Table; |
|
| 33 | -use Symfony\Component\Console\Helper\TableHelper; |
|
| 34 | 31 | use Symfony\Component\Console\Input\ArrayInput; |
| 35 | 32 | use Symfony\Component\Console\Input\InputArgument; |
| 36 | 33 | use Symfony\Component\Console\Input\InputInterface; |
@@ -31,13 +31,10 @@ |
||
| 31 | 31 | use OCP\IUserManager; |
| 32 | 32 | use OCP\IUserSession; |
| 33 | 33 | use Symfony\Component\Console\Command\Command; |
| 34 | -use Symfony\Component\Console\Helper\Table; |
|
| 35 | -use Symfony\Component\Console\Helper\TableHelper; |
|
| 36 | 34 | use Symfony\Component\Console\Input\ArrayInput; |
| 37 | 35 | use Symfony\Component\Console\Input\InputArgument; |
| 38 | 36 | use Symfony\Component\Console\Input\InputInterface; |
| 39 | 37 | use Symfony\Component\Console\Input\InputOption; |
| 40 | -use Symfony\Component\Console\Input\Input; |
|
| 41 | 38 | use Symfony\Component\Console\Output\OutputInterface; |
| 42 | 39 | |
| 43 | 40 | class Import extends Base { |
@@ -30,8 +30,6 @@ |
||
| 30 | 30 | use OCA\Files_external\Service\GlobalStoragesService; |
| 31 | 31 | use OCP\Files\StorageNotAvailableException; |
| 32 | 32 | use Symfony\Component\Console\Command\Command; |
| 33 | -use Symfony\Component\Console\Helper\Table; |
|
| 34 | -use Symfony\Component\Console\Helper\TableHelper; |
|
| 35 | 33 | use Symfony\Component\Console\Input\InputArgument; |
| 36 | 34 | use Symfony\Component\Console\Input\InputInterface; |
| 37 | 35 | use Symfony\Component\Console\Input\InputOption; |
@@ -27,7 +27,6 @@ |
||
| 27 | 27 | use OCA\Files_External\Lib\Auth\AuthMechanism; |
| 28 | 28 | use \OCP\IConfig; |
| 29 | 29 | use OCP\ILogger; |
| 30 | -use OCP\IUser; |
|
| 31 | 30 | use \OCP\IUserSession; |
| 32 | 31 | use \OCP\IRequest; |
| 33 | 32 | use \OCP\IL10N; |
@@ -144,6 +144,9 @@ |
||
| 144 | 144 | return true; |
| 145 | 145 | } |
| 146 | 146 | |
| 147 | + /** |
|
| 148 | + * @param string $path |
|
| 149 | + */ |
|
| 147 | 150 | public function url_stat($path) { |
| 148 | 151 | if (isset(self::$data[$path])) { |
| 149 | 152 | $size = strlen(self::$data[$path]); |
@@ -144,6 +144,9 @@ |
||
| 144 | 144 | return true; |
| 145 | 145 | } |
| 146 | 146 | |
| 147 | + /** |
|
| 148 | + * @param string $path |
|
| 149 | + */ |
|
| 147 | 150 | public function url_stat($path) { |
| 148 | 151 | if (isset(self::$data[$path])) { |
| 149 | 152 | $size = strlen(self::$data[$path]); |
@@ -23,7 +23,6 @@ |
||
| 23 | 23 | |
| 24 | 24 | use OCP\Files\IMimeTypeLoader; |
| 25 | 25 | use OCP\IDBConnection; |
| 26 | - |
|
| 27 | 26 | use Doctrine\DBAL\Exception\UniqueConstraintViolationException; |
| 28 | 27 | |
| 29 | 28 | /** |
@@ -544,7 +544,7 @@ |
||
| 544 | 544 | * @param array $input The array to work on |
| 545 | 545 | * @param int $case Either MB_CASE_UPPER or MB_CASE_LOWER (default) |
| 546 | 546 | * @param string $encoding The encoding parameter is the character encoding. Defaults to UTF-8 |
| 547 | - * @return array |
|
| 547 | + * @return string |
|
| 548 | 548 | * @since 4.5.0 |
| 549 | 549 | */ |
| 550 | 550 | public static function mb_array_change_key_case($input, $case = MB_CASE_LOWER, $encoding = 'UTF-8') { |