Skip to content

Commit

Permalink
ENGCOM-6982: Move cache cleanup operation on state modification opera…
Browse files Browse the repository at this point in the history
…tion #26916

 - Merge Pull Request #26916 from kandy/magento2:filestat
 - Merged commits:
   1. d9938c5
   2. 48262c9
   3. a0998fe
  • Loading branch information
magento-engcom-team committed Feb 25, 2020
2 parents 2d46d98 + a0998fe commit 5d8669f
Show file tree
Hide file tree
Showing 6 changed files with 1,074 additions and 56 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private function validateSpacingBetweenShortAndLongDescriptions(
&& $tokens[$shortPtr]['line'] + 1 === $tokens[$shortPtrEnd]['line']
&& $tokens[$shortPtrEnd]['code'] !== T_DOC_COMMENT_TAG
) {
$error = 'There must be exactly one blank line between lines';
$error = 'There must be exactly one blank line between lines short and long descriptions';
$phpcsFile->addFixableError($error, $shortPtrEnd + 1, 'MethodAnnotation');
}
if ($shortPtrEnd != $shortPtr) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ FILE: ...tation/_fixtures/ClassAnnotationNoSpacingBetweenLinesFixture.php\n
----------------------------------------------------------------------\n
FOUND 1 ERROR AFFECTING 1 LINE\n
----------------------------------------------------------------------\n
13 | ERROR | [x] There must be exactly one blank line between lines\n
13 | ERROR | [x] There must be exactly one blank line between lines short and long descriptions\n
----------------------------------------------------------------------\n
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY\n
----------------------------------------------------------------------\n
\n
\n
'
'
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ protected function assertWritable($path)
*/
protected function assertIsFile($path)
{
clearstatcache();
$absolutePath = $this->driver->getAbsolutePath($this->path, $path);
clearstatcache(true, $absolutePath);
if (!$this->driver->isFile($absolutePath)) {
throw new FileSystemException(
new \Magento\Framework\Phrase('The "%1" file doesn\'t exist.', [$absolutePath])
Expand Down
Loading

0 comments on commit 5d8669f

Please sign in to comment.