Code Duplication    Length = 3-3 lines in 2 locations

src/components/Storage.php 2 locations

@@ 171-173 (lines=3) @@
168
                if ($this->mkdir(dirname($path)) === false) {
169
                    throw new AssetFileStorageException('Failed to create a directory for provider-latest storage');
170
                }
171
                if (file_put_contents($path, $json) === false) {
172
                    throw new AssetFileStorageException('Failed to write package to provider-latest storage for package "' . $name . '"');
173
                }
174
                if (file_put_contents($latestPath, $json) === false) {
175
                    throw new AssetFileStorageException('Failed to write file "latest.json" to provider-latest storage for package "' . $name . '"');
176
                }
@@ 174-176 (lines=3) @@
171
                if (file_put_contents($path, $json) === false) {
172
                    throw new AssetFileStorageException('Failed to write package to provider-latest storage for package "' . $name . '"');
173
                }
174
                if (file_put_contents($latestPath, $json) === false) {
175
                    throw new AssetFileStorageException('Failed to write file "latest.json" to provider-latest storage for package "' . $name . '"');
176
                }
177
                $this->writePackagesJson($hash);
178
            } finally {
179
                $this->getLocker()->release();