@@ -38,7 +38,7 @@ |
||
38 | 38 | * @param UserInterface $user |
39 | 39 | * @param string|null $apiKeyValue |
40 | 40 | * |
41 | - * @return mixed |
|
41 | + * @return ApiKeyInterface |
|
42 | 42 | */ |
43 | 43 | public function create($user, $apiKeyValue = null) |
44 | 44 | { |
@@ -196,7 +196,7 @@ |
||
196 | 196 | */ |
197 | 197 | private function getArrayOfIdsFromRoutesArray(array $routes): array |
198 | 198 | { |
199 | - return array_map(function ($route) { |
|
199 | + return array_map(function($route) { |
|
200 | 200 | return $route->getId(); |
201 | 201 | }, $routes); |
202 | 202 | } |
@@ -20,6 +20,7 @@ discard block |
||
20 | 20 | { |
21 | 21 | /** |
22 | 22 | * @param string $name |
23 | + * @return void |
|
23 | 24 | */ |
24 | 25 | public function setName($name); |
25 | 26 | |
@@ -60,6 +61,7 @@ discard block |
||
60 | 61 | |
61 | 62 | /** |
62 | 63 | * @param array $settings |
64 | + * @return void |
|
63 | 65 | */ |
64 | 66 | public function setSettings(array $settings): void; |
65 | 67 | |
@@ -70,6 +72,7 @@ discard block |
||
70 | 72 | |
71 | 73 | /** |
72 | 74 | * @param \SplFileInfo|null $file |
75 | + * @return void |
|
73 | 76 | */ |
74 | 77 | public function setLogo(?\SplFileInfo $file): void; |
75 | 78 | |
@@ -85,6 +88,7 @@ discard block |
||
85 | 88 | |
86 | 89 | /** |
87 | 90 | * @param string|null $path |
91 | + * @return void |
|
88 | 92 | */ |
89 | 93 | public function setLogoPath(?string $path): void; |
90 | 94 | } |
@@ -129,7 +129,6 @@ |
||
129 | 129 | |
130 | 130 | /** |
131 | 131 | * @param string $name |
132 | - * @param bool $disabled |
|
133 | 132 | * |
134 | 133 | * @return OrganizationInterface |
135 | 134 | */ |
@@ -111,7 +111,7 @@ |
||
111 | 111 | { |
112 | 112 | if (!$input->getArgument($name)) { |
113 | 113 | $question = new Question(sprintf('<question>Please enter %s:</question>', $name)); |
114 | - $question->setValidator(function ($argument) use ($name) { |
|
114 | + $question->setValidator(function($argument) use ($name) { |
|
115 | 115 | if (empty($argument)) { |
116 | 116 | throw new \RuntimeException(sprintf('The %s can not be empty', $name)); |
117 | 117 | } |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | ]) |
42 | 42 | ; |
43 | 43 | |
44 | - $formModifier = function (FormInterface $form, ?string $type) { |
|
44 | + $formModifier = function(FormInterface $form, ?string $type) { |
|
45 | 45 | if (OutputChannelInterface::TYPE_WORDPRESS === $type) { |
46 | 46 | $form->add('config', WordpressOutputChannelConfigType::class); |
47 | 47 | } |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | |
50 | 50 | $builder->addEventListener( |
51 | 51 | FormEvents::POST_SET_DATA, |
52 | - function (FormEvent $event) use ($formModifier) { |
|
52 | + function(FormEvent $event) use ($formModifier) { |
|
53 | 53 | $data = $event->getData(); |
54 | 54 | if (null !== $event->getData()) { |
55 | 55 | $formModifier($event->getForm(), $data->getType()); |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | |
60 | 60 | $builder->get('type')->addEventListener( |
61 | 61 | FormEvents::POST_SUBMIT, |
62 | - function (FormEvent $event) use ($formModifier) { |
|
62 | + function(FormEvent $event) use ($formModifier) { |
|
63 | 63 | $type = $event->getForm()->getData(); |
64 | 64 | |
65 | 65 | $formModifier($event->getForm()->getParent(), $type); |
@@ -57,7 +57,7 @@ |
||
57 | 57 | public function configureOptions(OptionsResolver $resolver) |
58 | 58 | { |
59 | 59 | $resolver->setDefaults([ |
60 | - 'choices' => function (Options $options) { |
|
60 | + 'choices' => function(Options $options) { |
|
61 | 61 | return $this->tenantRepository->findAll(); |
62 | 62 | }, |
63 | 63 | 'choice_value' => 'code', |
@@ -108,7 +108,7 @@ |
||
108 | 108 | { |
109 | 109 | $themes = \array_filter( |
110 | 110 | $this->themeLoader->load(), |
111 | - function ($element) use (&$themeName) { |
|
111 | + function($element) use (&$themeName) { |
|
112 | 112 | return $element->getName() === $themeName; |
113 | 113 | } |
114 | 114 | ); |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | ->scalarNode('value') |
77 | 77 | ->beforeNormalization() |
78 | 78 | ->ifArray() |
79 | - ->then(function ($value) { |
|
79 | + ->then(function($value) { |
|
80 | 80 | return json_encode($value); |
81 | 81 | }) |
82 | 82 | ->end() |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | ->scalarNode('type') |
86 | 86 | ->defaultValue('string') |
87 | 87 | ->validate() |
88 | - ->always(function ($v) { |
|
88 | + ->always(function($v) { |
|
89 | 89 | if (!in_array($v, ['string', 'array', 'boolean'])) { |
90 | 90 | throw new InvalidTypeException(); |
91 | 91 | } |
@@ -40,10 +40,10 @@ |
||
40 | 40 | ; |
41 | 41 | |
42 | 42 | $builder->get('value')->addModelTransformer(new CallbackTransformer( |
43 | - function ($value) { |
|
43 | + function($value) { |
|
44 | 44 | return $value; |
45 | 45 | }, |
46 | - function ($value) { |
|
46 | + function($value) { |
|
47 | 47 | $allowed = ['true', 'false', '1', '0', null]; |
48 | 48 | |
49 | 49 | if (\is_bool($value) || \in_array($value, $allowed, true)) { |