Skip to content

Commit

Permalink
Scrutinizer fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
polothy committed Jun 1, 2017
1 parent 222e72a commit a5a9ec4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Command/MustacheCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
// This is a workaround to execute mustache_lint.php file from within a phar.
$filesystem = new Filesystem();
$wrapper = tempnam(sys_get_temp_dir(), 'mustache-linter-wrapper');
$filesystem->dumpFile($wrapper, "<?php include '$linter';");
$filesystem->dumpFile($wrapper, sprintf('<?php include \'%s\';', $linter));

$code = 0;
foreach ($files as $file) {
Expand Down
2 changes: 1 addition & 1 deletion src/Command/ParallelCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
*/
public function initializeProcesses()
{
$bin = $command = 'php '.$_SERVER['PHP_SELF'];
$bin = 'php '.$_SERVER['PHP_SELF'];
$plugin = $this->plugin->directory;
$moodle = $this->moodle->directory;

Expand Down

0 comments on commit a5a9ec4

Please sign in to comment.