Fix codeclimate

pull/4677/head
Borja Sánchez 2 years ago
parent dbd590ec21
commit c1b0ad31ce
  1. 6
      public/main/gradebook/lib/fe/displaygradebook.php
  2. 2
      src/CoreBundle/Controller/CourseController.php
  3. 2
      src/CoreBundle/Migrations/Schema/V200/Version20230405123419.php

@ -282,8 +282,8 @@ class DisplayGradebook
);
}
$course_id = CourseManager::get_course_by_category($selectcat);
$message_resource = Category::show_message_resource_delete($course_id);
$courseId = CourseManager::get_course_by_category($selectcat);
$message_resource = Category::show_message_resource_delete($courseId);
$grade_model_id = $catobj->get_grade_model_id();
$header = null;
if (isset($catobj) && !empty($catobj)) {
@ -487,7 +487,7 @@ class DisplayGradebook
ICON_SIZE_MEDIUM
).'</a>';
} else {
$actionsRight .= '<a href="'.api_get_path(WEB_COURSE_PATH).$course_id.
$actionsRight .= '<a href="'.api_get_path(WEB_COURSE_PATH).$courseId.
'/tool/document?cert=1">'.
Display::return_icon(
'certificate.png',

@ -311,10 +311,10 @@ class CourseController extends ToolBaseController
);
}
#[Route('/{cid}/tool/{toolName}', name: 'chamilo_core_course_redirect_tool')]
/**
* Redirects the page to a tool, following the tools settings.
*/
#[Route('/{cid}/tool/{toolName}', name: 'chamilo_core_course_redirect_tool')]
public function redirectTool(
Request $request,
string $toolName,

@ -1,6 +1,6 @@
<?php
declare(strict_types=1);
declare (strict_types=1);
namespace Chamilo\CoreBundle\Migrations\Schema\V200;

Loading…
Cancel
Save