| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | 2 | public function createFromRequest(Request $request) |
|
| 32 | { |
||
| 33 | 2 | $notFound = new $this->class( |
|
| 34 | 2 | $request->getPathInfo(), |
|
| 35 | 2 | $request->getUri(), |
|
| 36 | 2 | $request->server->get('HTTP_REFERER') |
|
| 37 | ); |
||
| 38 | |||
| 39 | 2 | $this->om->persist($notFound); |
|
| 40 | 2 | $this->om->flush(); |
|
| 41 | |||
| 42 | 2 | return $notFound; |
|
| 43 | } |
||
| 44 | |||
| 59 |