@@ -115,23 +115,23 @@ public function getLine(string $line, array $args = [])
115115
116116 // Parse out the file name and the actual alias.
117117 // Will load the language file and strings.
118- list ( $ file , $ parsedLine) = $ this ->parseLine ($ line , $ this ->locale );
118+ [ $ file , $ parsedLine] = $ this ->parseLine ($ line , $ this ->locale );
119119
120120 $ output = $ this ->getTranslationOutput ($ this ->locale , $ file , $ parsedLine );
121121
122122 if ($ output === null && strpos ($ this ->locale , '- ' ))
123123 {
124- list ( $ locale) = explode ('- ' , $ this ->locale , 2 );
124+ [ $ locale] = explode ('- ' , $ this ->locale , 2 );
125125
126- list ( $ file , $ parsedLine) = $ this ->parseLine ($ line , $ locale );
126+ [ $ file , $ parsedLine] = $ this ->parseLine ($ line , $ locale );
127127
128128 $ output = $ this ->getTranslationOutput ($ locale , $ file , $ parsedLine );
129129 }
130130
131131 // if still not found, try English
132132 if ($ output === null )
133133 {
134- list ( $ file , $ parsedLine) = $ this ->parseLine ($ line , 'en ' );
134+ [ $ file , $ parsedLine] = $ this ->parseLine ($ line , 'en ' );
135135
136136 $ output = $ this ->getTranslationOutput ('en ' , $ file , $ parsedLine );
137137 }
0 commit comments