@@ -14,9 +14,9 @@ |
||
14 | 14 | */ |
15 | 15 | class SettingsHelper extends Helper implements SettingsHelperInterface |
16 | 16 | { |
17 | - /** |
|
18 | - * @var SettingsManager |
|
19 | - */ |
|
17 | + /** |
|
18 | + * @var SettingsManager |
|
19 | + */ |
|
20 | 20 | private $settingsManager; |
21 | 21 | |
22 | 22 | /** |
@@ -615,7 +615,7 @@ |
||
615 | 615 | return [ |
616 | 616 | '_p' => $_p, |
617 | 617 | '_s' => $_s, |
618 | - // '_u' => $user_info, |
|
618 | + // '_u' => $user_info, |
|
619 | 619 | 'template' => 'default' // @todo setup template folder in config.yml; |
620 | 620 | ]; |
621 | 621 | } |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | |
25 | 25 | private function setContainerValuesToLegacy() |
26 | 26 | { |
27 | - /** @var Connection $dbConnection */ |
|
27 | + /** @var Connection $dbConnection */ |
|
28 | 28 | $dbConnection = $this->container->get('database_connection'); |
29 | 29 | $em = $this->get('kernel')->getContainer()->get('doctrine.orm.entity_manager'); |
30 | 30 | |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | /** |
64 | 64 | * Some legacy Chamilo files still use this variables directly, |
65 | 65 | * instead of using a function. |
66 | - **/ |
|
66 | + **/ |
|
67 | 67 | $is_allowed_in_course = api_is_allowed_in_course(); |
68 | 68 | $is_courseAdmin = api_is_course_admin(); |
69 | 69 | $is_platformAdmin = api_is_platform_admin(); |
@@ -11,7 +11,7 @@ |
||
11 | 11 | |
12 | 12 | // When creating a new course this settings are added to the course |
13 | 13 | public $course_settings = array( |
14 | - array( |
|
14 | + array( |
|
15 | 15 | 'name' => 'course_block_pre_footer', |
16 | 16 | 'type' => 'textarea' |
17 | 17 | ), |
@@ -46,7 +46,7 @@ |
||
46 | 46 | */ |
47 | 47 | public function onKernelController(FilterControllerEvent $event) |
48 | 48 | { |
49 | - $request = $event->getRequest(); |
|
49 | + $request = $event->getRequest(); |
|
50 | 50 | $controller = $request->get('_controller'); |
51 | 51 | // Only process legacy listener when loading legacy controller |
52 | 52 | /*if ($controller != 'Chamilo\CoreBundle\Controller\LegacyController::classicAction') { |
@@ -72,9 +72,9 @@ discard block |
||
72 | 72 | return $this->groupManager; |
73 | 73 | } |
74 | 74 | |
75 | - /** |
|
76 | - * @inheritdoc |
|
77 | - */ |
|
75 | + /** |
|
76 | + * @inheritdoc |
|
77 | + */ |
|
78 | 78 | protected function supports($attribute, $subject) |
79 | 79 | { |
80 | 80 | $options = [ |
@@ -96,9 +96,9 @@ discard block |
||
96 | 96 | return true; |
97 | 97 | } |
98 | 98 | |
99 | - /** |
|
100 | - * @inheritdoc |
|
101 | - */ |
|
99 | + /** |
|
100 | + * @inheritdoc |
|
101 | + */ |
|
102 | 102 | protected function voteOnAttribute($attribute, $group, TokenInterface $token) |
103 | 103 | { |
104 | 104 | $user = $token->getUser(); |
@@ -132,7 +132,7 @@ |
||
132 | 132 | if ($session->hasUserInCourse($user, $course)) { |
133 | 133 | $user->addRole('ROLE_CURRENT_SESSION_COURSE_STUDENT'); |
134 | 134 | |
135 | - // Session duration per student. |
|
135 | + // Session duration per student. |
|
136 | 136 | if (!empty($session->getDuration())) { |
137 | 137 | $duration = $session->getDuration() * 24 * 60 * 60; |
138 | 138 |
@@ -186,11 +186,11 @@ discard block |
||
186 | 186 | } |
187 | 187 | |
188 | 188 | /** |
189 | - * provides a side connection to a vchamilo database |
|
190 | - * @param array $_configuration |
|
189 | + * provides a side connection to a vchamilo database |
|
190 | + * @param array $_configuration |
|
191 | 191 | * |
192 | - * @return \Doctrine\DBAL\Driver\Connection |
|
193 | - */ |
|
192 | + * @return \Doctrine\DBAL\Driver\Connection |
|
193 | + */ |
|
194 | 194 | public static function bootConnection(&$_configuration) |
195 | 195 | { |
196 | 196 | $dbParams = array( |
@@ -298,10 +298,10 @@ discard block |
||
298 | 298 | } |
299 | 299 | |
300 | 300 | /** |
301 | - * drop a vchamilo instance databases using the physical connection |
|
302 | - * @param stdClass $params |
|
303 | - * return an array of errors or false if ok |
|
304 | - */ |
|
301 | + * drop a vchamilo instance databases using the physical connection |
|
302 | + * @param stdClass $params |
|
303 | + * return an array of errors or false if ok |
|
304 | + */ |
|
305 | 305 | public static function dropDatabase($params) |
306 | 306 | { |
307 | 307 | $params = clone $params; |
@@ -376,10 +376,10 @@ discard block |
||
376 | 376 | } |
377 | 377 | |
378 | 378 | /** |
379 | - * get a proper SQLdump command |
|
380 | - * @param object $vchamilodata the complete new host information |
|
381 | - * @return string the shell command |
|
382 | - */ |
|
379 | + * get a proper SQLdump command |
|
380 | + * @param object $vchamilodata the complete new host information |
|
381 | + * @return string the shell command |
|
382 | + */ |
|
383 | 383 | public static function getDatabaseDumpCmd($vchamilodata) |
384 | 384 | { |
385 | 385 | $pgm = self::getConfig('vchamilo', 'mysql_cmd'); |
@@ -536,8 +536,8 @@ discard block |
||
536 | 536 | } |
537 | 537 | |
538 | 538 | /** |
539 | - * read manifest values in vchamilo template. |
|
540 | - */ |
|
539 | + * read manifest values in vchamilo template. |
|
540 | + */ |
|
541 | 541 | public static function getVmanifest($version) |
542 | 542 | { |
543 | 543 | $templatewwwroot = ''; |
@@ -558,8 +558,8 @@ discard block |
||
558 | 558 | } |
559 | 559 | |
560 | 560 | /** |
561 | - * make a fake vchamilo that represents the current host |
|
562 | - */ |
|
561 | + * make a fake vchamilo that represents the current host |
|
562 | + */ |
|
563 | 563 | public static function makeThis() |
564 | 564 | { |
565 | 565 | global $_configuration; |
@@ -623,10 +623,10 @@ discard block |
||
623 | 623 | } |
624 | 624 | |
625 | 625 | /** |
626 | - * this function set will map standard moodle API calls to chamilo |
|
627 | - * internal primitives. This avoids too many changes to do in imported |
|
628 | - * code |
|
629 | - */ |
|
626 | + * this function set will map standard moodle API calls to chamilo |
|
627 | + * internal primitives. This avoids too many changes to do in imported |
|
628 | + * code |
|
629 | + */ |
|
630 | 630 | public static function getConfig($module, $key, $isplugin = true) |
631 | 631 | { |
632 | 632 | if ($isplugin) { |
@@ -7,7 +7,6 @@ |
||
7 | 7 | * @author Sebastien Piraux |
8 | 8 | * |
9 | 9 | * @package chamilo.tracking |
10 | - |
|
11 | 10 | */ |
12 | 11 | /** |
13 | 12 | * Code |