@@ 88-98 (lines=11) @@ | ||
85 | $modifiedPath = $this->managePath($modifiedPath, 'patched'); |
|
86 | $originalPath = $this->managePath($originalPath, 'original'); |
|
87 | ||
88 | if (!file_exists($originalPath) || !file_exists($modifiedPath)) { |
|
89 | $this->error('Files not found :'); |
|
90 | if (!file_exists($originalPath)) { |
|
91 | $this->comment(' - ' . $originalPath); |
|
92 | } |
|
93 | if (!file_exists($modifiedPath)) { |
|
94 | $this->comment(' - ' . $modifiedPath); |
|
95 | } |
|
96 | ||
97 | return; |
|
98 | } |
|
99 | ||
100 | $command = sprintf( |
|
101 | $this->command, |
@@ 60-70 (lines=11) @@ | ||
57 | { |
|
58 | $targetFile = $this->config['paths']['rootDir'] . '/' . $targetFile; |
|
59 | ||
60 | if (!file_exists($targetFile) || !file_exists($patchFile)) { |
|
61 | $this->error('Missing patches :'); |
|
62 | if (!file_exists($targetFile)) { |
|
63 | $this->comment(' - ' . $targetFile); |
|
64 | } |
|
65 | if (!file_exists($patchFile)) { |
|
66 | $this->comment(' - ' . $patchFile); |
|
67 | } |
|
68 | ||
69 | return; |
|
70 | } |
|
71 | ||
72 | $command = $this->getCommand($targetFile, $patchFile); |
|
73 | $out = null; |