Test Failed
Push — master ( 6bfbfe...a06f3d )
by Joe
06:32
created
src/Command/Command.php 1 patch
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.
src/Command/CreateUser.php 1 patch
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.
src/Command/Parse.php 1 patch
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.
src/Command/UpdatePlugins.php 1 patch
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.
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 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/Loader.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -92,8 +92,6 @@
 block discarded – undo
92 92
 	/**
93 93
 	 * adds a requirement into the loader and registers it as a page with the router
94 94
 	 *
95
-	 * @param string $function php function name or class.class_name
96
-	 * @param string $path source file path
97 95
 	 */
98 96
 	public function add_public_path($page, $source) {
99 97
 		$this->public_routes['/'.$page] = $source;
Please login to merge, or discard this patch.
src/Plugin.php 2 patches
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.
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -153,6 +153,9 @@  discard block
 block discarded – undo
153 153
 			self::ChmodPermissionsSetter($event, $http_user, $path);
154 154
 	}
155 155
 
156
+	/**
157
+	 * @param string|null $http_user
158
+	 */
156 159
 	public static function SetfaclPermissionsSetter(Event $event, $http_user, $path) {
157 160
 		if (!is_dir($path))
158 161
 			mkdir($path, 0777, true);
@@ -162,6 +165,9 @@  discard block
 block discarded – undo
162 165
 		self::runProcess($event, 'setfacl -d -m u:"'.$http_user.'":rwX -m u:'.$_SERVER['USER'].':rwX '.$path);
163 166
 	}
164 167
 
168
+	/**
169
+	 * @param string|null $http_user
170
+	 */
165 171
 	public static function ChmodPermissionsSetter(Event $event, $http_user, $path) {
166 172
 		if (!is_dir($path))
167 173
 			mkdir($path, 0777, true);
@@ -181,6 +187,9 @@  discard block
 block discarded – undo
181 187
 		}
182 188
 	}
183 189
 
190
+	/**
191
+	 * @param string $commandline
192
+	 */
184 193
 	public static function runProcess(Event $event, $commandline) {
185 194
 		if ($event->getIO()->isVerbose() === TRUE)
186 195
 			$event->getIO()->write(sprintf('Running <info>%s</info>', $commandline));
Please login to merge, or discard this patch.