changed error-prone namespace

This commit is contained in:
huangjx
2021-09-10 12:42:25 +08:00
parent fa2aedb13a
commit 8fa818fa46
23 changed files with 56 additions and 56 deletions

View File

@@ -9,7 +9,7 @@
* @copyright Xavier Beurois 2015 * @copyright Xavier Beurois 2015
*/ */
namespace OCA\NcDownloader\AppInfo; namespace OCA\NCDownloader\AppInfo;
\OC::$server->getNavigationManager()->add([ \OC::$server->getNavigationManager()->add([
'id' => 'ncdownloader', 'id' => 'ncdownloader',

View File

@@ -1,11 +1,11 @@
<?php <?php
namespace OCA\NcDownloader\AppInfo; namespace OCA\NCDownloader\AppInfo;
use OCA\NcDownloader\Controller\MainController; use OCA\NCDownloader\Controller\MainController;
use OCA\NcDownloader\Controller\Aria2Controller; use OCA\NCDownloader\Controller\Aria2Controller;
use OCA\NcDownloader\Tools\Aria2; use OCA\NCDownloader\Tools\Aria2;
use OCA\NcDownloader\Tools\Settings; use OCA\NCDownloader\Tools\Settings;
use OCP\AppFramework\App; use OCP\AppFramework\App;
use OCP\IContainer; use OCP\IContainer;
use \OC\Files\Filesystem; use \OC\Files\Filesystem;

View File

@@ -1,13 +1,13 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<info xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd"> <info xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
<id>ncdownloader</id> <id>ncdownloader</id>
<name>Nc Downloader</name> <name>NCDownloader</name>
<summary>Aria2 and youtube-dl web gui for nextcloud</summary> <summary>Aria2 and youtube-dl web gui for nextcloud</summary>
<description><![CDATA[Nexcloud Frontend for Aria2 and Youtube-dl]]></description> <description><![CDATA[Nexcloud Frontend for Aria2 and Youtube-dl]]></description>
<version>0.0.1</version> <version>0.0.1</version>
<licence>agpl</licence> <licence>agpl</licence>
<author mail="freefallbenson@gmail.com" homepage="https://github.com/shiningw">jiaxinhuang</author> <author mail="freefallbenson@gmail.com" homepage="https://github.com/shiningw">jiaxinhuang</author>
<namespace>NcDownloader</namespace> <namespace>NCDownloader</namespace>
<category>tools</category> <category>tools</category>
<website>https://github.com/shiningw/ncdownloader</website> <website>https://github.com/shiningw/ncdownloader</website>
<bugs>https://github.com/shiningw/ncdownloader/issues</bugs> <bugs>https://github.com/shiningw/ncdownloader/issues</bugs>
@@ -23,13 +23,13 @@
</navigation> </navigation>
</navigations> </navigations>
<settings> <settings>
<admin>OCA\NcDownloader\Settings\Admin</admin> <admin>OCA\NCDownloader\Settings\Admin</admin>
<personal>OCA\NcDownloader\Settings\Personal</personal> <personal>OCA\NCDownloader\Settings\Personal</personal>
<admin-section>OCA\NcDownloader\Settings\AdminSection</admin-section> <admin-section>OCA\NCDownloader\Settings\AdminSection</admin-section>
<personal-section>OCA\NcDownloader\Settings\PersonalSection</personal-section> <personal-section>OCA\NCDownloader\Settings\PersonalSection</personal-section>
</settings> </settings>
<commands> <commands>
<command>OCA\NcDownloader\Command\Aria2Command</command> <command>OCA\NCDownloader\Command\Aria2Command</command>
</commands> </commands>
</info> </info>

View File

@@ -2,7 +2,7 @@
/** /**
* Create your routes in here. The name is the lowercase name of the controller * Create your routes in here. The name is the lowercase name of the controller
* without the controller part, the stuff after the hash is the method. * without the controller part, the stuff after the hash is the method.
* e.g. page#index -> OCA\NcDownloader\Controller\Aria2Controller->index() * e.g. page#index -> OCA\NCDownloader\Controller\Aria2Controller->index()
* *
* The controller class has to be registered in the application.php file since * The controller class has to be registered in the application.php file since
* it's instantiated in there * it's instantiated in there

View File

@@ -20,12 +20,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/> * along with this program. If not, see <http://www.gnu.org/licenses/>
* *
*/ */
namespace OCA\NcDownloader\Command; namespace OCA\NCDownloader\Command;
use OCA\NcDownloader\Tools\Aria2; use OCA\NCDownloader\Tools\Aria2;
use OCA\NcDownloader\Tools\DBConn; use OCA\NCDownloader\Tools\DBConn;
use OCA\NcDownloader\Tools\File; use OCA\NCDownloader\Tools\File;
use OCA\NcDownloader\Tools\Helper; use OCA\NCDownloader\Tools\Helper;
use OC\Core\Command\Base; use OC\Core\Command\Base;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;

View File

@@ -1,11 +1,11 @@
<?php <?php
namespace OCA\NcDownloader\Controller; namespace OCA\NCDownloader\Controller;
use OCA\NcDownloader\Tools\Aria2; use OCA\NCDownloader\Tools\Aria2;
use OCA\NcDownloader\Tools\DBConn; use OCA\NCDownloader\Tools\DBConn;
use OCA\NcDownloader\Tools\File; use OCA\NCDownloader\Tools\File;
use OCA\NcDownloader\Tools\Helper; use OCA\NCDownloader\Tools\Helper;
use OCA\NcDownloader\Tools\Settings; use OCA\NCDownloader\Tools\Settings;
use OCP\AppFramework\Controller; use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\JSONResponse; use OCP\AppFramework\Http\JSONResponse;
use OCP\Files\IRootFolder; use OCP\Files\IRootFolder;

View File

@@ -1,12 +1,12 @@
<?php <?php
namespace OCA\NcDownloader\Controller; namespace OCA\NCDownloader\Controller;
use OCA\NcDownloader\Search\torrentSearch; use OCA\NCDownloader\Search\torrentSearch;
use OCA\NcDownloader\Tools\Aria2; use OCA\NCDownloader\Tools\Aria2;
use OCA\NcDownloader\Tools\DBConn; use OCA\NCDownloader\Tools\DBConn;
use OCA\NcDownloader\Tools\Helper; use OCA\NCDownloader\Tools\Helper;
use OCA\NcDownloader\Tools\YouTube; use OCA\NCDownloader\Tools\YouTube;
use OCP\AppFramework\Controller; use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\JSONResponse; use OCP\AppFramework\Http\JSONResponse;
use OCP\AppFramework\Http\TemplateResponse; use OCP\AppFramework\Http\TemplateResponse;

View File

@@ -1,9 +1,9 @@
<?php <?php
namespace OCA\NcDownloader\Controller; namespace OCA\NCDownloader\Controller;
use OCA\NcDownloader\Tools\Helper; use OCA\NCDownloader\Tools\Helper;
use OCA\NcDownloader\Tools\Settings; use OCA\NCDownloader\Tools\Settings;
use OCP\AppFramework\Controller; use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\JSONResponse; use OCP\AppFramework\Http\JSONResponse;
use OCP\IRequest; use OCP\IRequest;

View File

@@ -2,7 +2,7 @@
declare (strict_types = 1); declare (strict_types = 1);
namespace OCA\NcDownloader\Migration; namespace OCA\NCDownloader\Migration;
use Closure; use Closure;
use OCP\DB\ISchemaWrapper; use OCP\DB\ISchemaWrapper;

View File

@@ -1,6 +1,6 @@
<?php <?php
namespace OCA\NcDownloader\Search\Sites; namespace OCA\NCDownloader\Search\Sites;
//The Piratebay //The Piratebay
class TPB class TPB

View File

@@ -1,9 +1,9 @@
<?php <?php
namespace OCA\NcDownloader\Search; namespace OCA\NCDownloader\Search;
require __DIR__ . "/../../vendor/autoload.php"; require __DIR__ . "/../../vendor/autoload.php";
use OCA\NcDownloader\Search\Sites\TPB; use OCA\NCDownloader\Search\Sites\TPB;
use Symfony\Component\DomCrawler\Crawler; use Symfony\Component\DomCrawler\Crawler;
use Symfony\Component\HttpClient\HttpClient; use Symfony\Component\HttpClient\HttpClient;

View File

@@ -1,13 +1,13 @@
<?php <?php
namespace OCA\NcDownloader\Settings; namespace OCA\NCDownloader\Settings;
use OCP\AppFramework\Http\TemplateResponse; use OCP\AppFramework\Http\TemplateResponse;
use OCP\AppFramework\Utility\ITimeFactory; use OCP\AppFramework\Utility\ITimeFactory;
use OCP\IConfig; use OCP\IConfig;
use OCP\IDBConnection; use OCP\IDBConnection;
use OCP\Settings\ISettings; use OCP\Settings\ISettings;
use OCA\NcDownloader\Tools\Settings; use OCA\NCDownloader\Tools\Settings;
class Admin implements ISettings { class Admin implements ISettings {

View File

@@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace OCA\NcDownloader\Settings; namespace OCA\NCDownloader\Settings;
use OCP\IL10N; use OCP\IL10N;
use OCP\IURLGenerator; use OCP\IURLGenerator;

View File

@@ -1,14 +1,14 @@
<?php <?php
namespace OCA\NcDownloader\Settings; namespace OCA\NCDownloader\Settings;
use OCP\AppFramework\Http\TemplateResponse; use OCP\AppFramework\Http\TemplateResponse;
use OCP\AppFramework\Utility\ITimeFactory; use OCP\AppFramework\Utility\ITimeFactory;
use OCP\IConfig; use OCP\IConfig;
use OCP\IDBConnection; use OCP\IDBConnection;
use OCP\Settings\ISettings; use OCP\Settings\ISettings;
use OCA\NcDownloader\Tools\Settings; use OCA\NCDownloader\Tools\Settings;
use OCA\NcDownloader\Tools\Helper; use OCA\NCDownloader\Tools\Helper;
class Personal implements ISettings { class Personal implements ISettings {

View File

@@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace OCA\NcDownloader\Settings; namespace OCA\NCDownloader\Settings;
use OCP\IL10N; use OCP\IL10N;
use OCP\IURLGenerator; use OCP\IURLGenerator;

View File

@@ -1,6 +1,6 @@
<?php <?php
namespace OCA\NcDownloader\Tools; namespace OCA\NCDownloader\Tools;
//use Symfony\Component\Process\ExecutableFinder; //use Symfony\Component\Process\ExecutableFinder;
use Symfony\Component\Process\Exception\ProcessFailedException; use Symfony\Component\Process\Exception\ProcessFailedException;

View File

@@ -1,5 +1,5 @@
<?php <?php
namespace OCA\NcDownloader\Tools; namespace OCA\NCDownloader\Tools;
class DBConn class DBConn
{ {

View File

@@ -9,7 +9,7 @@
* file that was distributed with this source code. * file that was distributed with this source code.
*/ */
namespace OCA\NcDownloader\Tools; namespace OCA\NCDownloader\Tools;
/** /**
* Generic executable finder. * Generic executable finder.

View File

@@ -1,7 +1,7 @@
<?php <?php
namespace OCA\NcDownloader\Tools; namespace OCA\NCDownloader\Tools;
use OCA\NcDownloader\Tools\Helper; use OCA\NCDownloader\Tools\Helper;
use OC\Files\Filesystem; use OC\Files\Filesystem;
use OC\Files\Utils\Scanner; use OC\Files\Utils\Scanner;
use \OCP\EventDispatcher\IEventDispatcher; use \OCP\EventDispatcher\IEventDispatcher;

View File

@@ -1,8 +1,8 @@
<?php <?php
namespace OCA\NcDownloader\Tools; namespace OCA\NCDownloader\Tools;
use OCA\NcDownloader\Tools\aria2Options; use OCA\NCDownloader\Tools\aria2Options;
class Helper class Helper
{ {

View File

@@ -1,6 +1,6 @@
<?php <?php
namespace OCA\NcDownloader\Tools; namespace OCA\NCDownloader\Tools;
use OC\AllConfig; use OC\AllConfig;

View File

@@ -1,7 +1,7 @@
<?php <?php
namespace OCA\NcDownloader\Tools; namespace OCA\NCDownloader\Tools;
use OCA\NcDownloader\Tools\Helper; use OCA\NCDownloader\Tools\Helper;
use Symfony\Component\Process\Exception\ProcessFailedException; use Symfony\Component\Process\Exception\ProcessFailedException;
use Symfony\Component\Process\Process; use Symfony\Component\Process\Process;

View File

@@ -1,5 +1,5 @@
<?php <?php
namespace OCA\NcDownloader\Tools; namespace OCA\NCDownloader\Tools;
class aria2Options class aria2Options
{ {