@@ -61,7 +61,7 @@ |
||
61 | 61 | $imageBytes = fread($stream, $fields['rows'] * $fields['cols']); |
62 | 62 | |
63 | 63 | // Convert to float between 0 and 1 |
64 | - $images[] = array_map(function ($b) { |
|
64 | + $images[] = array_map(function($b) { |
|
65 | 65 | return $b / 255; |
66 | 66 | }, array_values(unpack('C*', (string) $imageBytes))); |
67 | 67 | } |
@@ -59,7 +59,7 @@ |
||
59 | 59 | } |
60 | 60 | |
61 | 61 | /** |
62 | - * @param object $point |
|
62 | + * @param Point $point |
|
63 | 63 | * @param mixed $data |
64 | 64 | */ |
65 | 65 | public function attach($point, $data = null): void |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function compute($value): float |
15 | 15 | { |
16 | - return exp(- $value ** 2); |
|
16 | + return exp(-$value ** 2); |
|
17 | 17 | } |
18 | 18 | |
19 | 19 | /** |