Skip to content
Snippets Groups Projects
Commit a6aa3b24 authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

bugfix(duplicated method): fixed method duplication

parent 9d3f88ac
No related branches found
No related tags found
1 merge request!6Feature/no dev
Pipeline #11571 passed
......@@ -60,19 +60,6 @@ class PrepareActivationReminderCommand extends BaseCommand
$output->writeln( "Activation reminder created." );
}
private function create_or_get_target_file_name( array $class_map, $random_class, $random_letter ) {
$target_file_store = 'vendor/wpdesk/wp-wpdesk-activation-reminder/target-file';
if ( ! file_exists( $target_file_store ) ) {
$target_file = $class_map[ $random_class ];
$target_file = str_replace( '.php', $random_letter . '.php', $target_file );
$target_file = str_replace( getcwd() . '/vendor/composer/../../', '', $target_file );
file_put_contents( $target_file_store, $target_file );
}
return file_get_contents( $target_file_store );
}
private function create_or_get_target_file_name( array $class_map, $random_class, $random_letter ) {
$target_file_store = 'vendor/wpdesk/wp-wpdesk-activation-reminder/target-file';
if ( ! file_exists( $target_file_store ) ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment