summaryrefslogtreecommitdiffstats
path: root/lib/Controller/NavigationController.php
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2018-11-30 10:21:11 -0100
committerMaxence Lange <maxence@artificial-owl.com>2018-11-30 10:21:11 -0100
commitc27f697f0a64ac253b938d2b4535e108b0cca7e1 (patch)
treea1652e7df77457579d88ab85718538439d860a34 /lib/Controller/NavigationController.php
parent75447af7671b9e45d3f5db0ba75bbfcd6a0318a3 (diff)
cleaning
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Controller/NavigationController.php')
-rw-r--r--lib/Controller/NavigationController.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/Controller/NavigationController.php b/lib/Controller/NavigationController.php
index b14f46bd..0911b12f 100644
--- a/lib/Controller/NavigationController.php
+++ b/lib/Controller/NavigationController.php
@@ -30,11 +30,9 @@ declare(strict_types=1);
namespace OCA\Social\Controller;
-use daita\MySmallPhpTools\Traits\TArrayTools;
use daita\MySmallPhpTools\Traits\Nextcloud\TNCDataResponse;
+use daita\MySmallPhpTools\Traits\TArrayTools;
use Exception;
-use OC\Files\Node\File;
-use OC\Files\SimpleFS\SimpleFile;
use OC\User\NoUserException;
use OCA\Social\AppInfo\Application;
use OCA\Social\Exceptions\AccountAlreadyExistsException;
@@ -48,9 +46,7 @@ use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\ContentSecurityPolicy;
use OCP\AppFramework\Http\DataResponse;
use OCP\AppFramework\Http\FileDisplayResponse;
-use OCP\AppFramework\Http\RedirectResponse;
use OCP\AppFramework\Http\Response;
-use OCP\AppFramework\Http\Template\PublicTemplateResponse;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\IConfig;
use OCP\IL10N;
@@ -132,9 +128,11 @@ class NavigationController extends Controller {
* @NoAdminRequired
* @NoSubAdminRequired
*
+ * @param string $path
+ *
* @return TemplateResponse
*/
- public function navigate($path = ''): TemplateResponse {
+ public function navigate(string $path = ''): TemplateResponse {
$data = [
'serverData' => [
'public' => false,
@@ -230,10 +228,11 @@ class NavigationController extends Controller {
* @NoAdminRequired
* @NoSubAdminRequired
*
+ * @param string $path
+ *
* @return TemplateResponse
- * @throws NoUserException
*/
- public function timeline($path = ''): TemplateResponse {
+ public function timeline(string $path = ''): TemplateResponse {
return $this->navigate();
}
@@ -244,10 +243,11 @@ class NavigationController extends Controller {
* @NoAdminRequired
* @NoSubAdminRequired
*
+ * @param string $path
+ *
* @return TemplateResponse
- * @throws NoUserException
*/
- public function account($path = ''): TemplateResponse {
+ public function account(string $path = ''): TemplateResponse {
return $this->navigate();
}