Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REFACTOR] Refactor to PSR-12 #13

Merged
merged 1 commit into from
Mar 9, 2022
Merged

[REFACTOR] Refactor to PSR-12 #13

merged 1 commit into from
Mar 9, 2022

Conversation

jenkoian
Copy link
Contributor

@jenkoian jenkoian commented Mar 7, 2022

This is the first commit in preparation for a version 1 and includes the
following:

  • Refactor code base to PSR-12
  • Includes php-cs-fixer to enforce PSR-12
  • Uses PSR-4 and utilises the composer autoloader
  • Renames the php directory to src
  • Dropped PHP 5.6 support
  • Runs composer update instead of composer install on travis due to
    no lock file being committed it makes sense to always use update.

Future PRs will likely drop support for travis altogether in favour ot
GH actions, the main reason for this is the PHP8.1 build doesn't seem to
run and I can't work out why.

@jenkoian jenkoian force-pushed the refactor-for-1x branch 10 times, most recently from 6b3b8e0 to 552a033 Compare March 7, 2022 15:57
@andrewjt71
Copy link

andrewjt71 commented Mar 9, 2022

Some minor feedback:

This PR is also:

  • Upgrading travis dist
  • Updating deps rather than install on travis
  • Dropping travis builds for php5.6

May be worth adding these to the commit message.

Also, the commit isn't aligned with https://boxukltd.atlassian.net/wiki/spaces/BUDH/pages/160276496/Commit+Messages

Approved though as code changes look good

Edit:
Ignore "Also, the commit isn't aligned with https://boxukltd.atlassian.net/wiki/spaces/BUDH/pages/160276496/Commit+Messages", as this is a public repo

This is the first commit in preparation for a version 1 and includes the
following:

* Refactor code base to PSR-12
* Includes php-cs-fixer to enforce PSR-12
* Uses PSR-4 and utilises the composer autoloader
* Renames the `php` directory to `src`
* Dropped PHP 5.6 support
* Runs `composer update` instead of `composer install` on travis due to
  no lock file being committed it makes sense to always use update.

Future PRs will likely drop support for travis altogether in favour ot
GH actions, the main reason for this is the PHP8.1 build doesn't seem to
run and I can't work out why.
@jenkoian jenkoian changed the title Refactor to PSR-12 [REFACTOR] Refactor to PSR-12 Mar 9, 2022
@jenkoian
Copy link
Contributor Author

jenkoian commented Mar 9, 2022

@andrewjt71 cheers! All points addressed and commit message beefed up 💪

@jenkoian jenkoian merged commit 0af09e0 into master Mar 9, 2022
@jenkoian jenkoian deleted the refactor-for-1x branch March 9, 2022 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants