43
43
< div id ="right ">
44
44
< div id ="rightInner ">
45
45
< div id ="content ">
46
+ <!-- =================================================
47
+ Copyright (C) 2019 The Trustees of Indiana University
48
+ SPDX-License-Identifier: BSD-3-Clause
49
+ ================================================== -->
46
50
< h1 > Developer Guide</ h1 >
47
51
< p > This guide is for people interested in developing PHPCap (i.e., actually making changes to the PHPCap code). If you just want to use PHPCap to access REDCap from PHP, please see the
48
52
user guides.</ p >
@@ -60,7 +64,7 @@ <h2 id="Setup">Setup</h2>
60
64
See: < a href ="https://git-scm.com/downloads "> https://git-scm.com/downloads</ a > </ li >
61
65
< li >
62
66
< p > Get PHPCap:</ p >
63
- < div class ="description "> < pre > < code class ="language-shell "> git clone https://github.com/aarenson/PHPCap </ code > </ pre > </ div >
67
+ < div class ="description "> < pre > < code class ="language-shell "> git clone https://github.com/iuredcap/phpcap </ code > </ pre > </ div >
64
68
</ li >
65
69
< li > Get Composer. Composer is needed to download the development depedencies for PHPCap.
66
70
See: < a href ="https://getcomposer.org/download/ "> https://getcomposer.org/download/</ a > .
@@ -83,7 +87,7 @@ <h3 id="Example Setup on Ubuntu 16">Example Setup on Ubuntu 16</h3>
83
87
< div class ="description "> < pre > < code class ="language-shell "> sudo apt-get install php php-curl php-xml php-mbstring
84
88
sudo apt-get install php-xdebug
85
89
sudo apt-get install git
86
- git clone https://github.com/aarenson/PHPCap
90
+ git clone https://github.com/iuredcap/phpcap
87
91
sudo apt-get install composer
88
92
cd PHPCap
89
93
composer install</ code > </ pre > </ div >
@@ -238,13 +242,14 @@ <h3 id="Coding Standard Compliance">Coding Standard Compliance</h3>
238
242
< li > < a href ="http://www.php-fig.org/psr/psr-2/ "> http://www.php-fig.org/psr/psr-2/</ a > </ li >
239
243
</ ul >
240
244
< p > To check for compliance for the PHPCap source code, execute the following command in the root directory of PHPCap:</ p >
241
- < div class ="description "> < pre > < code > ./vendor/bin/phpcs --standard=PSR1,PSR2 src</ code > </ pre > </ div >
245
+ < div class ="description "> < pre > < code > ./vendor/bin/phpcs src</ code > </ pre > </ div >
242
246
< p > To check compliance for the automated tests, use:</ p >
243
- < div class ="description "> < pre > < code > ./vendor/bin/phpcs --standard=PSR1,PSR2 tests/unit tests/integration</ code > </ pre > </ div >
244
- < p > To check for compliance for the PHPCap source code and the tests, use:</ p >
245
- < div class ="description "> < pre > < code > ./vendor/bin/phpcs --standard=PSR1,PSR2 src tests/unit tests/integration</ code > </ pre > </ div >
247
+ < div class ="description "> < pre > < code > ./vendor/bin/phpcs tests/unit tests/integration</ code > </ pre > </ div >
248
+ < p > To check for compliance for the PHPCap source code and the tests, use the default settings
249
+ (defined in the top-level phpcs.xml file):</ p >
250
+ < div class ="description "> < pre > < code > ./vendor/bin/phpcs</ code > </ pre > </ div >
246
251
< p > You can check specific files for compliance by specifying the path to the file, for example:</ p >
247
- < div class ="description "> < pre > < code > ./vendor/bin/phpcs --standard=PSR1,PSR2 src/RedCapProject.php </ code > </ pre > </ div >
252
+ < div class ="description "> < pre > < code > ./vendor/bin/phpcs src/RedCapProject.php </ code > </ pre > </ div >
248
253
< p > Note that if you are working on Windows and have the git property < strong > core.autocrlf</ strong > set to true, you may see errors similar to the following:</ p >
249
254
< div class ="description "> < pre > < code > ----------------------------------------------------------------------
250
255
FOUND 1 ERROR AFFECTING 1 LINE
0 commit comments