Completed
Pull Request — master (#20)
by
unknown
01:34
created
src/Module/Command/UnregisterCommand.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -17,24 +17,24 @@
 block discarded – undo
17 17
  */
18 18
 class UnregisterCommand extends ModuleCommand
19 19
 {
20
-	/**
21
-	 * {@inheritdoc}
22
-	 */
23
-	protected function configure()
24
-	{
25
-		parent::configure();
20
+    /**
21
+     * {@inheritdoc}
22
+     */
23
+    protected function configure()
24
+    {
25
+        parent::configure();
26 26
 
27
-		$this->setName('module:unregister')
28
-			->setDescription('Uninstall module');
29
-	}
27
+        $this->setName('module:unregister')
28
+            ->setDescription('Uninstall module');
29
+    }
30 30
 
31
-	/**
32
-	 * {@inheritdoc}
33
-	 */
34
-	protected function execute(InputInterface $input, OutputInterface $output)
35
-	{
36
-		$module = new Module($input->getArgument('module'));
37
-		$module->unRegister();
38
-		$output->writeln(sprintf('unregistered <info>%s</info>', $module->getName()));
39
-	}
31
+    /**
32
+     * {@inheritdoc}
33
+     */
34
+    protected function execute(InputInterface $input, OutputInterface $output)
35
+    {
36
+        $module = new Module($input->getArgument('module'));
37
+        $module->unRegister();
38
+        $output->writeln(sprintf('unregistered <info>%s</info>', $module->getName()));
39
+    }
40 40
 }
41 41
\ No newline at end of file
Please login to merge, or discard this patch.
src/Module/Command/UpdateCommand.php 1 patch
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -19,38 +19,38 @@
 block discarded – undo
19 19
  */
20 20
 class UpdateCommand extends ModuleCommand
21 21
 {
22
-	use CanRestartTrait;
22
+    use CanRestartTrait;
23 23
 
24
-	/**
25
-	 * {@inheritdoc}
26
-	 */
27
-	protected function configure()
28
-	{
29
-		parent::configure();
24
+    /**
25
+     * {@inheritdoc}
26
+     */
27
+    protected function configure()
28
+    {
29
+        parent::configure();
30 30
 
31
-		$this->setName('module:update')
32
-			->setDescription('Load module updates from Marketplace')
33
-			->addOption('beta', 'b', InputOption::VALUE_NONE, 'Allow the installation of beta releases');
34
-	}
31
+        $this->setName('module:update')
32
+            ->setDescription('Load module updates from Marketplace')
33
+            ->addOption('beta', 'b', InputOption::VALUE_NONE, 'Allow the installation of beta releases');
34
+    }
35 35
 
36
-	/**
37
-	 * {@inheritdoc}
38
-	 */
39
-	protected function execute(InputInterface $input, OutputInterface $output)
40
-	{
41
-		$module = new Module($input->getArgument('module'));
42
-		$modulesUpdated = null;
43
-		while ($module->update($modulesUpdated))
44
-		{
45
-			if (is_array($modulesUpdated))
46
-			{
47
-				foreach ($modulesUpdated as $moduleName => $moduleVersion)
48
-				{
49
-					$output->writeln(sprintf('updated %s to <info>%s</info>', $moduleName, $moduleVersion));
50
-				}
51
-			}
52
-			return $this->restartScript($input, $output);
53
-		}
54
-		return 0;
55
-	}
36
+    /**
37
+     * {@inheritdoc}
38
+     */
39
+    protected function execute(InputInterface $input, OutputInterface $output)
40
+    {
41
+        $module = new Module($input->getArgument('module'));
42
+        $modulesUpdated = null;
43
+        while ($module->update($modulesUpdated))
44
+        {
45
+            if (is_array($modulesUpdated))
46
+            {
47
+                foreach ($modulesUpdated as $moduleName => $moduleVersion)
48
+                {
49
+                    $output->writeln(sprintf('updated %s to <info>%s</info>', $moduleName, $moduleVersion));
50
+                }
51
+            }
52
+            return $this->restartScript($input, $output);
53
+        }
54
+        return 0;
55
+    }
56 56
 }
57 57
\ No newline at end of file
Please login to merge, or discard this patch.
src/Module/Command/RemoveCommand.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -17,24 +17,24 @@
 block discarded – undo
17 17
  */
18 18
 class RemoveCommand extends ModuleCommand
19 19
 {
20
-	/**
21
-	 * {@inheritdoc}
22
-	 */
23
-	protected function configure()
24
-	{
25
-		parent::configure();
20
+    /**
21
+     * {@inheritdoc}
22
+     */
23
+    protected function configure()
24
+    {
25
+        parent::configure();
26 26
 
27
-		$this->setName('module:remove')
28
-			->setDescription('Uninstall and remove module folder from system');
29
-	}
27
+        $this->setName('module:remove')
28
+            ->setDescription('Uninstall and remove module folder from system');
29
+    }
30 30
 
31
-	/**
32
-	 * {@inheritdoc}
33
-	 */
34
-	protected function execute(InputInterface $input, OutputInterface $output)
35
-	{
36
-		$module = new Module($input->getArgument('module'));
37
-		$module->remove();
38
-		$output->writeln(sprintf('removed <info>%s</info>', $module->getName()));
39
-	}
31
+    /**
32
+     * {@inheritdoc}
33
+     */
34
+    protected function execute(InputInterface $input, OutputInterface $output)
35
+    {
36
+        $module = new Module($input->getArgument('module'));
37
+        $module->remove();
38
+        $output->writeln(sprintf('removed <info>%s</info>', $module->getName()));
39
+    }
40 40
 }
41 41
\ No newline at end of file
Please login to merge, or discard this patch.