@@ -1,15 +1,15 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * This file is part of graze/data-file |
|
| 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-file/blob/master/LICENSE.md |
|
| 11 | - * @link https://github.com/graze/data-file |
|
| 12 | - */ |
|
| 3 | + * This file is part of graze/data-file |
|
| 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-file/blob/master/LICENSE.md |
|
| 11 | + * @link https://github.com/graze/data-file |
|
| 12 | + */ |
|
| 13 | 13 | |
| 14 | 14 | namespace Graze\DataFile\Test\Integration\Modify\Contract; |
| 15 | 15 | |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | { |
| 57 | 57 | $collection = m::mock(FileNodeCollectionInterface::class); |
| 58 | 58 | $collection->shouldReceive('getIterator') |
| 59 | - ->andReturn([]); |
|
| 59 | + ->andReturn([]); |
|
| 60 | 60 | |
| 61 | 61 | $node = m::mock(LocalFile::class); |
| 62 | 62 | static::assertTrue($this->merge->canContract($collection, $node)); |
@@ -67,9 +67,9 @@ discard block |
||
| 67 | 67 | $collection = new FileNodeCollection(); |
| 68 | 68 | $file1 = m::mock(LocalFile::class); |
| 69 | 69 | $file1->shouldReceive('exists') |
| 70 | - ->andReturn(true); |
|
| 70 | + ->andReturn(true); |
|
| 71 | 71 | $file1->shouldReceive('getCompression') |
| 72 | - ->andReturn(CompressionFactory::TYPE_NONE); |
|
| 72 | + ->andReturn(CompressionFactory::TYPE_NONE); |
|
| 73 | 73 | $collection->add($file1); |
| 74 | 74 | |
| 75 | 75 | $out = m::mock(LocalFile::class); |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | |
| 79 | 79 | $file2 = m::mock(FileNodeInterface::class); |
| 80 | 80 | $file2->shouldReceive('getCompression') |
| 81 | - ->andReturn(CompressionFactory::TYPE_NONE); |
|
| 81 | + ->andReturn(CompressionFactory::TYPE_NONE); |
|
| 82 | 82 | $collection->add($file2); |
| 83 | 83 | |
| 84 | 84 | static::assertFalse($this->merge->canContract($collection, $out)); |
@@ -89,9 +89,9 @@ discard block |
||
| 89 | 89 | $collection = new FileNodeCollection(); |
| 90 | 90 | $file1 = m::mock(LocalFile::class); |
| 91 | 91 | $file1->shouldReceive('exists') |
| 92 | - ->andReturn(true); |
|
| 92 | + ->andReturn(true); |
|
| 93 | 93 | $file1->shouldReceive('getCompression') |
| 94 | - ->andReturn(CompressionFactory::TYPE_NONE); |
|
| 94 | + ->andReturn(CompressionFactory::TYPE_NONE); |
|
| 95 | 95 | $collection->add($file1); |
| 96 | 96 | |
| 97 | 97 | $out = m::mock(LocalFile::class); |
@@ -100,9 +100,9 @@ discard block |
||
| 100 | 100 | |
| 101 | 101 | $file2 = m::mock(LocalFile::class); |
| 102 | 102 | $file2->shouldReceive('exists') |
| 103 | - ->andReturn(false); |
|
| 103 | + ->andReturn(false); |
|
| 104 | 104 | $file2->shouldReceive('getCompression') |
| 105 | - ->andReturn(CompressionFactory::TYPE_NONE); |
|
| 105 | + ->andReturn(CompressionFactory::TYPE_NONE); |
|
| 106 | 106 | $collection->add($file2); |
| 107 | 107 | |
| 108 | 108 | static::assertFalse($this->merge->canContract($collection, $out)); |
@@ -113,9 +113,9 @@ discard block |
||
| 113 | 113 | $collection = new FileNodeCollection(); |
| 114 | 114 | $file1 = m::mock(LocalFile::class); |
| 115 | 115 | $file1->shouldReceive('exists') |
| 116 | - ->andReturn(true); |
|
| 116 | + ->andReturn(true); |
|
| 117 | 117 | $file1->shouldReceive('getCompression') |
| 118 | - ->andReturn(CompressionFactory::TYPE_NONE); |
|
| 118 | + ->andReturn(CompressionFactory::TYPE_NONE); |
|
| 119 | 119 | $collection->add($file1); |
| 120 | 120 | |
| 121 | 121 | $out = m::mock(LocalFile::class); |
@@ -124,9 +124,9 @@ discard block |
||
| 124 | 124 | |
| 125 | 125 | $file2 = m::mock(LocalFile::class); |
| 126 | 126 | $file2->shouldReceive('exists') |
| 127 | - ->andReturn(true); |
|
| 127 | + ->andReturn(true); |
|
| 128 | 128 | $file2->shouldReceive('getCompression') |
| 129 | - ->andReturn(Gzip::NAME); |
|
| 129 | + ->andReturn(Gzip::NAME); |
|
| 130 | 130 | $collection->add($file2); |
| 131 | 131 | |
| 132 | 132 | static::assertFalse($this->merge->canContract($collection, $out)); |
@@ -137,9 +137,9 @@ discard block |
||
| 137 | 137 | $collection = new FileNodeCollection(); |
| 138 | 138 | $file = m::mock(LocalFile::class); |
| 139 | 139 | $file->shouldReceive('exists') |
| 140 | - ->andReturn(false); |
|
| 140 | + ->andReturn(false); |
|
| 141 | 141 | $file->shouldReceive('getCompression') |
| 142 | - ->andReturn(CompressionFactory::TYPE_NONE); |
|
| 142 | + ->andReturn(CompressionFactory::TYPE_NONE); |
|
| 143 | 143 | $collection->add($file); |
| 144 | 144 | |
| 145 | 145 | $target = m::mock(LocalFile::class); |
@@ -154,9 +154,9 @@ discard block |
||
| 154 | 154 | $collection = new FileNodeCollection(); |
| 155 | 155 | $file = m::mock(LocalFile::class); |
| 156 | 156 | $file->shouldReceive('exists') |
| 157 | - ->andReturn(true); |
|
| 157 | + ->andReturn(true); |
|
| 158 | 158 | $file->shouldReceive('getCompression') |
| 159 | - ->andReturn(CompressionFactory::TYPE_NONE); |
|
| 159 | + ->andReturn(CompressionFactory::TYPE_NONE); |
|
| 160 | 160 | $collection->add($file); |
| 161 | 161 | |
| 162 | 162 | $target = m::mock(FileNodeInterface::class); |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | { |
| 254 | 254 | $process = m::mock('Symfony\Component\Process\Process')->makePartial(); |
| 255 | 255 | $this->processFactory->shouldReceive('createProcess') |
| 256 | - ->andReturn($process); |
|
| 256 | + ->andReturn($process); |
|
| 257 | 257 | |
| 258 | 258 | $process->shouldReceive('isSuccessful')->andReturn(false); |
| 259 | 259 | |
@@ -1,15 +1,15 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * This file is part of graze/data-file |
|
| 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-file/blob/master/LICENSE.md |
|
| 11 | - * @link https://github.com/graze/data-file |
|
| 12 | - */ |
|
| 3 | + * This file is part of graze/data-file |
|
| 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-file/blob/master/LICENSE.md |
|
| 11 | + * @link https://github.com/graze/data-file |
|
| 12 | + */ |
|
| 13 | 13 | |
| 14 | 14 | namespace Graze\DataFile\Test\Integration\Modify\Encoding; |
| 15 | 15 | |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | $process->shouldReceive('mustRun')->andThrow(new ProcessFailedException($process)); |
| 98 | 98 | |
| 99 | 99 | $this->processFactory->shouldReceive('createProcess') |
| 100 | - ->andReturn($process); |
|
| 100 | + ->andReturn($process); |
|
| 101 | 101 | |
| 102 | 102 | $file = new LocalFile(static::$dir . 'failed_find_encoding_process.test'); |
| 103 | 103 | $file->put('random stuff and things 2!'); |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | $process->shouldReceive('getOutput')->andReturn('some random stuff with no charset'); |
| 115 | 115 | |
| 116 | 116 | $this->processFactory->shouldReceive('createProcess') |
| 117 | - ->andReturn($process); |
|
| 117 | + ->andReturn($process); |
|
| 118 | 118 | |
| 119 | 119 | $file = new LocalFile(static::$dir . 'unknown_compression.test'); |
| 120 | 120 | $file->put('random stuff and things 2!'); |
@@ -1,15 +1,15 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * This file is part of graze/data-file |
|
| 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-file/blob/master/LICENSE.md |
|
| 11 | - * @link https://github.com/graze/data-file |
|
| 12 | - */ |
|
| 3 | + * This file is part of graze/data-file |
|
| 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-file/blob/master/LICENSE.md |
|
| 11 | + * @link https://github.com/graze/data-file |
|
| 12 | + */ |
|
| 13 | 13 | |
| 14 | 14 | namespace Graze\DataFile\Test\Integration\Modify; |
| 15 | 15 | |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | { |
| 220 | 220 | $file = m::mock(FileNodeInterface::class); |
| 221 | 221 | $file->shouldReceive('__toString') |
| 222 | - ->andReturn('some/file/here'); |
|
| 222 | + ->andReturn('some/file/here'); |
|
| 223 | 223 | |
| 224 | 224 | $this->expectException(InvalidArgumentException::class); |
| 225 | 225 | |
@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | $process = m::mock(Process::class)->makePartial(); |
| 232 | 232 | $process->shouldReceive('isSuccessful')->andReturn(false); |
| 233 | 233 | $this->processFactory->shouldReceive('createProcess') |
| 234 | - ->andReturn($process); |
|
| 234 | + ->andReturn($process); |
|
| 235 | 235 | |
| 236 | 236 | $file = new LocalFile(static::$dir . 'failed_tail.test'); |
| 237 | 237 | $file->put('nothing interesting here'); |
@@ -1,15 +1,15 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * This file is part of graze/data-file |
|
| 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-file/blob/master/LICENSE.md |
|
| 11 | - * @link https://github.com/graze/data-file |
|
| 12 | - */ |
|
| 3 | + * This file is part of graze/data-file |
|
| 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-file/blob/master/LICENSE.md |
|
| 11 | + * @link https://github.com/graze/data-file |
|
| 12 | + */ |
|
| 13 | 13 | |
| 14 | 14 | namespace Graze\DataFile\Test\Unit\Format; |
| 15 | 15 | |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | $this->formatAware->setFormat($format); |
| 44 | 44 | |
| 45 | 45 | $format->shouldReceive('getType') |
| 46 | - ->andReturn('test_format'); |
|
| 46 | + ->andReturn('test_format'); |
|
| 47 | 47 | |
| 48 | 48 | static::assertEquals('test_format', $this->formatAware->getFormatType()); |
| 49 | 49 | } |
@@ -1,15 +1,15 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * This file is part of graze/data-file |
|
| 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-file/blob/master/LICENSE.md |
|
| 11 | - * @link https://github.com/graze/data-file |
|
| 12 | - */ |
|
| 3 | + * This file is part of graze/data-file |
|
| 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-file/blob/master/LICENSE.md |
|
| 11 | + * @link https://github.com/graze/data-file |
|
| 12 | + */ |
|
| 13 | 13 | |
| 14 | 14 | namespace Graze\DataFile\Test\Integration\Node; |
| 15 | 15 | |
@@ -27,8 +27,8 @@ discard block |
||
| 27 | 27 | $file = new FileNode($fileSystem, 'not/exists'); |
| 28 | 28 | |
| 29 | 29 | $fileSystem->shouldReceive('has') |
| 30 | - ->with('not/exists') |
|
| 31 | - ->andReturn(false); |
|
| 30 | + ->with('not/exists') |
|
| 31 | + ->andReturn(false); |
|
| 32 | 32 | |
| 33 | 33 | static::assertEquals([], $file->getContents()); |
| 34 | 34 | } |
@@ -41,8 +41,8 @@ discard block |
||
| 41 | 41 | $newPath = new FileNode($fileSystem, 'some/target'); |
| 42 | 42 | |
| 43 | 43 | $fileSystem->shouldReceive('copy') |
| 44 | - ->with($localFile->getPath(), $newPath->getPath()) |
|
| 45 | - ->andReturn(false); |
|
| 44 | + ->with($localFile->getPath(), $newPath->getPath()) |
|
| 45 | + ->andReturn(false); |
|
| 46 | 46 | |
| 47 | 47 | $this->expectException(CopyFailedException::class); |
| 48 | 48 | |
@@ -1,15 +1,15 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * This file is part of graze/data-file |
|
| 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-file/blob/master/LICENSE.md |
|
| 11 | - * @link https://github.com/graze/data-file |
|
| 12 | - */ |
|
| 3 | + * This file is part of graze/data-file |
|
| 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-file/blob/master/LICENSE.md |
|
| 11 | + * @link https://github.com/graze/data-file |
|
| 12 | + */ |
|
| 13 | 13 | |
| 14 | 14 | namespace Graze\DataFile\Test\Unit\Node; |
| 15 | 15 | |
@@ -1,15 +1,15 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * This file is part of graze/data-file |
|
| 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-file/blob/master/LICENSE.md |
|
| 11 | - * @link https://github.com/graze/data-file |
|
| 12 | - */ |
|
| 3 | + * This file is part of graze/data-file |
|
| 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-file/blob/master/LICENSE.md |
|
| 11 | + * @link https://github.com/graze/data-file |
|
| 12 | + */ |
|
| 13 | 13 | |
| 14 | 14 | namespace Graze\DataFile\Test\Unit\Node; |
| 15 | 15 | |
@@ -1,15 +1,15 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * This file is part of graze/data-file |
|
| 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-file/blob/master/LICENSE.md |
|
| 11 | - * @link https://github.com/graze/data-file |
|
| 12 | - */ |
|
| 3 | + * This file is part of graze/data-file |
|
| 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-file/blob/master/LICENSE.md |
|
| 11 | + * @link https://github.com/graze/data-file |
|
| 12 | + */ |
|
| 13 | 13 | |
| 14 | 14 | namespace Graze\DataFile\Test\Unit\Node; |
| 15 | 15 | |
@@ -1,15 +1,15 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * This file is part of graze/data-file |
|
| 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-file/blob/master/LICENSE.md |
|
| 11 | - * @link https://github.com/graze/data-file |
|
| 12 | - */ |
|
| 3 | + * This file is part of graze/data-file |
|
| 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-file/blob/master/LICENSE.md |
|
| 11 | + * @link https://github.com/graze/data-file |
|
| 12 | + */ |
|
| 13 | 13 | |
| 14 | 14 | namespace Graze\DataFile\Test\Unit\Node; |
| 15 | 15 | |