Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
150 | public static function getById($id): self |
||
151 | { |
||
152 | return self::findFirstOrFail([ |
||
153 | 'conditions' => 'webhooks_id = ?0 AND apps_id = ?1 AND companies_id = ?2', |
||
154 | 'bind' => [ |
||
155 | $id, |
||
156 | Di::getDefault()->getApp()->getId(), |
||
157 | Di::getDefault()->getUserData()->getDefaultCompany()->getId() |
||
158 | ] |
||
159 | ]); |
||
160 | } |
||
161 | } |
||
162 |
This check examines a number of code elements and verifies that they conform to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.