Skip to content

Commit

Permalink
Bumped the version
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelsud committed Oct 1, 2017
1 parent 0115ad9 commit abc484f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM php:7

RUN curl -LO https://github.com/marcelsud/diffcs/releases/download/v0.2.0/diffcs.phar && chmod +x diffcs.phar && mv diffcs.phar /usr/local/bin/diffcs
RUN curl -LO https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar && chmod +x phpcs.phar && mv phpcs.phar /usr/local/bin/phpcs

ENTRYPOINT ["diffcs"]
CMD ["--help"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ You can grab a copy of marcelsud/diffcs in either of the following ways:
You can simply download a pre-compiled and ready-to-use version as a Phar to any directory. Simply download the latest diffcs.phar file from our [releases page](https://github.com/marcelsud/diffcs/releases):

```
curl -LO https://github.com/marcelsud/diffcs/releases/download/v0.2.0/diffcs.phar
curl -LO https://github.com/marcelsud/diffcs/releases/download/v0.2.1/diffcs.phar
php diffcs.phar --help
```

Expand Down
4 changes: 2 additions & 2 deletions src/Melody/Diffcs/Executor.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public function runCodeSniffer($downloadedFiles)
}

$command = sprintf(
"php $phpcsBinPath %s/%s --standard=%s",
"$phpcsBinPath %s/%s --standard=%s",
sys_get_temp_dir(),
$file,
$this->codeStandard
Expand All @@ -201,7 +201,7 @@ public function runCodeSniffer($downloadedFiles)

private static function getPhpCsBinPath()
{
$phpcsBinPath = shell_exec('which phpcs');
$phpcsBinPath = trim(shell_exec('which phpcs'));

if (!$phpcsBinPath) {
$phpcsBinPath = sys_get_temp_dir() . '/.diffcs/phpcs';
Expand Down

0 comments on commit abc484f

Please sign in to comment.