Completed
Push — master ( 0969e2...d54784 )
by Rafał
20:34
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.
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.
Command/CreateTenantCommand.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@
 block discarded – undo
145 145
      * @param $subdomain
146 146
      * @param $name
147 147
      * @param $disabled
148
-     * @param $organization
148
+     * @param OrganizationInterface $organization
149 149
      *
150 150
      * @return TenantInterface
151 151
      */
Please login to merge, or discard this 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.
Tests/Command/ListTetantsCommandTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -147,6 +147,9 @@
 block discarded – undo
147 147
         $this->assertEquals($result, trim($this->commandTester->getDisplay()));
148 148
     }
149 149
 
150
+    /**
151
+     * @param Organization $mockOrganization
152
+     */
150 153
     private function getMockContainer($mockOrganization = null)
151 154
     {
152 155
         $mockRepoOrganization = $this->getMockBuilder(OrganizationRepositoryInterface::class)
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
@@ -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.
spec/EventListener/OrganizationSubscriberSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * This file is part of the Superdesk Web Publisher MultiTenancy Bundle.
Please login to merge, or discard this patch.
EventListener/OrganizationSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * This file is part of the Superdesk Web Publisher MultiTenancy Bundle.
Please login to merge, or discard this patch.
spec/Form/Type/TenantChoiceTypeSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * This file is part of the Superdesk Web Publisher MultiTenancy Bundle.
Please login to merge, or discard this patch.
spec/Form/DataTransformer/TenantToCodeTransformerSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * This file is part of the Superdesk Web Publisher MultiTenancy Bundle.
Please login to merge, or discard this patch.