Minor - flint fixes, update .php_cs.dist

pull/3064/head
Julio Montoya 5 years ago
parent 305bfc301d
commit 64ddfede15
  1. 11
      .php_cs.dist
  2. 2
      main/exercise/exercise.class.php
  3. 5
      main/exercise/question.class.php

@ -37,33 +37,22 @@ $rules = [
];
$finder = PhpCsFixer\Finder::create()
->exclude('app/')
->exclude('assets')
->exclude('bin')
->exclude('documentation')
->exclude('main/auth/cas/lib')
->exclude('main/auth/shibboleth')
->exclude('main/auth/openid')
->exclude('main/fonts')
->exclude('main/inc/lib/browser')
->exclude('main/inc/lib/internationalization_database')
->exclude('main/inc/lib/javascript')
->exclude('main/inc/lib/kses-0.2.2')
->exclude('main/inc/lib/mimetex')
->exclude('main/inc/lib/nanogong')
->exclude('main/inc/lib/nusoap')
->exclude('main/inc/lib/opengraph')
->exclude('main/inc/lib/ppt2png')
->exclude('main/inc/lib/phpseclib')
->exclude('main/inc/lib/pear')
->exclude('main/inc/lib/phpseclib')
->exclude('main/inc/lib/svg-edit')
->exclude('main/inc/lib/swfobject')
->exclude('main/inc/lib/wami-recorder')
->exclude('main/inc/lib/xajax')
->exclude('main/lp/packaging')
->exclude('main/template')
->exclude('main/img')
->exclude('main/lang')
->exclude('plugin/buycourses/src/Culqi')
->exclude('plugin/buycourses/src/Requests')

@ -8335,7 +8335,7 @@ class Exercise
}
/**
* @param int $categoryId
* @param int $categoryId
* @param string $keyword
*
* @return string

@ -1729,11 +1729,8 @@ abstract class Question
/**
* Function which process the creation of questions.
*
* @param FormValidator $form
* @param Exercise $exercise
*/
public function processCreation(FormValidator $form, $exercise)
public function processCreation(FormValidator $form, Exercise $exercise)
{
$this->updateTitle($form->getSubmitValue('questionName'));
$this->updateDescription($form->getSubmitValue('questionDescription'));

Loading…
Cancel
Save