Completed
Pull Request — master (#57)
by Paweł
04:17
created
src/SWP/Bundle/TemplateEngineBundle/Model/Container.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -283,7 +283,7 @@
 block discarded – undo
283 283
     /**
284 284
      * Add ContainerData to container.
285 285
      *
286
-     * @param $containerData
286
+     * @param ContainerData $containerData
287 287
      */
288 288
     public function addData($containerData)
289 289
     {
Please login to merge, or discard this patch.
src/SWP/Bundle/MultiTenancyBundle/Command/CreateTenantCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
             $argument = $this->getHelper('dialog')->askAndValidate(
112 112
                 $output,
113 113
                 '<question>Please enter '.$name.':</question>',
114
-                function ($argument) use ($name) {
114
+                function($argument) use ($name) {
115 115
                     if (empty($argument)) {
116 116
                         throw new \RuntimeException('The '.$name.' can not be empty');
117 117
                     }
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
@@ -33,10 +33,10 @@
 block discarded – undo
33 33
     public static function getSubscribedEvents()
34 34
     {
35 35
         return [
36
-           HttpCacheEvent::EVENT_NAME => [
37
-               ['clearContainers', 0],
38
-           ],
39
-       ];
36
+            HttpCacheEvent::EVENT_NAME => [
37
+                ['clearContainers', 0],
38
+            ],
39
+        ];
40 40
     }
41 41
 
42 42
     public function clearContainers(HttpCacheEvent $event)
Please login to merge, or discard this patch.
src/SWP/Bundle/TemplateEngineBundle/Form/Type/WidgetType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,14 +37,14 @@
 block discarded – undo
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())) {
Please login to merge, or discard this patch.
src/SWP/Bundle/WebRendererBundle/Detection/DeviceDetection.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
- /**
4
-  * This file is part of the Superdesk Web Publisher Web Renderer Bundle.
5
-  *
6
-  * Copyright 2015 Sourcefabric z.u. and contributors.
7
-  *
8
-  * For the full copyright and license information, please see the
9
-  * AUTHORS and LICENSE files distributed with this source code.
10
-  *
11
-  * Some parts of that file were taken from the Liip/ThemeBundle
12
-  * (c) Liip AG
13
-  *
14
-  * @copyright 2015 Sourcefabric z.ú.
15
-  * @license http://www.superdesk.org/license
16
-  */
3
+    /**
4
+     * This file is part of the Superdesk Web Publisher Web Renderer Bundle.
5
+     *
6
+     * Copyright 2015 Sourcefabric z.u. and contributors.
7
+     *
8
+     * For the full copyright and license information, please see the
9
+     * AUTHORS and LICENSE files distributed with this source code.
10
+     *
11
+     * Some parts of that file were taken from the Liip/ThemeBundle
12
+     * (c) Liip AG
13
+     *
14
+     * @copyright 2015 Sourcefabric z.ú.
15
+     * @license http://www.superdesk.org/license
16
+     */
17 17
 
18 18
 namespace SWP\Bundle\WebRendererBundle\Detection;
19 19
 
Please login to merge, or discard this patch.
src/SWP/Bundle/WebRendererBundle/Locator/BundleResourceLocator.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -66,6 +66,10 @@
 block discarded – undo
66 66
         throw new ResourceNotFoundException($resourcePath, $theme);
67 67
     }
68 68
 
69
+    /**
70
+     * @param string $resourcePath
71
+     * @param ThemeInterface $theme
72
+     */
69 73
     protected function getBundlePaths($resourcePath, $theme)
70 74
     {
71 75
         $bundleName = $this->getBundleNameFromResourcePath($resourcePath);
Please login to merge, or discard this patch.