Skip to content
Permalink
Browse files

PHPdoc fixes

Issue #25043
  • Loading branch information...
atrol committed Nov 7, 2018
1 parent 3250e83 commit 3b24e53980474d474c6c2e81a29efcad64987add
Showing with 8 additions and 5 deletions.
  1. +2 −1 api/soap/mc_api.php
  2. +3 −2 core/classes/DbQuery.class.php
  3. +1 −1 core/file_api.php
  4. +1 −1 core/history_api.php
  5. +1 −0 core/tag_api.php
@@ -285,6 +285,7 @@ static function faultFromException( Exception $p_exception ) {
/**
* Convert a soap object to an array
* @param stdClass|array $p_object Object.
* @param boolean $p_recursive
* @return array
*/
static function objectToArray( $p_object, $p_recursive = false ) {
@@ -354,7 +355,7 @@ static function isFault( $p_maybe_fault ) {
*
* @param mixed $p_maybe_fault Object to check whether it is a SOAP/REST fault.
* @return void
* @throws LogacyApiFaultException
* @throws LegacyApiFaultException
*/
static function throwIfFault( $p_maybe_fault ) {
if( ApiObjectFactory::isFault( $p_maybe_fault ) ) {
@@ -878,11 +878,12 @@ public function field( $p_index_or_name = 0) {
* Creates a string construction for a case-insensitive LIKE expression
* This is an alias for sql_like() with the force_ci parameter set to true.
* @param string $p_alias A valid sql column identifier
* @param string $p_pattern Pattern string
* @param string $p_escape Escape character
* @return string Constructed string to be added to query
*/
public function sql_ilike( $p_alias, $p_value, $p_escape = null ) {
return $this->sql_like( $p_alias, $p_value, $p_escape, true );
public function sql_ilike( $p_alias, $p_pattern, $p_escape = null ) {
return $this->sql_like( $p_alias, $p_pattern, $p_escape, true );
}
/**
@@ -1027,7 +1027,7 @@ function file_get_mime_type( $p_file_path ) {
/**
* Get mime type for the specified content.
*
* @param string $p_file_path The file path.
* @param string $p_content The content.
* @return boolean|string The mime type or false on failure.
*/
function file_get_mime_type_for_content( $p_content ) {
@@ -207,7 +207,7 @@ function history_count_user_recent_events( $p_duration_in_seconds, $p_user_id =
* Any option can be omitted.
*
* @param array $p_query_options Array of query options
* @return database result to pass into history_get_event_from_row().
* @return IteratorAggregate|boolean database result to pass into history_get_event_from_row().
*/
function history_query_result( array $p_query_options ) {
# check query order by
@@ -482,6 +482,7 @@ function tag_get( $p_tag_id ) {
/**
* Get tag name by id.
* @param integer $p_tag_id The tag ID to retrieve from the database.
* @return string tag name or empty string if not found.
*/
function tag_get_name( $p_tag_id ) {

0 comments on commit 3b24e53

Please sign in to comment.
You can’t perform that action at this time.