Minor: format code

pull/4312/head
Angel Fernando Quiroz Campos 3 years ago
parent 6a8f529b10
commit de61a2e637
  1. 4
      src/CoreBundle/Component/Editor/CkEditor/CkEditor.php
  2. 4
      src/CoreBundle/Settings/SettingsManager.php
  3. 2
      src/CourseBundle/Entity/CLp.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;
}
/**

@ -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
{

@ -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;

Loading…
Cancel
Save