Adding PHP Codesniffer to the CI (#925)
commitfc264ae9590dcec5c4fa7560c5793550004aebeb
authorJason Oettinger <jason@oettinger.email>
Fri, 14 Jul 2017 22:51:00 +0000 (14 18:51 -0400)
committerBrady Miller <brady.g.miller@gmail.com>
Fri, 14 Jul 2017 22:51:00 +0000 (14 15:51 -0700)
tree0438eec6a7f0f933fd81ed8be16736185de0df55
parent5ae29e497928a7d6125c610c9f7c88be41b9b6c0
Adding PHP Codesniffer to the CI (#925)

* Running phpcbf over `.inc` files that were missed.
Suspiciously, 4 `.php` files were also fixed. No real explanation as to why, but I don't see any harm in the changes so I'm committing.

* Adding phpcs to the ci pipeline

* Manually fixed remaining errors. Mostly DocBlock comments, autogenerated using git blame.

* Fixing a few issues that slipped by due to my phpcs 2.7 vs 3.0 in CI.
Requiring specific version in CI now
78 files changed:
.travis.yml
ci/ci.sh [new file with mode: 0755]
ci/lint.sh [deleted file]
ci/phpcs.xml [moved from phpcs.xml with 89% similarity]
ci/phpunit.xml [moved from phpunit.xml with 100% similarity]
contrib/forms/assessment_intake/view.php
contrib/forms/contacts/new.php
contrib/forms/contacts/view.php
contrib/forms/hearingtest/new.php
contrib/forms/hearingtest/view.php
contrib/forms/obstetrical/new.php
contrib/forms/obstetrical/view.php
contrib/forms/pain/new.php
contrib/forms/pain/view.php
contrib/forms/ped_GI/view.php
contrib/forms/ped_fever/view.php
contrib/forms/ped_pain/view.php
contrib/forms/reviewofs/new.php
contrib/forms/reviewofs/view.php
contrib/forms/vision/new.php
contrib/forms/vision/view.php
contrib/util/express.php
custom/export_demographics.php
custom/qrda_category1.inc
interface/forms/CAMOS/view.php
interface/forms/ankleinjury/new.php
interface/forms/ankleinjury/view.php
interface/forms/bronchitis/new.php
interface/forms/bronchitis/view.php
interface/forms/dictation/new.php
interface/forms/dictation/view.php
interface/forms/note/new.php
interface/forms/note/report.php
interface/forms/note/save.php
interface/forms/note/view.php
interface/forms/reviewofs/new.php
interface/forms/reviewofs/view.php
interface/language/lang_definition.php
interface/main/dated_reminders/dated_reminders_add.php
interface/therapy_groups/therapy_groups_views/pastMeetingsComponent.php
library/acl.inc
library/api.inc
library/auth.inc
library/billing.inc
library/billrep.inc
library/calendar.inc
library/classes/html2text.class.php
library/classes/rulesets/Amc/reports/AMC_304b_1_STG2/Numerator.php
library/classes/rulesets/Amc/reports/AMC_304b_2_STG2/Denominator.php
library/classes/rulesets/Cqm/reports/NFQ_0038/InitialPatientPopulation.php
library/classes/rulesets/Cqm/reports/NFQ_0421/Numerator1.php
library/classes/rulesets/Cqm/reports/NFQ_0421/Numerator2.php
library/direct_message_check.inc
library/dynarch_calendar_en.inc.php
library/edi.inc
library/encounter.inc
library/forms.inc
library/globals.inc.php
library/group.inc
library/lists.inc
library/log.inc
library/options_listadd.inc
library/patient.inc
library/pid.inc
library/pnotes.inc
library/registry.inc
library/report.inc
library/report_database.inc
library/restoreSession.php
library/sql-ccr.inc
library/sql.inc
library/standard_tables_capture.inc
library/transactions.inc
library/user.inc
patients/get_patient_info.php
portal/add_edit_event_user.php
portal/lib/portal_mail.inc
portal/lib/portal_pnotes.inc