Completed
Push — master ( 182b76...50f302 )
by Timo
03:01
created
src/Behavior/Console/Command/UsesInterfaceTrait.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 namespace Tidal\PhpSpec\BehaviorExtension\Behavior\Console\Command;
11 11
 
12 12
 use Throwable;
13
-
14 13
 use Tidal\PhpSpec\BehaviorExtension\Exception\NoInterfaceException;
15 14
 use Tidal\PhpSpec\ConsoleExtension\Contract\WriterInterface;
16 15
 
Please login to merge, or discard this patch.
src/Console/Command/ImplementCommand.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
     protected const FORCE_KEY = 'force';
76 76
 
77 77
     /**
78
-     * @param InputInterface $input
78
+     * @param \Symfony\Component\Console\Input\InputInterface $input
79 79
      * @param OutputInterface $output
80 80
      *
81 81
      * @return int|null|void
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     public const NAME = 'behavior:implement';
41 41
     public const DESCRIPTION = 'Creates a Trait from a given Interface';
42 42
     public const HIDDEN = false;
43
-    public const USAGES = ['@todo'];
43
+    public const USAGES = [ '@todo' ];
44 44
     public const HELP = <<<EOF
45 45
 The <info>%command.name%</info> command creates an trait from a given interface:
46 46
   <info>php %command.full_name% ClassName MethodName</info>
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      * @param null|string $traitName
107 107
      * @return bool
108 108
      */
109
-    private function confirmTraitGeneration(string $interfaceName, ?string $traitName)
109
+    private function confirmTraitGeneration(string $interfaceName, ? string $traitName)
110 110
     {
111 111
         return $this->getWriter()->confirm(
112 112
             self::CONFIRMATION_QUESTION,
Please login to merge, or discard this patch.
src/Extension.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
     public const COMMAND_IDS = [
31 31
         self::IMPLEMENT_KEY => 'console.commands.behavior_implement'
32
-    ] ;
32
+    ];
33 33
 
34 34
     private const IO_ID = 'console.io';
35 35
 
@@ -50,14 +50,14 @@  discard block
 block discarded – undo
50 50
     private function registerCommands(ServiceContainer $container)
51 51
     {
52 52
         $container->define(
53
-            self::COMMAND_IDS[self::IMPLEMENT_KEY],
54
-            function () use ($container) {
53
+            self::COMMAND_IDS[ self::IMPLEMENT_KEY ],
54
+            function() use ($container) {
55 55
                 return $this->getImplementCommand(
56 56
                     self::retrieveConsoleWriter($container),
57 57
                     self::createConfigurator()
58 58
                 );
59 59
             },
60
-            ['console.commands']
60
+            [ 'console.commands' ]
61 61
         );
62 62
     }
63 63
 
Please login to merge, or discard this patch.
src/Behavior/Console/Command/UsesBehaviorTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      * @param string $traitName
19 19
      * @return bool
20 20
      */
21
-    public function validateTrait(?string $traitName): bool
21
+    public function validateTrait(? string $traitName) : bool
22 22
     {
23 23
         return trait_exists($traitName);
24 24
     }
Please login to merge, or discard this patch.