From de61a2e637ddafe0b3361ae185d57ab5fee9594d Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Thu, 19 May 2022 01:15:42 -0500 Subject: [PATCH] Minor: format code --- src/CoreBundle/Component/Editor/CkEditor/CkEditor.php | 4 +--- src/CoreBundle/Settings/SettingsManager.php | 4 ++-- src/CourseBundle/Entity/CLp.php | 2 -- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/CoreBundle/Component/Editor/CkEditor/CkEditor.php b/src/CoreBundle/Component/Editor/CkEditor/CkEditor.php index f98ab30dbe..033b2dd173 100644 --- a/src/CoreBundle/Component/Editor/CkEditor/CkEditor.php +++ b/src/CoreBundle/Component/Editor/CkEditor/CkEditor.php @@ -148,7 +148,7 @@ class CkEditor extends Editor */ private function getImagePicker() { - $callback = 'function (cb, value, meta) { + return 'function (cb, value, meta) { var input = document.createElement("input"); input.setAttribute("type", "file"); input.setAttribute("accept", "image/*"); @@ -167,8 +167,6 @@ class CkEditor extends Editor }; input.click(); }'; - - return $callback; } /** diff --git a/src/CoreBundle/Settings/SettingsManager.php b/src/CoreBundle/Settings/SettingsManager.php index 9cfdbb17a2..7d341029b9 100644 --- a/src/CoreBundle/Settings/SettingsManager.php +++ b/src/CoreBundle/Settings/SettingsManager.php @@ -136,9 +136,9 @@ class SettingsManager implements SettingsManagerInterface /** * Get a specific configuration setting, getting from the previously stored * PHP session data whenever possible. - * @param string $name The setting name (composed if in a category, i.e. 'platform.theme') + * + * @param string $name The setting name (composed if in a category, i.e. 'platform.theme') * @param bool $loadFromDb Whether to load from the database - * @return mixed */ public function getSetting(string $name, bool $loadFromDb = false): mixed { diff --git a/src/CourseBundle/Entity/CLp.php b/src/CourseBundle/Entity/CLp.php index 893c89ab4f..5ee4eeeb5f 100644 --- a/src/CourseBundle/Entity/CLp.php +++ b/src/CourseBundle/Entity/CLp.php @@ -203,8 +203,6 @@ class CLp extends AbstractResource implements ResourceInterface, ResourceShowCou protected int $accumulateWorkTime; /** - * @var Collection - * * @ORM\OneToMany(targetEntity="Chamilo\CourseBundle\Entity\CLpItem", mappedBy="lp", cascade={"persist", "remove"}, orphanRemoval=true) */ protected Collection $items;