@@ -1,15 +1,15 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * This file is part of graze/data-flow |
|
4 | - * |
|
5 | - * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
6 | - * |
|
7 | - * For the full copyright and license information, please view the LICENSE |
|
8 | - * file that was distributed with this source code. |
|
9 | - * |
|
10 | - * @license https://github.com/graze/data-flow/blob/master/LICENSE.md |
|
11 | - * @link https://github.com/graze/data-flow |
|
12 | - */ //partial |
|
3 | + * This file is part of graze/data-flow |
|
4 | + * |
|
5 | + * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
6 | + * |
|
7 | + * For the full copyright and license information, please view the LICENSE |
|
8 | + * file that was distributed with this source code. |
|
9 | + * |
|
10 | + * @license https://github.com/graze/data-flow/blob/master/LICENSE.md |
|
11 | + * @link https://github.com/graze/data-flow |
|
12 | + */ //partial |
|
13 | 13 | |
14 | 14 | namespace Graze\DataFlow\Flow; |
15 | 15 |
@@ -28,7 +28,7 @@ |
||
28 | 28 | /** |
29 | 29 | * FlowCollection constructor. |
30 | 30 | * |
31 | - * @param FlowInterface[] $flows |
|
31 | + * @param \Mockery\MockInterface $flows |
|
32 | 32 | */ |
33 | 33 | public function __construct(...$flows) |
34 | 34 | { |
@@ -1,15 +1,15 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * This file is part of graze/data-flow |
|
4 | - * |
|
5 | - * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
6 | - * |
|
7 | - * For the full copyright and license information, please view the LICENSE |
|
8 | - * file that was distributed with this source code. |
|
9 | - * |
|
10 | - * @license https://github.com/graze/data-flow/blob/master/LICENSE.md |
|
11 | - * @link https://github.com/graze/data-flow |
|
12 | - */ |
|
3 | + * This file is part of graze/data-flow |
|
4 | + * |
|
5 | + * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
6 | + * |
|
7 | + * For the full copyright and license information, please view the LICENSE |
|
8 | + * file that was distributed with this source code. |
|
9 | + * |
|
10 | + * @license https://github.com/graze/data-flow/blob/master/LICENSE.md |
|
11 | + * @link https://github.com/graze/data-flow |
|
12 | + */ |
|
13 | 13 | |
14 | 14 | namespace Graze\DataFlow; |
15 | 15 |
@@ -54,7 +54,7 @@ |
||
54 | 54 | /** |
55 | 55 | * Delete the folder and all files/folders within it |
56 | 56 | * |
57 | - * @param $path |
|
57 | + * @param string $path |
|
58 | 58 | * |
59 | 59 | * @return bool |
60 | 60 | */ |
@@ -1,15 +1,15 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * This file is part of graze/data-flow |
|
4 | - * |
|
5 | - * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
6 | - * |
|
7 | - * For the full copyright and license information, please view the LICENSE |
|
8 | - * file that was distributed with this source code. |
|
9 | - * |
|
10 | - * @license https://github.com/graze/data-flow/blob/master/LICENSE.md |
|
11 | - * @link https://github.com/graze/data-flow |
|
12 | - */ |
|
3 | + * This file is part of graze/data-flow |
|
4 | + * |
|
5 | + * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
6 | + * |
|
7 | + * For the full copyright and license information, please view the LICENSE |
|
8 | + * file that was distributed with this source code. |
|
9 | + * |
|
10 | + * @license https://github.com/graze/data-flow/blob/master/LICENSE.md |
|
11 | + * @link https://github.com/graze/data-flow |
|
12 | + */ |
|
13 | 13 | |
14 | 14 | namespace Graze\DataFlow; |
15 | 15 |
@@ -14,8 +14,8 @@ |
||
14 | 14 | namespace Graze\DataFlow\Unit\Test\Flow; |
15 | 15 | |
16 | 16 | use Graze\DataFlow\Flow; |
17 | -use Graze\DataFlow\Flow\Callback; |
|
18 | 17 | use Graze\DataFlow\FlowInterface; |
18 | +use Graze\DataFlow\Flow\Callback; |
|
19 | 19 | use Graze\DataFlow\Test\TestCase; |
20 | 20 | use Graze\DataNode\NodeInterface; |
21 | 21 | use Mockery as m; |
@@ -1,15 +1,15 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * This file is part of graze/data-flow |
|
4 | - * |
|
5 | - * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
6 | - * |
|
7 | - * For the full copyright and license information, please view the LICENSE |
|
8 | - * file that was distributed with this source code. |
|
9 | - * |
|
10 | - * @license https://github.com/graze/data-flow/blob/master/LICENSE.md |
|
11 | - * @link https://github.com/graze/data-flow |
|
12 | - */ |
|
3 | + * This file is part of graze/data-flow |
|
4 | + * |
|
5 | + * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
6 | + * |
|
7 | + * For the full copyright and license information, please view the LICENSE |
|
8 | + * file that was distributed with this source code. |
|
9 | + * |
|
10 | + * @license https://github.com/graze/data-flow/blob/master/LICENSE.md |
|
11 | + * @link https://github.com/graze/data-flow |
|
12 | + */ |
|
13 | 13 | |
14 | 14 | namespace Graze\DataFlow; |
15 | 15 |
@@ -14,8 +14,8 @@ |
||
14 | 14 | namespace Graze\DataFlow\Test\Unit\Flow\Collection; |
15 | 15 | |
16 | 16 | use Graze\DataFlow\Flow; |
17 | -use Graze\DataFlow\Flow\Collection\Each; |
|
18 | 17 | use Graze\DataFlow\FlowInterface; |
18 | +use Graze\DataFlow\Flow\Collection\Each; |
|
19 | 19 | use Graze\DataFlow\Test\TestCase; |
20 | 20 | use Graze\DataNode\NodeCollection; |
21 | 21 | use Graze\DataNode\NodeCollectionInterface; |
@@ -1,15 +1,15 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * This file is part of graze/data-flow |
|
4 | - * |
|
5 | - * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
6 | - * |
|
7 | - * For the full copyright and license information, please view the LICENSE |
|
8 | - * file that was distributed with this source code. |
|
9 | - * |
|
10 | - * @license https://github.com/graze/data-flow/blob/master/LICENSE.md |
|
11 | - * @link https://github.com/graze/data-flow |
|
12 | - */ |
|
3 | + * This file is part of graze/data-flow |
|
4 | + * |
|
5 | + * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
6 | + * |
|
7 | + * For the full copyright and license information, please view the LICENSE |
|
8 | + * file that was distributed with this source code. |
|
9 | + * |
|
10 | + * @license https://github.com/graze/data-flow/blob/master/LICENSE.md |
|
11 | + * @link https://github.com/graze/data-flow |
|
12 | + */ |
|
13 | 13 | |
14 | 14 | namespace Graze\DataFlow\Test\Unit\Flow\Collection; |
15 | 15 | |
@@ -53,8 +53,8 @@ discard block |
||
53 | 53 | $collection = new NodeCollection([$node]); |
54 | 54 | |
55 | 55 | $eachFlow->shouldReceive('flow') |
56 | - ->with($node) |
|
57 | - ->andReturn($node); |
|
56 | + ->with($node) |
|
57 | + ->andReturn($node); |
|
58 | 58 | |
59 | 59 | $response = $flow->flow($collection); |
60 | 60 | |
@@ -72,8 +72,8 @@ discard block |
||
72 | 72 | $collection = new NodeCollection([$node]); |
73 | 73 | |
74 | 74 | $eachFlow->shouldReceive('flow') |
75 | - ->with($node) |
|
76 | - ->andReturn($node); |
|
75 | + ->with($node) |
|
76 | + ->andReturn($node); |
|
77 | 77 | |
78 | 78 | $response = $flow->flow($collection); |
79 | 79 | |
@@ -91,8 +91,8 @@ discard block |
||
91 | 91 | $collection = new NodeCollection([$node]); |
92 | 92 | |
93 | 93 | $eachFlow->shouldReceive('flow') |
94 | - ->with($node) |
|
95 | - ->andReturn($node); |
|
94 | + ->with($node) |
|
95 | + ->andReturn($node); |
|
96 | 96 | |
97 | 97 | $response = call_user_func($flow, $collection); |
98 | 98 |
@@ -14,8 +14,8 @@ |
||
14 | 14 | namespace Graze\DataFlow\Test\Unit\Flow\Collection; |
15 | 15 | |
16 | 16 | use Graze\DataFlow\Flow; |
17 | -use Graze\DataFlow\Flow\Collection\Filter; |
|
18 | 17 | use Graze\DataFlow\FlowInterface; |
18 | +use Graze\DataFlow\Flow\Collection\Filter; |
|
19 | 19 | use Graze\DataFlow\Test\TestCase; |
20 | 20 | use Graze\DataNode\NodeCollectionInterface; |
21 | 21 | use Graze\DataNode\NodeInterface; |
@@ -1,15 +1,15 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * This file is part of graze/data-flow |
|
4 | - * |
|
5 | - * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
6 | - * |
|
7 | - * For the full copyright and license information, please view the LICENSE |
|
8 | - * file that was distributed with this source code. |
|
9 | - * |
|
10 | - * @license https://github.com/graze/data-flow/blob/master/LICENSE.md |
|
11 | - * @link https://github.com/graze/data-flow |
|
12 | - */ |
|
3 | + * This file is part of graze/data-flow |
|
4 | + * |
|
5 | + * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
6 | + * |
|
7 | + * For the full copyright and license information, please view the LICENSE |
|
8 | + * file that was distributed with this source code. |
|
9 | + * |
|
10 | + * @license https://github.com/graze/data-flow/blob/master/LICENSE.md |
|
11 | + * @link https://github.com/graze/data-flow |
|
12 | + */ |
|
13 | 13 | |
14 | 14 | namespace Graze\DataFlow\Test\Unit\Flow\Collection; |
15 | 15 | |
@@ -54,8 +54,8 @@ discard block |
||
54 | 54 | |
55 | 55 | $node = m::mock(NodeCollectionInterface::class); |
56 | 56 | $node->shouldReceive('last') |
57 | - ->with($func) |
|
58 | - ->andReturn($node); |
|
57 | + ->with($func) |
|
58 | + ->andReturn($node); |
|
59 | 59 | |
60 | 60 | $response = $flow->flow($node); |
61 | 61 | |
@@ -72,8 +72,8 @@ discard block |
||
72 | 72 | |
73 | 73 | $node = m::mock(NodeCollectionInterface::class); |
74 | 74 | $node->shouldReceive('last') |
75 | - ->with($func) |
|
76 | - ->andReturn($node); |
|
75 | + ->with($func) |
|
76 | + ->andReturn($node); |
|
77 | 77 | |
78 | 78 | $response = $flow->flow($node); |
79 | 79 | |
@@ -90,8 +90,8 @@ discard block |
||
90 | 90 | |
91 | 91 | $node = m::mock(NodeCollectionInterface::class); |
92 | 92 | $node->shouldReceive('last') |
93 | - ->with($func) |
|
94 | - ->andReturn($node); |
|
93 | + ->with($func) |
|
94 | + ->andReturn($node); |
|
95 | 95 | |
96 | 96 | $response = call_user_func($flow, $node); |
97 | 97 |
@@ -14,8 +14,8 @@ |
||
14 | 14 | namespace Graze\DataFlow\Test\Unit\Flow\Collection; |
15 | 15 | |
16 | 16 | use Graze\DataFlow\Flow; |
17 | -use Graze\DataFlow\Flow\Collection\First; |
|
18 | 17 | use Graze\DataFlow\FlowInterface; |
18 | +use Graze\DataFlow\Flow\Collection\First; |
|
19 | 19 | use Graze\DataFlow\Test\TestCase; |
20 | 20 | use Graze\DataNode\NodeCollectionInterface; |
21 | 21 | use Graze\DataNode\NodeInterface; |
@@ -1,15 +1,15 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * This file is part of graze/data-flow |
|
4 | - * |
|
5 | - * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
6 | - * |
|
7 | - * For the full copyright and license information, please view the LICENSE |
|
8 | - * file that was distributed with this source code. |
|
9 | - * |
|
10 | - * @license https://github.com/graze/data-flow/blob/master/LICENSE.md |
|
11 | - * @link https://github.com/graze/data-flow |
|
12 | - */ |
|
3 | + * This file is part of graze/data-flow |
|
4 | + * |
|
5 | + * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
6 | + * |
|
7 | + * For the full copyright and license information, please view the LICENSE |
|
8 | + * file that was distributed with this source code. |
|
9 | + * |
|
10 | + * @license https://github.com/graze/data-flow/blob/master/LICENSE.md |
|
11 | + * @link https://github.com/graze/data-flow |
|
12 | + */ |
|
13 | 13 | |
14 | 14 | namespace Graze\DataFlow\Test\Unit\Flow\Collection; |
15 | 15 | |
@@ -54,8 +54,8 @@ discard block |
||
54 | 54 | |
55 | 55 | $node = m::mock(NodeCollectionInterface::class); |
56 | 56 | $node->shouldReceive('last') |
57 | - ->with($func) |
|
58 | - ->andReturn($node); |
|
57 | + ->with($func) |
|
58 | + ->andReturn($node); |
|
59 | 59 | |
60 | 60 | $response = $flow->flow($node); |
61 | 61 | |
@@ -72,8 +72,8 @@ discard block |
||
72 | 72 | |
73 | 73 | $node = m::mock(NodeCollectionInterface::class); |
74 | 74 | $node->shouldReceive('last') |
75 | - ->with($func) |
|
76 | - ->andReturn($node); |
|
75 | + ->with($func) |
|
76 | + ->andReturn($node); |
|
77 | 77 | |
78 | 78 | $response = $flow->flow($node); |
79 | 79 | |
@@ -90,8 +90,8 @@ discard block |
||
90 | 90 | |
91 | 91 | $node = m::mock(NodeCollectionInterface::class); |
92 | 92 | $node->shouldReceive('last') |
93 | - ->with($func) |
|
94 | - ->andReturn($node); |
|
93 | + ->with($func) |
|
94 | + ->andReturn($node); |
|
95 | 95 | |
96 | 96 | $response = call_user_func($flow, $node); |
97 | 97 |
@@ -14,8 +14,8 @@ |
||
14 | 14 | namespace Graze\DataFlow\Test\Unit\Flow\Collection; |
15 | 15 | |
16 | 16 | use Graze\DataFlow\Flow; |
17 | -use Graze\DataFlow\Flow\Collection\Last; |
|
18 | 17 | use Graze\DataFlow\FlowInterface; |
18 | +use Graze\DataFlow\Flow\Collection\Last; |
|
19 | 19 | use Graze\DataFlow\Test\TestCase; |
20 | 20 | use Graze\DataNode\NodeCollectionInterface; |
21 | 21 | use Graze\DataNode\NodeInterface; |
@@ -1,15 +1,15 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * This file is part of graze/data-flow |
|
4 | - * |
|
5 | - * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
6 | - * |
|
7 | - * For the full copyright and license information, please view the LICENSE |
|
8 | - * file that was distributed with this source code. |
|
9 | - * |
|
10 | - * @license https://github.com/graze/data-flow/blob/master/LICENSE.md |
|
11 | - * @link https://github.com/graze/data-flow |
|
12 | - */ |
|
3 | + * This file is part of graze/data-flow |
|
4 | + * |
|
5 | + * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
6 | + * |
|
7 | + * For the full copyright and license information, please view the LICENSE |
|
8 | + * file that was distributed with this source code. |
|
9 | + * |
|
10 | + * @license https://github.com/graze/data-flow/blob/master/LICENSE.md |
|
11 | + * @link https://github.com/graze/data-flow |
|
12 | + */ |
|
13 | 13 | |
14 | 14 | namespace Graze\DataFlow\Test\Unit\Flow\Collection; |
15 | 15 | |
@@ -54,8 +54,8 @@ discard block |
||
54 | 54 | |
55 | 55 | $node = m::mock(NodeCollectionInterface::class); |
56 | 56 | $node->shouldReceive('last') |
57 | - ->with($func) |
|
58 | - ->andReturn($node); |
|
57 | + ->with($func) |
|
58 | + ->andReturn($node); |
|
59 | 59 | |
60 | 60 | $response = $flow->flow($node); |
61 | 61 | |
@@ -72,8 +72,8 @@ discard block |
||
72 | 72 | |
73 | 73 | $node = m::mock(NodeCollectionInterface::class); |
74 | 74 | $node->shouldReceive('last') |
75 | - ->with($func) |
|
76 | - ->andReturn($node); |
|
75 | + ->with($func) |
|
76 | + ->andReturn($node); |
|
77 | 77 | |
78 | 78 | $response = $flow->flow($node); |
79 | 79 | |
@@ -90,8 +90,8 @@ discard block |
||
90 | 90 | |
91 | 91 | $node = m::mock(NodeCollectionInterface::class); |
92 | 92 | $node->shouldReceive('last') |
93 | - ->with($func) |
|
94 | - ->andReturn($node); |
|
93 | + ->with($func) |
|
94 | + ->andReturn($node); |
|
95 | 95 | |
96 | 96 | $response = call_user_func($flow, $node); |
97 | 97 |
@@ -14,8 +14,8 @@ |
||
14 | 14 | namespace Graze\DataFlow\Test\Unit\Flow\Collection; |
15 | 15 | |
16 | 16 | use Graze\DataFlow\Flow; |
17 | -use Graze\DataFlow\Flow\Collection\Map; |
|
18 | 17 | use Graze\DataFlow\FlowInterface; |
18 | +use Graze\DataFlow\Flow\Collection\Map; |
|
19 | 19 | use Graze\DataFlow\Test\TestCase; |
20 | 20 | use Graze\DataNode\NodeCollectionInterface; |
21 | 21 | use Graze\DataNode\NodeInterface; |
@@ -1,15 +1,15 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * This file is part of graze/data-flow |
|
4 | - * |
|
5 | - * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
6 | - * |
|
7 | - * For the full copyright and license information, please view the LICENSE |
|
8 | - * file that was distributed with this source code. |
|
9 | - * |
|
10 | - * @license https://github.com/graze/data-flow/blob/master/LICENSE.md |
|
11 | - * @link https://github.com/graze/data-flow |
|
12 | - */ |
|
3 | + * This file is part of graze/data-flow |
|
4 | + * |
|
5 | + * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
6 | + * |
|
7 | + * For the full copyright and license information, please view the LICENSE |
|
8 | + * file that was distributed with this source code. |
|
9 | + * |
|
10 | + * @license https://github.com/graze/data-flow/blob/master/LICENSE.md |
|
11 | + * @link https://github.com/graze/data-flow |
|
12 | + */ |
|
13 | 13 | |
14 | 14 | namespace Graze\DataFlow\Test\Unit\Flow\Collection; |
15 | 15 | |
@@ -54,8 +54,8 @@ discard block |
||
54 | 54 | |
55 | 55 | $node = m::mock(NodeCollectionInterface::class); |
56 | 56 | $node->shouldReceive('map') |
57 | - ->with($func) |
|
58 | - ->andReturn([]); |
|
57 | + ->with($func) |
|
58 | + ->andReturn([]); |
|
59 | 59 | |
60 | 60 | $response = $flow->flow($node); |
61 | 61 | |
@@ -73,8 +73,8 @@ discard block |
||
73 | 73 | |
74 | 74 | $node = m::mock(NodeCollectionInterface::class); |
75 | 75 | $node->shouldReceive('map') |
76 | - ->with($func) |
|
77 | - ->andReturn([]); |
|
76 | + ->with($func) |
|
77 | + ->andReturn([]); |
|
78 | 78 | |
79 | 79 | $response = $flow->flow($node); |
80 | 80 | |
@@ -92,8 +92,8 @@ discard block |
||
92 | 92 | |
93 | 93 | $node = m::mock(NodeCollectionInterface::class); |
94 | 94 | $node->shouldReceive('map') |
95 | - ->with($func) |
|
96 | - ->andReturn([]); |
|
95 | + ->with($func) |
|
96 | + ->andReturn([]); |
|
97 | 97 | |
98 | 98 | $response = call_user_func($flow, $node); |
99 | 99 |