Skip to content

Commit

Permalink
refactor: remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
thorbrink committed Mar 5, 2025
1 parent 6e24070 commit 05a241d
Show file tree
Hide file tree
Showing 6 changed files with 89 additions and 99 deletions.
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
"lint:changed": "vendor/bin/phpcs-changed origin/main",
"fix": "vendor/bin/phpcbf",
"fix:changed": "vendor/bin/phpcbf-changed origin/main",
"post-update-cmd": []
"post-update-cmd": [],
"unused": "vendor/bin/class-leak check library"
},
"config": {
"allow-plugins": {
Expand All @@ -69,7 +70,8 @@
"10up/wp_mock": "dev-trunk#1.0.1",
"php-mock/php-mock-mockery": "^1.4",
"php-stubs/wordpress-stubs": "^6.7",
"dg/bypass-finals": "^1.9"
"dg/bypass-finals": "^1.9",
"tomasvotruba/class-leak": "^2.0"
},
"autoload": {
"psr-4": {
Expand Down
120 changes: 84 additions & 36 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion library/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ private function setupExternalContent(): void
* Trigger sync of external content.
*/
$triggerSync = new \Municipio\ExternalContent\SyncHandler\Triggers\TriggerSync($this->wpService);
//$triggerSync = new \Municipio\ExternalContent\SyncHandler\Triggers\TriggerSyncIfNotInProgress(new \Municipio\ExternalContent\SyncHandler\SyncInProgress\PostTypeSyncInProgress($this->wpService), $triggerSync);
$triggerSync = new \Municipio\ExternalContent\SyncHandler\Triggers\TriggerSyncIfNotInProgress(new \Municipio\ExternalContent\SyncHandler\SyncInProgress\PostTypeSyncInProgress($this->wpService), $triggerSync);
(new \Municipio\ExternalContent\SyncHandler\Triggers\TriggerSyncFromGetParams($this->wpService, $triggerSync))->addHooks();

/**
Expand Down

This file was deleted.

13 changes: 0 additions & 13 deletions library/ExternalContent/SyncHandler/SyncHandlerInterface.php

This file was deleted.

9 changes: 0 additions & 9 deletions library/SchemaData/Settings/SchemaDataSettingsInterface.php

This file was deleted.

0 comments on commit 05a241d

Please sign in to comment.