Skip to content

Commit

Permalink
Merge pull request #139 from raphaelstolt/pds-compliance
Browse files Browse the repository at this point in the history
Enable PDS compliance
  • Loading branch information
bmitch authored Oct 7, 2017
2 parents d8d10e5 + d0c4a1e commit 60b09ed
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ script:
- vendor/bin/phpmd src text codesize,unusedcode
- vendor/bin/phploc src
- vendor/bin/phpcpd src
- php churn run
- php bin/churn run

after_success:
- bash <(curl -s https://codecov.io/bash)
File renamed without changes.
4 changes: 2 additions & 2 deletions bootstrap.php → bin/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

if (is_file($autoload = __DIR__.'/vendor/autoload.php')) {
if (is_file($autoload = __DIR__ . '/../vendor/autoload.php')) {
require_once($autoload);
} elseif (is_file($autoload = __DIR__ . '/../../autoload.php')) {
} elseif (is_file($autoload = __DIR__ . '/../../../autoload.php')) {
require_once($autoload);
} else {
fwrite(STDERR,
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
],
"bin": [
"churn"
"bin/churn"
],
"require": {
"php": "^7.0",
Expand Down Expand Up @@ -57,7 +57,7 @@
"vendor/bin/phploc src",
"vendor/bin/phpcpd src",
"vendor/bin/phpunit --debug --coverage-clover=coverage.xml",
"php churn run src"
"php bin/churn run src"
],
"fix": [
"vendor/bin/phpcbf -n --standard=phpcs.xml src/",
Expand Down
2 changes: 1 addition & 1 deletion src/Factories/ProcessFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function createGitCommitProcess(File $file): ChurnProcess
*/
public function createCyclomaticComplexityProcess(File $file): ChurnProcess
{
$rootFolder = __DIR__ . '/../../';
$rootFolder = __DIR__ . '/../../bin/';

$process = new Process(
"php {$rootFolder}CyclomaticComplexityAssessorRunner {$file->getFullPath()}"
Expand Down

0 comments on commit 60b09ed

Please sign in to comment.