Minor - Code style

pull/2487/head
Yannick Warnier 9 years ago
parent 6bbe303a26
commit 368f9aa9a9
  1. 2
      main/exercise/question_pool.php
  2. 2
      main/gradebook/lib/scoredisplay.class.php
  3. 2
      main/inc/lib/security.lib.php
  4. 1
      main/lp/aiccResource.class.php
  5. 2
      main/lp/learnpath.class.php
  6. 2
      plugin/buycourses/src/service_process_confirm.php
  7. 1
      src/Chamilo/CourseBundle/Component/CourseCopy/CourseSelectForm.php

@ -916,7 +916,7 @@ function get_action_icon_for_question(
$url
);
break;
default :
default:
$res = $in_action;
break;
}

@ -41,7 +41,7 @@ class ScoreDisplay
} elseif (!isset($score2)) {
return -1;
} else {
$scoredisplay = ScoreDisplay::instance();
$scoredisplay = self::instance();
$custom1 = $scoredisplay->display_custom($score1);
$custom2 = $scoredisplay->display_custom($score2);
if ($custom1 == $custom2) {

@ -468,7 +468,7 @@ class Security
public static function getPasswordRequirementsToString($passedConditions = [])
{
$output = '';
$setting = Security::getPasswordRequirements();
$setting = self::getPasswordRequirements();
foreach ($setting as $type => $rules) {
foreach ($rules as $rule => $parameter) {
if (empty($parameter)) {

@ -37,6 +37,7 @@ class aiccResource
break;
case 'title':
$this->title = $value;
// no break - @todo check this, not sure the intention is to have description=title
case 'description':
$this->description = $value;
break;

@ -3582,7 +3582,7 @@ class learnpath
break;
case 4 :
break;
default :
default:
break;
}
// Replace & by & because & will break URL with params

@ -81,7 +81,6 @@ switch ($serviceSale['payment_type']) {
RedirectToPayPal($expressCheckout['TOKEN']);
break;
case BuyCoursesPlugin::PAYMENT_TYPE_TRANSFER:
$transferAccounts = $plugin->getTransferAccounts();
$form = new FormValidator('success', 'POST', api_get_self(), null, null, FormValidator::LAYOUT_INLINE);
@ -161,7 +160,6 @@ switch ($serviceSale['payment_type']) {
break;
case BuyCoursesPlugin::PAYMENT_TYPE_CULQI:
// We need to include the main online script, acording to the Culqi documentation the JS needs to be loeaded
// directly from the main url "https://integ-pago.culqi.com" because a local copy of this JS is not supported
$htmlHeadXtra[] = '<script src="//integ-pago.culqi.com/js/v1"></script>';

@ -561,6 +561,7 @@ class CourseSelectForm
}
}
}
// no break
default:
if (!empty($resources) && is_array($resources)) {
foreach ($resources as $id => $obj) {

Loading…
Cancel
Save