@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | } |
| 139 | 139 | |
| 140 | 140 | /** |
| 141 | - * @return mixed |
|
| 141 | + * @return string |
|
| 142 | 142 | */ |
| 143 | 143 | public function getName() |
| 144 | 144 | { |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | } |
| 157 | 157 | |
| 158 | 158 | /** |
| 159 | - * @return mixed |
|
| 159 | + * @return string |
|
| 160 | 160 | */ |
| 161 | 161 | public function getAlias() |
| 162 | 162 | { |
@@ -3,8 +3,6 @@ |
||
| 3 | 3 | namespace AppBundle\Action\Executor; |
| 4 | 4 | |
| 5 | 5 | use AppBundle\Entity\Action; |
| 6 | -use AppBundle\Entity\VarHook; |
|
| 7 | -use AppBundle\Entity\Variable; |
|
| 8 | 6 | |
| 9 | 7 | class Moisture extends BaseExecutor implements ExecutorInterface |
| 10 | 8 | { |
@@ -3,8 +3,6 @@ |
||
| 3 | 3 | namespace AppBundle\Action\Executor; |
| 4 | 4 | |
| 5 | 5 | use AppBundle\Entity\Action; |
| 6 | -use AppBundle\Entity\VarHook; |
|
| 7 | -use AppBundle\Entity\Variable; |
|
| 8 | 6 | |
| 9 | 7 | class DayReport extends BaseExecutor implements ExecutorInterface |
| 10 | 8 | { |
@@ -31,6 +31,9 @@ |
||
| 31 | 31 | return $this; |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | + /** |
|
| 35 | + * @param string $string |
|
| 36 | + */ |
|
| 34 | 37 | public function writeString($string) |
| 35 | 38 | { |
| 36 | 39 | fwrite($this->fp, wordwrap(iconv('UTF-8', 'cp1251', $string), 32)); |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | public function inv() |
| 57 | 57 | { |
| 58 | 58 | $this->isInverse = !$this->isInverse; |
| 59 | - fwrite($this->fp, chr(29).chr(66).chr($this->isInverse?1:0)); |
|
| 59 | + fwrite($this->fp, chr(29).chr(66).chr($this->isInverse ? 1 : 0)); |
|
| 60 | 60 | return $this; |
| 61 | 61 | } |
| 62 | 62 | |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | |
| 36 | 36 | $list = []; |
| 37 | 37 | /** |
| 38 | - * @var Widget $widget |
|
| 38 | + * @var Widget $widget |
|
| 39 | 39 | */ |
| 40 | 40 | foreach ($widgets as $widget) { |
| 41 | 41 | $list[$widget->getId()] = [ |
@@ -190,7 +190,7 @@ |
||
| 190 | 190 | public function getExtremes(Variable $variable) |
| 191 | 191 | { |
| 192 | 192 | /** |
| 193 | - * @var EntityManager $em |
|
| 193 | + * @var EntityManager $em |
|
| 194 | 194 | */ |
| 195 | 195 | $em = $this->getDoctrine()->getManager(); |
| 196 | 196 | |