Completed
Pull Request — master (#1)
by Rafał
03:14
created
DependencyInjection/SWPMultiTenancyExtension.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,12 +33,12 @@  discard block
 block discarded – undo
33 33
         $configuration = new Configuration();
34 34
         $config = $this->processConfiguration($configuration, $configs);
35 35
 
36
-        $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
36
+        $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
37 37
         $loader->load('services.yml');
38 38
 
39 39
         if ($config['persistence']['phpcr']['enabled']) {
40 40
             $this->loadPhpcr($config['persistence']['phpcr'], $loader, $container);
41
-            $container->setParameter($this->getAlias().'.backend_type_phpcr', true);
41
+            $container->setParameter($this->getAlias() . '.backend_type_phpcr', true);
42 42
         }
43 43
     }
44 44
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
         foreach ($keys as $sourceKey => $targetKey) {
56 56
             $container->setParameter(
57
-                $this->getAlias().'.persistence.phpcr.'.$targetKey,
57
+                $this->getAlias() . '.persistence.phpcr.' . $targetKey,
58 58
                 $config[$sourceKey]
59 59
             );
60 60
         }
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         array_push($config['route_basepaths'], $config['content_basepath']);
63 63
 
64 64
         $container->setParameter(
65
-            $this->getAlias().'.persistence.phpcr.base_paths',
65
+            $this->getAlias() . '.persistence.phpcr.base_paths',
66 66
             $config['route_basepaths']
67 67
         );
68 68
 
Please login to merge, or discard this patch.
Query/Filter/TenantableFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         }
32 32
 
33 33
         if ($this->hasParameter('tenantId')) {
34
-            return $targetTableAlias.'.tenant_id = '.$this->getParameter('tenantId');
34
+            return $targetTableAlias . '.tenant_id = ' . $this->getParameter('tenantId');
35 35
         }
36 36
 
37 37
         return '';
Please login to merge, or discard this patch.
Tests/DependencyInjection/Compiler/TenantAwareRouterCompilerPassTest.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * This file is part of the Superdesk Web Publisher MultiTenancy Bundle.
4
- *
5
- * Copyright 2016 Sourcefabric z.u. and contributors.
6
- *
7
- * For the full copyright and license information, please see the
8
- * AUTHORS and LICENSE files distributed with this source code.
9
- *
10
- * @copyright 2016 Sourcefabric z.ú.
11
- * @license http://www.superdesk.org/license
12
- */
3
+     * This file is part of the Superdesk Web Publisher MultiTenancy Bundle.
4
+     *
5
+     * Copyright 2016 Sourcefabric z.u. and contributors.
6
+     *
7
+     * For the full copyright and license information, please see the
8
+     * AUTHORS and LICENSE files distributed with this source code.
9
+     *
10
+     * @copyright 2016 Sourcefabric z.ú.
11
+     * @license http://www.superdesk.org/license
12
+     */
13 13
 namespace SWP\MultiTenancyBundle\Tests\DependencyInjection\Compiler;
14 14
 
15 15
 use SWP\MultiTenancyBundle\DependencyInjection\Compiler\TenantAwareRouterCompilerPass;
Please login to merge, or discard this patch.
Tests/DependencyInjection/SWPMultiTenancyExtensionTest.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,9 +46,9 @@
 block discarded – undo
46 46
         );
47 47
 
48 48
         $this->assertEquals(
49
-           array('routes1', 'routes2'),
50
-           $container->getParameter('swp_multi_tenancy.persistence.phpcr.route_basepaths')
51
-       );
49
+            array('routes1', 'routes2'),
50
+            $container->getParameter('swp_multi_tenancy.persistence.phpcr.route_basepaths')
51
+        );
52 52
 
53 53
         $this->assertEquals(
54 54
             array('routes1', 'routes2', 'content'),
Please login to merge, or discard this patch.
Document/Site.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * This file is part of the Superdesk Web Publisher MultiTenancy Bundle.
4
- *
5
- * Copyright 2016 Sourcefabric z.u. and contributors.
6
- *
7
- * For the full copyright and license information, please see the
8
- * AUTHORS and LICENSE files distributed with this source code.
9
- *
10
- * @copyright 2016 Sourcefabric z.ú.
11
- * @license http://www.superdesk.org/license
12
- */
3
+     * This file is part of the Superdesk Web Publisher MultiTenancy Bundle.
4
+     *
5
+     * Copyright 2016 Sourcefabric z.u. and contributors.
6
+     *
7
+     * For the full copyright and license information, please see the
8
+     * AUTHORS and LICENSE files distributed with this source code.
9
+     *
10
+     * @copyright 2016 Sourcefabric z.ú.
11
+     * @license http://www.superdesk.org/license
12
+     */
13 13
 namespace SWP\MultiTenancyBundle\Tests\DependencyInjection\Compiler;
14 14
 
15 15
 use SWP\MultiTenancyBundle\DependencyInjection\Compiler\TenantAwareRouterCompilerPass;
Please login to merge, or discard this patch.
Command/CreateTenantCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
             $subdomain = $this->getHelper('dialog')->askAndValidate(
89 89
                 $output,
90 90
                 '<question>Please enter subdomain:</question>',
91
-                function ($subdomain) {
91
+                function($subdomain) {
92 92
                     if (empty($subdomain)) {
93 93
                         throw new \RuntimeException('Subdomain can not be empty');
94 94
                     }
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
             $name = $this->getHelper('dialog')->askAndValidate(
105 105
                 $output,
106 106
                 '<question>Please enter name:</question>',
107
-                function ($name) {
107
+                function($name) {
108 108
                     if (empty($name)) {
109 109
                         throw new \RuntimeException('Name can not be empty');
110 110
                     }
Please login to merge, or discard this patch.