Scrutinizer Auto-Fixes

This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
This commit is contained in:
Scrutinizer Auto-Fixer
2017-01-31 09:28:59 +00:00
parent 5c1713d928
commit 094aa6d636
19 changed files with 40 additions and 40 deletions

View File

@@ -32,7 +32,7 @@ class CardController extends Controller {
private $userId;
private $cardService;
public function __construct($appName, IRequest $request, CardService $cardService, $userId){
public function __construct($appName, IRequest $request, CardService $cardService, $userId) {
parent::__construct($appName, $request);
$this->userId = $userId;
$this->cardService = $cardService;
@@ -76,7 +76,7 @@ class CardController extends Controller {
* @param int $order
* @return \OCP\AppFramework\Db\Entity
*/
public function create($title, $stackId, $type, $order=999) {
public function create($title, $stackId, $type, $order = 999) {
return $this->cardService->create($title, $stackId, $type, $order, $this->userId);
}

View File

@@ -32,7 +32,7 @@ class LabelController extends Controller {
private $labelService;
public function __construct($appName, IRequest $request, LabelService $labelService){
public function __construct($appName, IRequest $request, LabelService $labelService) {
parent::__construct($appName, $request);
$this->labelService = $labelService;
}

View File

@@ -67,8 +67,9 @@ class ShareController extends Controller {
}
$limit = 10;
foreach ($this->userManager->searchDisplayName($search, $limit, $offset) as $idx => $user) {
if ($user->getUID() === $this->userId)
continue;
if ($user->getUID() === $this->userId) {
continue;
}
$acl = new Acl();
$acl->setType('user');
$acl->setParticipant($user->getUID());

View File

@@ -33,7 +33,7 @@ use OCP\AppFramework\Controller;
class StackController extends Controller {
private $userId;
private $stackService;
public function __construct($appName, IRequest $request, StackService $cardService, $userId){
public function __construct($appName, IRequest $request, StackService $cardService, $userId) {
parent::__construct($appName, $request);
$this->userId = $userId;
$this->stackService = $cardService;
@@ -64,7 +64,7 @@ class StackController extends Controller {
* @param int $order
* @return \OCP\AppFramework\Db\Entity
*/
public function create($title, $boardId, $order=999) {
public function create($title, $boardId, $order = 999) {
return $this->stackService->create($title, $boardId, $order);
}