@@ -20,7 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | use _generated\CodeGuyActions; |
22 | 22 | |
23 | - /** |
|
24 | - * Define custom actions here |
|
25 | - */ |
|
23 | + /** |
|
24 | + * Define custom actions here |
|
25 | + */ |
|
26 | 26 | } |
@@ -90,25 +90,25 @@ |
||
90 | 90 | $this->checkResources($targets); |
91 | 91 | } |
92 | 92 | |
93 | - /** |
|
94 | - * Wrapper method around phps is_dir() |
|
95 | - * |
|
96 | - * @param string $directory |
|
97 | - * |
|
98 | - * @return bool |
|
99 | - */ |
|
93 | + /** |
|
94 | + * Wrapper method around phps is_dir() |
|
95 | + * |
|
96 | + * @param string $directory |
|
97 | + * |
|
98 | + * @return bool |
|
99 | + */ |
|
100 | 100 | protected function isDir($directory) |
101 | 101 | { |
102 | 102 | return is_dir($directory); |
103 | 103 | } |
104 | 104 | |
105 | - /** |
|
106 | - * Wrapper method around phps file_exists() |
|
107 | - * |
|
108 | - * @param string $file |
|
109 | - * |
|
110 | - * @return bool |
|
111 | - */ |
|
105 | + /** |
|
106 | + * Wrapper method around phps file_exists() |
|
107 | + * |
|
108 | + * @param string $file |
|
109 | + * |
|
110 | + * @return bool |
|
111 | + */ |
|
112 | 112 | protected function isFile($file) |
113 | 113 | { |
114 | 114 | return file_exists($file); |
@@ -83,7 +83,6 @@ |
||
83 | 83 | |
84 | 84 | /** |
85 | 85 | * Path to the bootstrap file. |
86 | - |
|
87 | 86 | * @param string $file |
88 | 87 | * |
89 | 88 | * @return $this |
@@ -91,8 +91,8 @@ |
||
91 | 91 | { |
92 | 92 | $finder = new Finder(); |
93 | 93 | $finder->files() |
94 | - ->name($pattern) |
|
95 | - ->in($directories); |
|
94 | + ->name($pattern) |
|
95 | + ->in($directories); |
|
96 | 96 | |
97 | 97 | return $finder; |
98 | 98 | } |
@@ -38,10 +38,10 @@ discard block |
||
38 | 38 | public function testConvertPathToNamespaceData() |
39 | 39 | { |
40 | 40 | return [ |
41 | - ['/A/B/C', 'A\B\C'], |
|
42 | - ['A/B/C', 'A\B\C'], |
|
43 | - ['A/B/C', 'A\B\C'], |
|
44 | - ['A/B/C.php', 'A\B\C'], |
|
41 | + ['/A/B/C', 'A\B\C'], |
|
42 | + ['A/B/C', 'A\B\C'], |
|
43 | + ['A/B/C', 'A\B\C'], |
|
44 | + ['A/B/C.php', 'A\B\C'], |
|
45 | 45 | ]; |
46 | 46 | } |
47 | 47 | |
@@ -61,9 +61,9 @@ discard block |
||
61 | 61 | public function testConvertNamespaceToPathData() |
62 | 62 | { |
63 | 63 | return [ |
64 | - ['A\B\C', '/A/B/C'], |
|
65 | - ['\A\B\C\\', '/A/B/C'], |
|
66 | - ['A\B\C\\', '/A/B/C'], |
|
64 | + ['A\B\C', '/A/B/C'], |
|
65 | + ['\A\B\C\\', '/A/B/C'], |
|
66 | + ['A\B\C\\', '/A/B/C'], |
|
67 | 67 | ]; |
68 | 68 | } |
69 | 69 |
@@ -23,11 +23,11 @@ |
||
23 | 23 | return $this->task(ImageMinify::class, $input); |
24 | 24 | } |
25 | 25 | |
26 | - /** |
|
27 | - * @param array $input |
|
28 | - * |
|
29 | - * @return \Robo\Task\Assets\Less|\Robo\Collection\CollectionBuilder |
|
30 | - */ |
|
26 | + /** |
|
27 | + * @param array $input |
|
28 | + * |
|
29 | + * @return \Robo\Task\Assets\Less|\Robo\Collection\CollectionBuilder |
|
30 | + */ |
|
31 | 31 | protected function taskLess($input) |
32 | 32 | { |
33 | 33 | return $this->task(Less::class, $input); |
@@ -168,16 +168,16 @@ |
||
168 | 168 | return $this; |
169 | 169 | } |
170 | 170 | |
171 | - /** |
|
172 | - * Add arbitrary code to execute as a task. |
|
173 | - * |
|
174 | - * @see \Robo\Collection\CollectionInterface::addCode |
|
175 | - * |
|
176 | - * @param callable $code |
|
177 | - * @param int|string $name |
|
178 | - * |
|
179 | - * @return $this |
|
180 | - */ |
|
171 | + /** |
|
172 | + * Add arbitrary code to execute as a task. |
|
173 | + * |
|
174 | + * @see \Robo\Collection\CollectionInterface::addCode |
|
175 | + * |
|
176 | + * @param callable $code |
|
177 | + * @param int|string $name |
|
178 | + * |
|
179 | + * @return $this |
|
180 | + */ |
|
181 | 181 | public function addCode(callable $code, $name = \Robo\Collection\CollectionInterface::UNNAMEDTASK) |
182 | 182 | { |
183 | 183 | $this->getCollection()->addCode($code, $name); |
@@ -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 | } |