Browse Source

Scrutinizer Auto-Fixes

This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
tags/v8.1RC2
Scrutinizer Auto-Fixer 9 years ago
parent
commit
fdbc21fc6c

+ 0
- 1
apps/files/controller/apicontroller.php View File

use OCP\IRequest; use OCP\IRequest;
use OCP\AppFramework\Http\DataResponse; use OCP\AppFramework\Http\DataResponse;
use OCP\AppFramework\Http\DataDisplayResponse; use OCP\AppFramework\Http\DataDisplayResponse;
use OCP\AppFramework\Http\DownloadResponse;
use OCA\Files\Service\TagService; use OCA\Files\Service\TagService;
use OCP\IPreview; use OCP\IPreview;



+ 0
- 1
apps/files/index.php View File

* along with this program. If not, see <http://www.gnu.org/licenses/> * along with this program. If not, see <http://www.gnu.org/licenses/>
* *
*/ */
use OCA\Files\Appinfo\Application;


// Check if we are a user // Check if we are a user
OCP\User::checkLoggedIn(); OCP\User::checkLoggedIn();

+ 0
- 1
apps/files/tests/controller/apicontrollertest.php View File



use OC\Files\FileInfo; use OC\Files\FileInfo;
use OCP\AppFramework\Http; use OCP\AppFramework\Http;
use OC\Preview;
use OCP\Files\NotFoundException; use OCP\Files\NotFoundException;
use OCP\Files\StorageNotAvailableException; use OCP\Files\StorageNotAvailableException;
use Test\TestCase; use Test\TestCase;

+ 0
- 1
apps/files_external/lib/smb.php View File

use Icewind\SMB\Exception\NotFoundException; use Icewind\SMB\Exception\NotFoundException;
use Icewind\SMB\NativeServer; use Icewind\SMB\NativeServer;
use Icewind\SMB\Server; use Icewind\SMB\Server;
use Icewind\Streams\CallbackWrapper;
use Icewind\Streams\IteratorDirectory; use Icewind\Streams\IteratorDirectory;
use OC\Files\Filesystem; use OC\Files\Filesystem;



+ 0
- 1
apps/files_sharing/lib/controllers/sharecontroller.php View File

use OCP\User; use OCP\User;
use OCP\Util; use OCP\Util;
use OCA\Files_Sharing\Activity; use OCA\Files_Sharing\Activity;
use OCP\AppFramework\Http\DataResponse;


