Completed
Push — master ( d673b9...b416cf )
by Rafał
23:22
created
Command/CreateTenantCommand.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -144,6 +144,7 @@
 block discarded – undo
144 144
      * @param $subdomain
145 145
      * @param $name
146 146
      * @param $disabled
147
+     * @param OrganizationInterface $organization
147 148
      *
148 149
      * @return TenantInterface
149 150
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
         $default = $input->getOption('default');
123 123
         if (!$input->getArgument($name) && !$default) {
124 124
             $question = new Question(sprintf('<question>Please enter %s:</question>', $name));
125
-            $question->setValidator(function ($argument) use ($name) {
125
+            $question->setValidator(function($argument) use ($name) {
126 126
                 if (empty($argument)) {
127 127
                     throw new \RuntimeException(sprintf('The %s can not be empty', $name));
128 128
                 }
Please login to merge, or discard this patch.
Tests/Command/CreateOrganizationCommandTest.php 1 patch
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,6 +104,11 @@  discard block
 block discarded – undo
104 104
         );
105 105
     }
106 106
 
107
+    /**
108
+     * @param Organization $mockOrganization
109
+     * @param Organization $mockedOrganizationInFactory
110
+     * @param string $name
111
+     */
107 112
     private function getMockContainer($mockOrganization = null, $mockedOrganizationInFactory = null, $name = OrganizationInterface::DEFAULT_NAME)
108 113
     {
109 114
         $mockRepo = $this->getMockBuilder(OrganizationRepositoryInterface::class)
@@ -148,7 +153,7 @@  discard block
 block discarded – undo
148 153
     }
149 154
 
150 155
     /**
151
-     * @param $input
156
+     * @param string $input
152 157
      *
153 158
      * @return resource
154 159
      */
Please login to merge, or discard this patch.
Tests/Command/CreateTenantCommandTest.php 1 patch
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,6 +129,11 @@  discard block
 block discarded – undo
129 129
         );
130 130
     }
131 131
 
132
+    /**
133
+     * @param Tenant $mockTenant
134
+     * @param Organization $mockOrganization
135
+     * @param Tenant $mockedTenantInFactory
136
+     */
132 137
     private function getMockContainer($mockTenant = null, $mockOrganization = null, $mockedTenantInFactory = null, $subdomain = 'default')
133 138
     {
134 139
         $mockRepoOrganization = $this->getMockBuilder(OrganizationRepositoryInterface::class)
@@ -187,7 +192,7 @@  discard block
 block discarded – undo
187 192
     }
188 193
 
189 194
     /**
190
-     * @param $input
195
+     * @param string $input
191 196
      *
192 197
      * @return resource
193 198
      */
Please login to merge, or discard this patch.
Command/CreateOrganizationCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
 
101 101
         if (!$input->getArgument($name) && !$default) {
102 102
             $question = new Question(sprintf('<question>Please enter %s:</question>', $name));
103
-            $question->setValidator(function ($argument) use ($name) {
103
+            $question->setValidator(function($argument) use ($name) {
104 104
                 if (empty($argument)) {
105 105
                     throw new \RuntimeException(sprintf('The %s can not be empty', $name));
106 106
                 }
Please login to merge, or discard this patch.