Completed
Branch indpendent_providers (0b8e86)
by Paweł
25:51
created
src/SWP/Bundle/CoreBundle/Command/ThemeGenerateCommand.php 2 patches
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
      * @param InputInterface  $input
183 183
      * @param OutputInterface $output
184 184
      * @param Tenant          $tenant
185
-     * @param $themeDir
185
+     * @param string $themeDir
186 186
      * @param $themeName
187 187
      */
188 188
     protected function writeConfigFile(InputInterface $input, OutputInterface $output, Tenant $tenant, $themeDir, $themeName)
@@ -227,7 +227,6 @@  discard block
 block discarded – undo
227 227
     /**
228 228
      * @param InputInterface  $input  An InputInterface instance
229 229
      * @param OutputInterface $output An OutputInterface instance
230
-     * @param array           $keys
231 230
      */
232 231
     protected function getValuesFromUser(InputInterface $input, OutputInterface $output, array $keysAndDefaults)
233 232
     {
@@ -272,7 +271,7 @@  discard block
 block discarded – undo
272 271
 
273 272
     /**
274 273
      * @param Filesystem $filesystem
275
-     * @param $baseDir
274
+     * @param string $baseDir
276 275
      * @param $fileName
277 276
      *
278 277
      * @return string
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
 
107 107
             $tenant = reset($tenants);
108 108
             if ($numTenants > 1) {
109
-                $tenantNames = array_map(function ($tenant) {
109
+                $tenantNames = array_map(function($tenant) {
110 110
                     return $tenant->getName();
111 111
                 }, $tenants);
112 112
 
Please login to merge, or discard this patch.
src/SWP/Bundle/TemplateEngineBundle/Form/Type/WidgetType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,14 +35,14 @@
 block discarded – undo
35 35
                 'required' => false,
36 36
             ])
37 37
             ->addModelTransformer(new CallbackTransformer(
38
-                function ($originalDescription) {
38
+                function($originalDescription) {
39 39
                     if ($originalDescription && is_array($originalDescription->getParameters())) {
40 40
                         $originalDescription->setParameters(json_encode($originalDescription->getParameters()));
41 41
                     }
42 42
 
43 43
                     return $originalDescription;
44 44
                 },
45
-                function ($submittedDescription) {
45
+                function($submittedDescription) {
46 46
                     if ($submittedDescription && is_string($submittedDescription->getParameters())) {
47 47
                         $submittedDescription->setParameters(json_decode($submittedDescription->getParameters(), true));
48 48
                     } elseif ($submittedDescription && !is_array($submittedDescription->getParameters())) {
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Form/Type/ThemeNameChoiceType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     public function configureOptions(OptionsResolver $resolver)
41 41
     {
42 42
         $resolver
43
-            ->setNormalizer('choices', function () {
43
+            ->setNormalizer('choices', function() {
44 44
                 /** @var ThemeInterface[] $themes */
45 45
                 $themes = $this->themeProvider->getCurrentTenantAvailableThemes();
46 46
                 $choices = [];
Please login to merge, or discard this patch.
src/SWP/Bundle/MultiTenancyBundle/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.
src/SWP/Bundle/MultiTenancyBundle/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.
src/SWP/Component/TemplatesSystem/Twig/Extension/GimmeExtension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,17 +49,17 @@
 block discarded – undo
49 49
     public function getFilters()
50 50
     {
51 51
         return [
52
-            new \Twig_SimpleFilter('start', function ($context, $node, $value) {
52
+            new \Twig_SimpleFilter('start', function($context, $node, $value) {
53 53
                 $node['_collection_type_filters']['start'] = $value;
54 54
 
55 55
                 return $node;
56 56
             }, ['needs_context' => true]),
57
-            new \Twig_SimpleFilter('limit', function ($context, $node, $value) {
57
+            new \Twig_SimpleFilter('limit', function($context, $node, $value) {
58 58
                 $node['_collection_type_filters']['limit'] = $value;
59 59
 
60 60
                 return $node;
61 61
             }, ['needs_context' => true]),
62
-            new \Twig_SimpleFilter('order', function ($context, $node, $value1, $value2) {
62
+            new \Twig_SimpleFilter('order', function($context, $node, $value1, $value2) {
63 63
                 $node['_collection_type_filters']['order'] = [$value1, $value2];
64 64
 
65 65
                 return $node;
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Theme/Model/ThemeInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -20,6 +20,7 @@
 block discarded – undo
20 20
 {
21 21
     /**
22 22
      * @param string $name
23
+     * @return void
23 24
      */
24 25
     public function setName($name);
25 26
 
Please login to merge, or discard this patch.
src/SWP/Bundle/MultiTenancyBundle/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
@@ -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.
src/SWP/Bundle/CoreBundle/Form/Type/OrganizationCodeChoiceType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     public function configureOptions(OptionsResolver $resolver)
41 41
     {
42 42
         $resolver
43
-            ->setNormalizer('choices', function () {
43
+            ->setNormalizer('choices', function() {
44 44
                 /** @var ThemeInterface[] $themes */
45 45
                 $themes = $this->themeProvider->getCurrentTenantAvailableThemes();
46 46
                 $choices = [];
Please login to merge, or discard this patch.