Minor - format code

pull/2528/head
jmontoyaa 8 years ago
parent 5bebc19362
commit 0a9840ce67
  1. 1
      .php_cs.dist
  2. 6
      config/packages/sonata_block.yaml
  3. 2
      main/exercise/fill_blanks.class.php
  4. 1
      main/inc/lib/api.lib.php
  5. 4
      main/inc/lib/display.lib.php
  6. 2
      src/CoreBundle/EventListener/LegacyListener.php
  7. 3
      src/CoreBundle/EventListener/LegacyLoginListener.php
  8. 4
      src/ThemeBundle/Controller/NavbarController.php
  9. 1
      src/UserBundle/Entity/User.php

@ -82,6 +82,7 @@ $finder = PhpCsFixer\Finder::create()
->exclude('web')
->notPath('main/admin/db.php')
->notPath('public/check.php')
->notPath('main/admin/ldap_synchro.php')
->notPath('main/chat/emoji_strategy.php')
->in(__DIR__)

@ -9,9 +9,9 @@ sonata_block:
blocks:
# Chamilo blocks
# chamilo_core.block.breadcrumb: ~
# chamilo_core.block.course: ~
# chamilo_core.block.skill: ~
chamilo_core.block.breadcrumb: ~
chamilo_core.block.course: ~
chamilo_core.block.skill: ~
sonata.admin.block.stats:
contexts: [admin]
sonata.admin.block.admin_list:

@ -845,7 +845,7 @@ class FillBlanks extends Question
* -2 : didn't answer
* -1 : student answer is wrong
* 0 : student answer is correct
* >0 : for fill the blank question with choice menu, is the index of the student answer (right answer index is 0)
* >0 : choice menu, is the index of the student answer (right answer index is 0)
*
* @param int $testId
* @param int $questionId

@ -3683,6 +3683,7 @@ function api_is_anonymous($user_id = null, $db_check = false)
return true;
}
}
return !Container::getAuthorizationChecker()->isGranted('IS_AUTHENTICATED_FULLY');
}

@ -2,10 +2,8 @@
/* For licensing terms, see /license.txt */
use Chamilo\CoreBundle\Entity\ExtraField;
use ChamiloSession as Session;
use Chamilo\CoreBundle\Entity\SessionRelCourseRelUser;
use Chamilo\CoreBundle\Framework\Container;
use Chamilo\UserBundle\Entity\User;
use ChamiloSession as Session;
use Symfony\Component\HttpFoundation\Response;
/**

@ -124,7 +124,7 @@ class LegacyListener
$languageList[languageToCountryIsoCode($isoCode)] = $language;
}
$twig->addGlobal('current_locale_iso',languageToCountryIsoCode($request->getLocale()));
$twig->addGlobal('current_locale_iso', languageToCountryIsoCode($request->getLocale()));
$twig->addGlobal('available_locales', $languages);
$twig->addGlobal('show_toolbar', \Template::isToolBarDisplayedForUser() ? 1 : 0);

@ -16,7 +16,8 @@ use Symfony\Component\Security\Http\Event\InteractiveLoginEvent;
/**
* Class LegacyLoginListener.
* File not needed the real listener is LegacyListener
* File not needed the real listener is LegacyListener.
*
* @deprecated
*
* @package Chamilo\CoreBundle\EventListener

@ -9,7 +9,6 @@ use Chamilo\ThemeBundle\Event\ShowUserEvent;
use Chamilo\ThemeBundle\Event\TaskListEvent;
use Chamilo\ThemeBundle\Event\ThemeEvents;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\HttpFoundation\Response;
/**
@ -21,6 +20,7 @@ class NavbarController extends Controller
{
/**
* @deprecated
*
* @param int $max
*
* @return Response
@ -44,6 +44,7 @@ class NavbarController extends Controller
/**
* @deprecated
*
* @param int $max
*
* @return Response
@ -67,6 +68,7 @@ class NavbarController extends Controller
/**
* @deprecated
*
* @param int $max
*
* @return Response

@ -1867,5 +1867,4 @@ class User extends BaseUser implements ThemeUser, EquatableInterface //implement
return true;
}
}

Loading…
Cancel
Save