fix app:check-code errors

This commit is contained in:
Julius Haertl
2016-08-16 11:11:35 +02:00
parent 6a040f1470
commit 376ad88df2
4 changed files with 3 additions and 1022 deletions

View File

@@ -9,6 +9,6 @@
<namespace>Deck</namespace> <namespace>Deck</namespace>
<category>other</category> <category>other</category>
<dependencies> <dependencies>
<owncloud min-version="9.0" /> <owncloud min-version="9.0" max-version="9.2" />
</dependencies> </dependencies>
</info> </info>

View File

@@ -1 +0,0 @@
0.0.1.5

File diff suppressed because it is too large Load Diff

View File

@@ -59,11 +59,11 @@ class CardService {
$cards = $this->cardMapper->findAll($stackId); $cards = $this->cardMapper->findAll($stackId);
$i = 0; $i = 0;
foreach ($cards as $card) { foreach ($cards as $card) {
if($card->id == $id) { if($card->id === $id) {
$card->setOrder($order); $card->setOrder($order);
} }
if($i == $order) if($i === $order)
$i++; $i++;
if($card->id !== $id) { if($card->id !== $id) {