| Conditions | 1 |
| Paths | 1 |
| Total Lines | 30 |
| Code Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | public function printData(Action $action) |
||
|
|
|||
| 12 | { |
||
| 13 | $varService = $this->getContainer()->get('vars'); |
||
| 14 | |||
| 15 | $this->getContainer()->get('logger')->addInfo('Getting report data'); |
||
| 16 | |||
| 17 | $title = [ |
||
| 18 | 'Утренний отчет'."\n", |
||
| 19 | (new \DateTime())->format('Y-m-d H:i:s') |
||
| 20 | ]; |
||
| 21 | |||
| 22 | $temp = $varService->get('inside.temperature'); |
||
| 23 | $tempInside = $varService->getExtremes($temp); |
||
| 24 | |||
| 25 | $temp = $varService->get('outside.temperature'); |
||
| 26 | $tempOutside = $varService->getExtremes($temp); |
||
| 27 | |||
| 28 | $temp = $varService->get('inside.pressure'); |
||
| 29 | $pressureInside = $varService->getExtremes($temp); |
||
| 30 | |||
| 31 | $thermal = $this->getContainer()->get('thermal'); |
||
| 32 | |||
| 33 | $thermal-> |
||
| 34 | hhr() |
||
| 35 | ->writeText($title[0]) |
||
| 36 | ->writeText($title[1]) |
||
| 37 | ->hhr() |
||
| 38 | ->writeText('Themperature') |
||
| 39 | ->hhr(); |
||
| 40 | } |
||
| 41 | } |
||
| 42 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.