Passed
Branch main (d73ec7)
by Nils
14:04
created
src/CliCommand/Repository/Command/MoveAllCommand.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,9 @@
 block discarded – undo
66 66
 
67 67
         $prefix = $input->getOption('prefix');
68 68
 
69
-        if ($prefix) $prefix = $prefix . RepositoryCollection::COMMAND_SEPARATOR;
69
+        if ($prefix) {
70
+            $prefix = $prefix . RepositoryCollection::COMMAND_SEPARATOR;
71
+        }
70 72
 
71 73
         foreach ($commands as $command) {
72 74
 
Please login to merge, or discard this patch.
src/Output/OutputHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
             }
51 51
         }
52 52
 
53
-        uasort($commands, function (Command $a, Command $b) {
53
+        uasort($commands, function(Command $a, Command $b) {
54 54
             return $a->getFullyQualifiedIdentifier() <=> $b->getFullyQualifiedIdentifier();
55 55
         });
56 56
 
Please login to merge, or discard this patch.
src/Runner/CommandRunner.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 
52 52
         $process = Process::fromShellCommandline($prompt);
53 53
 
54
-        $process->run(function (string $pipe, string $outputString) use ($output) {
54
+        $process->run(function(string $pipe, string $outputString) use ($output) {
55 55
             if ($pipe == Process::OUT) {
56 56
                 $output->write($outputString);
57 57
             } elseif ($pipe == Process::ERR) {
Please login to merge, or discard this patch.
src/Repository/Loader/LocalRepositoryLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
             }
42 42
 
43 43
             if (array_key_exists(self::FIELD_DESCRIPTION, $config['repository'])) {
44
-                $this->description = $config['repository'][self::FIELD_DESCRIPTION] . ' (' . self::DEFAULT_LOCAL_DESCRIPTION  . ')';
44
+                $this->description = $config['repository'][self::FIELD_DESCRIPTION] . ' (' . self::DEFAULT_LOCAL_DESCRIPTION . ')';
45 45
             } else {
46 46
                 $this->description = ucfirst(self::DEFAULT_LOCAL_DESCRIPTION);
47 47
             }
Please login to merge, or discard this patch.
src/Adapter/YamlAdapter.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
             throw new \RuntimeException('The given YAML file does not contain a section named "' . self::YAML_FIELD_COMMANDS . '".');
60 60
         }
61 61
 
62
-        if(is_null($config[self::YAML_FIELD_COMMANDS])) return [];
62
+        if (is_null($config[self::YAML_FIELD_COMMANDS])) return [];
63 63
 
64 64
         foreach ($config[self::YAML_FIELD_COMMANDS] as $identifier => $commandConfig) {
65 65
             if (!array_key_exists(self::YAML_FIELD_PROMPT, $commandConfig)) {
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,9 @@
 block discarded – undo
59 59
             throw new \RuntimeException('The given YAML file does not contain a section named "' . self::YAML_FIELD_COMMANDS . '".');
60 60
         }
61 61
 
62
-        if(is_null($config[self::YAML_FIELD_COMMANDS])) return [];
62
+        if(is_null($config[self::YAML_FIELD_COMMANDS])) {
63
+            return [];
64
+        }
63 65
 
64 66
         foreach ($config[self::YAML_FIELD_COMMANDS] as $identifier => $commandConfig) {
65 67
             if (!array_key_exists(self::YAML_FIELD_PROMPT, $commandConfig)) {
Please login to merge, or discard this patch.