Code Duplication    Length = 12-13 lines in 2 locations

src/Backup/Sync/OpenStack.php 1 location

@@ 202-214 (lines=13) @@
199
     * @param \phpbu\App\Backup\Target $target
200
     * @param \phpbu\App\Result        $result
201
     */
202
    public function simulate(Target $target, Result $result)
203
    {
204
        $result->debug(
205
            'sync backup to OpenStack' . PHP_EOL
206
            . '  region:   ' . $this->region . PHP_EOL
207
            . '  key:      ' . $this->username . PHP_EOL
208
            . '  password:    ********' . PHP_EOL
209
            . '  container: ' . $this->containerName
210
            . '  path: "' . $this->path->getPath() . '"' . PHP_EOL
211
        );
212
213
        $this->simulateRemoteCleanup($target, $result);
214
    }
215
216
    /**
217
     * Creates collector for OpenStack.

src/Backup/Sync/Xtp.php 1 location

@@ 95-106 (lines=12) @@
92
     * @param \phpbu\App\Backup\Target $target
93
     * @param \phpbu\App\Result        $result
94
     */
95
    public function simulate(Target $target, Result $result)
96
    {
97
        $result->debug(
98
            'sync backup to ' . $this->getProtocolName() . ' server' . PHP_EOL
99
            . '  host:     ' . $this->host . PHP_EOL
100
            . '  user:     ' . $this->user . PHP_EOL
101
            . '  password:  ********' . PHP_EOL
102
            . '  path:     ' . $this->remotePath . PHP_EOL
103
        );
104
105
        $this->simulateRemoteCleanup($target, $result);
106
    }
107
}
108