From 68748d4f85dd23238aaafb787b1c341f0f2f0419 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 22 Nov 2019 20:52:10 +0100 Subject: Some php-cs fixes * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma --- .../BackgroundCleanupUpdaterBackupsJob.php | 1 + core/Command/App/CheckCode.php | 6 +++--- core/Command/App/Install.php | 2 +- core/Command/App/Remove.php | 4 ++-- core/Command/App/Update.php | 5 ++--- core/Command/Background/Base.php | 2 +- core/Command/Check.php | 1 + core/Command/Db/AddMissingIndices.php | 1 - core/Command/Db/ConvertType.php | 6 +++--- core/Command/Encryption/ChangeKeyStorageRoot.php | 1 - core/Command/Encryption/ShowKeyStorageRoot.php | 1 - core/Command/Integrity/CheckApp.php | 5 +++-- core/Command/Integrity/CheckCore.php | 2 +- core/Command/InterruptedException.php | 1 + core/Command/Log/File.php | 2 +- core/Command/Maintenance/DataFingerprint.php | 2 +- core/Command/Maintenance/Install.php | 1 + .../Maintenance/Mimetype/GenerateMimetypeFileBuilder.php | 2 +- core/Command/Maintenance/Mimetype/UpdateDB.php | 8 ++++---- core/Command/Maintenance/Mimetype/UpdateJS.php | 4 ++-- core/Command/Maintenance/Mode.php | 2 +- core/Command/Maintenance/UpdateHtaccess.php | 1 + core/Command/Maintenance/UpdateTheme.php | 4 ++-- core/Command/TwoFactorAuth/Base.php | 2 +- core/Command/User/Add.php | 2 +- core/Command/User/Delete.php | 2 +- core/Command/User/Disable.php | 2 +- core/Command/User/Enable.php | 2 +- core/Command/User/LastSeen.php | 2 +- core/Command/User/ResetPassword.php | 2 +- core/Command/User/Setting.php | 2 +- core/Controller/AutoCompleteController.php | 2 +- core/Controller/AvatarController.php | 3 ++- core/Controller/CollaborationResourcesController.php | 2 +- core/Controller/CssController.php | 2 +- core/Controller/JsController.php | 3 ++- core/Controller/LostController.php | 16 ++++++++-------- core/Controller/NavigationController.php | 1 + core/Controller/OCJSController.php | 1 + core/Controller/OCSController.php | 1 + core/Controller/PreviewController.php | 4 ++-- core/Controller/SvgController.php | 4 ++-- core/Controller/UserController.php | 8 ++++---- core/Controller/WalledGardenController.php | 1 + core/Migrations/Version13000Date20170705121758.php | 2 +- core/Migrations/Version13000Date20170718121200.php | 2 +- core/Migrations/Version13000Date20170814074715.php | 2 +- core/Migrations/Version13000Date20170919121250.php | 3 ++- core/Migrations/Version13000Date20170926101637.php | 1 + core/Migrations/Version14000Date20180129121024.php | 3 ++- core/Migrations/Version14000Date20180404140050.php | 2 +- core/Migrations/Version14000Date20180516101403.php | 2 +- core/Migrations/Version14000Date20180518120534.php | 2 +- core/Migrations/Version14000Date20180710092004.php | 2 +- core/Migrations/Version15000Date20180926101451.php | 2 +- core/Migrations/Version15000Date20181015062942.php | 2 +- core/Migrations/Version15000Date20181029084625.php | 2 +- core/Migrations/Version16000Date20190207141427.php | 2 +- core/Migrations/Version16000Date20190212081545.php | 2 +- core/Migrations/Version16000Date20190427105638.php | 3 +-- core/Migrations/Version16000Date20190428150708.php | 2 +- core/Migrations/Version17000Date20190514105811.php | 3 +-- core/Migrations/Version18000Date20190920085628.php | 2 +- core/ajax/update.php | 1 - 64 files changed, 89 insertions(+), 81 deletions(-) (limited to 'core') diff --git a/core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php b/core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php index 2b629861088..ad3c2355dc8 100644 --- a/core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php +++ b/core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php @@ -20,6 +20,7 @@ * along with this program. If not, see . * */ + namespace OC\Core\BackgroundJobs; use OC\BackgroundJob\QueuedJob; diff --git a/core/Command/App/CheckCode.php b/core/Command/App/CheckCode.php index 530c1d30ec0..82d15fae4fb 100644 --- a/core/Command/App/CheckCode.php +++ b/core/Command/App/CheckCode.php @@ -27,9 +27,12 @@ namespace OC\Core\Command\App; use OC\App\CodeChecker\CodeChecker; use OC\App\CodeChecker\DatabaseSchemaChecker; +use OC\App\CodeChecker\DeprecationCheck; use OC\App\CodeChecker\EmptyCheck; use OC\App\CodeChecker\InfoChecker; use OC\App\CodeChecker\LanguageParseChecker; +use OC\App\CodeChecker\PrivateCheck; +use OC\App\CodeChecker\StrongComparisonCheck; use OC\App\InfoParser; use Stecman\Component\Symfony\Console\BashCompletion\Completion\CompletionAwareInterface; use Stecman\Component\Symfony\Console\BashCompletion\CompletionContext; @@ -38,9 +41,6 @@ use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; -use OC\App\CodeChecker\StrongComparisonCheck; -use OC\App\CodeChecker\DeprecationCheck; -use OC\App\CodeChecker\PrivateCheck; class CheckCode extends Command implements CompletionAwareInterface { diff --git a/core/Command/App/Install.php b/core/Command/App/Install.php index 525b0095f04..cfddaed34da 100644 --- a/core/Command/App/Install.php +++ b/core/Command/App/Install.php @@ -25,8 +25,8 @@ namespace OC\Core\Command\App; use OC\Installer; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; -use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputInterface; +use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; class Install extends Command { diff --git a/core/Command/App/Remove.php b/core/Command/App/Remove.php index 71d5cef229c..e3777c8be41 100644 --- a/core/Command/App/Remove.php +++ b/core/Command/App/Remove.php @@ -22,7 +22,6 @@ namespace OC\Core\Command\App; -use Throwable; use OC\Installer; use OCP\App\IAppManager; use OCP\ILogger; @@ -30,9 +29,10 @@ use Stecman\Component\Symfony\Console\BashCompletion\Completion\CompletionAwareI use Stecman\Component\Symfony\Console\BashCompletion\CompletionContext; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; -use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputInterface; +use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; +use Throwable; class Remove extends Command implements CompletionAwareInterface { diff --git a/core/Command/App/Update.php b/core/Command/App/Update.php index c571a9a1624..881ad1fcf1e 100644 --- a/core/Command/App/Update.php +++ b/core/Command/App/Update.php @@ -21,13 +21,13 @@ namespace OC\Core\Command\App; -use OCP\App\IAppManager; use OC\Installer; +use OCP\App\IAppManager; use OCP\ILogger; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; -use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputInterface; +use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; class Update extends Command { @@ -122,4 +122,3 @@ class Update extends Command { return $return; } } - diff --git a/core/Command/Background/Base.php b/core/Command/Background/Base.php index 48fee818d0a..32d22d64cb9 100644 --- a/core/Command/Background/Base.php +++ b/core/Command/Background/Base.php @@ -25,7 +25,7 @@ namespace OC\Core\Command\Background; -use \OCP\IConfig; +use OCP\IConfig; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; diff --git a/core/Command/Check.php b/core/Command/Check.php index 16176a171a2..e6274082ea0 100644 --- a/core/Command/Check.php +++ b/core/Command/Check.php @@ -21,6 +21,7 @@ * along with this program. If not, see * */ + namespace OC\Core\Command; use OC\SystemConfig; diff --git a/core/Command/Db/AddMissingIndices.php b/core/Command/Db/AddMissingIndices.php index 527a2cd7b19..4de1d0f12f4 100644 --- a/core/Command/Db/AddMissingIndices.php +++ b/core/Command/Db/AddMissingIndices.php @@ -20,7 +20,6 @@ declare(strict_types=1); * */ - namespace OC\Core\Command\Db; use OC\DB\SchemaWrapper; diff --git a/core/Command/Db/ConvertType.php b/core/Command/Db/ConvertType.php index bd26c5e5154..ca3c779199e 100644 --- a/core/Command/Db/ConvertType.php +++ b/core/Command/Db/ConvertType.php @@ -33,11 +33,11 @@ namespace OC\Core\Command\Db; use Doctrine\DBAL\DBALException; use Doctrine\DBAL\Schema\Table; use Doctrine\DBAL\Types\Type; -use OC\DB\MigrationService; -use OCP\DB\QueryBuilder\IQueryBuilder; -use \OCP\IConfig; use OC\DB\Connection; use OC\DB\ConnectionFactory; +use OC\DB\MigrationService; +use OCP\DB\QueryBuilder\IQueryBuilder; +use OCP\IConfig; use Stecman\Component\Symfony\Console\BashCompletion\Completion\CompletionAwareInterface; use Stecman\Component\Symfony\Console\BashCompletion\CompletionContext; use Symfony\Component\Console\Command\Command; diff --git a/core/Command/Encryption/ChangeKeyStorageRoot.php b/core/Command/Encryption/ChangeKeyStorageRoot.php index 15e88326973..f89a66873b0 100644 --- a/core/Command/Encryption/ChangeKeyStorageRoot.php +++ b/core/Command/Encryption/ChangeKeyStorageRoot.php @@ -20,7 +20,6 @@ * */ - namespace OC\Core\Command\Encryption; use OC\Encryption\Keys\Storage; diff --git a/core/Command/Encryption/ShowKeyStorageRoot.php b/core/Command/Encryption/ShowKeyStorageRoot.php index 4270ee9f57f..09331f04b6e 100644 --- a/core/Command/Encryption/ShowKeyStorageRoot.php +++ b/core/Command/Encryption/ShowKeyStorageRoot.php @@ -20,7 +20,6 @@ * */ - namespace OC\Core\Command\Encryption; use OC\Encryption\Util; diff --git a/core/Command/Integrity/CheckApp.php b/core/Command/Integrity/CheckApp.php index 1c71286195a..c19d03649b8 100644 --- a/core/Command/Integrity/CheckApp.php +++ b/core/Command/Integrity/CheckApp.php @@ -20,12 +20,13 @@ * along with this program. If not, see * */ + namespace OC\Core\Command\Integrity; -use OC\IntegrityCheck\Checker; use OC\Core\Command\Base; -use Symfony\Component\Console\Input\InputInterface; +use OC\IntegrityCheck\Checker; use Symfony\Component\Console\Input\InputArgument; +use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; diff --git a/core/Command/Integrity/CheckCore.php b/core/Command/Integrity/CheckCore.php index a3426ce9345..3d087247aa7 100644 --- a/core/Command/Integrity/CheckCore.php +++ b/core/Command/Integrity/CheckCore.php @@ -23,8 +23,8 @@ namespace OC\Core\Command\Integrity; -use OC\IntegrityCheck\Checker; use OC\Core\Command\Base; +use OC\IntegrityCheck\Checker; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; diff --git a/core/Command/InterruptedException.php b/core/Command/InterruptedException.php index 4470ea82d2b..3747c4a7f17 100644 --- a/core/Command/InterruptedException.php +++ b/core/Command/InterruptedException.php @@ -19,6 +19,7 @@ * along with this program. If not, see * */ + namespace OC\Core\Command; /** diff --git a/core/Command/Log/File.php b/core/Command/Log/File.php index 8be01d2b6ef..877e0a592e9 100644 --- a/core/Command/Log/File.php +++ b/core/Command/Log/File.php @@ -24,7 +24,7 @@ namespace OC\Core\Command\Log; -use \OCP\IConfig; +use OCP\IConfig; use Stecman\Component\Symfony\Console\BashCompletion\Completion; use Stecman\Component\Symfony\Console\BashCompletion\Completion\ShellPathCompletion; diff --git a/core/Command/Maintenance/DataFingerprint.php b/core/Command/Maintenance/DataFingerprint.php index 37e8de24552..479e5f17536 100644 --- a/core/Command/Maintenance/DataFingerprint.php +++ b/core/Command/Maintenance/DataFingerprint.php @@ -19,6 +19,7 @@ * along with this program. If not, see * */ + namespace OC\Core\Command\Maintenance; use OCP\AppFramework\Utility\ITimeFactory; @@ -27,7 +28,6 @@ use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; - class DataFingerprint extends Command { /** @var IConfig */ diff --git a/core/Command/Maintenance/Install.php b/core/Command/Maintenance/Install.php index 39692e036ba..4197234ae7e 100644 --- a/core/Command/Maintenance/Install.php +++ b/core/Command/Maintenance/Install.php @@ -27,6 +27,7 @@ * along with this program. If not, see * */ + namespace OC\Core\Command\Maintenance; use InvalidArgumentException; diff --git a/core/Command/Maintenance/Mimetype/GenerateMimetypeFileBuilder.php b/core/Command/Maintenance/Mimetype/GenerateMimetypeFileBuilder.php index 2eef5e9faaa..302f6b91342 100644 --- a/core/Command/Maintenance/Mimetype/GenerateMimetypeFileBuilder.php +++ b/core/Command/Maintenance/Mimetype/GenerateMimetypeFileBuilder.php @@ -102,4 +102,4 @@ OC.MimeTypeList={ '; } -} \ No newline at end of file +} diff --git a/core/Command/Maintenance/Mimetype/UpdateDB.php b/core/Command/Maintenance/Mimetype/UpdateDB.php index 1c8d651b9c0..7a7d9c11e55 100644 --- a/core/Command/Maintenance/Mimetype/UpdateDB.php +++ b/core/Command/Maintenance/Mimetype/UpdateDB.php @@ -22,13 +22,13 @@ namespace OC\Core\Command\Maintenance\Mimetype; +use OCP\Files\IMimeTypeDetector; +use OCP\Files\IMimeTypeLoader; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; -use Symfony\Component\Console\Output\OutputInterface; -use Symfony\Component\Console\Input\InputOption; -use OCP\Files\IMimeTypeDetector; -use OCP\Files\IMimeTypeLoader; +use Symfony\Component\Console\Input\InputOption; +use Symfony\Component\Console\Output\OutputInterface; class UpdateDB extends Command { diff --git a/core/Command/Maintenance/Mimetype/UpdateJS.php b/core/Command/Maintenance/Mimetype/UpdateJS.php index 0606e210c3f..230d0fac6a6 100644 --- a/core/Command/Maintenance/Mimetype/UpdateJS.php +++ b/core/Command/Maintenance/Mimetype/UpdateJS.php @@ -25,11 +25,11 @@ namespace OC\Core\Command\Maintenance\Mimetype; +use OCP\Files\IMimeTypeDetector; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; -use Symfony\Component\Console\Output\OutputInterface; -use OCP\Files\IMimeTypeDetector; +use Symfony\Component\Console\Output\OutputInterface; class UpdateJS extends Command { diff --git a/core/Command/Maintenance/Mode.php b/core/Command/Maintenance/Mode.php index 1692eb08d87..8b13175f0bb 100644 --- a/core/Command/Maintenance/Mode.php +++ b/core/Command/Maintenance/Mode.php @@ -23,7 +23,7 @@ namespace OC\Core\Command\Maintenance; -use \OCP\IConfig; +use OCP\IConfig; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; diff --git a/core/Command/Maintenance/UpdateHtaccess.php b/core/Command/Maintenance/UpdateHtaccess.php index 04c870f07a4..d67d2d32edf 100644 --- a/core/Command/Maintenance/UpdateHtaccess.php +++ b/core/Command/Maintenance/UpdateHtaccess.php @@ -20,6 +20,7 @@ * along with this program. If not, see * */ + namespace OC\Core\Command\Maintenance; use Symfony\Component\Console\Command\Command; diff --git a/core/Command/Maintenance/UpdateTheme.php b/core/Command/Maintenance/UpdateTheme.php index 2ab66a4ce75..825cfc0da88 100644 --- a/core/Command/Maintenance/UpdateTheme.php +++ b/core/Command/Maintenance/UpdateTheme.php @@ -24,11 +24,11 @@ namespace OC\Core\Command\Maintenance; use OC\Core\Command\Maintenance\Mimetype\UpdateJS; +use OCP\Files\IMimeTypeDetector; use OCP\ICacheFactory; use Symfony\Component\Console\Input\InputInterface; -use Symfony\Component\Console\Output\OutputInterface; -use OCP\Files\IMimeTypeDetector; +use Symfony\Component\Console\Output\OutputInterface; class UpdateTheme extends UpdateJS { diff --git a/core/Command/TwoFactorAuth/Base.php b/core/Command/TwoFactorAuth/Base.php index aa4f40fc771..3a9b4224eb9 100644 --- a/core/Command/TwoFactorAuth/Base.php +++ b/core/Command/TwoFactorAuth/Base.php @@ -23,8 +23,8 @@ namespace OC\Core\Command\TwoFactorAuth; -use OCP\IUserManager; use OCP\IUser; +use OCP\IUserManager; use Stecman\Component\Symfony\Console\BashCompletion\CompletionContext; class Base extends \OC\Core\Command\Base { diff --git a/core/Command/User/Add.php b/core/Command/User/Add.php index cc53f1c78c0..047881fc37f 100644 --- a/core/Command/User/Add.php +++ b/core/Command/User/Add.php @@ -30,10 +30,10 @@ use OCP\IUser; use OCP\IUserManager; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Helper\QuestionHelper; +use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; -use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Question\Question; class Add extends Command { diff --git a/core/Command/User/Delete.php b/core/Command/User/Delete.php index 495c0903bba..6406d4823ee 100644 --- a/core/Command/User/Delete.php +++ b/core/Command/User/Delete.php @@ -27,9 +27,9 @@ namespace OC\Core\Command\User; use OCP\IUserManager; use Symfony\Component\Console\Command\Command; +use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; -use Symfony\Component\Console\Input\InputArgument; class Delete extends Command { /** @var IUserManager */ diff --git a/core/Command/User/Disable.php b/core/Command/User/Disable.php index 7c6e8315702..63e23b05700 100644 --- a/core/Command/User/Disable.php +++ b/core/Command/User/Disable.php @@ -24,9 +24,9 @@ namespace OC\Core\Command\User; use OCP\IUserManager; use Symfony\Component\Console\Command\Command; +use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; -use Symfony\Component\Console\Input\InputArgument; class Disable extends Command { /** @var IUserManager */ diff --git a/core/Command/User/Enable.php b/core/Command/User/Enable.php index 164027d809a..48bf4785164 100644 --- a/core/Command/User/Enable.php +++ b/core/Command/User/Enable.php @@ -24,9 +24,9 @@ namespace OC\Core\Command\User; use OCP\IUserManager; use Symfony\Component\Console\Command\Command; +use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; -use Symfony\Component\Console\Input\InputArgument; class Enable extends Command { /** @var IUserManager */ diff --git a/core/Command/User/LastSeen.php b/core/Command/User/LastSeen.php index 58592e05150..d2b168d63c9 100644 --- a/core/Command/User/LastSeen.php +++ b/core/Command/User/LastSeen.php @@ -27,9 +27,9 @@ namespace OC\Core\Command\User; use OCP\IUserManager; use Symfony\Component\Console\Command\Command; +use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; -use Symfony\Component\Console\Input\InputArgument; class LastSeen extends Command { /** @var IUserManager */ diff --git a/core/Command/User/ResetPassword.php b/core/Command/User/ResetPassword.php index 9e69626c38d..4f2173c155e 100644 --- a/core/Command/User/ResetPassword.php +++ b/core/Command/User/ResetPassword.php @@ -32,8 +32,8 @@ namespace OC\Core\Command\User; use OCP\IUserManager; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Helper\QuestionHelper; -use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputArgument; +use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Question\ConfirmationQuestion; diff --git a/core/Command/User/Setting.php b/core/Command/User/Setting.php index d7bb436783f..3883d57b043 100644 --- a/core/Command/User/Setting.php +++ b/core/Command/User/Setting.php @@ -27,10 +27,10 @@ use OCP\IConfig; use OCP\IDBConnection; use OCP\IUser; use OCP\IUserManager; +use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; -use Symfony\Component\Console\Input\InputArgument; class Setting extends Base { /** @var IUserManager */ diff --git a/core/Controller/AutoCompleteController.php b/core/Controller/AutoCompleteController.php index 80f5d3c8630..df244df987c 100644 --- a/core/Controller/AutoCompleteController.php +++ b/core/Controller/AutoCompleteController.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace OC\Core\Controller; -use OCP\AppFramework\OCSController as Controller; use OCP\AppFramework\Http\DataResponse; +use OCP\AppFramework\OCSController as Controller; use OCP\Collaboration\AutoComplete\AutoCompleteEvent; use OCP\Collaboration\AutoComplete\IManager; use OCP\Collaboration\Collaborators\ISearch; diff --git a/core/Controller/AvatarController.php b/core/Controller/AvatarController.php index 9ee344f7ed8..cef68ec8348 100644 --- a/core/Controller/AvatarController.php +++ b/core/Controller/AvatarController.php @@ -25,6 +25,7 @@ * along with this program. If not, see * */ + namespace OC\Core\Controller; use OC\AppFramework\Utility\TimeFactory; @@ -37,8 +38,8 @@ use OCP\Files\File; use OCP\Files\IRootFolder; use OCP\IAvatarManager; use OCP\ICache; -use OCP\ILogger; use OCP\IL10N; +use OCP\ILogger; use OCP\IRequest; use OCP\IUserManager; use OCP\IUserSession; diff --git a/core/Controller/CollaborationResourcesController.php b/core/Controller/CollaborationResourcesController.php index 46ec1136c94..caa1f1a16d0 100644 --- a/core/Controller/CollaborationResourcesController.php +++ b/core/Controller/CollaborationResourcesController.php @@ -24,8 +24,8 @@ namespace OC\Core\Controller; use Exception; use OCP\AppFramework\Http; -use OCP\AppFramework\OCSController; use OCP\AppFramework\Http\DataResponse; +use OCP\AppFramework\OCSController; use OCP\Collaboration\Resources\CollectionException; use OCP\Collaboration\Resources\ICollection; use OCP\Collaboration\Resources\IManager; diff --git a/core/Controller/CssController.php b/core/Controller/CssController.php index 901074d0285..bb9b7a37d8f 100644 --- a/core/Controller/CssController.php +++ b/core/Controller/CssController.php @@ -30,8 +30,8 @@ namespace OC\Core\Controller; use OC\Files\AppData\Factory; use OCP\AppFramework\Controller; use OCP\AppFramework\Http; -use OCP\AppFramework\Http\NotFoundResponse; use OCP\AppFramework\Http\FileDisplayResponse; +use OCP\AppFramework\Http\NotFoundResponse; use OCP\AppFramework\Http\Response; use OCP\AppFramework\Utility\ITimeFactory; use OCP\Files\IAppData; diff --git a/core/Controller/JsController.php b/core/Controller/JsController.php index cdf22eda5fa..207b7113ab5 100644 --- a/core/Controller/JsController.php +++ b/core/Controller/JsController.php @@ -23,13 +23,14 @@ declare(strict_types=1); * along with this program. If not, see . * */ + namespace OC\Core\Controller; use OC\Files\AppData\Factory; use OCP\AppFramework\Controller; use OCP\AppFramework\Http; -use OCP\AppFramework\Http\NotFoundResponse; use OCP\AppFramework\Http\FileDisplayResponse; +use OCP\AppFramework\Http\NotFoundResponse; use OCP\AppFramework\Http\Response; use OCP\AppFramework\Utility\ITimeFactory; use OCP\Files\IAppData; diff --git a/core/Controller/LostController.php b/core/Controller/LostController.php index 49f015d511d..1a3f86f95d3 100644 --- a/core/Controller/LostController.php +++ b/core/Controller/LostController.php @@ -31,29 +31,29 @@ namespace OC\Core\Controller; +use function array_filter; +use function count; use OC\Authentication\TwoFactorAuth\Manager; use OC\Core\Exception\ResetPasswordException; use OC\HintException; -use \OCP\AppFramework\Controller; +use OCP\AppFramework\Controller; use OCP\AppFramework\Http\JSONResponse; -use \OCP\AppFramework\Http\TemplateResponse; +use OCP\AppFramework\Http\TemplateResponse; use OCP\AppFramework\Utility\ITimeFactory; use OCP\Defaults; use OCP\Encryption\IEncryptionModule; use OCP\Encryption\IManager; +use OCP\IConfig; use OCP\IInitialStateService; +use OCP\IL10N; use OCP\ILogger; -use \OCP\IURLGenerator; -use \OCP\IRequest; -use \OCP\IL10N; -use \OCP\IConfig; +use OCP\IRequest; +use OCP\IURLGenerator; use OCP\IUser; use OCP\IUserManager; use OCP\Mail\IMailer; use OCP\Security\ICrypto; use OCP\Security\ISecureRandom; -use function array_filter; -use function count; use function reset; /** diff --git a/core/Controller/NavigationController.php b/core/Controller/NavigationController.php index eb3b0968da3..654cb6d253d 100644 --- a/core/Controller/NavigationController.php +++ b/core/Controller/NavigationController.php @@ -20,6 +20,7 @@ * along with this program. If not, see . * */ + namespace OC\Core\Controller; use OCP\AppFramework\Http; diff --git a/core/Controller/OCJSController.php b/core/Controller/OCJSController.php index 37fe17c8dd1..8ffc6d99290 100644 --- a/core/Controller/OCJSController.php +++ b/core/Controller/OCJSController.php @@ -23,6 +23,7 @@ * along with this program. If not, see . * */ + namespace OC\Core\Controller; use bantu\IniGetWrapper\IniGetWrapper; diff --git a/core/Controller/OCSController.php b/core/Controller/OCSController.php index 68861ce7e95..ce08fb657e2 100644 --- a/core/Controller/OCSController.php +++ b/core/Controller/OCSController.php @@ -23,6 +23,7 @@ * along with this program. If not, see . * */ + namespace OC\Core\Controller; use OC\CapabilitiesManager; diff --git a/core/Controller/PreviewController.php b/core/Controller/PreviewController.php index c25d9178310..edda49d0ded 100644 --- a/core/Controller/PreviewController.php +++ b/core/Controller/PreviewController.php @@ -26,11 +26,11 @@ declare(strict_types=1); namespace OC\Core\Controller; use OCP\AppFramework\Controller; -use OCP\AppFramework\Utility\ITimeFactory; -use OCP\Files\File; use OCP\AppFramework\Http; use OCP\AppFramework\Http\DataResponse; use OCP\AppFramework\Http\FileDisplayResponse; +use OCP\AppFramework\Utility\ITimeFactory; +use OCP\Files\File; use OCP\Files\IRootFolder; use OCP\Files\Node; use OCP\Files\NotFoundException; diff --git a/core/Controller/SvgController.php b/core/Controller/SvgController.php index b956f724ad8..64defcd8ce0 100644 --- a/core/Controller/SvgController.php +++ b/core/Controller/SvgController.php @@ -24,14 +24,14 @@ declare (strict_types = 1); namespace OC\Core\Controller; +use OC\Template\IconsCacher; +use OCP\App\IAppManager; use OCP\AppFramework\Controller; use OCP\AppFramework\Http; use OCP\AppFramework\Http\DataDisplayResponse; use OCP\AppFramework\Http\NotFoundResponse; use OCP\AppFramework\Utility\ITimeFactory; -use OCP\App\IAppManager; use OCP\IRequest; -use OC\Template\IconsCacher; class SvgController extends Controller { diff --git a/core/Controller/UserController.php b/core/Controller/UserController.php index 24746c65e5f..a04e350b2b1 100644 --- a/core/Controller/UserController.php +++ b/core/Controller/UserController.php @@ -24,10 +24,10 @@ namespace OC\Core\Controller; -use \OCP\AppFramework\Controller; -use \OCP\AppFramework\Http\JSONResponse; -use \OCP\IRequest; -use \OCP\IUserManager; +use OCP\AppFramework\Controller; +use OCP\AppFramework\Http\JSONResponse; +use OCP\IRequest; +use OCP\IUserManager; class UserController extends Controller { /** diff --git a/core/Controller/WalledGardenController.php b/core/Controller/WalledGardenController.php index 737f5396779..be34b25b904 100644 --- a/core/Controller/WalledGardenController.php +++ b/core/Controller/WalledGardenController.php @@ -20,6 +20,7 @@ * along with this program. If not, see . * */ + namespace OC\Core\Controller; use OCP\AppFramework\Controller; diff --git a/core/Migrations/Version13000Date20170705121758.php b/core/Migrations/Version13000Date20170705121758.php index 9d8b373b6b9..344085aae24 100644 --- a/core/Migrations/Version13000Date20170705121758.php +++ b/core/Migrations/Version13000Date20170705121758.php @@ -25,8 +25,8 @@ namespace OC\Core\Migrations; use Doctrine\DBAL\Types\Type; use OCP\DB\ISchemaWrapper; -use OCP\Migration\SimpleMigrationStep; use OCP\Migration\IOutput; +use OCP\Migration\SimpleMigrationStep; class Version13000Date20170705121758 extends SimpleMigrationStep { /** diff --git a/core/Migrations/Version13000Date20170718121200.php b/core/Migrations/Version13000Date20170718121200.php index 4c5fb7b9b02..cecdbf907da 100644 --- a/core/Migrations/Version13000Date20170718121200.php +++ b/core/Migrations/Version13000Date20170718121200.php @@ -25,8 +25,8 @@ namespace OC\Core\Migrations; use Doctrine\DBAL\Types\Type; use OCP\DB\ISchemaWrapper; -use OCP\Migration\SimpleMigrationStep; use OCP\Migration\IOutput; +use OCP\Migration\SimpleMigrationStep; class Version13000Date20170718121200 extends SimpleMigrationStep { diff --git a/core/Migrations/Version13000Date20170814074715.php b/core/Migrations/Version13000Date20170814074715.php index 0eae4167fb6..82f8b8a3157 100644 --- a/core/Migrations/Version13000Date20170814074715.php +++ b/core/Migrations/Version13000Date20170814074715.php @@ -24,8 +24,8 @@ namespace OC\Core\Migrations; use OCP\DB\ISchemaWrapper; -use OCP\Migration\SimpleMigrationStep; use OCP\Migration\IOutput; +use OCP\Migration\SimpleMigrationStep; class Version13000Date20170814074715 extends SimpleMigrationStep { diff --git a/core/Migrations/Version13000Date20170919121250.php b/core/Migrations/Version13000Date20170919121250.php index 6bdd79cf672..b700ebd747a 100644 --- a/core/Migrations/Version13000Date20170919121250.php +++ b/core/Migrations/Version13000Date20170919121250.php @@ -21,11 +21,12 @@ * along with this program. If not, see . * */ + namespace OC\Core\Migrations; use OCP\DB\ISchemaWrapper; -use OCP\Migration\SimpleMigrationStep; use OCP\Migration\IOutput; +use OCP\Migration\SimpleMigrationStep; /** * Auto-generated migration step: Please modify to your needs! diff --git a/core/Migrations/Version13000Date20170926101637.php b/core/Migrations/Version13000Date20170926101637.php index 088de988020..0e02ed492f3 100644 --- a/core/Migrations/Version13000Date20170926101637.php +++ b/core/Migrations/Version13000Date20170926101637.php @@ -21,6 +21,7 @@ * along with this program. If not, see . * */ + namespace OC\Core\Migrations; use OCP\Migration\BigIntMigration; diff --git a/core/Migrations/Version14000Date20180129121024.php b/core/Migrations/Version14000Date20180129121024.php index 9512d4adafd..8ae462a2f6a 100644 --- a/core/Migrations/Version14000Date20180129121024.php +++ b/core/Migrations/Version14000Date20180129121024.php @@ -20,11 +20,12 @@ * along with this program. If not, see . * */ + namespace OC\Core\Migrations; use OCP\DB\ISchemaWrapper; -use OCP\Migration\SimpleMigrationStep; use OCP\Migration\IOutput; +use OCP\Migration\SimpleMigrationStep; /** * Delete the admin|personal sections and settings tables diff --git a/core/Migrations/Version14000Date20180404140050.php b/core/Migrations/Version14000Date20180404140050.php index 86705f21d53..c8f1e16ea04 100644 --- a/core/Migrations/Version14000Date20180404140050.php +++ b/core/Migrations/Version14000Date20180404140050.php @@ -26,8 +26,8 @@ namespace OC\Core\Migrations; use OCP\DB\ISchemaWrapper; use OCP\IDBConnection; -use OCP\Migration\SimpleMigrationStep; use OCP\Migration\IOutput; +use OCP\Migration\SimpleMigrationStep; /** * Auto-generated migration step: Please modify to your needs! diff --git a/core/Migrations/Version14000Date20180516101403.php b/core/Migrations/Version14000Date20180516101403.php index 9b56e0ab601..75ab5af74e0 100644 --- a/core/Migrations/Version14000Date20180516101403.php +++ b/core/Migrations/Version14000Date20180516101403.php @@ -24,8 +24,8 @@ namespace OC\Core\Migrations; use OCP\DB\ISchemaWrapper; -use OCP\Migration\SimpleMigrationStep; use OCP\Migration\IOutput; +use OCP\Migration\SimpleMigrationStep; class Version14000Date20180516101403 extends SimpleMigrationStep { diff --git a/core/Migrations/Version14000Date20180518120534.php b/core/Migrations/Version14000Date20180518120534.php index a738c6baa7e..9d1afb3867e 100644 --- a/core/Migrations/Version14000Date20180518120534.php +++ b/core/Migrations/Version14000Date20180518120534.php @@ -25,8 +25,8 @@ declare(strict_types=1); namespace OC\Core\Migrations; use OCP\DB\ISchemaWrapper; -use OCP\Migration\SimpleMigrationStep; use OCP\Migration\IOutput; +use OCP\Migration\SimpleMigrationStep; class Version14000Date20180518120534 extends SimpleMigrationStep { diff --git a/core/Migrations/Version14000Date20180710092004.php b/core/Migrations/Version14000Date20180710092004.php index d2e364063ce..69fb142f80a 100644 --- a/core/Migrations/Version14000Date20180710092004.php +++ b/core/Migrations/Version14000Date20180710092004.php @@ -26,8 +26,8 @@ namespace OC\Core\Migrations; use Doctrine\DBAL\Types\Type; use OCP\DB\ISchemaWrapper; -use OCP\Migration\SimpleMigrationStep; use OCP\Migration\IOutput; +use OCP\Migration\SimpleMigrationStep; class Version14000Date20180710092004 extends SimpleMigrationStep { diff --git a/core/Migrations/Version15000Date20180926101451.php b/core/Migrations/Version15000Date20180926101451.php index 00a55455764..f0cf68c4219 100644 --- a/core/Migrations/Version15000Date20180926101451.php +++ b/core/Migrations/Version15000Date20180926101451.php @@ -26,8 +26,8 @@ namespace OC\Core\Migrations; use Closure; use OCP\DB\ISchemaWrapper; -use OCP\Migration\SimpleMigrationStep; use OCP\Migration\IOutput; +use OCP\Migration\SimpleMigrationStep; class Version15000Date20180926101451 extends SimpleMigrationStep { diff --git a/core/Migrations/Version15000Date20181015062942.php b/core/Migrations/Version15000Date20181015062942.php index e73b663d2fd..6c8b10e9f35 100644 --- a/core/Migrations/Version15000Date20181015062942.php +++ b/core/Migrations/Version15000Date20181015062942.php @@ -27,8 +27,8 @@ namespace OC\Core\Migrations; use Closure; use Doctrine\DBAL\Types\Type; use OCP\DB\ISchemaWrapper; -use OCP\Migration\SimpleMigrationStep; use OCP\Migration\IOutput; +use OCP\Migration\SimpleMigrationStep; class Version15000Date20181015062942 extends SimpleMigrationStep { diff --git a/core/Migrations/Version15000Date20181029084625.php b/core/Migrations/Version15000Date20181029084625.php index f3e12ddbb9b..20b4efb2b6b 100644 --- a/core/Migrations/Version15000Date20181029084625.php +++ b/core/Migrations/Version15000Date20181029084625.php @@ -26,8 +26,8 @@ namespace OC\Core\Migrations; use Closure; use OCP\DB\ISchemaWrapper; -use OCP\Migration\SimpleMigrationStep; use OCP\Migration\IOutput; +use OCP\Migration\SimpleMigrationStep; class Version15000Date20181029084625 extends SimpleMigrationStep { diff --git a/core/Migrations/Version16000Date20190207141427.php b/core/Migrations/Version16000Date20190207141427.php index c74c3ee1c36..ebd6a9e8bca 100644 --- a/core/Migrations/Version16000Date20190207141427.php +++ b/core/Migrations/Version16000Date20190207141427.php @@ -25,8 +25,8 @@ namespace OC\Core\Migrations; use Closure; use Doctrine\DBAL\Types\Type; use OCP\DB\ISchemaWrapper; -use OCP\Migration\SimpleMigrationStep; use OCP\Migration\IOutput; +use OCP\Migration\SimpleMigrationStep; class Version16000Date20190207141427 extends SimpleMigrationStep { diff --git a/core/Migrations/Version16000Date20190212081545.php b/core/Migrations/Version16000Date20190212081545.php index dcb2722222a..2713772c0f5 100644 --- a/core/Migrations/Version16000Date20190212081545.php +++ b/core/Migrations/Version16000Date20190212081545.php @@ -27,8 +27,8 @@ namespace OC\Core\Migrations; use Closure; use Doctrine\DBAL\Types\Type; use OCP\DB\ISchemaWrapper; -use OCP\Migration\SimpleMigrationStep; use OCP\Migration\IOutput; +use OCP\Migration\SimpleMigrationStep; class Version16000Date20190212081545 extends SimpleMigrationStep { /** diff --git a/core/Migrations/Version16000Date20190427105638.php b/core/Migrations/Version16000Date20190427105638.php index 6fa0292133b..870ddbcedfb 100644 --- a/core/Migrations/Version16000Date20190427105638.php +++ b/core/Migrations/Version16000Date20190427105638.php @@ -25,9 +25,8 @@ namespace OC\Core\Migrations; use Closure; use OCP\DB\ISchemaWrapper; use OCP\IDBConnection; -use OCP\Migration\SimpleMigrationStep; use OCP\Migration\IOutput; - +use OCP\Migration\SimpleMigrationStep; class Version16000Date20190427105638 extends SimpleMigrationStep { diff --git a/core/Migrations/Version16000Date20190428150708.php b/core/Migrations/Version16000Date20190428150708.php index cb42366fc09..6f6b59aec77 100644 --- a/core/Migrations/Version16000Date20190428150708.php +++ b/core/Migrations/Version16000Date20190428150708.php @@ -25,8 +25,8 @@ namespace OC\Core\Migrations; use Closure; use Doctrine\DBAL\Types\Type; use OCP\DB\ISchemaWrapper; -use OCP\Migration\SimpleMigrationStep; use OCP\Migration\IOutput; +use OCP\Migration\SimpleMigrationStep; class Version16000Date20190428150708 extends SimpleMigrationStep { diff --git a/core/Migrations/Version17000Date20190514105811.php b/core/Migrations/Version17000Date20190514105811.php index 1cf4c9f5a37..aeae2e6467e 100644 --- a/core/Migrations/Version17000Date20190514105811.php +++ b/core/Migrations/Version17000Date20190514105811.php @@ -22,14 +22,13 @@ declare(strict_types=1); * */ - namespace OC\Core\Migrations; use Closure; use Doctrine\DBAL\Types\Type; use OCP\DB\ISchemaWrapper; -use OCP\Migration\SimpleMigrationStep; use OCP\Migration\IOutput; +use OCP\Migration\SimpleMigrationStep; class Version17000Date20190514105811 extends SimpleMigrationStep { diff --git a/core/Migrations/Version18000Date20190920085628.php b/core/Migrations/Version18000Date20190920085628.php index e84c698bb7b..a3f123c8d5a 100644 --- a/core/Migrations/Version18000Date20190920085628.php +++ b/core/Migrations/Version18000Date20190920085628.php @@ -26,8 +26,8 @@ use Closure; use Doctrine\DBAL\Types\Type; use OCP\DB\ISchemaWrapper; use OCP\IDBConnection; -use OCP\Migration\SimpleMigrationStep; use OCP\Migration\IOutput; +use OCP\Migration\SimpleMigrationStep; class Version18000Date20190920085628 extends SimpleMigrationStep { diff --git a/core/ajax/update.php b/core/ajax/update.php index 2cf4377e3e4..4cff4569b46 100644 --- a/core/ajax/update.php +++ b/core/ajax/update.php @@ -235,4 +235,3 @@ if (\OCP\Util::needUpgrade()) { $eventSource->send('done', ''); $eventSource->close(); - -- cgit v1.2.3