Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
This commit is contained in:
@@ -67,8 +67,9 @@ class ShareController extends Controller {
|
|||||||
}
|
}
|
||||||
$limit = 10;
|
$limit = 10;
|
||||||
foreach ($this->userManager->searchDisplayName($search, $limit, $offset) as $idx => $user) {
|
foreach ($this->userManager->searchDisplayName($search, $limit, $offset) as $idx => $user) {
|
||||||
if ($user->getUID() === $this->userId)
|
if ($user->getUID() === $this->userId) {
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
$acl = new Acl();
|
$acl = new Acl();
|
||||||
$acl->setType('user');
|
$acl->setType('user');
|
||||||
$acl->setParticipant($user->getUID());
|
$acl->setParticipant($user->getUID());
|
||||||
|
|||||||
@@ -101,8 +101,9 @@ class CardService {
|
|||||||
$card->setLastModified(time());
|
$card->setLastModified(time());
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($i === $order)
|
if ($i === $order) {
|
||||||
$i++;
|
$i++;
|
||||||
|
}
|
||||||
|
|
||||||
if ($card->id !== $id) {
|
if ($card->id !== $id) {
|
||||||
$card->setOrder($i++);
|
$card->setOrder($i++);
|
||||||
|
|||||||
@@ -26,10 +26,8 @@ namespace OCA\Deck\Service;
|
|||||||
use OCA\Deck\Db\Acl;
|
use OCA\Deck\Db\Acl;
|
||||||
use OCA\Deck\Db\AclMapper;
|
use OCA\Deck\Db\AclMapper;
|
||||||
use OCA\Deck\Db\BoardMapper;
|
use OCA\Deck\Db\BoardMapper;
|
||||||
|
|
||||||
use OCA\Deck\Db\IPermissionMapper;
|
use OCA\Deck\Db\IPermissionMapper;
|
||||||
use OCA\Deck\NoPermissionException;
|
use OCA\Deck\NoPermissionException;
|
||||||
|
|
||||||
use OCP\AppFramework\Db\DoesNotExistException;
|
use OCP\AppFramework\Db\DoesNotExistException;
|
||||||
use OCP\IGroupManager;
|
use OCP\IGroupManager;
|
||||||
use OCP\ILogger;
|
use OCP\ILogger;
|
||||||
|
|||||||
Reference in New Issue
Block a user