protected function addSyncIfConfigured(Configuration\Backup $backup, array $conf)
    {
        if (isset($conf['sync'])) {
            $backup->addSync(
                new Configuration\Backup\Sync(
                    'laravel-storage',
                    false,
                    [
                        'filesystem' => $conf['sync']['filesystem'],
                        'path'       => $conf['sync']['path']
                    ]
                )
            );
        }
    }
protected function addSyncIfConfigured(Configuration\Backup $backup, array $conf)
    {
        if (isset($conf['sync'])) {
            $backup->addSync(
                new Configuration\Backup\Sync(
                    'laravel-storage',
                    false,
                    [
                        'filesystem' => $conf['sync']['filesystem'],
                        'path'       => $conf['sync']['path']
                    ]
                )
            );
        }
    }
protected function addSyncIfConfigured ( Configuration \ Backup $ backup , array $ conf ) { if ( isset ( $ conf [ 'sync' ] ) ) { $ backup -> addSync ( new Configuration \ Backup \ Sync ( 'laravel-storage' , false , [ 'filesystem' => $ conf [ 'sync' ] [ 'filesystem' ] , 'path' => $ conf [ 'sync' ] [ 'path' ] ] ) ) ; } }
Adds a sync configuration to the given backup configuration.

@param \phpbu\App\Configuration\Backup $backup
@param array                           $conf
Adds a sync configuration to the given backup configuration .