Test Failed
Push — master ( 600f39...c2cbaf )
by Joe
02:23
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
 	 * @param OutputInterface $output
59 59
 	 */
60 60
 	protected function execute(InputInterface $input, OutputInterface $output) {
61
-		$output->writeln([ // outputs multiple lines to the console (adding "\n" at the end of each line)
61
+		$output->writeln([// outputs multiple lines to the console (adding "\n" at the end of each line)
62 62
 			'User Creator',
63 63
 			'============',
64 64
 			''
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
 	 * @param OutputInterface $output
59 59
 	 */
60 60
 	protected function execute(InputInterface $input, OutputInterface $output) {
61
-		$output->writeln([ // outputs multiple lines to the console (adding "\n" at the end of each line)
61
+		$output->writeln([// outputs multiple lines to the console (adding "\n" at the end of each line)
62 62
 			'User Creator',
63 63
 			'============',
64 64
 			''
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 	 * @param OutputInterface $output
63 63
 	 */
64 64
 	protected function execute(InputInterface $input, OutputInterface $output) {
65
-		$output->writeln([ // outputs multiple lines to the console (adding "\n" at the end of each line)
65
+		$output->writeln([// outputs multiple lines to the console (adding "\n" at the end of each line)
66 66
 			'MyAdmin DocBlock Parser',
67 67
 			'=======================',
68 68
 			''
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
 	 * @param OutputInterface $output
59 59
 	 */
60 60
 	protected function execute(InputInterface $input, OutputInterface $output) {
61
-		$output->writeln([ // outputs multiple lines to the console (adding "\n" at the end of each line)
61
+		$output->writeln([// outputs multiple lines to the console (adding "\n" at the end of each line)
62 62
 			'User Creator',
63 63
 			'============',
64 64
 			''
Please login to merge, or discard this patch.
src/CommandProvider.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@
 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;
15
+use MyAdmin\Plugins\Command\Parse;
16 16
 use MyAdmin\Plugins\Command\UpdatePlugins;
17 17
 
18 18
 /**
Please login to merge, or discard this patch.
src/Installer.php 2 patches
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.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -143,13 +143,13 @@
 block discarded – undo
143 143
 	public function getInstallPath(PackageInterface $package) {
144 144
 		if ($this->type == 'myadmin-template') {
145 145
 			$this->initializeTemplateDir();
146
-			$basePath = ($this->templateDir ? $this->templateDir.'/' : '') . $package->getPrettyName();
146
+			$basePath = ($this->templateDir ? $this->templateDir.'/' : '').$package->getPrettyName();
147 147
 		} else {
148 148
 			$this->initializeVendorDir();
149
-			$basePath = ($this->vendorDir ? $this->vendorDir.'/' : '') . $package->getPrettyName();
149
+			$basePath = ($this->vendorDir ? $this->vendorDir.'/' : '').$package->getPrettyName();
150 150
 		}
151 151
 		$targetDir = $package->getTargetDir();
152
-		return $basePath . ($targetDir ? '/'.$targetDir : '');
152
+		return $basePath.($targetDir ? '/'.$targetDir : '');
153 153
 	}
154 154
 
155 155
 	/**
Please login to merge, or discard this patch.
src/Plugin.php 1 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
 
25 25
 /**
Please login to merge, or discard this patch.
src/function_requirements.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -533,21 +533,21 @@
 block discarded – undo
533 533
 		if (isset($requirements[$function]))
534 534
 			if (!is_array($requirements[$function]))
535 535
 				if (strrpos($requirements[$function], '\\') !== FALSE) {
536
-					require_once $include_root .'/'. substr($requirements[$function], strrpos($requirements[$function], '\\')+2);
536
+					require_once $include_root.'/'.substr($requirements[$function], strrpos($requirements[$function], '\\') + 2);
537 537
 					if (substr($function, 0, 6) != 'class.')
538
-						$function = substr($requirements[$function], 0, strrpos($requirements[$function], '\\')+1).$function;
538
+						$function = substr($requirements[$function], 0, strrpos($requirements[$function], '\\') + 1).$function;
539 539
 					else
540
-						$function = 'class.'.substr($requirements[$function], 0, strrpos($requirements[$function], '\\')+1).substr($function, 6);
540
+						$function = 'class.'.substr($requirements[$function], 0, strrpos($requirements[$function], '\\') + 1).substr($function, 6);
541 541
 				} else
542
-					require_once $include_root .'/'. $requirements[$function];
542
+					require_once $include_root.'/'.$requirements[$function];
543 543
 			else
544 544
 				foreach ($requirements[$function] as $requirement)
545 545
 					if (strrpos($requirement, '\\') !== FALSE) {
546
-						require_once $include_root .'/'. substr($requirement, strrpos($requirement, '\\')+2);
546
+						require_once $include_root.'/'.substr($requirement, strrpos($requirement, '\\') + 2);
547 547
 						if (substr($function, 0, 6) != 'class.')
548
-							$function = substr($requirement, 0, strrpos($requirement, '\\')+1).$function;
548
+							$function = substr($requirement, 0, strrpos($requirement, '\\') + 1).$function;
549 549
 						else
550
-							$function = 'class.'.substr($requirement, 0, strrpos($requirement, '\\')+1).substr($function, 6);
550
+							$function = 'class.'.substr($requirement, 0, strrpos($requirement, '\\') + 1).substr($function, 6);
551 551
 					} else
552 552
 						require_once $include_root.'/'.$requirement;
553 553
 	if (!function_exists($function))
Please login to merge, or discard this patch.