* Refactor deploy:cleanup Command
Remove $runOpts since it's not actually used
Move release symlink deletion to beginning of method. This will
allow the release symlink to be deleted even if deleting the old
releases fails.
* Refactor deploy:releases_log
Fixes issue where multiple failed releases in a row cause old
releases to not be cleaned up.
Fixes#2759
Co-authored-by: Anton Medvedev <anton@medv.io>
As well rename test dir to tests, as Pest does not support dir without s on the end.
Also, remove PHP requirement from composer.json as we already have check-in bin/dep and it's better to have the check only in one place (now they already out of sync).