Passed
Push — main ( 54c8f9...bc9744 )
by Nils
13:08
created
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.
src/CliCommand/Ai/ExplainCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
         $prompt = implode(' ', $input->getArgument('prompt'));
34 34
 
35 35
         OutputHelper::writeInfoBox($output, [
36
-            'Explanation of: "' . $prompt. '"'
36
+            'Explanation of: "' . $prompt . '"'
37 37
         ]);
38 38
 
39 39
         $answers = $this->getRepositoryCollection()->explain($prompt);
Please login to merge, or discard this patch.
src/Command/Parameters/ParameterFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
 
59 59
         if (array_key_exists('default', $config)) {
60 60
             if (!is_string($config['default']) && !is_int($config['default'])) {
61
-                throw new \RuntimeException('The default value must be a string or an integer (name: '.$config['name'].'). ' . ucfirst(gettype($config['default'])) . ' with value ' . json_encode($config['default']) . ' given.');
61
+                throw new \RuntimeException('The default value must be a string or an integer (name: ' . $config['name'] . '). ' . ucfirst(gettype($config['default'])) . ' with value ' . json_encode($config['default']) . ' given.');
62 62
             }
63 63
             $defaultValue = self::getDefaultValue($config['default']);
64 64
             if ($defaultValue !== '') {
Please login to merge, or discard this patch.
src/CliCommand/Repository/Command/MoveAllCommand.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,9 @@
 block discarded – undo
72 72
 
73 73
         $prefix = $input->getOption('prefix');
74 74
 
75
-        if ($prefix) $prefix = $prefix . RepositoryCollection::COMMAND_SEPARATOR;
75
+        if ($prefix) {
76
+            $prefix = $prefix . RepositoryCollection::COMMAND_SEPARATOR;
77
+        }
76 78
 
77 79
         $progressBar = new ProgressBar($output, count($commands));
78 80
 
Please login to merge, or discard this patch.