Completed
Push — master ( 8bc2ca...1a19ee )
by Harry
03:41
created
src/Modify/ConvertEncoding.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,8 @@
 block discarded – undo
51 51
         );
52 52
 
53 53
         $output = $file->getClone()
54
-                       ->setPath($pathInfo['dirname'] . '/' . $outputFileName)
55
-                       ->setEncoding($encoding);
54
+                        ->setPath($pathInfo['dirname'] . '/' . $outputFileName)
55
+                        ->setEncoding($encoding);
56 56
 
57 57
         $cmd = "iconv " .
58 58
             ($file->getEncoding() ? "--from-code={$file->getEncoding()} " : '') .
Please login to merge, or discard this patch.
src/Modify/Tail.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.
tests/integration/FileInfoTest.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         $process->shouldReceive('isSuccessful')->andReturn(false);
120 120
 
121 121
         $this->processFactory->shouldReceive('createProcess')
122
-                             ->andReturn($process);
122
+                                ->andReturn($process);
123 123
 
124 124
         $file = new LocalFile(static::$dir . 'failed_find_encoding_process.test');
125 125
         $file->put('random stuff and things 2!');
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
         $process->shouldReceive('isSuccessful')->andReturn(false);
136 136
 
137 137
         $this->processFactory->shouldReceive('createProcess')
138
-                             ->andReturn($process);
138
+                                ->andReturn($process);
139 139
 
140 140
         $file = new LocalFile(static::$dir . 'failed_find_encoding_process.test');
141 141
         $file->put('random stuff and things 2!');
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
         $process->shouldReceive('getOutput')->andReturn('text/plain; charset=utf-8 compressed-encoding=application/lzop; charset=binary; charset=binary');
154 154
 
155 155
         $this->processFactory->shouldReceive('createProcess')
156
-                             ->andReturn($process);
156
+                                ->andReturn($process);
157 157
 
158 158
         $file = new LocalFile(static::$dir . 'unknown_compression.test');
159 159
         $file->put('random stuff and things 2!');
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
         $process->shouldReceive('getOutput')->andReturn('some random stuff with no charset');
170 170
 
171 171
         $this->processFactory->shouldReceive('createProcess')
172
-                             ->andReturn($process);
172
+                                ->andReturn($process);
173 173
 
174 174
         $file = new LocalFile(static::$dir . 'unknown_compression.test');
175 175
         $file->put('random stuff and things 2!');
Please login to merge, or discard this patch.
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/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/Finder/MetadataFinderTest.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -24,9 +24,9 @@  discard block
 block discarded – undo
24 24
     {
25 25
         $file = m::mock(FileNode::class);
26 26
         $file->shouldReceive('getMetadata')
27
-             ->andReturn([
28
-                 'name' => 'test',
29
-             ]);
27
+                ->andReturn([
28
+                    'name' => 'test',
29
+                ]);
30 30
         $collection = new FileNodeCollection();
31 31
         $collection->add($file);
32 32
 
@@ -41,14 +41,14 @@  discard block
 block discarded – undo
41 41
     {
42 42
         $file = m::mock(FileNode::class);
43 43
         $file->shouldReceive('getMetadata')
44
-             ->andReturn([
45
-                 'name' => 'test',
46
-             ]);
44
+                ->andReturn([
45
+                    'name' => 'test',
46
+                ]);
47 47
         $file2 = m::mock(FileNode::class);
48 48
         $file2->shouldReceive('getMetadata')
49
-              ->andReturn([
50
-                  'name' => 'test2',
51
-              ]);
49
+                ->andReturn([
50
+                    'name' => 'test2',
51
+                ]);
52 52
         $collection = new FileNodeCollection();
53 53
         $collection->add($file);
54 54
         $collection->add($file2);
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     {
68 68
         $file = m::mock(FileNode::class);
69 69
         $file->shouldReceive('getMetadata')
70
-             ->andReturn(false);
70
+                ->andReturn(false);
71 71
         $collection = new FileNodeCollection();
72 72
         $collection->add($file);
73 73
 
Please login to merge, or discard this patch.
tests/unit/Helper/OptionalLoggerTraitTest.php 1 patch
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.
tests/unit/Modify/MakeDirectoryTest.php 1 patch
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.