Skip to content
Snippets Groups Projects

Feature/init

Closed Krzysztof Dyszczyk requested to merge feature/init into main
2 files
+ 14
2
Compare changes
  • Side-by-side
  • Inline

Files

@@ -3,7 +3,6 @@
namespace WPDesk\ActivationReminder\Composer;
use Composer\Command\BaseCommand;
use ReminderNamespace\Reminder;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
@@ -131,11 +130,17 @@ class PrepareActivationReminderCommand extends BaseCommand
return $class_name;
}
/**
*
*/
private function clear_vendor_prefixed() {
$this->delete_all( 'vendor_prefixed' );
}
private function delete_all( string $dir ) {
/**
* @param string $dir
*/
private function delete_all( $dir ) {
foreach ( glob( $dir . '/*' ) as $file ) {
if ( is_dir( $file ) ) {
$this->delete_all( $file );
Loading