@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | /** |
| 74 | - * @return int|float |
|
| 74 | + * @return double |
|
| 75 | 75 | */ |
| 76 | 76 | public function length() |
| 77 | 77 | { |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | |
| 223 | 223 | /** |
| 224 | 224 | * @param Point|int $upTo |
| 225 | - * @param int|float $step |
|
| 225 | + * @param integer $step |
|
| 226 | 226 | * |
| 227 | 227 | * @return \Traversable |
| 228 | 228 | */ |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | |
| 242 | 242 | /** |
| 243 | 243 | * @param Point|int $upTo |
| 244 | - * @param int|float $step |
|
| 244 | + * @param integer $step |
|
| 245 | 245 | * |
| 246 | 246 | * @return \Traversable |
| 247 | 247 | */ |
@@ -1,8 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | // if library is in dev environement with its own vendor, include its autoload |
| 4 | -if(file_exists(__DIR__ . '/vendor')) |
|
| 4 | +if(file_exists(__DIR__ . '/vendor')) { |
|
| 5 | 5 | require_once __DIR__ . '/vendor/autoload.php'; |
| 6 | +} |
|
| 6 | 7 | // if library is in vendor of another project, include the global autolaod |
| 7 | -else |
|
| 8 | +else { |
|
| 8 | 9 | require_once __DIR__ . '/../../autoload.php'; |
| 10 | +} |
|
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | |
| 53 | 53 | if ($this->path->firstPoint()->getX() > $x) { |
| 54 | 54 | $containingLine = $this->path->firstLine(); |
| 55 | - } else { |
|
| 55 | + } else { |
|
| 56 | 56 | $containingLine = $this->path->lastLine(); |
| 57 | 57 | } |
| 58 | 58 | } |