Clean code

This commit is contained in:
Laurent Destailleur 2022-12-28 05:12:03 +01:00
parent a105178c20
commit d63e2e28cd
2 changed files with 3 additions and 5 deletions

View File

@ -112,11 +112,7 @@ class Tickets extends DolibarrApi
*/
public function getByRef($ref)
{
try {
return $this->getCommon(0, '', $ref);
} catch (Exception $e) {
throw $e;
}
return $this->getCommon(0, '', $ref);
}
/**

View File

@ -27,9 +27,11 @@ exclude:
- name: PhpUnusedLocalVariableInspection
- name: PhpTernaryExpressionCanBeReplacedWithConditionInspection
- name: PhpSwitchStatementWitSingleBranchInspection
- name: PhpLoopCanBeReplacedWithImplodeInspection
- name: PhpArrayAccessCanBeReplacedWithForeachValueInspection
- name: PhpArrayPushWithOneElementInspection
- name: PhpCastIsUnnecessaryInspection
- name: PhpDeprecationInspection
- name: PhpStatementHasEmptyBodyInspection
- name: PhpConditionAlreadyCheckedInspection