File tree Expand file tree Collapse file tree 5 files changed +17
-3
lines changed
Expand file tree Collapse file tree 5 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -51,5 +51,5 @@ protected function execute(Target $target)
5151 * @param \phpbu\App\Backup\Target $target
5252 * @return \phpbu\App\Cli\Executable
5353 */
54- public abstract function getExecutable (Target $ target );
54+ abstract public function getExecutable (Target $ target );
5555}
Original file line number Diff line number Diff line change 2020 */
2121class Directory extends Cli
2222{
23+ /**
24+ * Path to cli binary.
25+ *
26+ * @var string
27+ */
28+ private $ pathToCommand ;
29+
2330 /**
2431 * Path to dir to compress.
2532 *
Original file line number Diff line number Diff line change 2020 */
2121class File extends Cli
2222{
23+ /**
24+ * Path to cli binary.
25+ *
26+ * @var string
27+ */
28+ private $ pathToCommand ;
29+
2330 /**
2431 * File to dir to compress.
2532 *
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ public function getExecutable(Target $target)
120120 if (null == $ this ->executable ) {
121121 // check if tar supports requested compression
122122 if ($ target ->shouldBeCompressed ()) {
123- if (!Executable \Tar::isCompressorValid ($ target ->getCompressor ()->getCommand ())) {
123+ if (!Executable \Tar::isCompressorValid ($ target ->getCompressor ()->getCommand ())) {
124124 $ this ->pathToArchive = $ target ->getPathnamePlain ();
125125 } else {
126126 // compression could be handled by the tar command
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ public function getProcess()
8282 *
8383 * @return \phpbu\App\Cli\Process
8484 */
85- protected abstract function createProcess ();
85+ abstract protected function createProcess ();
8686
8787 /**
8888 * Show the stdError output.
You can’t perform that action at this time.
0 commit comments