diff --git a/core/cmdbsource.class.inc.php b/core/cmdbsource.class.inc.php index 95cf4365e..ad3ee41b4 100644 --- a/core/cmdbsource.class.inc.php +++ b/core/cmdbsource.class.inc.php @@ -359,13 +359,20 @@ class CMDBSource return $oResult; } + /** + * @param string $sTable + * + * @return int + * @throws \MySQLException + * @throws \MySQLHasGoneAwayException + */ public static function GetNextInsertId($sTable) { $sSQL = "SHOW TABLE STATUS LIKE '$sTable'"; $oResult = self::Query($sSQL); $aRow = $oResult->fetch_assoc(); - $iNextInsertId = $aRow['Auto_increment']; - return $iNextInsertId; + + return $aRow['Auto_increment']; } public static function GetInsertId() diff --git a/core/dbobjectset.class.php b/core/dbobjectset.class.php index a262611b3..e5d21df4e 100644 --- a/core/dbobjectset.class.php +++ b/core/dbobjectset.class.php @@ -170,8 +170,8 @@ class DBObjectSet implements iDBObjectSetIterator /** * Specify the subset of attributes to load (for each class of objects) before performing the SQL query for retrieving the rows from the DB - * - * @param hash $aAttToLoad Format: alias => array of attribute_codes + * + * @param array $aAttToLoad Format: alias => array of attribute_codes * * @return void */