Minor - format code

pull/3844/head
Julio Montoya 4 years ago
parent ea4a55a9ac
commit df9b6c5a7c
  1. 2
      .php_cs.dist
  2. 3
      ecs.php
  3. 2
      public/main/exercise/question.class.php
  4. 2
      public/main/inc/lib/database.lib.php
  5. 2
      public/main/inc/lib/pear/HTML/Table.php

@ -22,7 +22,7 @@ $rules = [
'no_useless_return' => true,
'ordered_class_elements' => true,
'ordered_imports' => true,
'phpdoc_order' => true,
//'phpdoc_order' => true,
'no_break_comment' => true,
'global_namespace_import' => true,
];

@ -49,7 +49,7 @@ return static function (ContainerConfigurator $containerConfigurator): void {
$services->set(\PhpCsFixer\Fixer\ReturnNotation\NoUselessReturnFixer::class);
$services->set(\PhpCsFixer\Fixer\CastNotation\ModernizeTypesCastingFixer::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\Operator\ConcatSpaceFixer::class)
->call(
@ -98,5 +98,4 @@ return static function (ContainerConfigurator $containerConfigurator): void {
//UnusedVariableSniff::class => 'ignoreUnusedValuesWhenOnlyKeysAreUsedInForeach',
]
);
};

@ -605,7 +605,7 @@ abstract class Question
->setPosition($position)
->setType($this->type)
->setExtra($this->extra)
->setLevel((int)$this->level)
->setLevel((int) $this->level)
->setFeedback($this->feedback)
//->setParent($exerciseEntity)
->setParent($courseEntity)

@ -506,13 +506,13 @@ class Database
* @param bool $debug
*
* @return array
*
* @todo lot of stuff to do here
* @todo known issues, it doesn't work when using LIKE conditions
*
* @example array('where'=> array('course_code LIKE "?%"'))
* @example array('where'=> array('type = ? AND category = ?' => array('setting', 'Plugins'))
* @example array('where'=> array('name = "Julio" AND lastname = "montoya"'))
*
*/
public static function select(
$columns,

@ -164,7 +164,7 @@ class HTML_Table extends HTML_Common
*/
public function __construct($attributes = null, $tabOffset = 0, $useTGroups = false)
{
parent::__construct($attributes, (int)$tabOffset);
parent::__construct($attributes, (int) $tabOffset);
$this->_useTGroups = (boolean)$useTGroups;
$this->addBody();
if ($this->_useTGroups) {

Loading…
Cancel
Save