Completed
Branch master (4ff1ca)
by
unknown
02:55
created
Twig/SchemaDumperExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
      */
105 105
     protected function getColumnOption(Column $column, $optionName)
106 106
     {
107
-        $method = "get" . $optionName;
107
+        $method = "get".$optionName;
108 108
 
109 109
         return $column->$method();
110 110
     }
Please login to merge, or discard this patch.
Command/DumpMigrationsCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
             $connection = $this->getContainer()->get('doctrine')->getConnection();
79 79
             $sqls = $schema->toSql($connection->getDatabasePlatform());
80 80
             foreach ($sqls as $sql) {
81
-                $output->writeln($sql . ';');
81
+                $output->writeln($sql.';');
82 82
             }
83 83
         } else {
84 84
             $this->dumpPhpSchema($schema, $output);
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
                 );
99 99
             }
100 100
             $this->namespace = str_replace($bundle, 'Entity', $bundles[$bundle]);
101
-            $this->className = $bundle . 'Installer';
101
+            $this->className = $bundle.'Installer';
102 102
         }
103 103
     }
104 104
 
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         $allMetadata = $doctrine->getManager()->getMetadataFactory()->getAllMetadata();
113 113
         array_walk(
114 114
             $allMetadata,
115
-            function (ClassMetadata $entityMetadata) {
115
+            function(ClassMetadata $entityMetadata) {
116 116
                 if ($this->namespace) {
117 117
                     if ($entityMetadata->namespace == $this->namespace) {
118 118
                         $this->allowedTables[$entityMetadata->getTableName()] = true;
Please login to merge, or discard this patch.
Command/LoadDataFixturesCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
             if (!empty($excludeBundles) && in_array($bundle->getName(), $excludeBundles)) {
93 93
                 continue;
94 94
             }
95
-            $path = $bundle->getPath() . $fixtureRelativePath;
95
+            $path = $bundle->getPath().$fixtureRelativePath;
96 96
             if (is_dir($path)) {
97 97
                 $loader->loadFromDirectory($path);
98 98
             }
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 
140 140
         $executor = $this->getContainer()->get('rdv_migration.data_fixtures.executor');
141 141
         $executor->setLogger(
142
-            function ($message) use ($output) {
142
+            function($message) use ($output) {
143 143
                 $output->writeln(sprintf('  <comment>></comment> <info>%s</info>', $message));
144 144
             }
145 145
         );
@@ -172,6 +172,6 @@  discard block
 block discarded – undo
172 172
                 throw new \InvalidArgumentException('Unknown fixture type');
173 173
         }
174 174
 
175
-        return str_replace('/', DIRECTORY_SEPARATOR, '/' . $path);
175
+        return str_replace('/', DIRECTORY_SEPARATOR, '/'.$path);
176 176
     }
177 177
 }
Please login to merge, or discard this patch.
Tests/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-$loader = require_once __DIR__ . '/../vendor/autoload.php';
3
+$loader = require_once __DIR__.'/../vendor/autoload.php';
4 4
 use Doctrine\Common\Annotations\AnnotationRegistry;
5 5
 AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
Please login to merge, or discard this patch.
Tests/Functional/Fixture/Kernel.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      */
23 23
     public function getCacheDir()
24 24
     {
25
-        $this->cacheDir = sys_get_temp_dir() . '/kernel' . mt_rand();
25
+        $this->cacheDir = sys_get_temp_dir().'/kernel'.mt_rand();
26 26
         mkdir($this->cacheDir, 0755, true);
27 27
         return $this->cacheDir;
28 28
     }
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     protected function getContainerClass()
34 34
     {
35
-        return parent::getContainerClass() . mt_rand();
35
+        return parent::getContainerClass().mt_rand();
36 36
     }
37 37
 
38 38
     /**
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      */
78 78
     public function registerContainerConfiguration(LoaderInterface $loader)
79 79
     {
80
-        $loader->load(__DIR__ . '/config.yml');
80
+        $loader->load(__DIR__.'/config.yml');
81 81
         if (is_callable($this->configCallback)) {
82 82
             $loader->load($this->configCallback);
83 83
         }
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 
86 86
     public function __destruct()
87 87
     {
88
-        array_map('unlink', glob($this->cacheDir . '/*'));
88
+        array_map('unlink', glob($this->cacheDir.'/*'));
89 89
         rmdir($this->cacheDir);
90 90
     }
91 91
 }
Please login to merge, or discard this patch.
Tests/Functional/DependencyInjection/ConfigurationTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 {
12 12
     protected function tearDown()
13 13
     {
14
-        array_map('unlink', glob(__DIR__ . '/../Fixture/cache/test/*.[php|xml]*'));
14
+        array_map('unlink', glob(__DIR__.'/../Fixture/cache/test/*.[php|xml]*'));
15 15
     }
16 16
 
17 17
     public function testMigrationsLoadedFromDefaultPath()
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
             new TestPackageTest1Bundle(),
44 44
             new TestPackageTest2Bundle(),
45 45
         ));
46
-        $kernel->setConfigCallback(function ($container) {
46
+        $kernel->setConfigCallback(function($container) {
47 47
             $container->setParameter('rdv_migration.migration_path', 'NonExistingPath');
48 48
         });
49 49
         $kernel->boot();
Please login to merge, or discard this patch.
Tests/Unit/Migration/Loader/MigrationsLoaderTest.php 1 patch
Spacing   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
             ->method('dispatch')
71 71
             ->will(
72 72
                 $this->returnCallback(
73
-                    function ($eventName, $event) use (&$installed) {
73
+                    function($eventName, $event) use (&$installed) {
74 74
                         if ($eventName === MigrationEvents::PRE_UP) {
75 75
                             if (null !== $installed) {
76 76
                                 foreach ($installed as $val) {
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
     protected function getMigrationClasses(array $migrations)
97 97
     {
98 98
         return array_map(
99
-            function ($migration) {
99
+            function($migration) {
100 100
                 return get_class($migration->getMigration());
101 101
             },
102 102
             $migrations
@@ -109,20 +109,20 @@  discard block
 block discarded – undo
109 109
     public function getMigrationsProvider()
110 110
     {
111 111
         $testPackage = 'RDV\\Bundle\\MigrationBundle\\Tests\\Unit\\Fixture\\TestPackage\\';
112
-        $test1Bundle = $testPackage . 'Test1Bundle\\Migrations\\Schema';
113
-        $test2Bundle = $testPackage . 'Test2Bundle\\Migrations\\Schema';
112
+        $test1Bundle = $testPackage.'Test1Bundle\\Migrations\\Schema';
113
+        $test2Bundle = $testPackage.'Test2Bundle\\Migrations\\Schema';
114 114
 
115 115
         return [
116 116
             [
117 117
                 [new TestPackageTest1Bundle(), new TestPackageTest2Bundle()],
118 118
                 null,
119 119
                 [
120
-                    $test1Bundle . '\Test1BundleInstallation',
121
-                    $test1Bundle . '\v1_1\Test1BundleMigration11',
122
-                    $test2Bundle . '\v1_0\Test2BundleMigration10',
123
-                    $test2Bundle . '\v1_0\Test2BundleMigration11',
124
-                    $test2Bundle . '\v1_1\Test2BundleMigration12',
125
-                    $test2Bundle . '\v1_1\Test2BundleMigration11',
120
+                    $test1Bundle.'\Test1BundleInstallation',
121
+                    $test1Bundle.'\v1_1\Test1BundleMigration11',
122
+                    $test2Bundle.'\v1_0\Test2BundleMigration10',
123
+                    $test2Bundle.'\v1_0\Test2BundleMigration11',
124
+                    $test2Bundle.'\v1_1\Test2BundleMigration12',
125
+                    $test2Bundle.'\v1_1\Test2BundleMigration11',
126 126
                     'RDV\Bundle\MigrationBundle\Migration\UpdateBundleVersionMigration',
127 127
                 ]
128 128
             ],
@@ -130,12 +130,12 @@  discard block
 block discarded – undo
130 130
                 [new TestPackageTest2Bundle(), new TestPackageTest1Bundle()],
131 131
                 null,
132 132
                 [
133
-                    $test2Bundle . '\v1_0\Test2BundleMigration10',
134
-                    $test2Bundle . '\v1_0\Test2BundleMigration11',
135
-                    $test2Bundle . '\v1_1\Test2BundleMigration12',
136
-                    $test2Bundle . '\v1_1\Test2BundleMigration11',
137
-                    $test1Bundle . '\Test1BundleInstallation',
138
-                    $test1Bundle . '\v1_1\Test1BundleMigration11',
133
+                    $test2Bundle.'\v1_0\Test2BundleMigration10',
134
+                    $test2Bundle.'\v1_0\Test2BundleMigration11',
135
+                    $test2Bundle.'\v1_1\Test2BundleMigration12',
136
+                    $test2Bundle.'\v1_1\Test2BundleMigration11',
137
+                    $test1Bundle.'\Test1BundleInstallation',
138
+                    $test1Bundle.'\v1_1\Test1BundleMigration11',
139 139
                     'RDV\Bundle\MigrationBundle\Migration\UpdateBundleVersionMigration',
140 140
                 ]
141 141
             ],
@@ -143,12 +143,12 @@  discard block
 block discarded – undo
143 143
                 [new TestPackageTest1Bundle(), new TestPackageTest2Bundle()],
144 144
                 [],
145 145
                 [
146
-                    $test1Bundle . '\Test1BundleInstallation',
147
-                    $test1Bundle . '\v1_1\Test1BundleMigration11',
148
-                    $test2Bundle . '\v1_0\Test2BundleMigration10',
149
-                    $test2Bundle . '\v1_0\Test2BundleMigration11',
150
-                    $test2Bundle . '\v1_1\Test2BundleMigration12',
151
-                    $test2Bundle . '\v1_1\Test2BundleMigration11',
146
+                    $test1Bundle.'\Test1BundleInstallation',
147
+                    $test1Bundle.'\v1_1\Test1BundleMigration11',
148
+                    $test2Bundle.'\v1_0\Test2BundleMigration10',
149
+                    $test2Bundle.'\v1_0\Test2BundleMigration11',
150
+                    $test2Bundle.'\v1_1\Test2BundleMigration12',
151
+                    $test2Bundle.'\v1_1\Test2BundleMigration11',
152 152
                     'RDV\Bundle\MigrationBundle\Migration\UpdateBundleVersionMigration',
153 153
                 ]
154 154
             ],
@@ -158,12 +158,12 @@  discard block
 block discarded – undo
158 158
                     ['bundle' => 'TestPackageTest1Bundle', 'version' => null],
159 159
                 ],
160 160
                 [
161
-                    $test1Bundle . '\Test1BundleInstallation',
162
-                    $test1Bundle . '\v1_1\Test1BundleMigration11',
163
-                    $test2Bundle . '\v1_0\Test2BundleMigration10',
164
-                    $test2Bundle . '\v1_0\Test2BundleMigration11',
165
-                    $test2Bundle . '\v1_1\Test2BundleMigration12',
166
-                    $test2Bundle . '\v1_1\Test2BundleMigration11',
161
+                    $test1Bundle.'\Test1BundleInstallation',
162
+                    $test1Bundle.'\v1_1\Test1BundleMigration11',
163
+                    $test2Bundle.'\v1_0\Test2BundleMigration10',
164
+                    $test2Bundle.'\v1_0\Test2BundleMigration11',
165
+                    $test2Bundle.'\v1_1\Test2BundleMigration12',
166
+                    $test2Bundle.'\v1_1\Test2BundleMigration11',
167 167
                     'RDV\Bundle\MigrationBundle\Migration\UpdateBundleVersionMigration',
168 168
                 ]
169 169
             ],
@@ -173,11 +173,11 @@  discard block
 block discarded – undo
173 173
                     ['bundle' => 'TestPackageTest1Bundle', 'version' => 'v1_0'],
174 174
                 ],
175 175
                 [
176
-                    $test1Bundle . '\v1_1\Test1BundleMigration11',
177
-                    $test2Bundle . '\v1_0\Test2BundleMigration10',
178
-                    $test2Bundle . '\v1_0\Test2BundleMigration11',
179
-                    $test2Bundle . '\v1_1\Test2BundleMigration12',
180
-                    $test2Bundle . '\v1_1\Test2BundleMigration11',
176
+                    $test1Bundle.'\v1_1\Test1BundleMigration11',
177
+                    $test2Bundle.'\v1_0\Test2BundleMigration10',
178
+                    $test2Bundle.'\v1_0\Test2BundleMigration11',
179
+                    $test2Bundle.'\v1_1\Test2BundleMigration12',
180
+                    $test2Bundle.'\v1_1\Test2BundleMigration11',
181 181
                     'RDV\Bundle\MigrationBundle\Migration\UpdateBundleVersionMigration',
182 182
                 ]
183 183
             ],
@@ -188,9 +188,9 @@  discard block
 block discarded – undo
188 188
                     ['bundle' => 'TestPackageTest2Bundle', 'version' => 'v1_0'],
189 189
                 ],
190 190
                 [
191
-                    $test1Bundle . '\v1_1\Test1BundleMigration11',
192
-                    $test2Bundle . '\v1_1\Test2BundleMigration12',
193
-                    $test2Bundle . '\v1_1\Test2BundleMigration11',
191
+                    $test1Bundle.'\v1_1\Test1BundleMigration11',
192
+                    $test2Bundle.'\v1_1\Test2BundleMigration12',
193
+                    $test2Bundle.'\v1_1\Test2BundleMigration11',
194 194
                     'RDV\Bundle\MigrationBundle\Migration\UpdateBundleVersionMigration',
195 195
                 ]
196 196
             ],
Please login to merge, or discard this patch.
Tests/Unit/Migration/Loader/DataFixturesLoaderTest.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         /** @var \Symfony\Component\HttpKernel\Bundle\Bundle $bundle */
45 45
         foreach ($bundles as $bundle) {
46 46
             $this->loader->loadFromDirectory(
47
-                $bundle->getPath() . '/Migrations/Data/ORM'
47
+                $bundle->getPath().'/Migrations/Data/ORM'
48 48
             );
49 49
         }
50 50
 
@@ -101,14 +101,14 @@  discard block
 block discarded – undo
101 101
                 [new TestPackageTest1Bundle()],
102 102
                 [],
103 103
                 [
104
-                    $test1BundleNamespace . '\Migrations\Data\ORM\LoadTest1BundleData',
104
+                    $test1BundleNamespace.'\Migrations\Data\ORM\LoadTest1BundleData',
105 105
                     'RDV\Bundle\MigrationBundle\Migration\UpdateDataFixturesFixture',
106 106
                 ]
107 107
             ],
108 108
             [
109 109
                 [new TestPackageTest1Bundle()],
110 110
                 [
111
-                    $test1BundleNamespace . '\Migrations\Data\ORM\LoadTest1BundleData' => ''
111
+                    $test1BundleNamespace.'\Migrations\Data\ORM\LoadTest1BundleData' => ''
112 112
                 ],
113 113
                 []
114 114
             ],
@@ -116,18 +116,18 @@  discard block
 block discarded – undo
116 116
                 [new TestPackageTest2Bundle()],
117 117
                 [],
118 118
                 [
119
-                    $test1BundleNamespace . '\Migrations\Data\ORM\LoadTest1BundleData',
120
-                    $test2BundleNamespace . '\Migrations\Data\ORM\LoadTest2BundleData',
119
+                    $test1BundleNamespace.'\Migrations\Data\ORM\LoadTest1BundleData',
120
+                    $test2BundleNamespace.'\Migrations\Data\ORM\LoadTest2BundleData',
121 121
                     'RDV\Bundle\MigrationBundle\Migration\UpdateDataFixturesFixture',
122 122
                 ]
123 123
             ],
124 124
             [
125 125
                 [new TestPackageTest2Bundle()],
126 126
                 [
127
-                    $test1BundleNamespace . '\Migrations\Data\ORM\LoadTest1BundleData' => ''
127
+                    $test1BundleNamespace.'\Migrations\Data\ORM\LoadTest1BundleData' => ''
128 128
                 ],
129 129
                 [
130
-                    $test2BundleNamespace . '\Migrations\Data\ORM\LoadTest2BundleData',
130
+                    $test2BundleNamespace.'\Migrations\Data\ORM\LoadTest2BundleData',
131 131
                     'RDV\Bundle\MigrationBundle\Migration\UpdateDataFixturesFixture',
132 132
                 ]
133 133
             ],
@@ -135,18 +135,18 @@  discard block
 block discarded – undo
135 135
                 [new TestPackageTest2Bundle(), new TestPackageTest1Bundle()],
136 136
                 [],
137 137
                 [
138
-                    $test1BundleNamespace . '\Migrations\Data\ORM\LoadTest1BundleData',
139
-                    $test2BundleNamespace . '\Migrations\Data\ORM\LoadTest2BundleData',
138
+                    $test1BundleNamespace.'\Migrations\Data\ORM\LoadTest1BundleData',
139
+                    $test2BundleNamespace.'\Migrations\Data\ORM\LoadTest2BundleData',
140 140
                     'RDV\Bundle\MigrationBundle\Migration\UpdateDataFixturesFixture',
141 141
                 ]
142 142
             ],
143 143
             [
144 144
                 [new TestPackageTest2Bundle(), new TestPackageTest1Bundle()],
145 145
                 [
146
-                    $test2BundleNamespace . '\Migrations\Data\ORM\LoadTest2BundleData' => ''
146
+                    $test2BundleNamespace.'\Migrations\Data\ORM\LoadTest2BundleData' => ''
147 147
                 ],
148 148
                 [
149
-                    $test1BundleNamespace . '\Migrations\Data\ORM\LoadTest1BundleData',
149
+                    $test1BundleNamespace.'\Migrations\Data\ORM\LoadTest1BundleData',
150 150
                     'RDV\Bundle\MigrationBundle\Migration\UpdateDataFixturesFixture',
151 151
                 ]
152 152
             ],
@@ -154,27 +154,27 @@  discard block
 block discarded – undo
154 154
                 [new TestPackageTest3Bundle()],
155 155
                 [],
156 156
                 [
157
-                    $test3BundleNamespace . '\Migrations\Data\ORM\LoadTest3BundleData1',
158
-                    $test3BundleNamespace . '\Migrations\Data\ORM\LoadTest3BundleData2',
157
+                    $test3BundleNamespace.'\Migrations\Data\ORM\LoadTest3BundleData1',
158
+                    $test3BundleNamespace.'\Migrations\Data\ORM\LoadTest3BundleData2',
159 159
                     'RDV\Bundle\MigrationBundle\Migration\UpdateDataFixturesFixture',
160 160
                 ]
161 161
             ],
162 162
             [
163 163
                 [new TestPackageTest3Bundle()],
164 164
                 [
165
-                    $test3BundleNamespace . '\Migrations\Data\ORM\LoadTest3BundleData1' => '1.0',
166
-                    $test3BundleNamespace . '\Migrations\Data\ORM\LoadTest3BundleData2' => '0.0'
165
+                    $test3BundleNamespace.'\Migrations\Data\ORM\LoadTest3BundleData1' => '1.0',
166
+                    $test3BundleNamespace.'\Migrations\Data\ORM\LoadTest3BundleData2' => '0.0'
167 167
                 ],
168 168
                 [
169
-                    $test3BundleNamespace . '\Migrations\Data\ORM\LoadTest3BundleData2',
169
+                    $test3BundleNamespace.'\Migrations\Data\ORM\LoadTest3BundleData2',
170 170
                     'RDV\Bundle\MigrationBundle\Migration\UpdateDataFixturesFixture',
171 171
                 ]
172 172
             ],
173 173
             [
174 174
                 [new TestPackageTest3Bundle()],
175 175
                 [
176
-                    $test3BundleNamespace . '\Migrations\Data\ORM\LoadTest3BundleData1' => '2.0',
177
-                    $test3BundleNamespace . '\Migrations\Data\ORM\LoadTest3BundleData2' => '1.0'
176
+                    $test3BundleNamespace.'\Migrations\Data\ORM\LoadTest3BundleData1' => '2.0',
177
+                    $test3BundleNamespace.'\Migrations\Data\ORM\LoadTest3BundleData2' => '1.0'
178 178
                 ],
179 179
                 []
180 180
             ]
Please login to merge, or discard this patch.
Tests/Unit/Migration/MigrationExecutorWithNameGeneratorTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,9 +56,9 @@  discard block
 block discarded – undo
56 56
         $messages = $this->logger->getMessages();
57 57
         $this->assertEquals(
58 58
             [
59
-                '> ' . get_class($migration10),
59
+                '> '.get_class($migration10),
60 60
                 'CREATE TABLE TEST (id INT AUTO_INCREMENT NOT NULL)',
61
-                '> ' . get_class($migration11),
61
+                '> '.get_class($migration11),
62 62
                 'CREATE TABLE test1table (id INT NOT NULL) DEFAULT CHARACTER SET utf8 '
63 63
                 . 'COLLATE utf8_unicode_ci ENGINE = InnoDB',
64 64
                 'ALTER TABLE TEST ADD COLUMN test_column INT NOT NULL',
@@ -83,9 +83,9 @@  discard block
 block discarded – undo
83 83
         $messages = $this->logger->getMessages();
84 84
         $this->assertEquals(
85 85
             [
86
-                '> ' . get_class($migration10),
86
+                '> '.get_class($migration10),
87 87
                 'CREATE TABLE TEST (id INT AUTO_INCREMENT NOT NULL)',
88
-                '> ' . get_class($migration11),
88
+                '> '.get_class($migration11),
89 89
                 'CREATE TABLE test1table (id INT NOT NULL) DEFAULT CHARACTER SET utf8 '
90 90
                 . 'COLLATE utf8_unicode_ci ENGINE = InnoDB',
91 91
                 'ALTER TABLE TEST ADD COLUMN test_column INT NOT NULL',
Please login to merge, or discard this patch.