Skip to content

Commit

Permalink
Remove void return types
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianfeldmann committed May 30, 2019
1 parent fa13f00 commit a5e5786
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Backup/Sync/YandexDisk.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class YandexDisk implements Sync\Simulator
* @throws \phpbu\App\Exception
* @see \phpbu\App\Backup\Sync::setup()
*/
public function setup(array $config): void
public function setup(array $config)
{
if (!class_exists(Disk::class)) {
throw new Exception('Yandex.Disk sdk not loaded: use composer to install "arhitector/yandex"');
Expand All @@ -89,7 +89,7 @@ public function setup(array $config): void
* @throws Exception
* @see \phpbu\App\Backup\Sync::sync()
*/
public function sync(Target $target, Result $result): void
public function sync(Target $target, Result $result)
{
$sourcePath = $target->getPathname();
$yandexDiskPath = $this->path . '/' . $target->getFilename();
Expand All @@ -115,7 +115,7 @@ public function sync(Target $target, Result $result): void
}
}

private function createFolders(): void
private function createFolders()
{
$folderPath = '';
$folderPaths = explode('/', $this->path->getPath());
Expand All @@ -138,7 +138,7 @@ private function createFolders(): void
* @param Target $target
* @param Result $result
*/
public function simulate(Target $target, Result $result): void
public function simulate(Target $target, Result $result)
{
$result->debug('sync backup to yandex disk' . PHP_EOL);

Expand Down

0 comments on commit a5e5786

Please sign in to comment.