For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>tags/v19.0.0beta3
@@ -28,7 +28,6 @@ declare(strict_types=1); | |||
namespace OCA\AdminAudit\Actions; | |||
class Console extends Action { | |||
/** | |||
* @param $arguments |
@@ -29,7 +29,6 @@ declare(strict_types=1); | |||
namespace OCA\AdminAudit\Actions; | |||
use OCP\IGroup; | |||
use OCP\IUser; | |||
@@ -25,6 +25,7 @@ declare(strict_types=1); | |||
*/ | |||
namespace OCA\AdminAudit\Actions; | |||
use OCP\IUser; | |||
/** |
@@ -29,7 +29,6 @@ declare(strict_types=1); | |||
namespace OCA\AdminAudit\Actions; | |||
use OCP\Share; | |||
/** |
@@ -28,7 +28,6 @@ declare(strict_types=1); | |||
namespace OCA\AdminAudit\Actions; | |||
class Trashbin extends Action { | |||
public function delete(array $params) { |
@@ -30,7 +30,6 @@ declare(strict_types=1); | |||
namespace OCA\AdminAudit\Actions; | |||
use OCP\IUser; | |||
/** |
@@ -28,7 +28,6 @@ declare(strict_types=1); | |||
namespace OCA\AdminAudit\Actions; | |||
class Versions extends Action { | |||
public function rollback(array $params) { |
@@ -23,7 +23,6 @@ | |||
namespace OCA\CloudFederationAPI\AppInfo; | |||
use OCA\CloudFederationAPI\Capabilities; | |||
use OCP\AppFramework\App; | |||
@@ -23,7 +23,6 @@ | |||
namespace OCA\CloudFederationAPI; | |||
use OCP\Capabilities\ICapability; | |||
use OCP\IURLGenerator; | |||
@@ -22,6 +22,7 @@ | |||
*/ | |||
namespace OCA\CloudFederationAPI; | |||
use OCP\Federation\ICloudFederationProviderManager; | |||
/** |
@@ -23,7 +23,6 @@ | |||
namespace OCA\Comments\Activity; | |||
use OCP\Activity\IFilter; | |||
use OCP\IL10N; | |||
use OCP\IURLGenerator; |
@@ -23,7 +23,6 @@ | |||
namespace OCA\Comments\Activity; | |||
use OCP\Activity\ISetting; | |||
use OCP\IL10N; | |||
@@ -23,7 +23,6 @@ | |||
namespace OCA\Comments\Collaboration; | |||
use OCP\Collaboration\AutoComplete\ISorter; | |||
use OCP\Comments\ICommentsManager; | |||
@@ -23,7 +23,6 @@ | |||
namespace OCA\Comments; | |||
use OCP\IServerContainer; | |||
class JSSettingsHelper { |
@@ -24,7 +24,6 @@ | |||
namespace OCA\Comments\Tests\Unit\Collaboration; | |||
use OCA\Comments\Collaboration\CommentersSorter; | |||
use OCP\Comments\IComment; | |||
use OCP\Comments\ICommentsManager; |
@@ -24,7 +24,6 @@ | |||
namespace OCA\DAV\Avatars; | |||
use OCP\IAvatarManager; | |||
use Sabre\DAV\Exception\Forbidden; | |||
use Sabre\DAV\Exception\MethodNotAllowed; |
@@ -23,7 +23,6 @@ | |||
namespace OCA\DAV\Avatars; | |||
use OCP\IAvatar; | |||
use Sabre\DAV\File; | |||
@@ -25,7 +25,6 @@ | |||
namespace OCA\DAV\CalDAV\Activity; | |||
use OCA\DAV\CalDAV\Activity\Provider\Calendar; | |||
use OCA\DAV\CalDAV\Activity\Provider\Event; | |||
use OCA\DAV\CalDAV\CalDavBackend; |
@@ -24,7 +24,6 @@ | |||
namespace OCA\DAV\CalDAV\Activity\Filter; | |||
use OCP\Activity\IFilter; | |||
use OCP\IL10N; | |||
use OCP\IURLGenerator; |
@@ -23,7 +23,6 @@ | |||
namespace OCA\DAV\CalDAV\Activity\Filter; | |||
use OCP\Activity\IFilter; | |||
use OCP\IL10N; | |||
use OCP\IURLGenerator; |
@@ -23,7 +23,6 @@ | |||
namespace OCA\DAV\CalDAV\Activity\Setting; | |||
use OCP\Activity\ISetting; | |||
use OCP\IL10N; | |||
@@ -23,7 +23,6 @@ | |||
namespace OCA\DAV\CalDAV\Activity\Setting; | |||
use OCP\Activity\ISetting; | |||
use OCP\IL10N; | |||
@@ -23,7 +23,6 @@ | |||
namespace OCA\DAV\CalDAV\Activity\Setting; | |||
use OCP\Activity\ISetting; | |||
use OCP\IL10N; | |||
@@ -26,7 +26,6 @@ | |||
namespace OCA\DAV\CalDAV; | |||
use OCP\IL10N; | |||
use Sabre\VObject\Component; | |||
use Sabre\VObject\Property; |
@@ -22,7 +22,6 @@ | |||
*/ | |||
namespace OCA\DAV\CalDAV\Integration; | |||
/** | |||
* Interface ICalendarProvider | |||
* |
@@ -23,7 +23,6 @@ | |||
namespace OCA\DAV\CalDAV\Principal; | |||
/** | |||
* Class Collection | |||
* |
@@ -25,7 +25,6 @@ declare(strict_types=1); | |||
*/ | |||
namespace OCA\DAV\CardDAV\Integration; | |||
/** | |||
* @since 19.0.0 | |||
*/ |
@@ -202,7 +202,7 @@ class SyncService { | |||
$body = $this->buildSyncCollectionRequestBody($syncToken); | |||
$response = $client->request('REPORT', $addressBookUrl, $body, [ | |||
'Content-Type' => 'application/xml' | |||
'Content-Type' => 'application/xml' | |||
]); | |||
return $this->parseMultiStatus($response['body']); |
@@ -23,7 +23,6 @@ | |||
namespace OCA\DAV\Comments; | |||
use OCP\Comments\IComment; | |||
use OCP\Comments\ICommentsManager; | |||
use OCP\Comments\MessageTooLongException; |
@@ -25,6 +25,7 @@ | |||
*/ | |||
namespace OCA\DAV\Connector\Sabre; | |||
use Sabre\HTTP\RequestInterface; | |||
use Sabre\HTTP\ResponseInterface; | |||
@@ -27,6 +27,7 @@ | |||
*/ | |||
namespace OCA\DAV\Connector\Sabre; | |||
use OCA\DAV\Upload\FutureFile; | |||
use OCP\Files\StorageNotAvailableException; | |||
use Sabre\DAV\Exception\InsufficientStorage; |
@@ -22,6 +22,7 @@ | |||
*/ | |||
namespace OCA\DAV\DAV\Sharing; | |||
use Sabre\DAV\INode; | |||
/** |
@@ -26,7 +26,6 @@ declare(strict_types=1); | |||
namespace OCA\DAV\Migration; | |||
use Closure; | |||
use Doctrine\DBAL\Types\Type; | |||
use OCP\DB\ISchemaWrapper; |
@@ -24,7 +24,6 @@ | |||
namespace OCA\DAV\Tests\Unit\Avatars; | |||
use OCA\DAV\Avatars\AvatarHome; | |||
use OCA\DAV\Avatars\AvatarNode; | |||
use OCP\IAvatar; |
@@ -22,7 +22,6 @@ | |||
namespace OCA\DAV\Tests\Unit\Avatars; | |||
use OCA\DAV\Avatars\AvatarNode; | |||
use OCP\IAvatar; | |||
use Test\TestCase; |
@@ -26,7 +26,6 @@ | |||
namespace OCA\DAV\Tests\unit\CardDAV; | |||
use OCA\DAV\CardDAV\AddressBook; | |||
use OCA\DAV\CardDAV\AddressBookImpl; | |||
use OCA\DAV\CardDAV\CardDavBackend; |
@@ -24,7 +24,6 @@ | |||
namespace OCA\DAV\Tests\unit\CardDAV; | |||
use OCA\DAV\CardDAV\AddressBook; | |||
use OCA\DAV\CardDAV\ImageExportPlugin; | |||
use OCA\DAV\CardDAV\PhotoCache; |
@@ -26,7 +26,6 @@ | |||
namespace OCA\DAV\Tests\unit\CardDAV\Sharing; | |||
use OCA\DAV\Connector\Sabre\Auth; | |||
use OCA\DAV\DAV\Sharing\IShareable; | |||
use OCA\DAV\DAV\Sharing\Plugin; |
@@ -22,7 +22,6 @@ | |||
namespace OCA\DAV\Tests\Unit\Command; | |||
use OCA\DAV\Command\RemoveInvalidShares; | |||
use OCA\DAV\Connector\Sabre\Principal; | |||
use OCP\Migration\IOutput; |
@@ -27,6 +27,7 @@ | |||
*/ | |||
namespace OCA\DAV\Tests\unit\Connector\Sabre; | |||
use OC\Files\FileInfo; | |||
use OC\Files\View; | |||
use OCP\Files\Mount\IMountPoint; |
@@ -28,7 +28,6 @@ | |||
namespace OCA\DAV\Tests\unit\Connector\Sabre; | |||
use OC\Files\FileInfo; | |||
use OC\Files\Filesystem; | |||
use OC\Files\Mount\Manager; |
@@ -28,6 +28,7 @@ | |||
*/ | |||
namespace OCA\DAV\Tests\unit\Connector\Sabre; | |||
use OC\Files\View; | |||
use OCA\DAV\Connector\Sabre\QuotaPlugin; | |||
use OCP\Files\FileInfo; |
@@ -26,7 +26,6 @@ | |||
namespace OCA\DAV\Tests\unit\DAV\Sharing; | |||
use OCA\DAV\Connector\Sabre\Auth; | |||
use OCA\DAV\DAV\Sharing\IShareable; | |||
use OCA\DAV\DAV\Sharing\Plugin; |
@@ -26,7 +26,6 @@ | |||
namespace OCA\DAV\Tests\unit\SystemTag; | |||
use OC\SystemTag\SystemTag; | |||
use OCP\IUser; | |||
use OCP\SystemTag\ISystemTag; |
@@ -26,7 +26,6 @@ | |||
namespace OCA\DAV\Tests\unit\SystemTag; | |||
use OC\SystemTag\SystemTag; | |||
use OCP\IGroupManager; | |||
use OCP\IUser; |
@@ -26,7 +26,6 @@ | |||
namespace OCA\DAV\Tests\unit\SystemTag; | |||
use OC\SystemTag\SystemTag; | |||
use OCP\IUser; | |||
use OCP\SystemTag\ISystemTagManager; |
@@ -24,7 +24,6 @@ | |||
namespace OCA\DAV\Tests\unit\Upload; | |||
use OCA\DAV\Connector\Sabre\Directory; | |||
use OCA\DAV\Upload\ChunkingPlugin; | |||
use OCA\DAV\Upload\FutureFile; |
@@ -28,7 +28,6 @@ | |||
namespace OCA\Encryption\AppInfo; | |||
use OC\Files\View; | |||
use OCA\Encryption\Controller\RecoveryController; | |||
use OCA\Encryption\Controller\SettingsController; |
@@ -23,7 +23,6 @@ | |||
namespace OCA\Encryption\Command; | |||
use OCA\Encryption\Util; | |||
use OCP\IConfig; | |||
use Symfony\Component\Console\Command\Command; |
@@ -22,7 +22,6 @@ | |||
namespace OCA\Encryption\Command; | |||
use OCA\Encryption\Util; | |||
use OCP\IConfig; | |||
use Symfony\Component\Console\Command\Command; |
@@ -23,7 +23,6 @@ | |||
namespace OCA\Encryption\Command; | |||
use OCA\Encryption\Util; | |||
use OCP\IConfig; | |||
use OCP\IUserManager; |
@@ -25,7 +25,6 @@ | |||
namespace OCA\Encryption\Controller; | |||
use OCA\Encryption\Recovery; | |||
use OCP\AppFramework\Controller; | |||
use OCP\AppFramework\Http; |
@@ -25,7 +25,6 @@ | |||
namespace OCA\Encryption\Controller; | |||
use OCA\Encryption\Session; | |||
use OCP\AppFramework\Controller; | |||
use OCP\AppFramework\Http\DataResponse; |
@@ -29,7 +29,6 @@ | |||
namespace OCA\Encryption\Crypto; | |||
use OC\Encryption\Exceptions\DecryptionFailedException; | |||
use OC\Encryption\Exceptions\EncryptionFailedException; | |||
use OCA\Encryption\Exceptions\MultiKeyDecryptException; |
@@ -22,7 +22,6 @@ | |||
namespace OCA\Encryption\Crypto; | |||
use OCA\Encryption\KeyManager; | |||
use OCA\Encryption\Session; | |||
use OCA\Encryption\Util; |
@@ -31,7 +31,6 @@ | |||
namespace OCA\Encryption\Crypto; | |||
use OC\Encryption\Exceptions\DecryptionFailedException; | |||
use OC\Files\Cache\Scanner; | |||
use OC\Files\View; |
@@ -23,7 +23,6 @@ | |||
namespace OCA\Encryption; | |||
use OCA\Encryption\Hooks\Contracts\IHook; | |||
class HookManager { |
@@ -22,7 +22,6 @@ | |||
namespace OCA\Encryption\Hooks\Contracts; | |||
interface IHook { | |||
/** | |||
* Connects Hooks |
@@ -28,7 +28,6 @@ | |||
namespace OCA\Encryption\Hooks; | |||
use OC\Files\Filesystem; | |||
use OCA\Encryption\Crypto\Crypt; | |||
use OCA\Encryption\Hooks\Contracts\IHook; |
@@ -23,7 +23,6 @@ | |||
namespace OCA\Encryption\Migration; | |||
use OCP\IConfig; | |||
use OCP\Migration\IOutput; | |||
use OCP\Migration\IRepairStep; |
@@ -27,7 +27,6 @@ | |||
namespace OCA\Encryption; | |||
use OC\Files\View; | |||
use OCA\Encryption\Crypto\Crypt; | |||
use OCP\Encryption\IFile; |
@@ -23,7 +23,6 @@ | |||
namespace OCA\Encryption\Settings; | |||
use OCA\Encryption\Session; | |||
use OCA\Encryption\Util; | |||
use OCP\AppFramework\Http\TemplateResponse; |
@@ -25,7 +25,6 @@ | |||
namespace OCA\Encryption\Users; | |||
use OCA\Encryption\Crypto\Crypt; | |||
use OCA\Encryption\KeyManager; | |||
use OCP\ILogger; |
@@ -26,7 +26,6 @@ | |||
namespace OCA\Encryption; | |||
use OC\Files\View; | |||
use OCA\Encryption\Crypto\Crypt; | |||
use OCP\IConfig; |
@@ -25,7 +25,6 @@ | |||
namespace OCA\Encryption\Tests\Command; | |||
use OCA\Encryption\Command\EnableMasterKey; | |||
use OCA\Encryption\Util; | |||
use OCP\IConfig; |
@@ -26,7 +26,6 @@ | |||
namespace OCA\Encryption\Tests\Controller; | |||
use OCA\Encryption\Controller\RecoveryController; | |||
use OCA\Encryption\Recovery; | |||
use OCP\AppFramework\Http; |
@@ -27,7 +27,6 @@ | |||
namespace OCA\Encryption\Tests\Controller; | |||
use OCA\Encryption\Controller\StatusController; | |||
use OCA\Encryption\Session; | |||
use OCP\Encryption\IManager; |
@@ -27,7 +27,6 @@ | |||
namespace OCA\Encryption\Tests\Crypto; | |||
use OCA\Encryption\Crypto\Crypt; | |||
use OCP\IConfig; | |||
use OCP\IL10N; |
@@ -25,7 +25,6 @@ | |||
namespace OCA\Encryption\Tests\Crypto; | |||
use OCA\Encryption\Crypto\Crypt; | |||
use OCA\Encryption\Crypto\DecryptAll; | |||
use OCA\Encryption\KeyManager; |
@@ -27,7 +27,6 @@ | |||
namespace OCA\Encryption\Tests\Crypto; | |||
use OC\Files\View; | |||
use OCA\Encryption\Crypto\EncryptAll; | |||
use OCA\Encryption\KeyManager; |
@@ -25,7 +25,6 @@ | |||
namespace OCA\Encryption\Tests; | |||
use OCA\Encryption\HookManager; | |||
use OCA\Encryption\Hooks\Contracts\IHook; | |||
use OCP\IConfig; |
@@ -28,7 +28,6 @@ | |||
namespace OCA\Encryption\Tests\Hooks; | |||
use OCA\Encryption\Crypto\Crypt; | |||
use OCA\Encryption\Hooks\UserHooks; | |||
use OCA\Encryption\KeyManager; |
@@ -31,7 +31,6 @@ | |||
namespace OCA\Encryption\Tests; | |||
use OC\Files\FileInfo; | |||
use OC\Files\View; | |||
use OCA\Encryption\Crypto\Crypt; |
@@ -28,7 +28,6 @@ | |||
namespace OCA\Encryption\Tests; | |||
use OC\Files\View; | |||
use OCA\Encryption\Crypto\Crypt; | |||
use OCA\Encryption\KeyManager; |
@@ -27,7 +27,6 @@ | |||
namespace OCA\Encryption\Tests; | |||
use OCA\Encryption\Session; | |||
use OCP\ISession; | |||
use Test\TestCase; |
@@ -26,7 +26,6 @@ | |||
namespace OCA\Encryption\Tests\Users; | |||
use OCA\Encryption\Crypto\Crypt; | |||
use OCA\Encryption\KeyManager; | |||
use OCA\Encryption\Users\Setup; |
@@ -28,7 +28,6 @@ | |||
namespace OCA\Encryption\Tests; | |||
use OC\Files\View; | |||
use OCA\Encryption\Crypto\Crypt; | |||
use OCA\Encryption\Util; |
@@ -25,6 +25,7 @@ | |||
*/ | |||
namespace OCA\FederatedFileSharing; | |||
use OC\HintException; | |||
use OCP\Federation\ICloudIdManager; | |||
use OCP\IL10N; |
@@ -28,7 +28,6 @@ | |||
namespace OCA\FederatedFileSharing\AppInfo; | |||
use OC\AppFramework\Utility\SimpleContainer; | |||
use OCA\FederatedFileSharing\AddressHandler; | |||
use OCA\FederatedFileSharing\Controller\RequestHandlerController; |
@@ -27,7 +27,6 @@ | |||
namespace OCA\FederatedFileSharing\BackgroundJob; | |||
use OC\BackgroundJob\Job; | |||
use OC\BackgroundJob\JobList; | |||
use OCA\FederatedFileSharing\AddressHandler; |
@@ -25,7 +25,6 @@ | |||
namespace OCA\FederatedFileSharing; | |||
use OC\HintException; | |||
use OCP\Contacts\IManager; | |||
use OCP\Federation\ICloudId; |
@@ -26,7 +26,6 @@ | |||
namespace OCA\FederatedFileSharing\Settings; | |||
use OCA\FederatedFileSharing\FederatedShareProvider; | |||
use OCP\AppFramework\Http\TemplateResponse; | |||
use OCP\IL10N; |
@@ -23,7 +23,6 @@ | |||
namespace OCA\FederatedFileSharing\Settings; | |||
use OCP\IL10N; | |||
use OCP\IURLGenerator; | |||
use OCP\Settings\IIconSection; |
@@ -22,7 +22,6 @@ | |||
namespace OCA\FederatedFileSharing; | |||
use OCP\Security\ISecureRandom; | |||
/** |
@@ -27,7 +27,6 @@ | |||
namespace OCA\FederatedFileSharing\Tests; | |||
use OC\Federation\CloudIdManager; | |||
use OCA\FederatedFileSharing\AddressHandler; | |||
use OCP\IL10N; |
@@ -30,7 +30,6 @@ | |||
namespace OCA\FederatedFileSharing\Tests; | |||
use OC\Federation\CloudIdManager; | |||
use OCA\FederatedFileSharing\AddressHandler; | |||
use OCA\FederatedFileSharing\FederatedShareProvider; |
@@ -24,7 +24,6 @@ | |||
namespace OCA\FederatedFileSharing\Tests; | |||
use OCA\FederatedFileSharing\AddressHandler; | |||
use OCA\FederatedFileSharing\Notifications; | |||
use OCP\BackgroundJob\IJobList; |
@@ -24,7 +24,6 @@ | |||
namespace OCA\FederatedFileSharing\Tests; | |||
use OCA\FederatedFileSharing\TokenHandler; | |||
use OCP\Security\ISecureRandom; | |||
@@ -28,7 +28,6 @@ | |||
namespace OCA\Federation\BackgroundJob; | |||
use GuzzleHttp\Exception\ClientException; | |||
use GuzzleHttp\Exception\RequestException; | |||
use GuzzleHttp\Ring\Exception\RingException; |
@@ -26,7 +26,6 @@ | |||
namespace OCA\Federation; | |||
use OC\Files\Filesystem; | |||
use OC\HintException; | |||
use OCP\IDBConnection; |
@@ -22,8 +22,6 @@ | |||
namespace OCA\Federation; | |||
class Hooks { | |||
/** @var TrustedServers */ |
@@ -26,7 +26,6 @@ | |||
namespace OCA\Federation\Tests\BackgroundJob; | |||
use GuzzleHttp\Exception\ConnectException; | |||
use GuzzleHttp\Ring\Exception\RingException; | |||
use OCA\Federation\BackgroundJob\GetSharedSecret; |
@@ -25,7 +25,6 @@ | |||
namespace OCA\Federation\Tests\BackgroundJob; | |||
use GuzzleHttp\Exception\ConnectException; | |||
use GuzzleHttp\Ring\Exception\RingException; | |||
use OCA\Federation\BackgroundJob\RequestSharedSecret; |
@@ -25,7 +25,6 @@ | |||
namespace OCA\Federation\Tests\Controller; | |||
use OC\BackgroundJob\JobList; | |||
use OCA\Federation\Controller\OCSAuthAPIController; | |||
use OCA\Federation\DbHandler; |
@@ -23,7 +23,6 @@ | |||
namespace OCA\Federation\Tests\Controller; | |||
use OCA\Federation\Controller\SettingsController; | |||
use OCA\Federation\TrustedServers; | |||
use OCP\AppFramework\Http\DataResponse; |
@@ -25,7 +25,6 @@ | |||
namespace OCA\Federation\Tests; | |||
use OCA\Federation\DbHandler; | |||
use OCA\Federation\TrustedServers; | |||
use OCP\IDBConnection; |
@@ -24,7 +24,6 @@ | |||
namespace OCA\Federation\Tests; | |||
use OCA\Federation\Hooks; | |||
use OCA\Federation\TrustedServers; | |||
use Test\TestCase; |
@@ -26,7 +26,6 @@ | |||
namespace OCA\Federation\Tests\Middleware; | |||
use OC\HintException; | |||
use OCA\Federation\Controller\SettingsController; | |||
use OCA\Federation\Middleware\AddServerMiddleware; |
@@ -26,7 +26,6 @@ | |||
namespace OCA\Federation\Tests; | |||
use OCA\Federation\DbHandler; | |||
use OCA\Federation\TrustedServers; | |||
use OCP\AppFramework\Utility\ITimeFactory; |