Completed
Push — master ( 6718d9...b5055a )
by Rafał
14:45
created
Tests/Command/CreateTenantCommandTest.php 1 patch
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,6 +136,11 @@  discard block
 block discarded – undo
136 136
         );
137 137
     }
138 138
 
139
+    /**
140
+     * @param Tenant $mockTenant
141
+     * @param Organization $mockOrganization
142
+     * @param Tenant $mockedTenantInFactory
143
+     */
139 144
     private function getMockContainer($mockTenant = null, $mockOrganization = null, $mockedTenantInFactory = null, $subdomain = 'default', $domain = 'localhost')
140 145
     {
141 146
         $mockRepoOrganization = $this->getMockBuilder(OrganizationRepositoryInterface::class)
@@ -194,7 +199,7 @@  discard block
 block discarded – undo
194 199
     }
195 200
 
196 201
     /**
197
-     * @param $input
202
+     * @param string $input
198 203
      *
199 204
      * @return resource
200 205
      */
Please login to merge, or discard this patch.
Command/CreateTenantCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
         $default = $input->getOption('default');
131 131
         if (!$input->getArgument($name) && !$default && $name !== $this->arguments[1]) {
132 132
             $question = new Question(sprintf('<question>Please enter %s:</question>', $name));
133
-            $question->setValidator(function ($argument) use ($name) {
133
+            $question->setValidator(function($argument) use ($name) {
134 134
                 if (empty($argument)) {
135 135
                     throw new \RuntimeException(sprintf('The %s can not be empty', $name));
136 136
                 }
Please login to merge, or discard this patch.