Merge pull request #43 from creative-commoners/pulls/2.0/remove-self

ENH Use class name instead of self
This commit is contained in:
Guy Sartorelli 2024-06-17 12:44:42 +12:00 committed by GitHub
commit 6a56f5c4ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -96,8 +96,8 @@ class RecipePlugin implements PluginInterface, EventSubscriberInterface, Capable
$data = $file->read();
// Remove project and public files from project
unset($data['extra'][self::PROJECT_FILES]);
unset($data['extra'][self::PUBLIC_FILES]);
unset($data['extra'][RecipePlugin::PROJECT_FILES]);
unset($data['extra'][RecipePlugin::PUBLIC_FILES]);
// Remove redundant empty extra
if (empty($data['extra'])) {