Passed
Push — swp-252 ( bc0f1e )
by Rafał
190:48 queued 143:56
created
src/SWP/Bundle/TemplateEngineBundle/Form/Type/WidgetType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,14 +37,14 @@
 block discarded – undo
37 37
                 'required' => false,
38 38
             ])
39 39
             ->addModelTransformer(new CallbackTransformer(
40
-                function ($originalDescription) {
40
+                function($originalDescription) {
41 41
                     if ($originalDescription && is_array($originalDescription->getParameters())) {
42 42
                         $originalDescription->setParameters(json_encode($originalDescription->getParameters()));
43 43
                     }
44 44
 
45 45
                     return $originalDescription;
46 46
                 },
47
-                function ($submittedDescription) {
47
+                function($submittedDescription) {
48 48
                     if ($submittedDescription && is_string($submittedDescription->getParameters())) {
49 49
                         $submittedDescription->setParameters(json_decode($submittedDescription->getParameters(), true));
50 50
                     } elseif ($submittedDescription && !is_array($submittedDescription->getParameters())) {
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/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/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/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.
src/SWP/Bundle/CoreBundle/Twig/StringyExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
     {
56 56
         $stringyClass = new \ReflectionClass('Stringy\Stringy');
57 57
         $methods = $stringyClass->getMethods(\ReflectionMethod::IS_PUBLIC);
58
-        $names = array_map(function ($value) {
58
+        $names = array_map(function($value) {
59 59
             return $value->getName();
60 60
         }, $methods);
61 61
 
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/Command/CreateTenantCommand.php 2 patches
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.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@
 block discarded – undo
144 144
      * @param $subdomain
145 145
      * @param $name
146 146
      * @param $disabled
147
-     * @param $organization
147
+     * @param OrganizationInterface $organization
148 148
      *
149 149
      * @return TenantInterface
150 150
      */
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Command/ThemeGenerateCommand.php 2 patches
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
      * @param InputInterface  $input
185 185
      * @param OutputInterface $output
186 186
      * @param Tenant $tenant
187
-     * @param $themeDir
187
+     * @param string $themeDir
188 188
      * @param $themeName
189 189
      */
190 190
     protected function writeConfigFile(InputInterface $input, OutputInterface $output, Tenant $tenant, $themeDir, $themeName)
@@ -239,7 +239,6 @@  discard block
 block discarded – undo
239 239
     /**
240 240
      * @param InputInterface  $input  An InputInterface instance
241 241
      * @param OutputInterface $output An OutputInterface instance
242
-     * @param array           $keys
243 242
      */
244 243
     protected function getValuesFromUser(InputInterface $input, OutputInterface $output, array $keysAndDefaults)
245 244
     {
@@ -284,7 +283,7 @@  discard block
 block discarded – undo
284 283
 
285 284
     /**
286 285
      * @param Filesystem $filesystem
287
-     * @param $baseDir
286
+     * @param string $baseDir
288 287
      * @param $fileName
289 288
      *
290 289
      * @return string
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
 
116 116
             $tenant = reset($tenants);
117 117
             if ($numTenants > 1) {
118
-                $tenantNames = array_map(function ($tenant) {
118
+                $tenantNames = array_map(function($tenant) {
119 119
                     return $tenant->getName();
120 120
                 }, $tenants);
121 121
 
Please login to merge, or discard this patch.