Skip to content

Commit

Permalink
Applied CS fixes from 2.17-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell authored Oct 28, 2020
1 parent 0c6db16 commit 755deae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Documentation/DocumentationGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function __construct()
'toFile' => 'New',
]));

$this->path = \dirname(\dirname(__DIR__)).'/doc/rules';
$this->path = \dirname(__DIR__, 2).'/doc/rules';
}

/**
Expand Down Expand Up @@ -358,7 +358,7 @@ private function generateSampleDiff(FixerInterface $fixer, CodeSampleInterface $
the sample is not suitable for current version of PHP (%s).
RST;

return sprintf($error, \PHP_VERSION);
return sprintf($error, PHP_VERSION);
}

$old = $sample->getCode();
Expand All @@ -380,7 +380,7 @@ private function generateSampleDiff(FixerInterface $fixer, CodeSampleInterface $
// Psr0Fixer relies on realpath() which fails for directories
// relative to some path when the working directory is a
// different path. Using an absolute path prevents this issue.
$configuration['dir'] = \dirname(\dirname(__DIR__)).substr($configuration['dir'], 1);
$configuration['dir'] = \dirname(__DIR__, 2).substr($configuration['dir'], 1);
}

$fixer->configure($configuration);
Expand Down

0 comments on commit 755deae

Please sign in to comment.