From be7b9721329d2bfaddd54eb0fadbcf760e7e2f0c Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Thu, 8 Sep 2022 17:27:04 -0500 Subject: [PATCH] Minor: Format code - refs BT#18201 --- main/inc/lib/PortfolioController.php | 7 ++----- main/inc/lib/display.lib.php | 2 +- main/inc/lib/sortable_table.class.php | 6 +++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/main/inc/lib/PortfolioController.php b/main/inc/lib/PortfolioController.php index bfb2c28750..8b12fd691f 100644 --- a/main/inc/lib/PortfolioController.php +++ b/main/inc/lib/PortfolioController.php @@ -10,9 +10,9 @@ use Chamilo\CoreBundle\Entity\Portfolio; use Chamilo\CoreBundle\Entity\PortfolioAttachment; use Chamilo\CoreBundle\Entity\PortfolioCategory; use Chamilo\CoreBundle\Entity\PortfolioComment; -use Chamilo\CoreBundle\Entity\Tag; use Chamilo\UserBundle\Entity\User; use Doctrine\ORM\Query\Expr\Join; +use Mpdf\MpdfException; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\HttpFoundation\Request as HttpRequest; @@ -2001,7 +2001,7 @@ class PortfolioController } /** - * @throws \MpdfException + * @throws MpdfException */ public function exportPdf(HttpRequest $httpRequest) { @@ -2747,9 +2747,6 @@ class PortfolioController private function createFormTagFilter(bool $listByUser = false): FormValidator { - $em = Database::getManager(); - $tagTepo = $em->getRepository(Tag::class); - $extraField = new ExtraField('portfolio'); $tagFieldInfo = $extraField->get_handler_field_info_by_tags('tags'); diff --git a/main/inc/lib/display.lib.php b/main/inc/lib/display.lib.php index 0dc47942a8..ce205340ae 100755 --- a/main/inc/lib/display.lib.php +++ b/main/inc/lib/display.lib.php @@ -2769,7 +2769,7 @@ HTML; /** * Returns the string "1 day ago" with a link showing the exact date time. * - * @param string $dateTime in UTC or a DateTime in UTC + * @param string|DateTime $dateTime in UTC or a DateTime in UTC * * @return string */ diff --git a/main/inc/lib/sortable_table.class.php b/main/inc/lib/sortable_table.class.php index 7b3545e375..7461aac868 100755 --- a/main/inc/lib/sortable_table.class.php +++ b/main/inc/lib/sortable_table.class.php @@ -1003,9 +1003,9 @@ class SortableTable extends HTML_Table * Add a filter to a column. If another filter was already defined for the * given column, it will be overwritten. * - * @param int $column The number of the column - * @param string $function The name of the filter-function. This should be a - * function wich requires 1 parameter and returns the filtered value. + * @param int $column The number of the column + * @param string|Closure $function The name of the filter-function. This should be a + * function wich requires 1 parameter and returns the filtered value. */ public function set_column_filter($column, $function) {