Completed
Push — master ( a06f3d...7dd891 )
by Joe
06:11
created
src/Command/Command.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,9 +9,9 @@
 block discarded – undo
9 9
 
10 10
 namespace MyAdmin\Plugins\Command;
11 11
 
12
+use Composer\Command\BaseCommand;
12 13
 use Symfony\Component\Console\Input\InputInterface;
13 14
 use Symfony\Component\Console\Output\OutputInterface;
14
-use Composer\Command\BaseCommand;
15 15
 
16 16
 /**
17 17
  * Class Command
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 			'User Creator',
63 63
 			'============',
64 64
 			''
65
-		                 ]);
65
+						 ]);
66 66
 		/*
67 67
 		$output->writeln('Username: '.$input->getArgument('username')); // retrieve the argument value using getArgument()
68 68
 		*/
Please login to merge, or discard this patch.
src/Command/CreateUser.php 2 patches
Unused Use Statements   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,12 +9,10 @@
 block discarded – undo
9 9
 
10 10
 namespace MyAdmin\Plugins\Command;
11 11
 
12
+use Composer\Command\BaseCommand;
12 13
 use Symfony\Component\Console\Input\InputArgument;
13
-use Symfony\Component\Console\Input\InputDefinition;
14
-use Symfony\Component\Console\Input\InputOption;
15 14
 use Symfony\Component\Console\Input\InputInterface;
16 15
 use Symfony\Component\Console\Output\OutputInterface;
17
-use Composer\Command\BaseCommand;
18 16
 
