Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/registration.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-07-07 10:57:51 +0300
committerPellaeon Lin <pellaeon@hs.ntnu.edu.tw>2020-07-09 17:54:37 +0300
commit8266184a50dce8bcdebbc4cc488026192408f64e (patch)
treea00bcc00131d05ae77f1ce9e1fea6361908f20f3
parentb317a85744fc4fedf5bbbfbc2a827dce1f34342a (diff)
Move to PSR-4 naming to support upcoming composer update
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--appinfo/app.php2
-rw-r--r--appinfo/routes.php2
-rw-r--r--lib/AppInfo/Application.php (renamed from appinfo/application.php)0
-rw-r--r--lib/Capabilities.php (renamed from capabilities.php)0
-rw-r--r--lib/Controller/ApiController.php (renamed from controller/apicontroller.php)0
-rw-r--r--lib/Controller/RegisterController.php (renamed from controller/registercontroller.php)0
-rw-r--r--lib/Controller/SettingsController.php (renamed from controller/settingscontroller.php)0
-rw-r--r--lib/Db/Registration.php (renamed from db/registration.php)0
-rw-r--r--lib/Db/RegistrationMapper.php (renamed from db/registrationmapper.php)0
-rw-r--r--lib/Service/MailService.php (renamed from service/mailservice.php)0
-rw-r--r--lib/Service/RegistrationException.php (renamed from service/registrationexception.php)0
-rw-r--r--lib/Service/RegistrationService.php (renamed from service/registrationservice.php)0
-rw-r--r--lib/Util/CoreBridge.php (renamed from util/corebridge.php)0
-rw-r--r--tests/Integration/Controller/RegisterControllerTest.php (renamed from tests/integration/controller/RegisterControllerTest.php)4
-rw-r--r--tests/Integration/Service/RegistrationServiceTest.php (renamed from tests/integration/service/RegistrationServiceTest.php)2
-rw-r--r--tests/Unit/Controller/ApiControllerTest.php (renamed from tests/unit/controller/ApiControllerTest.php)2
16 files changed, 4 insertions, 8 deletions
diff --git a/appinfo/app.php b/appinfo/app.php
index 9fb614d..bfc9dbe 100644
--- a/appinfo/app.php
+++ b/appinfo/app.php
@@ -9,8 +9,6 @@
* @copyright Pellaeon Lin 2014
*/
-namespace OCA\Registration\AppInfo;
-
\OC_App::registerLogIn([
'name' => \OC::$server->getL10N('registration')->t('Register'),
'href' => \OC::$server->getURLGenerator()->linkToRoute('registration.register.askEmail')
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 146f00b..7db7778 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -10,8 +10,6 @@
* @copyright Pellaeon Lin 2014
*/
-$app = new \OCA\Registration\AppInfo\Application();
-
return [
'routes' => [
['name' => 'settings#admin', 'url' => '/settings', 'verb' => 'POST'],
diff --git a/appinfo/application.php b/lib/AppInfo/Application.php
index 73785c6..73785c6 100644
--- a/appinfo/application.php
+++ b/lib/AppInfo/Application.php
diff --git a/capabilities.php b/lib/Capabilities.php
index 8234245..8234245 100644
--- a/capabilities.php
+++ b/lib/Capabilities.php
diff --git a/controller/apicontroller.php b/lib/Controller/ApiController.php
index c11732d..c11732d 100644
--- a/controller/apicontroller.php
+++ b/lib/Controller/ApiController.php
diff --git a/controller/registercontroller.php b/lib/Controller/RegisterController.php
index a401325..a401325 100644
--- a/controller/registercontroller.php
+++ b/lib/Controller/RegisterController.php
diff --git a/controller/settingscontroller.php b/lib/Controller/SettingsController.php
index 0252317..0252317 100644
--- a/controller/settingscontroller.php
+++ b/lib/Controller/SettingsController.php
diff --git a/db/registration.php b/lib/Db/Registration.php
index 9d8473f..9d8473f 100644
--- a/db/registration.php
+++ b/lib/Db/Registration.php
diff --git a/db/registrationmapper.php b/lib/Db/RegistrationMapper.php
index 80b6308..80b6308 100644
--- a/db/registrationmapper.php
+++ b/lib/Db/RegistrationMapper.php
diff --git a/service/mailservice.php b/lib/Service/MailService.php
index c7ad07f..c7ad07f 100644
--- a/service/mailservice.php
+++ b/lib/Service/MailService.php
diff --git a/service/registrationexception.php b/lib/Service/RegistrationException.php
index b3070d1..b3070d1 100644
--- a/service/registrationexception.php
+++ b/lib/Service/RegistrationException.php
diff --git a/service/registrationservice.php b/lib/Service/RegistrationService.php
index 7a0e3fc..7a0e3fc 100644
--- a/service/registrationservice.php
+++ b/lib/Service/RegistrationService.php
diff --git a/util/corebridge.php b/lib/Util/CoreBridge.php
index 5fc2124..5fc2124 100644
--- a/util/corebridge.php
+++ b/lib/Util/CoreBridge.php
diff --git a/tests/integration/controller/RegisterControllerTest.php b/tests/Integration/Controller/RegisterControllerTest.php
index b7f69aa..3f68394 100644
--- a/tests/integration/controller/RegisterControllerTest.php
+++ b/tests/Integration/Controller/RegisterControllerTest.php
@@ -1,6 +1,6 @@
<?php
-namespace OCA\Registration\Controller;
+namespace OCA\Registration\Tests\Integration\Controller;
use OCA\Registration\Db\Registration;
use OCA\Registration\Db\RegistrationMapper;
@@ -33,7 +33,7 @@ use ChristophWurst\Nextcloud\Testing\TestCase;
*
* @group DB
*/
-class RegistrationControllerTest extends TestCase {
+class RegisterControllerTest extends TestCase {
use DatabaseTransaction;
/** @var MailService */
diff --git a/tests/integration/service/RegistrationServiceTest.php b/tests/Integration/Service/RegistrationServiceTest.php
index ff55785..d192dc4 100644
--- a/tests/integration/service/RegistrationServiceTest.php
+++ b/tests/Integration/Service/RegistrationServiceTest.php
@@ -1,6 +1,6 @@
<?php
-namespace OCA\Registration\Service;
+namespace OCA\Registration\Tests\Integration\Service;
use OCA\Registration\Db\Registration;
use OCA\Registration\Db\RegistrationMapper;
diff --git a/tests/unit/controller/ApiControllerTest.php b/tests/Unit/Controller/ApiControllerTest.php
index c007247..1229ddc 100644
--- a/tests/unit/controller/ApiControllerTest.php
+++ b/tests/Unit/Controller/ApiControllerTest.php
@@ -9,7 +9,7 @@
* @copyright Pellaeon Lin 2014
*/
-namespace OCA\Registration\Controller;
+namespace OCA\Registration\Tests\Unit\Controller;
use OCA\Registration\Db\Registration;
use OCA\Registration\Service\MailService;