Skip to content

Commit 76b2dda

Browse files
committed
Update php styling for 7.4
Signed-off-by: John Molakvoæ <[email protected]>
1 parent 9e43f19 commit 76b2dda

3 files changed

Lines changed: 39 additions & 63 deletions

File tree

lib/Controller/AlbumsController.php

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,16 @@
4040
use OCP\IRequest;
4141

4242
class AlbumsController extends Controller {
43-
44-
/** @var string */
45-
private $userId;
46-
47-
/** @var IRootFolder */
48-
private $rootFolder;
49-
50-
/** @var IPreview */
51-
private $previewManager;
52-
53-
public function __construct(string $userId,
54-
IRequest $request,
55-
IRootFolder $rootFolder,
56-
IPreview $previewManager) {
43+
private string $userId;
44+
private IRootFolder $rootFolder;
45+
private IPreview $previewManager;
46+
47+
public function __construct(
48+
string $userId,
49+
IRequest $request,
50+
IRootFolder $rootFolder,
51+
IPreview $previewManager
52+
) {
5753
parent::__construct(Application::APP_ID, $request);
5854

5955
$this->userId = $userId;

lib/Controller/ApiController.php

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,14 @@
3636
use OCP\IUserSession;
3737

3838
class ApiController extends Controller {
39+
private IConfig $config;
40+
private IUserSession $userSession;
3941

40-
/** @var IConfig */
41-
private $config;
42-
43-
/** @var IUserSession */
44-
private $userSession;
45-
46-
public function __construct(IRequest $request,
47-
IConfig $config,
48-
IUserSession $userSession) {
42+
public function __construct(
43+
IRequest $request,
44+
IConfig $config,
45+
IUserSession $userSession
46+
) {
4947
parent::__construct(Application::APP_ID, $request);
5048

5149
$this->config = $config;

lib/Controller/PageController.php

Lines changed: 22 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
use OCP\Files\Node;
4545
use OCP\Files\NotFoundException;
4646
use OCP\Files\NotPermittedException;
47+
use OCP\ICache;
4748
use OCP\ICacheFactory;
4849
use OCP\IConfig;
4950
use OCP\IInitialStateService;
@@ -53,46 +54,27 @@
5354
use Psr\Log\LoggerInterface;
5455

5556
class PageController extends Controller {
56-
/** @var IAppManager */
57-
private $appManager;
58-
59-
/** @var IEventDispatcher */
60-
private $eventDispatcher;
61-
62-
/** @var IConfig */
63-
private $config;
64-
65-
/** @var IInitialStateService */
66-
private $initialStateService;
67-
68-
/** @var IUserSession */
69-
private $userSession;
70-
/**
71-
* @var \OCP\Files\IRootFolder
72-
*/
73-
private $rootFolder;
74-
/**
75-
* @var \OCP\ICacheFactory
76-
*/
77-
private $cacheFactory;
78-
/**
79-
* @var \OCP\ICache
80-
*/
81-
private $nomediaPathsCache;
82-
/**
83-
* @var \Psr\Log\LoggerInterface
84-
*/
85-
private $logger;
86-
87-
public function __construct(IRequest $request,
88-
IAppManager $appManager,
89-
IEventDispatcher $eventDispatcher,
90-
IConfig $config,
91-
IInitialStateService $initialStateService,
92-
IUserSession $userSession,
93-
IRootFolder $rootFolder,
94-
ICacheFactory $cacheFactory,
95-
LoggerInterface $logger) {
57+
private IAppManager $appManager;
58+
private IEventDispatcher $eventDispatcher;
59+
private IConfig $config;
60+
private IInitialStateService $initialStateService;
61+
private IUserSession $userSession;
62+
private IRootFolder $rootFolder;
63+
private ICacheFactory $cacheFactory;
64+
private ICache $nomediaPathsCache;
65+
private LoggerInterface $logger;
66+
67+
public function __construct(
68+
IRequest $request,
69+
IAppManager $appManager,
70+
IEventDispatcher $eventDispatcher,
71+
IConfig $config,
72+
IInitialStateService $initialStateService,
73+
IUserSession $userSession,
74+
IRootFolder $rootFolder,
75+
ICacheFactory $cacheFactory,
76+
LoggerInterface $logger
77+
) {
9678
parent::__construct(Application::APP_ID, $request);
9779

9880
$this->appManager = $appManager;

0 commit comments

Comments
 (0)