| @@ -41,7 +41,7 @@ | ||
| 41 | 41 | public function testPackExtract($archiveType) | 
| 42 | 42 |      { | 
| 43 | 43 |          if ((version_compare(PHP_VERSION, '7.4.0') >= 0) && (getenv('TRAVIS'))) { | 
| 44 | -          $this->markTestSkipped('Zip libraries apparently not available on Travis CI with PHP 7.4 image.'); | |
| 44 | +            $this->markTestSkipped('Zip libraries apparently not available on Travis CI with PHP 7.4 image.'); | |
| 45 | 45 | } | 
| 46 | 46 | |
| 47 | 47 | // Archive directory and then extract it again with Archive and Extract tasks | 
| @@ -25,29 +25,29 @@ | ||
| 25 | 25 | public function testCssMinification() | 
| 26 | 26 |      { | 
| 27 | 27 |          if (version_compare(PHP_VERSION, '7.2.0') >= 0) { | 
| 28 | -          $this->markTestSkipped('natxet/cssmin uses deprecated "each()" function (PHP 7.2+)'); | |
| 28 | +            $this->markTestSkipped('natxet/cssmin uses deprecated "each()" function (PHP 7.2+)'); | |
| 29 | 29 | } | 
| 30 | 30 | |
| 31 | 31 | $this->fixtures->createAndCdToSandbox(); | 
| 32 | 32 | |
| 33 | -				$sampleCss = $this->fixtures->dataFile('sample.css'); | |
| 34 | - $outputCss = 'minifiedSample.css'; | |
| 33 | +                $sampleCss = $this->fixtures->dataFile('sample.css'); | |
| 34 | + $outputCss = 'minifiedSample.css'; | |
| 35 | 35 | |
| 36 | - $initialFileSize = filesize($sampleCss); | |
| 36 | + $initialFileSize = filesize($sampleCss); | |
| 37 | 37 | |
| 38 | - $result = $this->taskMinify($sampleCss) | |
| 39 | -				  ->to('minifiedSample.css') | |
| 40 | - ->run(); | |
| 38 | + $result = $this->taskMinify($sampleCss) | |
| 39 | +                    ->to('minifiedSample.css') | |
| 40 | + ->run(); | |
| 41 | 41 | $this->assertTrue($result->wasSuccessful()); | 
| 42 | 42 | |
| 43 | - $this->assertFileExists($outputCss); | |
| 44 | - $minifiedFileSize = filesize($outputCss); | |
| 45 | - $outputCssContents = file_get_contents($outputCss); | |
| 43 | + $this->assertFileExists($outputCss); | |
| 44 | + $minifiedFileSize = filesize($outputCss); | |
| 45 | + $outputCssContents = file_get_contents($outputCss); | |
| 46 | 46 | |
| 47 | - $this->assertLessThan($initialFileSize, $minifiedFileSize, 'Minified file is smaller than the source file'); | |
| 48 | - $this->assertGreaterThan(0, $minifiedFileSize, 'Minified file is not empty'); | |
| 49 | -				$this->assertContains('body', $outputCssContents, 'Minified file has some content from the source file'); | |
| 50 | -				$this->assertNotContains('Sample css file', $outputCssContents, 'Minified file does not contain comment from source file'); | |
| 47 | + $this->assertLessThan($initialFileSize, $minifiedFileSize, 'Minified file is smaller than the source file'); | |
| 48 | + $this->assertGreaterThan(0, $minifiedFileSize, 'Minified file is not empty'); | |
| 49 | +                $this->assertContains('body', $outputCssContents, 'Minified file has some content from the source file'); | |
| 50 | +                $this->assertNotContains('Sample css file', $outputCssContents, 'Minified file does not contain comment from source file'); | |
| 51 | 51 | } | 
| 52 | 52 | |
| 53 | 53 | } | 
| @@ -2,7 +2,6 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Robo\Task\Base; | 
| 4 | 4 | |
| 5 | -use Robo\Common\ExecTrait; | |
| 6 | 5 | use Robo\Contract\CommandInterface; | 
| 7 | 6 | use Robo\Contract\PrintedInterface; | 
| 8 | 7 | use Robo\Contract\SimulatedInterface; |