diff --git a/main/admin/configure_homepage.php b/main/admin/configure_homepage.php index 46dec319ab..fd6257aebd 100755 --- a/main/admin/configure_homepage.php +++ b/main/admin/configure_homepage.php @@ -1250,7 +1250,7 @@ switch ($action) { $tab_string = str_replace( ['href="'.api_get_path(WEB_PATH).'index.php?include=', ''], ['href="'.api_get_path(WEB_CODE_PATH).'admin/'.basename($selfUrl).'?action=open_link&link=', - $edit_link.$delete_link.$delete_all.''], + $edit_link.$delete_link.$delete_all.'', ], $enreg ); $tab_string = str_replace([' class="hide_menu"', ' class="show_menu"'], '', $tab_string); diff --git a/main/inc/lib/database.lib.php b/main/inc/lib/database.lib.php index 34b2ce62ec..44ba079481 100755 --- a/main/inc/lib/database.lib.php +++ b/main/inc/lib/database.lib.php @@ -21,7 +21,8 @@ class Database private static $connection; /** - * Set the DB manager instance + * Set the DB manager instance. + * * @param EntityManager $em */ public function setManager($em) @@ -30,8 +31,7 @@ class Database } /** - * Set the DB connection instance - * @param Connection $connection + * Set the DB connection instance. */ public function setConnection(Connection $connection) { @@ -39,7 +39,8 @@ class Database } /** - * Get the DB connection instance + * Get the DB connection instance. + * * @return Connection */ public function getConnection() @@ -48,7 +49,8 @@ class Database } /** - * Get the DB manager instance + * Get the DB manager instance. + * * @return EntityManager */ public static function getManager() @@ -339,7 +341,8 @@ class Database } /** - * Wrapper for rowCount() + * Wrapper for rowCount(). + * * @return int */ public static function num_rows(Statement $result) @@ -372,7 +375,8 @@ class Database } /** - * Wrapper for executeQuery() + * Wrapper for executeQuery(). + * * @param string $query * * @return Statement @@ -391,7 +395,8 @@ class Database } /** - * Deal with exceptions from the database extension + * Deal with exceptions from the database extension. + * * @param Exception $e */ public static function handleError($e) @@ -416,7 +421,8 @@ class Database } /** - * Transform an SQL option from Chamilo to PDO syntax + * Transform an SQL option from Chamilo to PDO syntax. + * * @param string $option * * @return int @@ -453,7 +459,7 @@ class Database } /** - * Build an insert query + * Build an insert query. * * @param string $table_name * @param array $attributes @@ -490,7 +496,8 @@ class Database } /** - * Build an update query + * Build an update query. + * * @param string $tableName use Database::get_main_table * @param array $attributes Values to updates * Example: $params['name'] = 'Julio'; $params['lastname'] = 'Montoya'; @@ -738,7 +745,8 @@ class Database } /** - * Build a delete query + * Build a delete query. + * * @param string $table_name * @param array $where_conditions * @param bool $show_query @@ -802,7 +810,8 @@ class Database } /** - * Check if a given table exists + * Check if a given table exists. + * * @param string $table * * @return bool @@ -813,7 +822,8 @@ class Database } /** - * List the columns of a given table + * List the columns of a given table. + * * @param string $table * * @return \Doctrine\DBAL\Schema\Column[] diff --git a/main/inc/lib/userportal.lib.php b/main/inc/lib/userportal.lib.php index 774bcaae71..d032c65edf 100755 --- a/main/inc/lib/userportal.lib.php +++ b/main/inc/lib/userportal.lib.php @@ -2287,13 +2287,15 @@ class IndexManager } /** - * Wrapper to CourseManager::returnPopularCoursesHandPicked() + * Wrapper to CourseManager::returnPopularCoursesHandPicked(). + * * @return array */ public function returnPopularCoursesHandPicked() { return CourseManager::returnPopularCoursesHandPicked(); } + /** * @param $listA * @param $listB