File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
system/Commands/Translation Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 20
20
use RecursiveIteratorIterator ;
21
21
use SplFileInfo ;
22
22
23
+ /**
24
+ * @see \CodeIgniter\Commands\Translation\LocalizationFinderTest
25
+ */
23
26
class LocalizationFinder extends BaseCommand
24
27
{
25
28
protected $ group = 'Translation ' ;
@@ -254,10 +257,8 @@ private function replaceArraySyntax(string $code): string
254
257
}
255
258
256
259
// Replace indent
257
- if ($ tokenId === T_WHITESPACE ) {
258
- if (preg_match ('/\n([ ]+)/u ' , $ tokenValue , $ matches )) {
259
- $ newTokens [$ i ][1 ] = "\n{$ matches [1 ]}{$ matches [1 ]}" ;
260
- }
260
+ if ($ tokenId === T_WHITESPACE && preg_match ('/\n([ ]+)/u ' , $ tokenValue , $ matches )) {
261
+ $ newTokens [$ i ][1 ] = "\n{$ matches [1 ]}{$ matches [1 ]}" ;
261
262
}
262
263
} // Replace ")"
263
264
elseif ($ token === ') ' ) {
You can’t perform that action at this time.
0 commit comments