Completed
Push — master ( 857202...d87b02 )
by Harry
03:21
created
tests/integration/Modify/Compress/GzipTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         $process = m::mock(Process::class)->makePartial();
95 95
         $processFactory = m::mock(ProcessFactory::class);
96 96
         $processFactory->shouldReceive('createProcess')
97
-                       ->andReturn($process);
97
+                        ->andReturn($process);
98 98
         $this->gzip->setProcessFactory($processFactory);
99 99
         $process->shouldReceive('run')->once();
100 100
         $process->shouldReceive('isSuccessful')->once()->andReturn(false);
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
         $process = m::mock(Process::class)->makePartial();
119 119
         $processFactory = m::mock(ProcessFactory::class);
120 120
         $processFactory->shouldReceive('createProcess')
121
-                       ->andReturn($process);
121
+                        ->andReturn($process);
122 122
         $this->gzip->setProcessFactory($processFactory);
123 123
         $process->shouldReceive('run')->once();
124 124
         $process->shouldReceive('isSuccessful')->once()->andReturn(false);
Please login to merge, or discard this patch.
tests/integration/Modify/Compress/ZipTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     {
104 104
         $process = m::mock(Process::class)->makePartial();
105 105
         $this->processFactory->shouldReceive('createProcess')
106
-                             ->andReturn($process);
106
+                                ->andReturn($process);
107 107
         $process->shouldReceive('run')->once();
108 108
         $process->shouldReceive('isSuccessful')->once()->andReturn(false);
109 109
         $process->shouldReceive('getCommandLine')->andReturn('');
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
     {
126 126
         $process = m::mock(Process::class)->makePartial();
127 127
         $this->processFactory->shouldReceive('createProcess')
128
-                             ->andReturn($process);
128
+                                ->andReturn($process);
129 129
         $process->shouldReceive('run')->once();
130 130
         $process->shouldReceive('isSuccessful')->once()->andReturn(false);
131 131
         $process->shouldReceive('getCommandLine')->andReturn('');
Please login to merge, or discard this patch.
tests/integration/Modify/Contract/MergeFilesTest.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
             $file->getContents()
194 194
         );
195 195
 
196
-        $exists = $collection->filter(function (FileNodeInterface $item) {
196
+        $exists = $collection->filter(function(FileNodeInterface $item) {
197 197
             return $item->exists();
198 198
         });
199 199
 
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
             $file->getContents()
244 244
         );
245 245
 
246
-        $exists = $collection->filter(function (FileNodeInterface $item) {
246
+        $exists = $collection->filter(function(FileNodeInterface $item) {
247 247
             return $item->exists();
248 248
         });
249 249
 
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
             $file->getContents()
297 297
         );
298 298
 
299
-        $exists = $collection->filter(function (FileNodeInterface $item) {
299
+        $exists = $collection->filter(function(FileNodeInterface $item) {
300 300
             return $item->exists();
301 301
         });
302 302
 
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
 
330 330
         static::assertFalse(file_exists($collection->getAll()[0]->getDirectory()));
331 331
 
332
-        $exists = $collection->filter(function (FileNodeInterface $item) {
332
+        $exists = $collection->filter(function(FileNodeInterface $item) {
333 333
             return $item->exists();
334 334
         });
335 335
 
Please login to merge, or discard this patch.
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     {
45 45
         $collection = m::mock(FileNodeCollectionInterface::class);
46 46
         $collection->shouldReceive('getIterator')
47
-                   ->andReturn([]);
47
+                    ->andReturn([]);
48 48
 
49 49
         $node = m::mock(LocalFile::class);
50 50
         static::assertTrue($this->merge->canContract($collection, $node));
@@ -55,9 +55,9 @@  discard block
 block discarded – undo
55 55
         $collection = new FileNodeCollection();
56 56
         $file1 = m::mock(LocalFile::class);
57 57
         $file1->shouldReceive('exists')
58
-              ->andReturn(true);
58
+                ->andReturn(true);
59 59
         $file1->shouldReceive('getCompression')
60
-              ->andReturn(CompressionType::NONE);
60
+                ->andReturn(CompressionType::NONE);
61 61
         $collection->add($file1);
62 62
 
63 63
         $out = m::mock(LocalFile::class);
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
         $file2 = m::mock(FileNodeInterface::class);
68 68
         $file2->shouldReceive('getCompression')
69
-              ->andReturn(CompressionType::NONE);
69
+                ->andReturn(CompressionType::NONE);
70 70
         $collection->add($file2);
71 71
 
72 72
         static::assertFalse($this->merge->canContract($collection, $out));
@@ -77,9 +77,9 @@  discard block
 block discarded – undo
77 77
         $collection = new FileNodeCollection();
78 78
         $file1 = m::mock(LocalFile::class);
79 79
         $file1->shouldReceive('exists')
80
-              ->andReturn(true);
80
+                ->andReturn(true);
81 81
         $file1->shouldReceive('getCompression')
82
-              ->andReturn(CompressionType::NONE);
82
+                ->andReturn(CompressionType::NONE);
83 83
         $collection->add($file1);
84 84
 
85 85
         $out = m::mock(LocalFile::class);
@@ -88,9 +88,9 @@  discard block
 block discarded – undo
88 88
 
89 89
         $file2 = m::mock(LocalFile::class);
90 90
         $file2->shouldReceive('exists')
91
-              ->andReturn(false);
91
+                ->andReturn(false);
92 92
         $file2->shouldReceive('getCompression')
93
-              ->andReturn(CompressionType::NONE);
93
+                ->andReturn(CompressionType::NONE);
94 94
         $collection->add($file2);
95 95
 
96 96
         static::assertFalse($this->merge->canContract($collection, $out));
@@ -101,9 +101,9 @@  discard block
 block discarded – undo
101 101
         $collection = new FileNodeCollection();
102 102
         $file1 = m::mock(LocalFile::class);
103 103
         $file1->shouldReceive('exists')
104
-              ->andReturn(true);
104
+                ->andReturn(true);
105 105
         $file1->shouldReceive('getCompression')
106
-              ->andReturn(CompressionType::NONE);
106
+                ->andReturn(CompressionType::NONE);
107 107
         $collection->add($file1);
108 108
 
109 109
         $out = m::mock(LocalFile::class);
@@ -112,9 +112,9 @@  discard block
 block discarded – undo
112 112
 
113 113
         $file2 = m::mock(LocalFile::class);
114 114
         $file2->shouldReceive('exists')
115
-              ->andReturn(true);
115
+                ->andReturn(true);
116 116
         $file2->shouldReceive('getCompression')
117
-              ->andReturn(CompressionType::GZIP);
117
+                ->andReturn(CompressionType::GZIP);
118 118
         $collection->add($file2);
119 119
 
120 120
         static::assertFalse($this->merge->canContract($collection, $out));
@@ -125,9 +125,9 @@  discard block
 block discarded – undo
125 125
         $collection = new FileNodeCollection();
126 126
         $file = m::mock(LocalFile::class);
127 127
         $file->shouldReceive('exists')
128
-             ->andReturn(false);
128
+                ->andReturn(false);
129 129
         $file->shouldReceive('getCompression')
130
-             ->andReturn(CompressionType::NONE);
130
+                ->andReturn(CompressionType::NONE);
131 131
         $collection->add($file);
132 132
 
133 133
         $target = m::mock(LocalFile::class);
@@ -142,9 +142,9 @@  discard block
 block discarded – undo
142 142
         $collection = new FileNodeCollection();
143 143
         $file = m::mock(LocalFile::class);
144 144
         $file->shouldReceive('exists')
145
-             ->andReturn(true);
145
+                ->andReturn(true);
146 146
         $file->shouldReceive('getCompression')
147
-             ->andReturn(CompressionType::NONE);
147
+                ->andReturn(CompressionType::NONE);
148 148
         $collection->add($file);
149 149
 
150 150
         $target = m::mock(FileNodeInterface::class);
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
     {
242 242
         $process = m::mock('Symfony\Component\Process\Process')->makePartial();
243 243
         $this->processFactory->shouldReceive('createProcess')
244
-                             ->andReturn($process);
244
+                                ->andReturn($process);
245 245
 
246 246
         $process->shouldReceive('isSuccessful')->andReturn(false);
247 247
 
Please login to merge, or discard this patch.
tests/integration/Modify/TailTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
     {
209 209
         $file = m::mock(FileNodeInterface::class);
210 210
         $file->shouldReceive('__toString')
211
-             ->andReturn('some/file/here');
211
+                ->andReturn('some/file/here');
212 212
 
213 213
         $this->expectException(InvalidArgumentException::class);
214 214
 
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
         $process = m::mock(Process::class)->makePartial();
221 221
         $process->shouldReceive('isSuccessful')->andReturn(false);
222 222
         $this->processFactory->shouldReceive('createProcess')
223
-                             ->andReturn($process);
223
+                                ->andReturn($process);
224 224
 
225 225
         $file = new LocalFile(static::$dir . 'failed_tail.test');
226 226
         $file->put('nothing interesting here');
Please login to merge, or discard this patch.
tests/unit/Helper/OptionalLoggerTraitTest.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,8 +31,8 @@
 block discarded – undo
31 31
         $this->logger->setLogger($logger);
32 32
 
33 33
         $logger->shouldReceive('log')
34
-               ->with(LogLevel::INFO, 'Graze\DataFile\Test\Helper\FakeOptionalLogger: some text', [])
35
-               ->once();
34
+                ->with(LogLevel::INFO, 'Graze\DataFile\Test\Helper\FakeOptionalLogger: some text', [])
35
+                ->once();
36 36
 
37 37
         $this->logger->doLog('some text');
38 38
     }
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@
 block discarded – undo
5 5
 use Graze\DataFile\Test\Helper\FakeOptionalLogger;
6 6
 use Graze\DataFile\Test\TestCase;
7 7
 use Mockery as m;
8
-use Psr\Log\LoggerInterface;
9 8
 use Psr\Log\LogLevel;
9
+use Psr\Log\LoggerInterface;
10 10
 
11 11
 class OptionalLoggerTraitTest extends TestCase
12 12
 {
Please login to merge, or discard this patch.
tests/unit/Modify/MakeDirectoryTest.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@
 block discarded – undo
17 17
         $directory = new FileNode($fileSystem, 'random/path');
18 18
 
19 19
         $fileSystem->shouldReceive('createDir')
20
-                   ->with($directory->getDirectory(), ['visibility' => 'public'])
21
-                   ->andReturn(false);
20
+                    ->with($directory->getDirectory(), ['visibility' => 'public'])
21
+                    ->andReturn(false);
22 22
         $this->expectException(MakedirectoryFailedException::class);
23 23
 
24 24
         $maker = new MakeDirectory();
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Graze\DataFile\Test\Unit\Modify;
4 4
 
5
-use Graze\DataFile\Modify\Exception\MakeDirectoryFailedException;
6 5
 use Graze\DataFile\Modify\MakeDirectory;
7 6
 use Graze\DataFile\Node\FileNode;
8 7
 use Graze\DataFile\Test\TestCase;
Please login to merge, or discard this patch.
tests/unit/Node/FileNodeTest.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@
 block discarded – undo
17 17
         $file = new FileNode($fileSystem, 'not/exists');
18 18
 
19 19
         $fileSystem->shouldReceive('has')
20
-                   ->with('not/exists')
21
-                   ->andReturn(false);
20
+                    ->with('not/exists')
21
+                    ->andReturn(false);
22 22
 
23 23
         static::assertEquals([], $file->getContents());
24 24
     }
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Graze\DataFile\Test\Integration\Node;
4 4
 
5 5
 use Graze\DataFile\Modify\Exception\CopyFailedException;
6
-use Graze\DataFile\Modify\MakeDirectory;
7 6
 use Graze\DataFile\Node\FileNode;
8 7
 use Graze\DataFile\Test\TestCase;
9 8
 use League\Flysystem\FilesystemInterface;
Please login to merge, or discard this patch.
src/Modify/Head.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
         $outputFilePath = $pathInfo['dirname'] . '/' . $outputFileName;
89 89
 
90 90
         $output = $file->getClone()
91
-                       ->setPath($outputFilePath);
91
+                        ->setPath($outputFilePath);
92 92
 
93 93
         $this->log(LogLevel::INFO, "Retrieving the last {lines} from file {file}", [
94 94
             'lines' => $this->lines,
Please login to merge, or discard this patch.
src/Modify/ReplaceText.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
         $outputFilePath = $pathInfo['dirname'] . '/' . $outputFileName;
89 89
 
90 90
         $output = $file->getClone()
91
-                       ->setPath($outputFilePath);
91
+                        ->setPath($outputFilePath);
92 92
 
93 93
         $this->log(LogLevel::INFO, "Retrieving the last {lines} from file {file}", [
94 94
             'lines' => $this->lines,
Please login to merge, or discard this patch.