| @@ 111-123 (lines=13) @@ | ||
| 108 | * | |
| 109 | * @return void | |
| 110 | */ | |
| 111 | public function runMd() | |
| 112 |     { | |
| 113 | ||
| 114 | // run the mess detector | |
| 115 | $this->_exec( | |
| 116 | sprintf( | |
| 117 | '%s/bin/phpmd %s xml phpmd.xml --reportfile %s/reports/pmd.xml --ignore-violations-on-exit', | |
| 118 | $this->properties['vendor.dir'], | |
| 119 | $this->properties['src.dir'], | |
| 120 | $this->properties['target.dir'] | |
| 121 | ) | |
| 122 | ); | |
| 123 | } | |
| 124 | ||
| 125 | /** | |
| 126 | * Run's the PHPCPD. | |
| @@ 130-142 (lines=13) @@ | ||
| 127 | * | |
| 128 | * @return void | |
| 129 | */ | |
| 130 | public function runCpd() | |
| 131 |     { | |
| 132 | ||
| 133 | // run the copy past detector | |
| 134 | $this->_exec( | |
| 135 | sprintf( | |
| 136 | '%s/bin/phpcpd %s --log-pmd %s/reports/pmd-cpd.xml', | |
| 137 | $this->properties['vendor.dir'], | |
| 138 | $this->properties['src.dir'], | |
| 139 | $this->properties['target.dir'] | |
| 140 | ) | |
| 141 | ); | |
| 142 | } | |
| 143 | ||
| 144 | /** | |
| 145 | * Run's the PHPCodeSniffer. | |
| @@ 149-161 (lines=13) @@ | ||
| 146 | * | |
| 147 | * @return void | |
| 148 | */ | |
| 149 | public function runCs() | |
| 150 |     { | |
| 151 | ||
| 152 | // run the code sniffer | |
| 153 | $this->_exec( | |
| 154 | sprintf( | |
| 155 | '%s/bin/phpcs -n --extensions=php --standard=psr2 --report-full --report-checkstyle=%s/reports/phpcs.xml %s', | |
| 156 | $this->properties['vendor.dir'], | |
| 157 | $this->properties['target.dir'], | |
| 158 | $this->properties['src.dir'] | |
| 159 | ) | |
| 160 | ); | |
| 161 | } | |
| 162 | ||
| 163 | /** | |
| 164 | * Run's the PHPUnit tests. | |