@@ -182,7 +182,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
@@ -106,7 +106,7 @@ |
||
| 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 | |
@@ -35,14 +35,14 @@ |
||
| 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())) { |
@@ -40,7 +40,7 @@ |
||
| 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 = []; |
@@ -100,7 +100,7 @@ |
||
| 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 | } |
@@ -46,8 +46,8 @@ |
||
| 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 | }) |
@@ -49,17 +49,17 @@ |
||
| 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; |
@@ -20,6 +20,7 @@ |
||
| 20 | 20 | { |
| 21 | 21 | /** |
| 22 | 22 | * @param string $name |
| 23 | + * @return void |
|
| 23 | 24 | */ |
| 24 | 25 | public function setName($name); |
| 25 | 26 | |
@@ -145,7 +145,7 @@ |
||
| 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 | */ |
@@ -100,7 +100,7 @@ |
||
| 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 | } |
@@ -40,7 +40,7 @@ |
||
| 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 = []; |