File tree 2 files changed +6
-6
lines changed
lib/internal/Magento/Framework/App
Test/Unit/DeploymentConfig/Writer
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -21,20 +21,20 @@ class PhpFormatter implements FormatterInterface
21
21
public function format ($ data , array $ comments = [])
22
22
{
23
23
if (!empty ($ comments ) && is_array ($ data )) {
24
- return "<?php \nreturn array ( \n" . $ this ->formatData ($ data , $ comments, ' ' ) . "\n); \n" ;
24
+ return "<?php \nreturn array ( \n" . $ this ->formatData ($ data , $ comments ) . "\n); \n" ;
25
25
}
26
26
return "<?php \nreturn " . var_export ($ data , true ) . "; \n" ;
27
27
}
28
28
29
29
/**
30
30
* Format supplied data
31
31
*
32
- * @param $data
33
- * @param $comments
32
+ * @param string[] $data
33
+ * @param string[] $comments
34
34
* @param string $prefix
35
35
* @return string
36
36
*/
37
- protected function formatData ($ data , $ comments , $ prefix = '' )
37
+ private function formatData ($ data , $ comments = [] , $ prefix = ' ' )
38
38
{
39
39
$ elements = [];
40
40
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ class PhpFormatterTest extends \PHPUnit\Framework\TestCase
11
11
{
12
12
/**
13
13
* @dataProvider formatWithCommentDataProvider
14
- * @param string|array $data
15
- * @param array $comments
14
+ * @param string[] $data
15
+ * @param string[] $comments
16
16
* @param string $expectedResult
17
17
*/
18
18
public function testFormat ($ data , $ comments , $ expectedResult )
You can’t perform that action at this time.
0 commit comments