Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit b0c3cd2

Browse files
Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
1 parent b248eb1 commit b0c3cd2

File tree

3 files changed

+15
-23
lines changed

3 files changed

+15
-23
lines changed

src/CommandProvider.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
*/
1212
class CommandProvider implements CommandProviderCapability
1313
{
14-
/**
15-
* Gets registered commands
16-
*
17-
* @return array
18-
*/
14+
/**
15+
* Gets registered commands
16+
*
17+
* @return array
18+
*/
1919
public function getCommands()
2020
{
2121
return ProxyCommand::produce(
2222
DataCache::getInstance()->read()
2323
);
24-
}
24+
}
2525
}

src/Plugin.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ class Plugin implements PluginInterface, Capable, EventSubscriberInterface
3030
*
3131
* @return array
3232
*/
33-
public static function getSubscribedEvents()
34-
{
33+
public static function getSubscribedEvents() {
3534
return array(
3635
ScriptEvents::POST_AUTOLOAD_DUMP => array('onPostAutoloadDump', 0)
3736
);
@@ -43,8 +42,7 @@ public static function getSubscribedEvents()
4342
* @param Composer $composer Composer instance
4443
* @param IOInterface $io IO interface
4544
*/
46-
public function activate(Composer $composer, IOInterface $io)
47-
{
45+
public function activate(Composer $composer, IOInterface $io) {
4846

4947
}
5048

@@ -53,8 +51,7 @@ public function activate(Composer $composer, IOInterface $io)
5351
*
5452
* @return array
5553
*/
56-
public function getCapabilities()
57-
{
54+
public function getCapabilities() {
5855
return array(
5956
CommandProvider::class => LocalCommandProvider::class
6057
);
@@ -67,13 +64,12 @@ public function getCapabilities()
6764
*
6865
* @throws CommandsConfigIsNotArrayException
6966
*/
70-
public function onPostAutoloadDump(Event $event)
71-
{
67+
public function onPostAutoloadDump(Event $event) {
7268
$composer = $event->getComposer();
7369
$extra = $composer->getPackage()->getExtra();
7470

7571
$event->getIO()->write('<info>Updating commands cache</info>');
76-
$commands = (isset($extra[self::CONFIG_NAMESPACE]) && isset($extra[self::CONFIG_NAMESPACE]['commands'])) ? $extra[self::CONFIG_NAMESPACE]['commands'] : array();
72+
$commands = (isset($extra[self::CONFIG_NAMESPACE]) && isset($extra[self::CONFIG_NAMESPACE]['commands']))?$extra[self::CONFIG_NAMESPACE]['commands']:array();
7773

7874
DataCache::getInstance()->write($commands);
7975
}

src/ProxyCommand.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
use Symfony\Component\Console\Input\InputInterface;
99
use Symfony\Component\Console\Output\OutputInterface;
1010

11-
class ProxyCommand extends BaseCommand
12-
{
11+
class ProxyCommand extends BaseCommand {
1312

1413
/**
1514
* Linked command
@@ -25,8 +24,7 @@ class ProxyCommand extends BaseCommand
2524
*
2625
* @return array
2726
*/
28-
public static function produce($classes)
29-
{
27+
public static function produce($classes) {
3028
$ret = [];
3129
foreach ($classes as $class) {
3230
if (!class_exists($class)) {
@@ -46,8 +44,7 @@ public static function produce($classes)
4644
*
4745
* @return ProxyCommand
4846
*/
49-
public static function create(Command $command)
50-
{
47+
public static function create(Command $command) {
5148
$instance = new self(
5249
$command->getName()
5350
);
@@ -72,8 +69,7 @@ public static function create(Command $command)
7269
*
7370
* @return int|null
7471
*/
75-
protected function execute(InputInterface $input, OutputInterface $output)
76-
{
72+
protected function execute(InputInterface $input, OutputInterface $output) {
7773

7874
$composer = $this->getComposer();
7975

0 commit comments

Comments
 (0)