Skip to content

Commit f0db48e

Browse files
committed
Minor: Format code
1 parent ac4561f commit f0db48e

File tree

6 files changed

+6
-10
lines changed

6 files changed

+6
-10
lines changed

src/CoreBundle/Controller/ResourceController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ private function getRange(Request $request, int $fileSize): array
599599
[$start, $end] = explode('-', $range);
600600

601601
$start = (int) $start;
602-
$end = ($end === '') ? $fileSize - 1 : (int) $end;
602+
$end = ('' === $end) ? $fileSize - 1 : (int) $end;
603603

604604
$length = $end - $start + 1;
605605
} else {
@@ -624,7 +624,7 @@ private function streamFileContent(ResourceNode $resourceNode, int $start, int $
624624

625625
echo $buffer;
626626

627-
$bytesSent += strlen($buffer);
627+
$bytesSent += \strlen($buffer);
628628
}
629629

630630
fclose($stream);

src/CoreBundle/Entity/GradebookEvaluation.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
namespace Chamilo\CoreBundle\Entity;
88

99
use Chamilo\CoreBundle\Traits\CourseTrait;
10-
use Chamilo\CoreBundle\Traits\UserTrait;
1110
use DateTime;
1211
use Doctrine\ORM\Mapping as ORM;
1312
use Gedmo\Mapping\Annotation as Gedmo;

src/CoreBundle/Entity/GradebookLink.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
namespace Chamilo\CoreBundle\Entity;
88

99
use Chamilo\CoreBundle\Traits\CourseTrait;
10-
use Chamilo\CoreBundle\Traits\UserTrait;
1110
use DateTime;
1211
use Doctrine\ORM\Mapping as ORM;
1312
use Gedmo\Mapping\Annotation as Gedmo;

src/CoreBundle/Entity/Listener/MessageStatusListener.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ public function postRemove(MessageRelUser $messageRelUser, LifecycleEventArgs $a
2424
{
2525
$message = $messageRelUser->getMessage();
2626
$remainingReceivers = $this->entityManager->getRepository(MessageRelUser::class)
27-
->count(['message' => $message]);
27+
->count(['message' => $message])
28+
;
2829

29-
if ($remainingReceivers === 0) {
30+
if (0 === $remainingReceivers) {
3031
$message->setStatus(Message::MESSAGE_STATUS_DELETED);
3132
$this->entityManager->flush();
3233
}

src/CoreBundle/Entity/User.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -785,9 +785,7 @@ public static function getPasswordConstraints(): array
785785
];
786786
}
787787

788-
public static function loadValidatorMetadata(ClassMetadata $metadata): void
789-
{
790-
}
788+
public static function loadValidatorMetadata(ClassMetadata $metadata): void {}
791789

792790
public function getUuid(): Uuid
793791
{

src/CoreBundle/Repository/SessionRepository.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,6 @@ public function addUserInCourse(int $relationType, User $user, Course $course, S
266266
$entityManager->flush();
267267
}
268268

269-
270269
/**
271270
* @return array<SessionRelCourse>
272271
*/

0 commit comments

Comments
 (0)