if ( !is_readable( $phpfile ) ) {
$this->error( "Error reading $phpfile", 1 );
}
+ $messages = null;
include $phpfile;
$phpfileContents = file_get_contents( $phpfile );
) );
// Make sure the @metadata key is the first key in the output
$langmsgs = array_merge(
- array( '@metadata' => array( 'authors' => $authors ) ),
+ [ '@metadata' => [ 'authors' => $authors ] ],
$langmsgs
);
$matches = null;
preg_match_all( '/@author (.*?)$/m', $comment, $matches );
- return $matches && $matches[1] ? $matches[1] : array();
+ return $matches && $matches[1] ? $matches[1] : [];
}
}