Minor - format code

pull/3569/head
Julio Montoya 5 years ago
parent d8fbfee8da
commit b06eacb261
  1. 2
      main/admin/user_list_consent.php
  2. 2
      main/inc/lib/AnnouncementManager.php
  3. 3
      main/inc/lib/ExerciseCategoryManager.php
  4. 1
      main/inc/lib/UnserializeApi.php
  5. 2
      main/inc/lib/course_category.lib.php
  6. 5
      main/inc/lib/display.lib.php
  7. 2
      main/inc/lib/security.lib.php
  8. 3
      main/inc/lib/template.lib.php
  9. 10
      main/inc/lib/text.lib.php
  10. 2
      main/inc/lib/usermanager.lib.php
  11. 3
      main/permissions/permissions_functions.inc.php
  12. 3
      src/Chamilo/CourseBundle/Component/CourseCopy/CourseBuilder.php

@ -268,7 +268,7 @@ function email_filter($email)
/**
* Returns a mailto-link.
*
* @param string $name An email-address
* @param string $name An email-address
* @param array $params Deprecated
* @param array $row
*

@ -411,7 +411,7 @@ class AnnouncementManager
/**
* Displays one specific announcement.
*
* @param int $id, the id of the announcement you want to display
* @param int $id the id of the announcement you want to display
*
* @return string
*/

@ -23,9 +23,6 @@ class ExerciseCategoryManager extends Model
/**
* Formats the necessary elements for the given datatype.
*
* @param string $type The type of data to which this extra field
* applies (user, course, session, ...)
*
* @assert (-1) === false
*/
public function __construct()

@ -13,7 +13,6 @@ class UnserializeApi
*
* @param string $type
* @param string $serialized
* @param bool $ignoreErrors. Optional.
*
* @return mixed
*/

@ -587,7 +587,7 @@ class CourseCategory
/**
* @param string $category_code
* @param string $searchTerm
* @param string $keyword
* @paran bool $avoidCourses
* @paran array $conditions
*

@ -321,7 +321,7 @@ class Display
* 'page_nr' = The page to display
* 'hide_navigation' = true to hide the navigation
* @param array $query_vars Additional variables to add in the query-string
* @param array $form actions Additional variables to add in the query-string
* @param array $form_actions actions Additional variables to add in the query-string
* @param mixed An array with bool values to know which columns show.
* i.e: $visibility_options= array(true, false) we will only show the first column
* Can be also only a bool value. TRUE: show all columns, FALSE: show nothing
@ -363,7 +363,6 @@ class Display
* 'page_nr' = The page to display
* 'hide_navigation' = true to hide the navigation
* @param array $query_vars Additional variables to add in the query-string
* @param array $form actions Additional variables to add in the query-string
* @param mixed An array with bool values to know which columns show. i.e:
* $visibility_options= array(true, false) we will only show the first column
* Can be also only a bool value. TRUE: show all columns, FALSE: show nothing
@ -657,8 +656,6 @@ class Display
/**
* Prints an <option>-list with all letters (A-Z).
*
* @param string $selected_letter The letter that should be selected
*
* @todo This is English language specific implementation.
* It should be adapted for the other languages.
*

@ -487,7 +487,7 @@ class Security
* this method encourages a safe practice for generating icon paths, without using heavy solutions
* based on HTMLPurifier for example.
*
* @param string $img_path the input path of the image, it could be relative or absolute URL
* @param string $image_path the input path of the image, it could be relative or absolute URL
*
* @return string returns sanitized image path or an empty string when the image path is not secure
*

@ -1333,9 +1333,6 @@ class Template
$this->responseCode = $code;
}
/**
* @param string $code
*/
public function getResponseCode()
{
return $this->responseCode;

@ -417,16 +417,6 @@ function domesticate($input)
}
/**
* function make_clickable($string).
*
* @desc Completes url contained in the text with "<a href ...".
* However the function simply returns the submitted text without any
* transformation if it already contains some "<a href:" or "<img src=".
*
* @param string $text text to be converted
*
* @return text after conversion
*
* @author Rewritten by Nathan Codding - Feb 6, 2001.
* completed by Hugues Peeters - July 22, 2002
*

@ -7050,7 +7050,7 @@ SQL;
}
/**
* @param int $userInfo
* @param int $userId
*
* @throws Exception
*/

@ -171,9 +171,6 @@ function get_permissions($content, $id)
* the array that contains the current permission a user, group or role has will now be changed depending on
* the Dokeos Config Setting for the permissions (limited [add, edit, delete] or full [view, add, edit, delete, move, visibility].
*
* @param $content are we retrieving the rights of a user, a group or a role (the database depends on it)
* @param $id the id of the user, group or role
*
* @author Patrick Cool <patrick.cool@ugent.be>, Ghent University
*
* @version 1.0

@ -705,9 +705,6 @@ class CourseBuilder
/**
* Build a link category.
*
* @param int $id Internal link ID
* @param int $courseId Internal course ID
*
* @return int
*/
public function build_link_category($category)

Loading…
Cancel
Save