| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | public function setIdentifier(string $identifier) : ErrorDoc |
||
| 49 | { |
||
| 50 | // Sanitize Identifier => remove space and slashes |
||
| 51 | $this->identifier = strtr( |
||
| 52 | ucwords(strtr( |
||
| 53 | $identifier, |
||
| 54 | ['_' => ' ', '/' => ' ', '.' => '_ ', '\\' => '_ '] |
||
| 55 | )), |
||
| 56 | [' ' => ''] |
||
| 57 | ); |
||
| 58 | |||
| 59 | return $this; |
||
| 60 | } |
||
| 114 |