11<?php
22
3+ declare (strict_types = 1 );
4+
35/*
46 * (c) Copyright (c) 2016-2020 Ondřej Mirtes <ondrej@mirtes.cz>
57 *
2325 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2426 * SOFTWARE.
2527 */
26- declare (strict_types=1 );
2728
2829namespace CodeLts \CliTools \ErrorFormatter ;
2930
@@ -52,7 +53,7 @@ public function __construct(
5253 RelativePathHelper $ relativePathHelper ,
5354 TableErrorFormatter $ tableErrorformatter
5455 ) {
55- $ this ->relativePathHelper = $ relativePathHelper ;
56+ $ this ->relativePathHelper = $ relativePathHelper ;
5657 $ this ->tableErrorformatter = $ tableErrorformatter ;
5758 }
5859
@@ -66,9 +67,12 @@ public function formatErrors(AnalysisResult $analysisResult, Output $output): in
6667 'line ' => $ fileSpecificError ->getLine (),
6768 'col ' => 0 ,
6869 ];
69- array_walk ($ metas , static function (&$ value , string $ key ): void {
70- $ value = sprintf ('%s=%s ' , $ key , (string ) $ value );
71- });
70+ array_walk (
71+ $ metas ,
72+ static function (&$ value , string $ key ): void {
73+ $ value = sprintf ('%s=%s ' , $ key , (string ) $ value );
74+ }
75+ );
7276
7377 $ message = $ fileSpecificError ->getMessage ();
7478 // newlines need to be encoded
@@ -105,4 +109,5 @@ public function formatErrors(AnalysisResult $analysisResult, Output $output): in
105109
106110 return $ analysisResult ->hasErrors () ? 1 : 0 ;
107111 }
112+
108113}
0 commit comments