@@ -40,8 +40,7 @@ discard block |
||
40 | 40 | $package_spec = $this->lock_file->getSpecForPackage($package_name); |
41 | 41 | |
42 | 42 | $this->rewriteJsonForRepo($package_spec->source->url); |
43 | - } |
|
44 | - catch (\Exception $e) { |
|
43 | + } catch (\Exception $e) { |
|
45 | 44 | throw new Exception(sprintf('Unable to update %s. %s', $package_name, $e->getMessage())); |
46 | 45 | } |
47 | 46 | |
@@ -128,8 +127,7 @@ discard block |
||
128 | 127 | foreach ($files as $file) { |
129 | 128 | if ($file->isDir()) { |
130 | 129 | rmdir($file->getPathname()); |
131 | - } |
|
132 | - else { |
|
130 | + } else { |
|
133 | 131 | unlink($file->getPathname()); |
134 | 132 | } |
135 | 133 | } |
@@ -61,8 +61,7 @@ |
||
61 | 61 | $input_array['package_name'] = $package_spec->name; |
62 | 62 | |
63 | 63 | $command->run(new ArrayInput($input_array), $output); |
64 | - } |
|
65 | - catch (\Exception $e) { |
|
64 | + } catch (\Exception $e) { |
|
66 | 65 | $output->writeln('<error>' . $e->getMessage() . '</error>'); |
67 | 66 | } |
68 | 67 | } |