Skip to content

Commit

Permalink
Run the PHP-CS-Fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Apr 9, 2019
1 parent bd22f22 commit 93d47eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/DeferredImageStorageFilesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function getLocked(string $path, bool $blocking = true): ?array

$configPath = $this->getConfigPath($path);

if (!$handle = fopen($configPath, 'rb+') ?: fopen($configPath, 'rb')) {
if (!$handle = fopen($configPath, 'r+') ?: fopen($configPath, 'r')) {
throw new \RuntimeException(sprintf('Unable to open file "%s"', $configPath));
}

Expand Down
2 changes: 1 addition & 1 deletion tests/DeferredImageStorageFilesystemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function testGetLocked(string $key, array $value): void
$this->assertEquals($value, $storage->getLocked($key));

$dataPath = $this->rootDir.'/deferred/'.$key.'.json';
$handle = fopen($dataPath, 'rb+');
$handle = fopen($dataPath, 'r+');

$this->assertFalse(flock($handle, LOCK_EX | LOCK_NB), 'Data file should be locked');

Expand Down

0 comments on commit 93d47eb

Please sign in to comment.