@@ -28,7 +28,7 @@ |
||
| 28 | 28 | * Constructor |
| 29 | 29 | * @param string $msg the error message |
| 30 | 30 | */ |
| 31 | - public function __construct($msg=""){ |
|
| 31 | + public function __construct($msg = "") { |
|
| 32 | 32 | parent::__construct($msg); |
| 33 | 33 | } |
| 34 | 34 | } |
| 35 | 35 | \ No newline at end of file |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | |
| 33 | 33 | private $labelService; |
| 34 | 34 | |
| 35 | - public function __construct($appName, IRequest $request, LabelService $labelService){ |
|
| 35 | + public function __construct($appName, IRequest $request, LabelService $labelService) { |
|
| 36 | 36 | parent::__construct($appName, $request); |
| 37 | 37 | $this->labelService = $labelService; |
| 38 | 38 | } |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | class StackController extends Controller { |
| 34 | 34 | private $userId; |
| 35 | 35 | private $stackService; |
| 36 | - public function __construct($appName, IRequest $request, StackService $cardService, $userId){ |
|
| 36 | + public function __construct($appName, IRequest $request, StackService $cardService, $userId) { |
|
| 37 | 37 | parent::__construct($appName, $request); |
| 38 | 38 | $this->userId = $userId; |
| 39 | 39 | $this->stackService = $cardService; |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | * @param int $order |
| 65 | 65 | * @return \OCP\AppFramework\Db\Entity |
| 66 | 66 | */ |
| 67 | - public function create($title, $boardId, $order=999) { |
|
| 67 | + public function create($title, $boardId, $order = 999) { |
|
| 68 | 68 | return $this->stackService->create($title, $boardId, $order); |
| 69 | 69 | } |
| 70 | 70 | |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | private $userId; |
| 33 | 33 | private $cardService; |
| 34 | 34 | |
| 35 | - public function __construct($appName, IRequest $request, CardService $cardService, $userId){ |
|
| 35 | + public function __construct($appName, IRequest $request, CardService $cardService, $userId) { |
|
| 36 | 36 | parent::__construct($appName, $request); |
| 37 | 37 | $this->userId = $userId; |
| 38 | 38 | $this->cardService = $cardService; |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | * @param int $order |
| 77 | 77 | * @return \OCP\AppFramework\Db\Entity |
| 78 | 78 | */ |
| 79 | - public function create($title, $stackId, $type, $order=999) { |
|
| 79 | + public function create($title, $stackId, $type, $order = 999) { |
|
| 80 | 80 | return $this->cardService->create($title, $stackId, $type, $order, $this->userId); |
| 81 | 81 | } |
| 82 | 82 | |
@@ -26,9 +26,9 @@ |
||
| 26 | 26 | |
| 27 | 27 | class NoPermissionException extends StatusException { |
| 28 | 28 | |
| 29 | - public function __construct($message, $controller=null, $method=null) { |
|
| 29 | + public function __construct($message, $controller = null, $method = null) { |
|
| 30 | 30 | parent::__construct($message); |
| 31 | - if($controller && $method) { |
|
| 31 | + if ($controller && $method) { |
|
| 32 | 32 | $this->message = get_class($controller) . "#" . $method . ": " . $message; |
| 33 | 33 | } |
| 34 | 34 | } |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | $container = $this->getContainer(); |
| 41 | 41 | $server = $container->getServer(); |
| 42 | 42 | |
| 43 | - $container->registerService('SharingMiddleware', function ($container) use ($server) { |
|
| 43 | + $container->registerService('SharingMiddleware', function($container) use ($server) { |
|
| 44 | 44 | return new SharingMiddleware( |
| 45 | 45 | $container, |
| 46 | 46 | $server->getRequest(), |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | public function registerNavigationEntry() { |
| 57 | 57 | $container = $this->getContainer(); |
| 58 | - $container->query('OCP\INavigationManager')->add(function () use ($container) { |
|
| 58 | + $container->query('OCP\INavigationManager')->add(function() use ($container) { |
|
| 59 | 59 | $urlGenerator = $container->query('OCP\IURLGenerator'); |
| 60 | 60 | $l10n = $container->query('OCP\IL10N'); |
| 61 | 61 | return [ |