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

@@ -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)
if ($user->getUID() === $this->userId) {
continue;
}
$acl = new Acl();
$acl->setType('user');
$acl->setParticipant($user->getUID());

View File

@@ -101,8 +101,9 @@ class CardService {
$card->setLastModified(time());
}
if ($i === $order)
if ($i === $order) {
$i++;
}
if ($card->id !== $id) {
$card->setOrder($i++);

View File

@@ -26,10 +26,8 @@ namespace OCA\Deck\Service;
use OCA\Deck\Db\Acl;
use OCA\Deck\Db\AclMapper;
use OCA\Deck\Db\BoardMapper;
use OCA\Deck\Db\IPermissionMapper;
use OCA\Deck\NoPermissionException;
use OCP\AppFramework\Db\DoesNotExistException;
use OCP\IGroupManager;
use OCP\ILogger;