19 17
 /**
20 18
  * Class CreateUser
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
 			'User Creator',
73 73
 			'============',
74 74
 			''
75
-		                 ]);
75
+						 ]);
76 76
 		$output->writeln('Username: '.$input->getArgument('username')); // retrieve the argument value using getArgument()
77 77
 		$output->write('You are about to '); // outputs a message without adding a "\n" at the end of the line
78 78
 		$output->write('create a user.');
Please login to merge, or discard this patch.
src/Command/Parse.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,9 +9,9 @@
 block discarded – undo
9 9
 
10 10
 namespace MyAdmin\Plugins\Command;
11 11
 
12
+use Composer\Command\BaseCommand;
12 13
 use Symfony\Component\Console\Input\InputInterface;
13 14
 use Symfony\Component\Console\Output\OutputInterface;
14
-use Composer\Command\BaseCommand;
15 15
 
16 16
 /**
17 17
  * Code Parser Comand
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
 			'MyAdmin DocBlock Parser',
67 67
 			'=======================',
68 68
 			''
69
-		                 ]);
69
+						 ]);
70 70
 		$output->writeln('<info>foo</info>'); // green text
71 71
 		$output->writeln('<comment>foo</comment>'); // yellow text
72 72
 		$output->writeln('<question>foo</question>'); // black text on a cyan background
Please login to merge, or discard this patch.
src/Command/UpdatePlugins.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,9 +9,9 @@
 block discarded – undo
9 9
 
10 10
 namespace MyAdmin\Plugins\Command;
11 11
 
12
+use Composer\Command\BaseCommand;
12 13
 use Symfony\Component\Console\Input\InputInterface;
13 14
 use Symfony\Component\Console\Output\OutputInterface;
14
-use Composer\Command\BaseCommand;
15 15
 
16 16
 /**
17 17
  * Class UpdatePlugins
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 			'User Creator',
60 60
 			'============',
61 61
 			''
62
-		                 ]);
62
+						 ]);
63 63
 		$output->write('You are about to '); // outputs a message without adding a "\n" at the end of the line
64 64
 		$output->write('create a user.');
65 65
 
Please login to merge, or discard this patch.
src/Installer.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,13 +25,13 @@
 block discarded – undo
25 25
 namespace MyAdmin\Plugins;
26 26
 
27 27
 use Composer\Composer;
28
+use Composer\IO\IOInterface;
28 29
 use Composer\Installer\BinaryInstaller;
29 30
 use Composer\Installer\LibraryInstaller;
30
-use Composer\IO\IOInterface;
31 31
 use Composer\Package\PackageInterface;
32
+use Composer\Repository\InstalledRepositoryInterface;
32 33
 use Composer\Util\Filesystem;
33 34
 use Composer\Util\Silencer;
34
-use Composer\Repository\InstalledRepositoryInterface;
35 35
 
36 36
 /**
37 37
  * Class Installer
Please login to merge, or discard this patch.
src/Plugin.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,8 +99,8 @@
 block discarded – undo
99 99
 	}
100 100
 
101 101
 	/**
102
-	* @param PreFileDownloadEvent $event
103
-	*/
102
+	 * @param PreFileDownloadEvent $event
103
+	 */
104 104
 	public function onPreFileDownload(PreFileDownloadEvent $event) {
105 105
 		/*$protocol = parse_url($event->getProcessedUrl(), PHP_URL_SCHEME);
106 106
 		if ($protocol === 's3') {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@
 block discarded – undo
17 17
 use Composer\Composer;
18 18
 use Composer\EventDispatcher\EventSubscriberInterface;
19 19
 use Composer\IO\IOInterface;
20
-use Composer\Plugin\PluginInterface;
21 20
 use Composer\Plugin\Capable;
22 21
 use Composer\Plugin\PluginEvents;
22
+use Composer\Plugin\PluginInterface;
23 23
 use Composer\Plugin\PreFileDownloadEvent;
24 24
 use Composer\Script\Event;
25 25
 
Please login to merge, or discard this patch.
src/TemplateInstaller.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -22,22 +22,22 @@
 block discarded – undo
22 22
 	 * {@inheritDoc}
23 23
 	 * @throws \InvalidArgumentException
24 24
 	 */
25
-    public function getInstallPath(PackageInterface $package) {
26
-        $prefix = mb_substr($package->getPrettyName(), 0, 23);
27
-        if ('myadmin/template-' !== $prefix) {
28
-            throw new \InvalidArgumentException(
29
-                'Unable to install template, myadmin templates '
30
-                .'should always start their package name with '
31
-                .'"myadmin/template-"'
32
-            );
33
-        }
34
-        return 'data/templates/'.mb_substr($package->getPrettyName(), 23);
35
-    }
25
+	public function getInstallPath(PackageInterface $package) {
26
+		$prefix = mb_substr($package->getPrettyName(), 0, 23);
27
+		if ('myadmin/template-' !== $prefix) {
28
+			throw new \InvalidArgumentException(
29
+				'Unable to install template, myadmin templates '
30
+				.'should always start their package name with '
31
+				.'"myadmin/template-"'
32
+			);
33
+		}
34
+		return 'data/templates/'.mb_substr($package->getPrettyName(), 23);
35
+	}
36 36
 
37
-    /**
38
-     * {@inheritDoc}
39
-     */
40
-    public function supports($packageType) {
41
-        return 'myadmin-template' === $packageType;
42
-    }
37
+	/**
38
+	 * {@inheritDoc}
39
+	 */
40
+	public function supports($packageType) {
41
+		return 'myadmin-template' === $packageType;
42
+	}
43 43
 }
Please login to merge, or discard this patch.
src/TemplateInstallerPlugin.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 	 * @param \Composer\IO\IOInterface $io
25 25
 	 */
26 26
 	public function activate(Composer $composer, IOInterface $io) {
27
-        $installer = new TemplateInstaller($io, $composer);
28
-        $composer->getInstallationManager()->addInstaller($installer);
29
-    }
27
+		$installer = new TemplateInstaller($io, $composer);
28
+		$composer->getInstallationManager()->addInstaller($installer);
29
+	}
30 30
 }
Please login to merge, or discard this patch.
src/CommandProvider.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,10 +11,10 @@
 block discarded – undo
11 11
 
12 12
 use Composer\Plugin\Capability\CommandProvider as CommandProviderCapability;
13 13
 use MyAdmin\Plugins\Command\Command;
14
-use MyAdmin\Plugins\Command\Parse;
15 14
 use MyAdmin\Plugins\Command\CreateUser;
16
-use MyAdmin\Plugins\Command\UpdatePlugins;
15
+use MyAdmin\Plugins\Command\Parse;
17 16
 use MyAdmin\Plugins\Command\SetPermissions;
17
+use MyAdmin\Plugins\Command\UpdatePlugins;
18 18
 
19 19
 /**
20 20
  * Class CommandProvider
Please login to merge, or discard this patch.