/** /**
* Class ShareController * Class ShareController

+ 0
- 1
apps/files_sharing/lib/external/storage.php View File



namespace OCA\Files_Sharing\External; namespace OCA\Files_Sharing\External;


use OC\Files\Filesystem;
use OC\Files\Storage\DAV; use OC\Files\Storage\DAV;
use OC\ForbiddenException; use OC\ForbiddenException;
use OCA\Files_Sharing\ISharedStorage; use OCA\Files_Sharing\ISharedStorage;

+ 0
- 3
apps/files_sharing/lib/sharedstorage.php View File



namespace OC\Files\Storage; namespace OC\Files\Storage;


use OC\Files\Cache\ChangePropagator;
use OC\Files\Filesystem; use OC\Files\Filesystem;
use OCA\Files_Sharing\ISharedStorage; use OCA\Files_Sharing\ISharedStorage;
use OCA\Files_Sharing\Propagator;
use OCA\Files_Sharing\SharedMount;


/** /**
* Convert target path to source path and pass the function call to the correct storage provider * Convert target path to source path and pass the function call to the correct storage provider

+ 0
- 1
apps/files_sharing/tests/controller/sharecontroller.php View File

use OCA\Files_Sharing\AppInfo\Application; use OCA\Files_Sharing\AppInfo\Application;
use OCP\AppFramework\Http\NotFoundResponse; use OCP\AppFramework\Http\NotFoundResponse;
use OCP\AppFramework\IAppContainer; use OCP\AppFramework\IAppContainer;
use OCP\Files;
use OCP\AppFramework\Http\RedirectResponse; use OCP\AppFramework\Http\RedirectResponse;
use OCP\AppFramework\Http\TemplateResponse; use OCP\AppFramework\Http\TemplateResponse;
use OCP\Security\ISecureRandom; use OCP\Security\ISecureRandom;

+ 0
- 2
apps/files_trashbin/tests/storage.php View File



namespace OCA\Files_trashbin\Tests\Storage; namespace OCA\Files_trashbin\Tests\Storage;


use OC\Files\Storage\Home;
use OC\Files\Storage\Temporary; use OC\Files\Storage\Temporary;
use OC\Files\Mount\MountPoint;
use OC\Files\Filesystem; use OC\Files\Filesystem;


class Storage extends \Test\TestCase { class Storage extends \Test\TestCase {

+ 0
- 1
apps/files_versions/command/expire.php View File

use OC\Command\FileAccess; use OC\Command\FileAccess;
use OCA\Files_Versions\Storage; use OCA\Files_Versions\Storage;
use OCP\Command\ICommand; use OCP\Command\ICommand;
use OCP\IUser;


class Expire implements ICommand { class Expire implements ICommand {
use FileAccess; use FileAccess;

+ 0
- 1
apps/user_ldap/command/setconfig.php View File

use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;
use \OCA\user_ldap\lib\Helper; use \OCA\user_ldap\lib\Helper;
use \OCA\user_ldap\lib\Configuration; use \OCA\user_ldap\lib\Configuration;

+ 0
- 1
core/command/db/converttype.php View File

use \OCP\IConfig; use \OCP\IConfig;
use OC\DB\Connection; use OC\DB\Connection;
use OC\DB\ConnectionFactory; use OC\DB\ConnectionFactory;

use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;

+ 0
- 9
lib/private/app/codecheckvisitor.php View File



namespace OC\App; namespace OC\App;


use OC\Hooks\BasicEmitter;
use PhpParser\Lexer;
use PhpParser\Node; use PhpParser\Node;
use PhpParser\Node\Name; use PhpParser\Node\Name;
use PhpParser\NodeTraverser;
use PhpParser\NodeVisitorAbstract; use PhpParser\NodeVisitorAbstract;
use PhpParser\Parser;
use RecursiveCallbackFilterIterator;
use RecursiveDirectoryIterator;
use RecursiveIteratorIterator;
use RegexIterator;
use SplFileInfo;


class CodeCheckVisitor extends NodeVisitorAbstract { class CodeCheckVisitor extends NodeVisitorAbstract {



+ 0
- 1
lib/private/appframework/dependencyinjection/dicontainer.php View File

use OC\AppFramework\Utility\TimeFactory; use OC\AppFramework\Utility\TimeFactory;
use OC\AppFramework\Utility\ControllerMethodReflector; use OC\AppFramework\Utility\ControllerMethodReflector;
use OCP\AppFramework\IApi; use OCP\AppFramework\IApi;
use OCP\AppFramework\QueryException;
use OCP\AppFramework\IAppContainer; use OCP\AppFramework\IAppContainer;
use OCP\AppFramework\Middleware; use OCP\AppFramework\Middleware;
use OCP\IServerContainer; use OCP\IServerContainer;

+ 0
- 2
lib/private/connector/sabre/objecttree.php View File



use OC\Connector\Sabre\Exception\InvalidPath; use OC\Connector\Sabre\Exception\InvalidPath;
use OC\Files\FileInfo; use OC\Files\FileInfo;
use OC\Files\Filesystem;
use OC\Files\Mount\MoveableMount; use OC\Files\Mount\MoveableMount;
use OC_Connector_Sabre_Exception_InvalidPath;
use OCP\Files\StorageInvalidException; use OCP\Files\StorageInvalidException;
use OCP\Files\StorageNotAvailableException; use OCP\Files\StorageNotAvailableException;



+ 0
- 3
lib/private/files/node/root.php View File



namespace OC\Files\Node; namespace OC\Files\Node;


use OC\Files\Cache\Cache;
use OC\Files\Mount\Manager; use OC\Files\Mount\Manager;
use OC\Files\Mount\MountPoint; use OC\Files\Mount\MountPoint;
use OCP\Files\NotFoundException; use OCP\Files\NotFoundException;
use OCP\Files\NotPermittedException; use OCP\Files\NotPermittedException;
use OC\Hooks\Emitter;
use OC\Hooks\PublicEmitter; use OC\Hooks\PublicEmitter;

use OCP\Files\IRootFolder; use OCP\Files\IRootFolder;


/** /**

+ 0
- 1
lib/private/files/objectstore/objectstorestorage.php View File



namespace OC\Files\ObjectStore; namespace OC\Files\ObjectStore;


use OC\Files\Filesystem;
use OCP\Files\ObjectStore\IObjectStore; use OCP\Files\ObjectStore\IObjectStore;


class ObjectStoreStorage extends \OC\Files\Storage\Common { class ObjectStoreStorage extends \OC\Files\Storage\Common {

+ 0
- 9
lib/private/files/storage/localtempfiletrait.php View File



namespace OC\Files\Storage; namespace OC\Files\Storage;


use OC\Files\Cache\Cache;
use OC\Files\Cache\Scanner;
use OC\Files\Filesystem;
use OC\Files\Cache\Watcher;
use OCP\Files\FileNameTooLongException;
use OCP\Files\InvalidCharacterInPathException;
use OCP\Files\InvalidPathException;
use OCP\Files\ReservedWordException;

/** /**
* Storage backend class for providing common filesystem operation methods * Storage backend class for providing common filesystem operation methods
* which are not storage-backend specific. * which are not storage-backend specific.

+ 0
- 1
lib/private/search/result/file.php View File

*/ */


namespace OC\Search\Result; namespace OC\Search\Result;
use OC\Files\Filesystem;
use OCP\Files\FileInfo; use OCP\Files\FileInfo;
use OCP\Files\Folder; use OCP\Files\Folder;



+ 0
- 1
tests/lib/files/node/integration.php View File



namespace Test\Files\Node; namespace Test\Files\Node;


use OC\Files\Cache\Cache;
use OC\Files\Node\Root; use OC\Files\Node\Root;
use OC\Files\Storage\Temporary; use OC\Files\Storage\Temporary;
use OC\Files\View; use OC\Files\View;

+ 0
- 1
tests/lib/files/stream/encryption.php View File

namespace Test\Files\Stream; namespace Test\Files\Stream;


use OC\Files\View; use OC\Files\View;
use OCA\Encryption_Dummy\DummyModule;


class Encryption extends \Test\TestCase { class Encryption extends \Test\TestCase {



Loading…
Cancel
Save