Minor - format code

pull/3844/head
Julio Montoya 5 years ago
parent 67af29f39e
commit c8478865d0
  1. 4
      ecs.php
  2. 4
      public/main/inc/lib/formvalidator/FormValidator.class.php
  3. 3
      public/plugin/studentfollowup/Entity/CarePost.php
  4. 2
      src/CoreBundle/Settings/SettingsManager.php
  5. 2
      src/LtiBundle/Form/ExternalToolType.php

@ -51,8 +51,6 @@ return static function (ContainerConfigurator $containerConfigurator): void {
$services->set(\PhpCsFixer\Fixer\Casing\ConstantCaseFixer::class); $services->set(\PhpCsFixer\Fixer\Casing\ConstantCaseFixer::class);
$services->set(\PhpCsFixer\Fixer\Phpdoc\PhpdocOrderFixer::class); $services->set(\PhpCsFixer\Fixer\Phpdoc\PhpdocOrderFixer::class);
$services->set(\PhpCsFixer\Fixer\ClassNotation\OrderedClassElementsFixer::class); $services->set(\PhpCsFixer\Fixer\ClassNotation\OrderedClassElementsFixer::class);
$services->set(\PhpCsFixer\Fixer\Operator\ConcatSpaceFixer::class) $services->set(\PhpCsFixer\Fixer\Operator\ConcatSpaceFixer::class)
->call( ->call(
'configure', 'configure',
@ -62,7 +60,6 @@ return static function (ContainerConfigurator $containerConfigurator): void {
], ],
] ]
); );
$services->set(GlobalNamespaceImportFixer::class) $services->set(GlobalNamespaceImportFixer::class)
->call( ->call(
'configure', 'configure',
@ -90,6 +87,7 @@ return static function (ContainerConfigurator $containerConfigurator): void {
__DIR__.'/src/CoreBundle/Traits/*', __DIR__.'/src/CoreBundle/Traits/*',
__DIR__.'/src/CoreBundle/Menu/*', __DIR__.'/src/CoreBundle/Menu/*',
__DIR__.'/src/CourseBundle/Component/*', __DIR__.'/src/CourseBundle/Component/*',
__DIR__.'/src/DataFixtures/*',
//__DIR__.'/src/LtiBundle/*', //__DIR__.'/src/LtiBundle/*',
IncrementStyleFixer::class => 'post', IncrementStyleFixer::class => 'post',
PropertyTypeHintSniff::class.'.'.PropertyTypeHintSniff::CODE_MISSING_TRAVERSABLE_TYPE_HINT_SPECIFICATION, PropertyTypeHintSniff::class.'.'.PropertyTypeHintSniff::CODE_MISSING_TRAVERSABLE_TYPE_HINT_SPECIFICATION,

@ -19,12 +19,10 @@ class FormValidator extends HTML_QuickForm
private $layout; private $layout;
/** /**
* Constructor.
*
* @param string $name Name of the form * @param string $name Name of the form
* @param string $method (optional) Method ('post' (default) or 'get') * @param string $method (optional) Method ('post' (default) or 'get')
* @param string $action (optional) Action (default is $PHP_SELF) * @param string $action (optional) Action (default is $PHP_SELF)
* @param null|string $target (optional) Form's target defaults to '_self' * @param string|null $target (optional) Form's target defaults to '_self'
* @param mixed $attributes (optional) Extra attributes for <form> tag * @param mixed $attributes (optional) Extra attributes for <form> tag
* @param string $layout * @param string $layout
* @param bool $trackSubmit Whether to track if the form was submitted by adding a special hidden field * @param bool $trackSubmit Whether to track if the form was submitted by adding a special hidden field

@ -4,6 +4,7 @@
namespace Chamilo\PluginBundle\Entity\StudentFollowUp; namespace Chamilo\PluginBundle\Entity\StudentFollowUp;
use DateTime;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo; use Gedmo\Mapping\Annotation as Gedmo;
@ -142,7 +143,7 @@ class CarePost
*/ */
public function __construct() public function __construct()
{ {
$this->createdAt = new \DateTime(); $this->createdAt = new DateTime();
$this->attachment = ''; $this->attachment = '';
} }

@ -47,7 +47,7 @@ class SettingsManager implements SettingsManagerInterface
protected array $resolvedSettings = []; protected array $resolvedSettings = [];
//protected $settings; //protected $settings;
/** /**
* @var array<string, \Sylius\Bundle\SettingsBundle\Model\Settings>|mixed[]|null * @var null|array<string, \Sylius\Bundle\SettingsBundle\Model\Settings>|mixed[]
*/ */
protected ?array $schemaList; protected ?array $schemaList;
protected RequestStack $request; protected RequestStack $request;

@ -7,7 +7,7 @@ declare(strict_types=1);
namespace Chamilo\LtiBundle\Form; namespace Chamilo\LtiBundle\Form;
use Chamilo\LtiBundle\Entity\ExternalTool; use Chamilo\LtiBundle\Entity\ExternalTool;
use \SimpleXMLElement; use SimpleXMLElement;
use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\CheckboxType; use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\Form\Extension\Core\Type\SubmitType;

Loading…
Cancel
Save