| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function __construct($gender = null) |
||
| 19 | { |
||
| 20 | $people = Dictionary::create()->people; |
||
| 21 | $gender = new Gender($gender); |
||
| 22 | $firstName = $this->sampleFirstName($people->first_name->{$gender}); |
||
| 23 | $lastName = $this->sampleLastName($people->last_name); |
||
| 24 | |||
| 25 | $this->gender = $gender; |
||
| 26 | $this->firstName = $firstName; |
||
| 27 | $this->lastName = $lastName; |
||
| 28 | $this->kanji = "{$lastName->kanji} {$firstName->kanji}"; |
||
| 29 | $this->hiragana = "{$lastName->hiragana} {$firstName->hiragana}"; |
||
| 30 | $this->katakana = "{$lastName->katakana} {$firstName->katakana}"; |
||
| 31 | } |
||
| 32 | |||
| 57 |
This check marks private properties in classes that are never used. Those properties can be removed.