| @@ -37,14 +37,14 @@ | ||
| 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())) { | 
| @@ -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; | 
| @@ -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 | }) | 
| @@ -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 = []; | 
| @@ -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 | } | 
| @@ -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 | } | 
| @@ -144,7 +144,7 @@ | ||
| 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 | */ | 
| @@ -184,7 +184,7 @@ discard block | ||
| 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 | ||
| 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 | ||
| 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 | 
| @@ -115,7 +115,7 @@ | ||
| 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 | |
| @@ -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 | |