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