Update the PHP CS Fixer configuration #1025
Annotations
6 warnings
|
mutation / PHP 8.5-ubuntu-latest:
src/SimpleItemsStorage.php#L176
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
$children = $this->getDirectChildren($parentName);
if (empty($children)) {
- return false;
+
}
foreach ($children as $groupChild) {
|
|
mutation / PHP 8.5-ubuntu-latest:
src/SimpleAssignmentsStorage.php#L79
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
{
$assignments = $this->getByUserId($userId);
if (empty($assignments)) {
- return [];
+
}
$userItemNames = [];
|
|
mutation / PHP 8.5-ubuntu-latest:
src/SimpleAssignmentsStorage.php#L63
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
{
$assignments = $this->getByUserId($userId);
if (empty($assignments)) {
- return false;
+
}
foreach ($itemNames as $itemName) {
|
|
mutation / PHP 8.5-ubuntu-latest:
src/Manager.php#L246
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
$userId = (string) $userId;
$assignments = $this->assignmentsStorage->getByUserId($userId);
if (empty($assignments)) {
- return [];
+
}
$assignmentNames = array_keys($assignments);
|
|
mutation / PHP 8.5-ubuntu-latest:
src/Manager.php#L178
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
}
if ($this->assignmentsStorage->exists($itemName, $userId)) {
- return $this;
+
}
$assignment = new Assignment($userId, $itemName, $createdAt ?? $this->getCurrentTimestamp());
|
|
mutation / PHP 8.5-ubuntu-latest:
src/Manager.php#L74
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
} else {
$guestRole = $this->getGuestRole();
if ($guestRole === null) {
- return false;
+
}
}
|