Completed
Push — master ( 3c7d5b...44b200 )
by Rafał
02:08 queued 12s
created
DependencyInjection/Configuration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,8 +46,8 @@
 block discarded – undo
46 46
                 ->end()
47 47
                 ->arrayNode('persistence')
48 48
                     ->validate()
49
-                    ->ifTrue(function ($v) {
50
-                        return count(array_filter($v, function ($persistence) {
49
+                    ->ifTrue(function($v) {
50
+                        return count(array_filter($v, function($persistence) {
51 51
                             return $persistence['enabled'];
52 52
                         })) > 1;
53 53
                     })
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
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
     {
112 112
         if (!$input->getArgument($name)) {
113 113
             $question = new Question(sprintf('<question>Please enter %s:</question>', $name));
114
-            $question->setValidator(function ($argument) use ($name) {
114
+            $question->setValidator(function($argument) use ($name) {
115 115
                 if (empty($argument)) {
116 116
                     throw new \RuntimeException(sprintf('The %s can not be empty', $name));
117 117
                 }
Please login to merge, or discard this patch.
Form/Type/TenantChoiceType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     public function configureOptions(OptionsResolver $resolver)
58 58
     {
59 59
         $resolver->setDefaults([
60
-            'choices' => function (Options $options) {
60
+            'choices' => function(Options $options) {
61 61
                 return $this->tenantRepository->findAll();
62 62
             },
63 63
             'choice_value' => 'code',
Please login to merge, or discard this patch.
Tests/Command/CreateOrganizationCommandTest.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -120,6 +120,11 @@
 block discarded – undo
120 120
         );
121 121
     }
122 122
 
123
+    /**
124
+     * @param Organization $mockOrganization
125
+     * @param Organization $mockedOrganizationInFactory
126
+     * @param string $name
127
+     */
123 128
     private function getMockContainer($mockOrganization = null, $mockedOrganizationInFactory = null, $name = OrganizationInterface::DEFAULT_NAME)
124 129
     {
125 130
         $mockRepo = $this->getMockBuilder(OrganizationRepositoryInterface::class)
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
@@ -144,7 +144,7 @@
 block discarded – undo
144 144
         $default = $input->getOption('default');
145 145
         if (!$input->getArgument($name) && !$default) {
146 146
             $question = new Question(sprintf('<question>Please enter %s:</question>', $name));
147
-            $question->setValidator(function ($argument) use ($name) {
147
+            $question->setValidator(function($argument) use ($name) {
148 148
                 if (empty($argument) && $name !== $this->arguments[1]) {
149 149
                     throw new \RuntimeException(sprintf('The %s can not be empty', $name));
150 150
                 }
Please login to merge, or discard this patch.