| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | 1 | public function configure() |
|
| 22 | { |
||
| 23 | 1 | $handler = new NativeMailerHandler( |
|
| 24 | 1 | explode(',', $this->getConfig()->get('mail_support')), |
|
| 25 | 1 | '[Erreur] ' . $this->getProjectVersion()->name(), |
|
| 26 | 1 | $this->getConfig()->get('mail_robot'), |
|
|
|
|||
| 27 | 1 | Logger::CRITICAL |
|
| 28 | ); |
||
| 29 | 1 | $handler->setFormatter(new HtmlFormatter()); |
|
| 30 | |||
| 31 | 1 | $this->getLogger() |
|
| 32 | 1 | ->pushProcessor(new IntrospectionProcessor()) |
|
| 33 | 1 | ->pushProcessor(new WebProcessor()) |
|
| 34 | 1 | ->pushHandler($handler); |
|
| 35 | 1 | return $this; |
|
| 36 | } |
||
| 37 | |||
| 59 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.