Skip to content

Commit

Permalink
feat: apply latest codestyle
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
  • Loading branch information
kesselb committed Jul 20, 2023
1 parent ee4bca1 commit 60e0743
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 28 deletions.
22 changes: 11 additions & 11 deletions lib/Controller/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@ class ApiController extends OCSController {
* ApiController constructor.
*/
public function __construct(string $appName,
IRequest $request,
IConfig $config,
IGroupManager $groupManager,
?IUserSession $userSession,
Os $os,
SystemStatistics $systemStatistics,
StorageStatistics $storageStatistics,
PhpStatistics $phpStatistics,
DatabaseStatistics $databaseStatistics,
ShareStatistics $shareStatistics,
SessionStatistics $sessionStatistics) {
IRequest $request,
IConfig $config,
IGroupManager $groupManager,
?IUserSession $userSession,
Os $os,
SystemStatistics $systemStatistics,
StorageStatistics $storageStatistics,
PhpStatistics $phpStatistics,
DatabaseStatistics $databaseStatistics,
ShareStatistics $shareStatistics,
SessionStatistics $sessionStatistics) {
parent::__construct($appName, $request);

$this->config = $config;
Expand Down
10 changes: 5 additions & 5 deletions lib/Controller/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@
namespace OCA\ServerInfo\Controller;

use OCA\ServerInfo\PhpInfoResponse;
use OCA\ServerInfo\SystemStatistics;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\JSONResponse;
use OCP\AppFramework\Http\NotFoundResponse;
use OCP\AppFramework\Http\Response;
use OCP\IConfig;
use OCP\IRequest;
use OCP\AppFramework\Controller;
use OCA\ServerInfo\SystemStatistics;

class PageController extends Controller {
public function __construct(string $appName,
IRequest $request,
private SystemStatistics $systemStatistics,
private IConfig $config,
IRequest $request,
private SystemStatistics $systemStatistics,
private IConfig $config,
) {
parent::__construct($appName, $request);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/DatabaseStatistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@

namespace OCA\ServerInfo;

use OCP\DB\Exception;
use OCP\IConfig;
use OCP\IDBConnection;
use OCP\DB\Exception;

class DatabaseStatistics {
protected IConfig $config;
Expand Down
18 changes: 9 additions & 9 deletions lib/Settings/AdminSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ class AdminSettings implements ISettings {
private SystemStatistics $systemStatistics;

public function __construct(Os $os,
IL10N $l,
IURLGenerator $urlGenerator,
StorageStatistics $storageStatistics,
PhpStatistics $phpStatistics,
DatabaseStatistics $databaseStatistics,
ShareStatistics $shareStatistics,
SessionStatistics $sessionStatistics,
SystemStatistics $systemStatistics,
private IConfig $config
IL10N $l,
IURLGenerator $urlGenerator,
StorageStatistics $storageStatistics,
PhpStatistics $phpStatistics,
DatabaseStatistics $databaseStatistics,
ShareStatistics $shareStatistics,
SessionStatistics $sessionStatistics,
SystemStatistics $systemStatistics,
private IConfig $config
) {
$this->os = $os;
$this->l = $l;
Expand Down
4 changes: 2 additions & 2 deletions lib/SystemStatistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@

namespace OCA\ServerInfo;

use OC\Files\View;
use OC\Installer;
use OCP\App\IAppManager;
use OCP\Files\FileInfo;
use OCP\IConfig;
use OC\Files\View;
use OC\Installer;

class SystemStatistics {
private IConfig $config;
Expand Down

0 comments on commit 60e0743

Please sign in to comment.