Skip to content

Commit 7129190

Browse files
committed
Minor: Format code
1 parent 1f95891 commit 7129190

File tree

8 files changed

+10
-8
lines changed

8 files changed

+10
-8
lines changed

main/inc/lib/PortfolioController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3909,7 +3909,7 @@ private function getItemsForIndex(
39093909
if ($showBaseContentInSession) {
39103910
$items = array_filter(
39113911
$items,
3912-
fn(Portfolio $item) => !($this->session && !$item->getSession() && $item->isDuplicatedInSession($this->session))
3912+
fn (Portfolio $item) => !($this->session && !$item->getSession() && $item->isDuplicatedInSession($this->session))
39133913
);
39143914
}
39153915

main/inc/lib/fileUpload.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2264,7 +2264,7 @@ function processChunkedFile(array $file): array
22642264
api_replace_dangerous_char($file['name'])
22652265
);
22662266

2267-
$chunkedFile = api_get_path(SYS_ARCHIVE_PATH) . $tmpFile;
2267+
$chunkedFile = api_get_path(SYS_ARCHIVE_PATH).$tmpFile;
22682268
$file['tmp_name'] = $chunkedFile;
22692269
$file['size'] = filesize($chunkedFile);
22702270
$file['copy_file'] = true;

main/inc/lib/moodleexport/FolderExport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function getData(int $folderId, int $sectionId): ?array
4646
{
4747
$folder = $this->course->resources['document'][$folderId];
4848

49-
$folderPath = $folder->path . '/';
49+
$folderPath = $folder->path.'/';
5050
foreach ($this->course->resources['document'] as $resource) {
5151
if ($resource->path !== $folder->path && str_starts_with($resource->path, $folderPath)) {
5252
return [

main/inc/lib/moodleexport/MoodleExport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ private function getActivities(): array
414414
}
415415
} elseif ('folder' === $resource->file_type) {
416416
$isEmpty = true;
417-
$folderPath = $resource->path . '/';
417+
$folderPath = $resource->path.'/';
418418

419419
foreach ($this->course->resources['document'] as $childResource) {
420420
if (str_starts_with($childResource->path, $folderPath) && $childResource->path !== $resource->path) {

plugin/onlyoffice/lib/onlyofficeTools.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ public static function getPathToView(int $documentId, bool $showHeaders = true):
202202
}
203203

204204
if ($canView && !$accessRights) {
205-
206205
return $urlToEdit;
207206
}
208207

src/Chamilo/CoreBundle/Component/HTMLPurifier/Filter/AllowIframes.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ protected function postFilterCallback($matches)
6969
} elseif ($vimeoMatch) {
7070
$extra .= ' webkitAllowFullScreen mozallowfullscreen allowFullScreen';
7171
}
72+
7273
return '<iframe '.$matches[1].$extra.'></iframe>';
7374
}
7475
}

src/Chamilo/CoreBundle/Entity/Portfolio.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,12 +400,12 @@ public function isDuplicated(): bool
400400

401401
public function isDuplicatedInSession(Session $session): bool
402402
{
403-
return $this->duplicates->exists(fn($key, Portfolio $duplicated): bool => $duplicated->session === $session);
403+
return $this->duplicates->exists(fn ($key, Portfolio $duplicated): bool => $duplicated->session === $session);
404404
}
405405

406406
public function isDuplicatedInSessionId(int $sessionId): bool
407407
{
408-
return $this->duplicates->exists(fn($key, Portfolio $duplicated): bool => $duplicated->session && $duplicated->session->getId() === $sessionId);
408+
return $this->duplicates->exists(fn ($key, Portfolio $duplicated): bool => $duplicated->session && $duplicated->session->getId() === $sessionId);
409409
}
410410

411411
public function reset()

src/Chamilo/UserBundle/Entity/User.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,15 +459,17 @@ public function __toString()
459459
{
460460
return $this->getUsername();
461461
}
462+
462463
public function __serialize(): array
463464
{
464465
return get_object_vars($this);
465466
}
467+
466468
public function __unserialize(array $data): void
467469
{
468470
$reflection = new ReflectionClass($this);
469471
$properties = $reflection->getProperties();
470-
$propertyNames = array_map(fn($prop) => $prop->getName(), $properties);
472+
$propertyNames = array_map(fn ($prop) => $prop->getName(), $properties);
471473

472474
foreach ($data as $property => $value) {
473475
if (in_array($property, $propertyNames)) {

0 commit comments

Comments
 (0)