Clean code
This commit is contained in:
parent
a105178c20
commit
d63e2e28cd
@ -112,11 +112,7 @@ class Tickets extends DolibarrApi
|
|||||||
*/
|
*/
|
||||||
public function getByRef($ref)
|
public function getByRef($ref)
|
||||||
{
|
{
|
||||||
try {
|
|
||||||
return $this->getCommon(0, '', $ref);
|
return $this->getCommon(0, '', $ref);
|
||||||
} catch (Exception $e) {
|
|
||||||
throw $e;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -27,9 +27,11 @@ exclude:
|
|||||||
- name: PhpUnusedLocalVariableInspection
|
- name: PhpUnusedLocalVariableInspection
|
||||||
- name: PhpTernaryExpressionCanBeReplacedWithConditionInspection
|
- name: PhpTernaryExpressionCanBeReplacedWithConditionInspection
|
||||||
- name: PhpSwitchStatementWitSingleBranchInspection
|
- name: PhpSwitchStatementWitSingleBranchInspection
|
||||||
|
- name: PhpLoopCanBeReplacedWithImplodeInspection
|
||||||
- name: PhpArrayAccessCanBeReplacedWithForeachValueInspection
|
- name: PhpArrayAccessCanBeReplacedWithForeachValueInspection
|
||||||
- name: PhpArrayPushWithOneElementInspection
|
- name: PhpArrayPushWithOneElementInspection
|
||||||
- name: PhpCastIsUnnecessaryInspection
|
- name: PhpCastIsUnnecessaryInspection
|
||||||
- name: PhpDeprecationInspection
|
- name: PhpDeprecationInspection
|
||||||
|
- name: PhpStatementHasEmptyBodyInspection
|
||||||
- name: PhpConditionAlreadyCheckedInspection
|
- name: PhpConditionAlreadyCheckedInspection
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user