Skip to content

Commit d188ae5

Browse files
committed
Resolve PHPCS
1 parent b32ca35 commit d188ae5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Mvc/Collection.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ class Collection extends AbstractInjectionAware implements
6060
/**
6161
* @var ObjectId|mixed $_id
6262
*/
63+
//@codingStandardsIgnoreLine
6364
protected $_id;
6465

6566
/**
@@ -346,7 +347,7 @@ public function delete(): bool
346347

347348
if (is_object($this->_id)) {
348349
$objectId = $this->_id;
349-
} else if ($this->collectionsManager->isUsingImplicitObjectIds($this)) {
350+
} elseif ($this->collectionsManager->isUsingImplicitObjectIds($this)) {
350351
$objectId = new ObjectId($this->_id);
351352
} else {
352353
$objectId = $this->_id;
@@ -1375,7 +1376,7 @@ protected static function getResultset(
13751376
$conditions = [];
13761377
if (isset($parameters[0])) {
13771378
$conditions = $parameters[0];
1378-
} else if (isset($parameters['conditions'])) {
1379+
} elseif (isset($parameters['conditions'])) {
13791380
$conditions = $parameters['conditions'];
13801381
}
13811382

@@ -1445,7 +1446,7 @@ protected static function getGroupResultset(array $parameters, CollectionInterfa
14451446
$conditions = [];
14461447
if (isset($parameters[0])) {
14471448
$conditions = $parameters[0];
1448-
} else if (isset($parameters['conditions'])) {
1449+
} elseif (isset($parameters['conditions'])) {
14491450
$conditions = $parameters['conditions'];
14501451
}
14511452

0 commit comments

Comments
 (0)