Skip to content

Commit

Permalink
Update api_categories.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
josett225 authored Jun 12, 2024
1 parent 33e6578 commit 8e1885e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions htdocs/categories/class/api_categories.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ private function _validate($data)
* Get the list of objects in a category.
*
* @param int $id ID of category
* @param string $type Type of category ('member', 'customer', 'supplier', 'product', 'contact', 'project', 'actioncomm')
* @param string $type Type of category ('member', 'customer', 'supplier', 'product', 'contact', 'project')
* @param int $onlyids Return only ids of objects (consume less memory)
*
* @return mixed
Expand Down Expand Up @@ -797,9 +797,7 @@ public function getObjects($id, $type, $onlyids = 0)
$objects_api = new Contacts();
} elseif ($type == 'project') {
$objects_api = new Projects();
} elseif ($type == 'actioncomm') {
$objects_api = new Actioncomm();
}
}

Check warning on line 800 in htdocs/categories/class/api_categories.class.php

View workflow job for this annotation

GitHub Actions / phan / Run phan

api_categories.class.php: PhanPluginWhitespaceTrailing: The first occurrence of trailing whitespace was seen here.
if (is_object($objects_api)) {
foreach ($objects as $obj) {
$cleaned_objects[] = $objects_api->_cleanObjectDatas($obj);
Expand Down

0 comments on commit 8e1885e

Please sign in to comment.