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