digitalpoint
Well-known member
I started running some code compatibility checks for PHP 8.1 and most everything that came up were old PHP files that weren't even part of XenForo any longer (but still existed on the server).
So then I started down the road of making a XenForo Cli command that reads the hashes.json files, looks at all the files that don't have an entry there, but exist on the server. Low and behold, the first site I tried it on, there were over 1,500 files that are "leftover" from previous versions of XenForo.
Once I realized how many there actually were, I figured I would check if I'm just building something that already exists (bigger issue than I realized). Is there something I'm missing in XF that cleans up old/unused files before I keep working on this?
So then I started down the road of making a XenForo Cli command that reads the hashes.json files, looks at all the files that don't have an entry there, but exist on the server. Low and behold, the first site I tried it on, there were over 1,500 files that are "leftover" from previous versions of XenForo.
Once I realized how many there actually were, I figured I would check if I'm just building something that already exists (bigger issue than I realized). Is there something I'm missing in XF that cleans up old/unused files before I keep working on this?
Code:
...[clipped a ton]...
src/vendor/stripe/stripe-php/tests/Stripe/CouponTest.php
src/vendor/stripe/stripe-php/tests/Stripe/ProductTest.php
src/vendor/stripe/stripe-php/tests/Stripe/HttpClient/CurlClientTest.php
src/vendor/stripe/stripe-php/tests/Stripe/ApiRequestorTest.php
src/vendor/stripe/stripe-php/tests/Stripe/ExchangeRateTest.php
src/vendor/stripe/stripe-php/tests/Stripe/TransferReversalTest.php
src/vendor/stripe/stripe-php/tests/Stripe/PlanTest.php
src/vendor/stripe/stripe-php/tests/Stripe/PersonTest.php
src/vendor/stripe/stripe-php/tests/Stripe/SubscriptionTest.php
src/vendor/stripe/stripe-php/tests/Stripe/PriceTest.php
src/vendor/stripe/stripe-php/tests/Stripe/PaymentIntentTest.php
src/vendor/stripe/stripe-php/tests/Stripe/WebhookTest.php
src/vendor/stripe/stripe-php/tests/Stripe/StripeTelemetryTest.php
src/vendor/stripe/stripe-php/tests/bootstrap.php
src/vendor/stripe/stripe-php/tests/TestHelper.php
src/vendor/stripe/stripe-php/phpunit.no_autoload.xml
src/vendor/swiftmailer/swiftmailer/phpunit.xml.dist
src/vendor/swiftmailer/swiftmailer/.php_cs.dist
src/vendor/swiftmailer/swiftmailer/.gitignore
src/vendor/swiftmailer/swiftmailer/lib/swift_required_pear.php
src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Encoding.php
src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/MailTransport.php
src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/MailTransport.php
src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/MailInvoker.php
src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/SimpleMailInvoker.php
src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/SignedMessage.php
src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Grammar.php
src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/HeaderFactory.php
src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/HeaderSet.php
src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/ParameterizedHeader.php
src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Message.php
src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/MimeEntity.php
src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Validate.php
src/vendor/swiftmailer/swiftmailer/lib/swift_init.php
src/vendor/swiftmailer/swiftmailer/.travis.yml
src/vendor/swiftmailer/swiftmailer/README
src/vendor/swiftmailer/swiftmailer/.gitattributes
src/vendor/swiftmailer/swiftmailer/VERSION
src/vendor/swiftmailer/swiftmailer/.github/ISSUE_TEMPLATE.md
src/vendor/swiftmailer/swiftmailer/.github/PULL_REQUEST_TEMPLATE.md
src/vendor/composer/platform_check.php
src/vendor/pelago/emogrifier/phpcs.xml.dist
src/vendor/pelago/emogrifier/config/phpmd.xml
src/vendor/pelago/emogrifier/config/php-cs-fixer.php
src/vendor/pelago/emogrifier/src/Emogrifier/CssConcatenator.php
src/vendor/pelago/emogrifier/Classes/Emogrifier.php
src/vendor/pelago/emogrifier/.gitignore
src/vendor/pelago/emogrifier/.travis.yml
src/vendor/pelago/emogrifier/CODE_OF_CONDUCT.md
src/vendor/pelago/emogrifier/CONTRIBUTING.md
src/vendor/spomky-labs/base64url/infection.json.dist
src/vendor/oyejorge/less.php/bin/lessc
src/vendor/oyejorge/less.php/.gitignore
src/vendor/oyejorge/less.php/.gitattributes
src/vendor/psr/log/.gitignore
src/vendor/laminas/laminas-mail/src/Header/HeaderLocatorInterface.php
src/vendor/laminas/laminas-mail/src/Header/HeaderLocator.php
src/vendor/laminas/laminas-validator/src/UndisclosedPassword.php
src/index.html
src/vendor-patch/League/Flysystem/CorruptedPathDetected.php
src/vendor-patch/League/Flysystem/Util.php
src/vendor-patch/Laminas/Mail/Address.php
src/vendor-patch/Laminas/Mail/Headers.php
src/vendor-patch/Zend/Mail/Address.php
src/vendor-patch/Zend/Mail/Headers.php
src/XF/Job/LikeCount.php
src/XF/Job/UserRemoveLikes.php
src/XF/AddOn/CheckRequirementsInterface.php
src/XF/Permission/AbstractFlatPermissions.php
src/XF/Template/Compiler/Fn/PreEscaped.php
src/XF/Template/Compiler/Fn/Vars.php
src/XF/Template/Compiler/Fn/IncludeFn.php
src/XF/Template/Compiler/Fn/AbstractFn.php
src/XF/Template/Compiler/Fn/EmptyFn.php
src/XF/Template/Compiler/Fn/Phrase.php
src/XF/Install/Upgrade/2001170-2011.php
src/XF/Like/ProfilePostComment.php
src/XF/Like/ConversationMessage.php
src/XF/Like/ProfilePost.php
src/XF/Like/Post.php
src/XF/Option/EnableTrophies.php
src/XF/Mvc/Entity/RapidEntity.php
src/XF/Import/Importer/vBulletinBlogTrait.php
src/XF/Import/Importer/vBulletin36.php
src/XF/Import/Importer/XenForo2.php
src/XF/Import/Importer/vBulletin4WithBlog.php
src/XF/Import/Importer/vBulletin.php
src/XF/Import/Importer/vBulletin4.php
src/XF/Import/Importer/vBulletin5.php
src/XF/Import/Importer/vBulletin4BlogTrait.php
src/XF/Import/Importer/vBulletinWithBlog.php
src/XF/Import/Data/vBulletinBlogUser.php
src/XF/Import/Data/vBulletinBlogEntry.php
src/XF/Import/Data/vBulletinBlogText.php
src/XF/Import/Data/vBulletinBlogAttachmentVB4.php
src/XF/Import/Data/vBulletinBlogAttachment.php
src/XF/Admin/Controller/RapidController.php
src/XF/Authentication/IPBoard.php
src/XF/Authentication/IPBoard40x.php
Total: 1567