| Conditions | 3 |
| Paths | 4 |
| Total Lines | 23 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 21 | public static function createEntityWithRandomData(array $params = array()) |
||
| 22 | { |
||
| 23 | $params = static::createNewRelations($params); |
||
| 24 | |||
| 25 | $withId = true; |
||
| 26 | $entityId = bin2hex(substr(uniqid(), 1)); |
||
| 27 | // define here another variables |
||
| 28 | |||
| 29 | extract($params); |
||
| 30 | |||
| 31 | $organizationEntity = new Organization(); |
||
| 32 | // here set another variables |
||
| 33 | |||
| 34 | if (!empty($organizationName)) { |
||
| 35 | $organizationEntity->setOrganizationName($organizationName); |
||
| 36 | } |
||
| 37 | |||
| 38 | if ($withId) { |
||
| 39 | $organizationEntity->setId($entityId); |
||
| 40 | } |
||
| 41 | |||
| 42 | return $organizationEntity; |
||
| 43 | } |
||
| 44 | |||
| 55 | } |
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.