Passed
Branch convert_body_images (6b5f32)
by Paweł
31:56
created
src/SWP/Bundle/ContentBundle/Factory/ArticleFactory.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -74,6 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
     /**
76 76
      * {@inheritdoc}
77
+     * @return PackageInterface
77 78
      */
78 79
     public function create()
79 80
     {
@@ -107,6 +108,9 @@  discard block
 block discarded – undo
107 108
         }, $package->getItems()->toArray()));
108 109
     }
109 110
 
111
+    /**
112
+     * @param string $type
113
+     */
110 114
     private function ensureTypeIsAllowed($type)
111 115
     {
112 116
         if (!in_array($type, $this->allowedTypes)) {
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Command/ThemeGenerateCommand.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Resolver/TemplateNameResolverInterface.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,6 @@
 block discarded – undo
36 36
 
37 37
     /**
38 38
      * @param RouteObjectInterface $route
39
-     * @param string               $default
40 39
      *
41 40
      * @return string
42 41
      */
Please login to merge, or discard this patch.
src/SWP/Bundle/MultiTenancyBundle/Command/CreateTenantCommand.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -144,6 +144,7 @@
 block discarded – undo
144 144
      * @param $subdomain
145 145
      * @param $name
146 146
      * @param $disabled
147
+     * @param OrganizationInterface $organization
147 148
      *
148 149
      * @return TenantInterface
149 150
      */
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/Form/Type/MediaFileType.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@
 block discarded – undo
29 29
             ->add('media_id', TextType::class, [
30 30
                 'required' => true,
31 31
                 'constraints' => [
32
-                   new NotBlank(),
33
-                   new Length(['min' => 1]),
32
+                    new NotBlank(),
33
+                    new Length(['min' => 1]),
34 34
                 ],
35 35
             ])
36 36
             ->add('media', FileType::class, [
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/Form/Type/RouteType.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -30,21 +30,21 @@  discard block
 block discarded – undo
30 30
             ->add('name', TextType::class, [
31 31
                 'required' => true,
32 32
                 'constraints' => [
33
-                   new NotBlank(),
34
-                   new Length(['min' => 1]),
33
+                    new NotBlank(),
34
+                    new Length(['min' => 1]),
35 35
                 ],
36 36
             ])
37 37
             ->add('type', TextType::class, [
38 38
                 'required' => true,
39 39
                 'constraints' => [
40
-                   new NotBlank(),
41
-                   new Length(['min' => 1]),
40
+                    new NotBlank(),
41
+                    new Length(['min' => 1]),
42 42
                 ],
43 43
             ])
44 44
             ->add('template_name', TextType::class, [
45 45
                 'required' => false,
46 46
                 'constraints' => [
47
-                   new Length(['min' => 1]),
47
+                    new Length(['min' => 1]),
48 48
                 ],
49 49
             ])
50 50
             ->add('articles_template_name', TextType::class, [
@@ -56,13 +56,13 @@  discard block
 block discarded – undo
56 56
             ->add('parent', TextType::class, [
57 57
                 'required' => false,
58 58
                 'constraints' => [
59
-                   new Length(['min' => 1]),
59
+                    new Length(['min' => 1]),
60 60
                 ],
61 61
             ])
62 62
             ->add('content', TextType::class, [
63 63
                 'required' => false,
64 64
                 'constraints' => [
65
-                   new Length(['min' => 1]),
65
+                    new Length(['min' => 1]),
66 66
                 ],
67 67
                 'description' => 'Content path name e.g.: test-content-article',
68 68
             ])
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/Form/Type/ArticleType.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,14 +28,14 @@
 block discarded – undo
28 28
             ->add('status', TextType::class, [
29 29
                 'required' => true,
30 30
                 'constraints' => [
31
-                   new NotBlank(),
32
-                   new Length(['min' => 1]),
31
+                    new NotBlank(),
32
+                    new Length(['min' => 1]),
33 33
                 ],
34 34
             ])
35 35
             ->add('template_name', TextType::class, [
36 36
                 'required' => true,
37 37
                 'constraints' => [
38
-                   new Length(['min' => 1]),
38
+                    new Length(['min' => 1]),
39 39
                 ],
40 40
             ]);
41 41
     }
Please login to merge, or discard this patch.
src/SWP/Bundle/TemplateEngineBundle/EventSubscriber/HttpCacheSubscriber.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,10 +35,10 @@
 block discarded – undo
35 35
     public static function getSubscribedEvents()
36 36
     {
37 37
         return [
38
-           HttpCacheEvent::EVENT_NAME => [
39
-               ['clearCache', 0],
40
-           ],
41
-       ];
38
+            HttpCacheEvent::EVENT_NAME => [
39
+                ['clearCache', 0],
40
+            ],
41
+        ];
42 42
     }
43 43
 
44 44
     public function clearCache(HttpCacheEvent $event)
Please login to merge, or discard this patch.