Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 2.024 |
Changes | 0 |
1 | <?php |
||
66 | 1 | public function __invoke() |
|
67 | { |
||
68 | 1 | $article = 'From: '.$this->from."\r\n"; |
|
69 | 1 | $article .= 'Newsgroups: '.$this->groups."\r\n"; |
|
70 | 1 | $article .= 'Subject: '.$this->subject."\r\n"; |
|
71 | 1 | $article .= "X-poster: php-nntp\r\n"; |
|
72 | 1 | if ($this->headers !== null) { |
|
73 | $article .= $this->headers."\r\n"; |
||
74 | } |
||
75 | 1 | $article .= "\r\n"; |
|
76 | 1 | $article .= $this->body; |
|
77 | |||
78 | 1 | return $article; |
|
79 | } |
||
80 | |||
90 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.