Qual: Remove errors reported by PHP Code Sniffer
This commit is contained in:
parent
76a6d6a6fe
commit
bb41478886
@ -24,8 +24,8 @@
|
|||||||
/**
|
/**
|
||||||
* Add area with bookmarks in menu
|
* Add area with bookmarks in menu
|
||||||
*
|
*
|
||||||
* @param $aDb
|
* @param DoliDb $aDb Database handler
|
||||||
* @param $aLangs
|
* @param Translate $aLangs Object lang
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function printBookmarksList ($aDb, $aLangs)
|
function printBookmarksList ($aDb, $aLangs)
|
||||||
|
|||||||
@ -41,9 +41,10 @@ class Bookmark
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Manufacturer
|
* Constructor
|
||||||
* \param db Handler for Database Access
|
*
|
||||||
* \param id Bookmark Id
|
* @param DoliDB $db Handler for Database Access
|
||||||
|
* @param int $id Bookmark Id
|
||||||
*/
|
*/
|
||||||
function Bookmark($db, $id=-1)
|
function Bookmark($db, $id=-1)
|
||||||
{
|
{
|
||||||
@ -52,8 +53,10 @@ class Bookmark
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Directs the bookmark
|
* Directs the bookmark
|
||||||
* \param id Bookmark Id Loader
|
*
|
||||||
|
* @param int $id Bookmark Id Loader
|
||||||
|
* @return int <0 if KO, >0 if OK
|
||||||
*/
|
*/
|
||||||
function fetch($id)
|
function fetch($id)
|
||||||
{
|
{
|
||||||
@ -90,8 +93,9 @@ class Bookmark
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Insere bookmark en base
|
* Insert bookmark into database
|
||||||
* \return int <0 si ko, rowid du bookmark cree si ok
|
*
|
||||||
|
* @return int <0 si ko, rowid du bookmark cree si ok
|
||||||
*/
|
*/
|
||||||
function create()
|
function create()
|
||||||
{
|
{
|
||||||
@ -142,8 +146,9 @@ class Bookmark
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Update bookmark record
|
* Update bookmark record
|
||||||
* \return int <0 si ko, >0 si ok
|
*
|
||||||
|
* @return int <0 if KO, > if OK
|
||||||
*/
|
*/
|
||||||
function update()
|
function update()
|
||||||
{
|
{
|
||||||
@ -175,9 +180,10 @@ class Bookmark
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Removes the bookmark
|
* Removes the bookmark
|
||||||
* \param id Id removed bookmark
|
*
|
||||||
* \return int <0 si ko, >0 si ok
|
* @param int $id Id removed bookmark
|
||||||
|
* @return int <0 si ko, >0 si ok
|
||||||
*/
|
*/
|
||||||
function remove($id)
|
function remove($id)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user