Completed
Push — master ( 678bac...955920 )
by Paweł
09:19 queued 10s
created
src/SWP/Bundle/CoreBundle/Factory/ApiKeyFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/Provider/ORM/RouteProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -196,7 +196,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Theme/Model/ThemeInterface.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -20,6 +20,7 @@  discard block
 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
 
@@ -60,6 +61,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/SWP/Bundle/MultiTenancyBundle/Command/CreateOrganizationCommand.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,6 @@
 block discarded – undo
129 129
 
130 130
     /**
131 131
      * @param string $name
132
-     * @param bool   $disabled
133 132
      *
134 133
      * @return OrganizationInterface
135 134
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.
src/SWP/Bundle/OutputChannelBundle/Form/Type/OutputChannelType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/SWP/Bundle/MultiTenancyBundle/Form/Type/TenantChoiceType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
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',
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Theme/Installer/TenantAwareThemeInstaller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
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
         );
Please login to merge, or discard this patch.
src/SWP/Bundle/SettingsBundle/DependencyInjection/Configuration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
                                         }
Please login to merge, or discard this patch.
src/SWP/Bundle/SettingsBundle/Form/Type/SettingType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,10 +40,10 @@
 block discarded – undo
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)) {
Please login to merge, or discard this patch.