Minor: Flint fixes

pull/4022/head
Angel Fernando Quiroz Campos 4 years ago
parent cff14cfbd0
commit bd8f533fa9
  1. 1
      main/gradebook/lib/GradebookUtils.php
  2. 3
      main/inc/lib/PortfolioController.php
  3. 6
      src/Chamilo/CoreBundle/Entity/PortfolioCategory.php

@ -1733,6 +1733,7 @@ class GradebookUtils
$imgSrcPdf = Display::return_icon('pdf.png', '', [], ICON_SIZE_MEDIUM, false, true); $imgSrcPdf = Display::return_icon('pdf.png', '', [], ICON_SIZE_MEDIUM, false, true);
$urlDownload = api_get_path(WEB_CODE_PATH).'gradebook/gradebook_display_certificate.php?'.api_get_cidreq().'&action=download_all_certificates&catId='.$categoryId; $urlDownload = api_get_path(WEB_CODE_PATH).'gradebook/gradebook_display_certificate.php?'.api_get_cidreq().'&action=download_all_certificates&catId='.$categoryId;
return "<script> return "<script>
$(function () { $(function () {
var \$btnExport = $('$buttonSelector'), var \$btnExport = $('$buttonSelector'),

@ -2478,6 +2478,7 @@ class PortfolioController
if (isset($parentId)) { if (isset($parentId)) {
$categoriesCriteria['parentId'] = $parentId; $categoriesCriteria['parentId'] = $parentId;
} }
return $this->em return $this->em
->getRepository(PortfolioCategory::class) ->getRepository(PortfolioCategory::class)
->findBy($categoriesCriteria); ->findBy($categoriesCriteria);
@ -2921,6 +2922,7 @@ class PortfolioController
* It parsers a title for a variable in lang. * It parsers a title for a variable in lang.
* *
* @param $defaultDisplayText * @param $defaultDisplayText
*
* @return string * @return string
*/ */
private function getLanguageVariable($defaultDisplayText) private function getLanguageVariable($defaultDisplayText)
@ -2936,6 +2938,7 @@ class PortfolioController
* It translates the text as parameter. * It translates the text as parameter.
* *
* @param $defaultDisplayText * @param $defaultDisplayText
*
* @return mixed * @return mixed
*/ */
private function translateDisplayName($defaultDisplayText) private function translateDisplayName($defaultDisplayText)

@ -217,9 +217,7 @@ class PortfolioCategory
} }
/** /**
* Set parent id * Set parent id.
*
* @param int $parentId
* *
* @return PortfolioCategory * @return PortfolioCategory
*/ */
@ -230,8 +228,6 @@ class PortfolioCategory
return $this; return $this;
} }
/** /**
* Get items. * Get items.
* *

Loading…
Cancel
Save