Code Duplication    Length = 7-7 lines in 2 locations

src/Backup/Sync/GoogleDrive.php 1 location

@@ 157-163 (lines=7) @@
154
     * @param \phpbu\App\Backup\Target $target
155
     * @param \phpbu\App\Result        $result
156
     */
157
    public function simulate(Target $target, Result $result)
158
    {
159
        $result->debug('sync backup to google drive' . PHP_EOL);
160
161
        $this->isSimulation = true;
162
        $this->simulateRemoteCleanup($target, $result);
163
    }
164
165
    /**
166
     * Setup google api client and google drive service.

src/Backup/Sync/YandexDisk.php 1 location

@@ 141-147 (lines=7) @@
138
     * @param Target $target
139
     * @param Result $result
140
     */
141
    public function simulate(Target $target, Result $result): void
142
    {
143
        $result->debug('sync backup to yandex disk' . PHP_EOL);
144
145
        $this->isSimulation = true;
146
        $this->simulateRemoteCleanup($target, $result);
147
    }
148
149
    /**
150
     * Creates the YandexDisk collector.