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

Converted to PSR-2 #5

Open
wants to merge 48 commits into
base: master
Choose a base branch
from

Conversation

helpfulrobot
Copy link

Hello!

I'm helpful robot. I noticed there were some deviations from PSR-2 in your code. The core committer team recently decided to transition SilverStripe Framework and CMS to PSR-2, and the supported module standard recommends following PSR-2. I've gone ahead and converted files in code and tests to PSR-2. If this sounds like something you'd like to merge then go right ahead! Feel free to ask questions or make suggestions for how I can help you more. I've been programmed with a wide range of responses.

Have a nice day! [gzzzzrrrkt]

kmayo-ss and others added 30 commits July 23, 2014 14:34
Fix javascript errors starting the job
Make sure that process yields to queuedjobs after each page
API Add description for response code to report
Fixing CurlLinkChecker::checkLink() using incorrect visibility
Fixing CSV export columns to match the ones show in broken links report
Fixing static visibility and moving method to underneath statics
Removing unused static funcs and moving existing statics to top of class
admin/externallinks/start is called, but asynchronously, so the poll()
call is never called immediately on start, you have to refresh the page
to get it to show.
Damian Mooyman and others added 17 commits August 13, 2014 17:36
BUG Indicator stuck on 0% until you refresh the page.
PHPUnit had a Functions.php with global methods like any() for a while (3.7 at least),
which clashes with similar globals from Hamcrest (used in Phockito).

Both PHPUnit and Phockito use 'classmap' composer autoloading,
but that's not directly requiring/evaluating the files.
The problem is caused by SilverStripe's ClassLoader
which does require ALL subclasses of SapphireTest.
This in turn causes PHP outside of the class context to execute,
which includes Hamcrest.

Changing the include_hamcrest() is not strictly necessary here,
but makes the code a bit more resilient against any preceding
test including Functions.php from PHPUnit.

See hafriedlander/phockito#32 for context.
…hamcrest-globals

Include Hamcrest without clashing with PHPUnit globals
Move to new travis containerised infrastructure
…e-of-conduct

Added standard code of conduct
…torconfig-file

Added standard .editorconfig file
@helpfulrobot helpfulrobot force-pushed the convert-to-psr-2 branch 6 times, most recently from 4d08953 to 1cef1d1 Compare December 25, 2015 21:49
@helpfulrobot helpfulrobot force-pushed the convert-to-psr-2 branch 2 times, most recently from ed86811 to 7afffaf Compare December 31, 2015 11:03
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.

8 participants