@@ -26,7 +26,7 @@ |
||
26 | 26 | $collection = new DepositCollection(); |
27 | 27 | $fileArray = array_slice($file->toArray(), 7); |
28 | 28 | |
29 | - array_walk($fileArray, function ($line) use (&$collection) { |
|
29 | + array_walk($fileArray, function($line) use (&$collection) { |
|
30 | 30 | if (!SantaCruzValidator::validate($line)) { |
31 | 31 | return; |
32 | 32 | } |
@@ -29,7 +29,7 @@ |
||
29 | 29 | $collection = new DepositCollection(); |
30 | 30 | $fileArray = array_slice($file->toArray(), 3); |
31 | 31 | |
32 | - array_walk($fileArray, function ($line) use (&$collection) { |
|
32 | + array_walk($fileArray, function($line) use (&$collection) { |
|
33 | 33 | if (!BHDValidator::validate($line)) { |
34 | 34 | return; |
35 | 35 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | $collection = new DepositCollection(); |
27 | 27 | $fileArray = array_slice($file->toArray(), 5); |
28 | 28 | |
29 | - array_walk($fileArray, function ($line) use (&$collection) { |
|
29 | + array_walk($fileArray, function($line) use (&$collection) { |
|
30 | 30 | if (!PopularValidator::validate($line)) { |
31 | 31 | return; |
32 | 32 | } |
@@ -29,7 +29,7 @@ |
||
29 | 29 | $collection = new DepositCollection(); |
30 | 30 | $fileArray = array_slice($file->toArray(), 1); |
31 | 31 | |
32 | - array_walk($fileArray, function ($line) use (&$collection) { |
|
32 | + array_walk($fileArray, function($line) use (&$collection) { |
|
33 | 33 | if (!ReservasValidator::validate($line)) { |
34 | 34 | return; |
35 | 35 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function __construct($items = []) |
15 | 15 | { |
16 | - array_walk($items, function ($value) { |
|
16 | + array_walk($items, function($value) { |
|
17 | 17 | if (!$value instanceof Deposit) { |
18 | 18 | throw new InvalidArgumentException('You should pass only Deposit objects to this collection.'); |
19 | 19 | } |