@@ -13,7 +13,7 @@ |
||
| 13 | 13 | { |
| 14 | 14 | /** |
| 15 | 15 | * @param VOFloat $voFloat |
| 16 | - * @return mixed |
|
| 16 | + * @return VOFloat\Mixin |
|
| 17 | 17 | */ |
| 18 | 18 | public static function fromVOFloat(VOFloat $voFloat); |
| 19 | 19 | |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php namespace BestServedCold\PhalueObjects; |
| 2 | 2 | |
| 3 | -use BestServedCold\PhalueObjects\Format\String\Json; |
|
| 4 | -use BestServedCold\PhalueObjects\Format\String\Xml; |
|
| 3 | +use BestServedCold\PhalueObjects\Format\String\Json; |
|
| 4 | +use BestServedCold\PhalueObjects\Format\String\Xml; |
|
| 5 | 5 | use BestServedCold\PhalueObjects\Format\String\Yaml; |
| 6 | 6 | |
| 7 | 7 | /** |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace BestServedCold\PhalueObjects\Format\String; |
| 4 | 4 | |
| 5 | -use BestServedCold\PhalueObjects\VOString; |
|
| 6 | 5 | use BestServedCold\PhalueObjects\VOArray\Mixin; |
| 6 | +use BestServedCold\PhalueObjects\VOString; |
|
| 7 | 7 | |
| 8 | 8 | /** |
| 9 | 9 | * Class AbstractString |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | /** |
| 103 | - * @return static |
|
| 103 | + * @return Json |
|
| 104 | 104 | */ |
| 105 | 105 | public function toVOJson() |
| 106 | 106 | { |
@@ -41,10 +41,10 @@ |
||
| 41 | 41 | public function getDepth() |
| 42 | 42 | { |
| 43 | 43 | $max = 0; |
| 44 | - $depth = function (&$max) { |
|
| 45 | - return function ($line) use (&$max) { |
|
| 44 | + $depth = function(&$max) { |
|
| 45 | + return function($line) use (&$max) { |
|
| 46 | 46 | // every line-indent equals 4 spaces |
| 47 | - $max = max([$max, (strlen($line) - strlen(ltrim($line))) / 4]); |
|
| 47 | + $max = max([ $max, (strlen($line) - strlen(ltrim($line))) / 4 ]); |
|
| 48 | 48 | }; |
| 49 | 49 | }; |
| 50 | 50 | |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | */ |
| 70 | 70 | private function iterateCallback($delimiter, $enclosure, $escape) |
| 71 | 71 | { |
| 72 | - return function ($row) use ($delimiter, $enclosure, $escape) { |
|
| 72 | + return function($row) use ($delimiter, $enclosure, $escape) { |
|
| 73 | 73 | return Csv::fromString($row)->toArray($delimiter, $enclosure, $escape); |
| 74 | 74 | }; |
| 75 | 75 | } |