Completed
Branch master (6a412e)
by Tom
03:09
created
Category
src/Command/UpdateCommand.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Command/UpdateAllCommand.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,8 +61,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.