Failed Conditions
Push — experimental/3.1 ( 923e5e...2823d3 )
by Yangsin
18s
created
src/Eccube/Doctrine/ORM/Tools/Pagination/CountWalker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
         }
70 70
 
71 71
         $pathExpression = new PathExpression(
72
-            PathExpression::TYPE_STATE_FIELD | PathExpression::TYPE_SINGLE_VALUED_ASSOCIATION, $rootAlias,
72
+            PathExpression::TYPE_STATE_FIELD|PathExpression::TYPE_SINGLE_VALUED_ASSOCIATION, $rootAlias,
73 73
             $identifierFieldName
74 74
         );
75 75
         $pathExpression->type = $pathType;
Please login to merge, or discard this patch.
src/Eccube/Doctrine/ORM/Tools/Pagination/LimitSubqueryWalker.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
         );
94 94
 
95 95
         $pathExpression = new PathExpression(
96
-            PathExpression::TYPE_STATE_FIELD | PathExpression::TYPE_SINGLE_VALUED_ASSOCIATION,
96
+            PathExpression::TYPE_STATE_FIELD|PathExpression::TYPE_SINGLE_VALUED_ASSOCIATION,
97 97
             $rootAlias,
98 98
             $identifier
99 99
         );
@@ -104,13 +104,13 @@  discard block
 block discarded – undo
104 104
 
105 105
         if (isset($AST->orderByClause)) {
106 106
             foreach ($AST->orderByClause->orderByItems as $item) {
107
-                if ( ! $item->expression instanceof PathExpression) {
107
+                if (!$item->expression instanceof PathExpression) {
108 108
                     continue;
109 109
                 }
110 110
                 
111 111
                 $AST->selectClause->selectExpressions[] = new SelectExpression(
112 112
                     $this->createSelectExpressionItem($item->expression),
113
-                    '_dctrn_ord' . $this->_aliasCounter++
113
+                    '_dctrn_ord'.$this->_aliasCounter++
114 114
                 );
115 115
             }
116 116
         }
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
                     && isset($queryComponents[$expression->identificationVariable])) {
146 146
                     $queryComponent = $queryComponents[$expression->identificationVariable];
147 147
                     if (isset($queryComponent['parent'])
148
-                        && $queryComponent['relation']['type'] & ClassMetadataInfo::TO_MANY) {
148
+                        && $queryComponent['relation']['type']&ClassMetadataInfo::TO_MANY) {
149 149
                         throw new \RuntimeException("Cannot select distinct identifiers from query with LIMIT and ORDER BY on a column from a fetch joined to-many association. Use output walkers.");
150 150
                     }
151 151
                 }
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,6 @@
 block discarded – undo
20 20
 
21 21
 use Doctrine\DBAL\Types\Type;
22 22
 use Doctrine\ORM\Mapping\ClassMetadataInfo;
23
-use Doctrine\ORM\ORMException;
24 23
 use Doctrine\ORM\Query;
25 24
 use Doctrine\ORM\Query\AST\Functions\IdentityFunction;
26 25
 use Doctrine\ORM\Query\AST\PathExpression;
Please login to merge, or discard this patch.
src/Eccube/Doctrine/ORM/Tools/Pagination/RowNumberOverFunction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,9 +44,9 @@
 block discarded – undo
44 44
      */
45 45
     public function getSql(\Doctrine\ORM\Query\SqlWalker $sqlWalker)
46 46
     {
47
-        return 'ROW_NUMBER() OVER(' . trim($sqlWalker->walkOrderByClause(
47
+        return 'ROW_NUMBER() OVER('.trim($sqlWalker->walkOrderByClause(
48 48
             $this->orderByClause
49
-        )) . ')';
49
+        )).')';
50 50
     }
51 51
 
52 52
     /**
Please login to merge, or discard this patch.
src/Eccube/Doctrine/ORM/Tools/Pagination/LimitSubqueryOutputWalker.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -209,8 +209,8 @@  discard block
 block discarded – undo
209 209
         $sqlIdentifier = $this->getSQLIdentifier($AST);
210 210
 
211 211
         if ($hasOrderBy) {
212
-            $orderGroupBy = ' GROUP BY ' . implode(', ', $sqlIdentifier);
213
-            $sqlIdentifier[] = 'MIN(' . $this->walkResultVariable('dctrn_rownum') . ') AS dctrn_minrownum';
212
+            $orderGroupBy = ' GROUP BY '.implode(', ', $sqlIdentifier);
213
+            $sqlIdentifier[] = 'MIN('.$this->walkResultVariable('dctrn_rownum').') AS dctrn_minrownum';
214 214
         }
215 215
 
216 216
         // Build the counter query
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
         );
222 222
 
223 223
         if ($hasOrderBy) {
224
-            $sql .= $orderGroupBy . $outerOrderBy;
224
+            $sql .= $orderGroupBy.$outerOrderBy;
225 225
         }
226 226
 
227 227
         // Apply the limit and offset.
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
     {
369 369
         // If the sql statement has an order by clause, we need to wrap it in a new select distinct
370 370
         // statement
371
-        if (! $orderByClause instanceof OrderByClause) {
371
+        if (!$orderByClause instanceof OrderByClause) {
372 372
             return $sql;
373 373
         }
374 374
 
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
             = array();
405 405
 
406 406
         // Generate DQL alias -> SQL table alias mapping
407
-        foreach(array_keys($this->rsm->aliasMap) as $dqlAlias) {
407
+        foreach (array_keys($this->rsm->aliasMap) as $dqlAlias) {
408 408
             $dqlAliasToClassMap[$dqlAlias] = $class = $this->queryComponents[$dqlAlias]['metadata'];
409 409
             $dqlAliasToSqlTableAliasMap[$dqlAlias] = $this->getSQLTableAlias($class->getTableName(), $dqlAlias);
410 410
         }
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
         $fieldSearchPattern = '/(?<![a-z0-9_])%s\.%s(?![a-z0-9_])/i';
414 414
 
415 415
         // Generate search patterns for each field's path expression in the order by clause
416
-        foreach($this->rsm->fieldMappings as $fieldAlias => $fieldName) {
416
+        foreach ($this->rsm->fieldMappings as $fieldAlias => $fieldName) {
417 417
             $dqlAliasForFieldAlias = $this->rsm->columnOwnerMap[$fieldAlias];
418 418
             $class = $dqlAliasToClassMap[$dqlAliasForFieldAlias];
419 419
 
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
             $replacements[] = $fieldAlias;
450 450
         }
451 451
 
452
-        foreach($orderByClause->orderByItems as $orderByItem) {
452
+        foreach ($orderByClause->orderByItems as $orderByItem) {
453 453
             // Walk order by item to get string representation of it
454 454
             $orderByItemString = $this->walkOrderByItem($orderByItem);
455 455
 
Please login to merge, or discard this patch.
Unused Use Statements   -9 removed lines patch added patch discarded remove patch
@@ -18,19 +18,10 @@
 block discarded – undo
18 18
 use Doctrine\DBAL\Platforms\PostgreSqlPlatform;
19 19
 use Doctrine\DBAL\Platforms\SQLAnywherePlatform;
20 20
 use Doctrine\DBAL\Platforms\SQLServerPlatform;
21
-use Doctrine\ORM\Query\AST\ArithmeticExpression;
22
-use Doctrine\ORM\Query\AST\ArithmeticFactor;
23
-use Doctrine\ORM\Query\AST\ArithmeticTerm;
24
-use Doctrine\ORM\Query\AST\Literal;
25 21
 use Doctrine\ORM\Query\AST\OrderByClause;
26
-use Doctrine\ORM\Query\AST\OrderByItem;
27 22
 use Doctrine\ORM\Query\AST\PartialObjectExpression;
28
-use Doctrine\ORM\Query\AST\PathExpression;
29 23
 use Doctrine\ORM\Query\AST\SelectExpression;
30 24
 use Doctrine\ORM\Query\AST\SelectStatement;
31
-use Doctrine\ORM\Query\AST\SimpleArithmeticExpression;
32
-use Doctrine\ORM\Query\Expr\OrderBy;
33
-use Doctrine\ORM\Query\Expr\Select;
34 25
 use Doctrine\ORM\Query\SqlWalker;
35 26
 
36 27
 /**
Please login to merge, or discard this patch.
src/Eccube/Command/ConfigCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
             }
92 92
         }
93 93
 
94
-        $recursive = function ($config, $space = '    ') use (&$recursive, $output) {
94
+        $recursive = function($config, $space = '    ') use (&$recursive, $output) {
95 95
             foreach ($config as $key => $item) {
96 96
                 if (is_array($item)) {
97 97
                     $space = '    ';
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Customer/CustomerController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
         $em->getConfiguration()->setSQLLogger(null);
236 236
 
237 237
         $response = new StreamedResponse();
238
-        $response->setCallback(function () use ($app, $request) {
238
+        $response->setCallback(function() use ($app, $request) {
239 239
 
240 240
             // CSV種別を元に初期化.
241 241
             $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_CUSTOMER);
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
 
250 250
             // データ行の出力.
251 251
             $app['eccube.service.csv.export']->setExportQueryBuilder($qb);
252
-            $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) use ($app, $request) {
252
+            $app['eccube.service.csv.export']->exportData(function($entity, $csvService) use ($app, $request) {
253 253
 
254 254
                 $Csvs = $csvService->getCsvs();
255 255
 
@@ -284,9 +284,9 @@  discard block
 block discarded – undo
284 284
         });
285 285
 
286 286
         $now = new \DateTime();
287
-        $filename = 'customer_' . $now->format('YmdHis') . '.csv';
287
+        $filename = 'customer_'.$now->format('YmdHis').'.csv';
288 288
         $response->headers->set('Content-Type', 'application/octet-stream');
289
-        $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename);
289
+        $response->headers->set('Content-Disposition', 'attachment; filename='.$filename);
290 290
 
291 291
         $response->send();
292 292
 
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Order/OrderController.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
         $em->getConfiguration()->setSQLLogger(null);
241 241
 
242 242
         $response = new StreamedResponse();
243
-        $response->setCallback(function () use ($app, $request) {
243
+        $response->setCallback(function() use ($app, $request) {
244 244
 
245 245
             // CSV種別を元に初期化.
246 246
             $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_ORDER);
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
 
255 255
             // データ行の出力.
256 256
             $app['eccube.service.csv.export']->setExportQueryBuilder($qb);
257
-            $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) use ($app, $request) {
257
+            $app['eccube.service.csv.export']->exportData(function($entity, $csvService) use ($app, $request) {
258 258
 
259 259
                 $Csvs = $csvService->getCsvs();
260 260
 
@@ -295,9 +295,9 @@  discard block
 block discarded – undo
295 295
         });
296 296
 
297 297
         $now = new \DateTime();
298
-        $filename = 'order_' . $now->format('YmdHis') . '.csv';
298
+        $filename = 'order_'.$now->format('YmdHis').'.csv';
299 299
         $response->headers->set('Content-Type', 'application/octet-stream');
300
-        $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename);
300
+        $response->headers->set('Content-Disposition', 'attachment; filename='.$filename);
301 301
         $response->send();
302 302
 
303 303
         log_info('受注CSV出力ファイル名', array($filename));
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
         $em->getConfiguration()->setSQLLogger(null);
323 323
 
324 324
         $response = new StreamedResponse();
325
-        $response->setCallback(function () use ($app, $request) {
325
+        $response->setCallback(function() use ($app, $request) {
326 326
 
327 327
             // CSV種別を元に初期化.
328 328
             $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_SHIPPING);
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
 
337 337
             // データ行の出力.
338 338
             $app['eccube.service.csv.export']->setExportQueryBuilder($qb);
339
-            $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) use ($app, $request) {
339
+            $app['eccube.service.csv.export']->exportData(function($entity, $csvService) use ($app, $request) {
340 340
 
341 341
                 $Csvs = $csvService->getCsvs();
342 342
 
@@ -386,9 +386,9 @@  discard block
 block discarded – undo
386 386
         });
387 387
 
388 388
         $now = new \DateTime();
389
-        $filename = 'shipping_' . $now->format('YmdHis') . '.csv';
389
+        $filename = 'shipping_'.$now->format('YmdHis').'.csv';
390 390
         $response->headers->set('Content-Type', 'application/octet-stream');
391
-        $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename);
391
+        $response->headers->set('Content-Disposition', 'attachment; filename='.$filename);
392 392
         $response->send();
393 393
 
394 394
         log_info('配送CSV出力ファイル名', array($filename));
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Product/CategoryController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
         $em->getConfiguration()->setSQLLogger(null);
206 206
 
207 207
         $response = new StreamedResponse();
208
-        $response->setCallback(function () use ($app, $request) {
208
+        $response->setCallback(function() use ($app, $request) {
209 209
 
210 210
             // CSV種別を元に初期化.
211 211
             $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_CATEGORY);
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
 
220 220
             // データ行の出力.
221 221
             $app['eccube.service.csv.export']->setExportQueryBuilder($qb);
222
-            $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) use ($app, $request) {
222
+            $app['eccube.service.csv.export']->exportData(function($entity, $csvService) use ($app, $request) {
223 223
 
224 224
                 $Csvs = $csvService->getCsvs();
225 225
 
@@ -252,9 +252,9 @@  discard block
 block discarded – undo
252 252
         });
253 253
 
254 254
         $now = new \DateTime();
255
-        $filename = 'category_' . $now->format('YmdHis') . '.csv';
255
+        $filename = 'category_'.$now->format('YmdHis').'.csv';
256 256
         $response->headers->set('Content-Type', 'application/octet-stream');
257
-        $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename);
257
+        $response->headers->set('Content-Disposition', 'attachment; filename='.$filename);
258 258
         $response->send();
259 259
 
260 260
         log_info('カテゴリCSV出力ファイル名', array($filename));
Please login to merge, or discard this patch.
src/Eccube/Command/PluginCommand/EntityFromYamlGenerator.php 2 patches
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         $this->output->writeln('------------------------------------------------------');
48 48
         $this->output->writeln('---Plugin Generator for Entity');
49 49
         $this->output->writeln('---[*] You need to create yaml file first.');
50
-        $this->output->writeln('---[*]You can exit from Console Application, by typing ' . self::STOP_PROCESS . ' instead of typing another word.');
50
+        $this->output->writeln('---[*]You can exit from Console Application, by typing '.self::STOP_PROCESS.' instead of typing another word.');
51 51
         $this->output->writeln('------------------------------------------------------');
52 52
         $this->output->writeln('');
53 53
     }
@@ -62,11 +62,11 @@  discard block
 block discarded – undo
62 62
         $pluginCode = $this->paramList['pluginCode']['value'];
63 63
         $yamlList = $this->paramList['entityList']['value'];
64 64
 
65
-        $codePath = $this->app['config']['root_dir'] . '/app/Plugin/' . $pluginCode;
65
+        $codePath = $this->app['config']['root_dir'].'/app/Plugin/'.$pluginCode;
66 66
 
67 67
         $dirList = array('Entity', 'Repository', '/Resource/doctrine/migration');
68 68
         foreach ($dirList as $dirName) {
69
-            $dirPath = $codePath . '/' . $dirName;
69
+            $dirPath = $codePath.'/'.$dirName;
70 70
             if (!is_dir($dirPath)) {
71 71
                 mkdir($dirPath);
72 72
             }
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         $metadetas = array();
80 80
 
81 81
 
82
-        $YamlDriver = new YamlDriver(array($codePath . '/Resource/doctrine'));
82
+        $YamlDriver = new YamlDriver(array($codePath.'/Resource/doctrine'));
83 83
         foreach ($yamlList as $pathYaml => $fullClassName) {
84 84
 
85 85
             $MetadataInfo = new ClassMetadataInfo($fullClassName);
@@ -95,9 +95,9 @@  discard block
 block discarded – undo
95 95
             $EntityGenerator->setGenerateStubMethods(true);
96 96
             $EntityGenerator->setUpdateEntityIfExists(false);
97 97
 
98
-            $pathClass = $this->app['config']['root_dir'] . '/app/';
98
+            $pathClass = $this->app['config']['root_dir'].'/app/';
99 99
             $EntityGenerator->generate(array($MetadataInfo), $pathClass);
100
-            $pathClass .= str_replace('\\', DIRECTORY_SEPARATOR, $MetadataInfo->name) . '.php';
100
+            $pathClass .= str_replace('\\', DIRECTORY_SEPARATOR, $MetadataInfo->name).'.php';
101 101
             if (is_file($pathClass)) {
102 102
                 $fsList['file'][$pathClass] = true;
103 103
             } else {
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
             $migrationContent = $this->makeMigration($pluginCode, $metadetas);
119 119
             $timeSt = date('YmdHis');
120 120
             $migrationContent = str_replace('[datetime]', $timeSt, $migrationContent);
121
-            $migPath = $codePath . '/Resource/doctrine/migration/Version' . $timeSt . '.php';
121
+            $migPath = $codePath.'/Resource/doctrine/migration/Version'.$timeSt.'.php';
122 122
 
123 123
             file_put_contents($migPath, $migrationContent);
124 124
             if (is_file($migPath)) {
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
             $this->output->writeln('');
151 151
             $this->output->writeln(' this files and folders were created.');
152 152
             foreach ($dirFileOk as $path) {
153
-                $this->output->writeln('<info> - ' . $path . '</info>');
153
+                $this->output->writeln('<info> - '.$path.'</info>');
154 154
             }
155 155
         }
156 156
     }
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
 
202 202
         if ($this->entityList === null) {
203 203
             $this->entityList = array();
204
-            $directory = $this->app['config']['root_dir'] . '/app/Plugin/' . $this->paramList['pluginCode']['value'] . '/Resource/doctrine/';
204
+            $directory = $this->app['config']['root_dir'].'/app/Plugin/'.$this->paramList['pluginCode']['value'].'/Resource/doctrine/';
205 205
             if (!is_dir($directory)) {
206 206
                 return $this->entityList;
207 207
             }
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
     private function getPluginList()
223 223
     {
224 224
         $ret = array();
225
-        $pluginDir = $this->app['config']['root_dir'] . '/app/Plugin';
225
+        $pluginDir = $this->app['config']['root_dir'].'/app/Plugin';
226 226
         $iterator = new \DirectoryIterator($pluginDir);
227 227
         foreach ($iterator as $fileInfo) {
228 228
             if ($fileInfo->isDot()) {
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
 
238 238
     private function toCamelCase($name)
239 239
     {
240
-        return lcfirst(implode('', array_map(function ($name) {
240
+        return lcfirst(implode('', array_map(function($name) {
241 241
                     return ucfirst($name);
242 242
                 }, explode('_', $name))));
243 243
     }
@@ -249,31 +249,31 @@  discard block
 block discarded – undo
249 249
         $line = array();
250 250
         $line[] = '<?php';
251 251
         $line[] = '/*';
252
-        $line[] = ' * This file is part of ' . $pluginCode;
252
+        $line[] = ' * This file is part of '.$pluginCode;
253 253
         $line[] = ' *';
254 254
         $line[] = ' *';
255 255
         $line[] = ' * For the full copyright and license information, please view the LICENSE';
256 256
         $line[] = ' * file that was distributed with this source code.';
257 257
         $line[] = ' */';
258 258
         $line[] = '';
259
-        $line[] = 'namespace Plugin\\' . $pluginCode . '\Repository;';
259
+        $line[] = 'namespace Plugin\\'.$pluginCode.'\Repository;';
260 260
         $line[] = '';
261 261
         $line[] = 'use Doctrine\ORM\EntityRepository;';
262 262
         $line[] = '';
263 263
         $line[] = '/**';
264
-        $line[] = ' * ' . $nameFormated;
264
+        $line[] = ' * '.$nameFormated;
265 265
         $line[] = ' *';
266 266
         $line[] = ' * This class was generated by the Doctrine ORM. Add your own custom';
267 267
         $line[] = ' * repository methods below.';
268 268
         $line[] = ' */';
269
-        $line[] = 'class ' . $nameFormated . 'Repository extends EntityRepository';
269
+        $line[] = 'class '.$nameFormated.'Repository extends EntityRepository';
270 270
         $line[] = '{';
271 271
         $line[] = '';
272 272
         $line[] = '}';
273 273
         $line[] = '';
274 274
 
275 275
         $cont = join(PHP_EOL, $line);
276
-        $filename = $this->app['config']['root_dir'] . '/app/Plugin/' . $pluginCode . '/Repository/' . $nameFormated . 'Repository.php';
276
+        $filename = $this->app['config']['root_dir'].'/app/Plugin/'.$pluginCode.'/Repository/'.$nameFormated.'Repository.php';
277 277
         file_put_contents($filename, $cont);
278 278
         return $filename;
279 279
     }
@@ -281,20 +281,20 @@  discard block
 block discarded – undo
281 281
     private function makeMigration($pluginCode, $metadetas)
282 282
     {
283 283
         if ($this->paramList['supportFlag']['value']) {
284
-            $migrationFileCont = file_get_contents($this->app['config']['root_dir'] . '/src/Eccube/Command/PluginCommand/Resource/MigrationVersionSupport.php');
284
+            $migrationFileCont = file_get_contents($this->app['config']['root_dir'].'/src/Eccube/Command/PluginCommand/Resource/MigrationVersionSupport.php');
285 285
         } else {
286
-            $migrationFileCont = file_get_contents($this->app['config']['root_dir'] . '/src/Eccube/Command/PluginCommand/Resource/MigrationVersion.php');
286
+            $migrationFileCont = file_get_contents($this->app['config']['root_dir'].'/src/Eccube/Command/PluginCommand/Resource/MigrationVersion.php');
287 287
         }
288 288
 
289 289
         $entityList = $this->createEntityList($pluginCode, $metadetas);
290 290
 
291
-        $entityListStr = join(',' . PHP_EOL, $entityList);
291
+        $entityListStr = join(','.PHP_EOL, $entityList);
292 292
         $migrationFileCont = str_replace('[entityList]', $entityListStr, $migrationFileCont);
293 293
         if ($this->paramList['supportFlag']['value']) {
294 294
             $createParts = $this->makeCreateParts($metadetas);
295 295
             $tableNameArr = array();
296 296
             foreach ($createParts as $tableName => $tableArr) {
297
-                $tableNameArr[] = '            $this->createTable' . $tableName . '($schema);';
297
+                $tableNameArr[] = '            $this->createTable'.$tableName.'($schema);';
298 298
             }
299 299
             $tableNameStr = join(PHP_EOL, $tableNameArr);
300 300
             $migrationFileCont = str_replace('[createTable]', $tableNameStr, $migrationFileCont);
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
     {
318 318
         $ret = array();
319 319
         foreach ($migrations as $metadata) {
320
-            $ret[] = "        '" . 'Plugin\\' . $pluginCode . '\Entity\\' . ucfirst($this->getShortClassName($metadata->table['name'])) . "'";
320
+            $ret[] = "        '".'Plugin\\'.$pluginCode.'\Entity\\'.ucfirst($this->getShortClassName($metadata->table['name']))."'";
321 321
         }
322 322
         return $ret;
323 323
     }
@@ -335,14 +335,14 @@  discard block
 block discarded – undo
335 335
             $nameFormated = $this->getShortClassName($metadata->table['name']);
336 336
             $tmp = array();
337 337
             $tmp[] = '';
338
-            $tmp[] = '    public function createTable' . ucfirst($nameFormated) . '(Schema $schema)';
338
+            $tmp[] = '    public function createTable'.ucfirst($nameFormated).'(Schema $schema)';
339 339
             $tmp[] = '    {';
340
-            $tmp[] = '        $table = $schema->createTable(\'' . $metadata->table['name'] . '\');';
340
+            $tmp[] = '        $table = $schema->createTable(\''.$metadata->table['name'].'\');';
341 341
             $columns = $metadata->fieldMappings;
342 342
             foreach ($columns as $column) {
343 343
 
344 344
                 $typeName = $column['type'];
345
-                $tmp[] = '        $table->addColumn(\'' . $column['columnName'] . '\', \'' . $typeName . '\', array(';
345
+                $tmp[] = '        $table->addColumn(\''.$column['columnName'].'\', \''.$typeName.'\', array(';
346 346
                 $param = array();
347 347
                 if (isset($column['nullable']) && $column['nullable']) {
348 348
                     $param['notnull'] = 'true';
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
                 }
352 352
 
353 353
                 foreach ($param as $parKey => $parVal) {
354
-                    $tmp[] = '            \'' . $parKey . '\' => ' . $parVal . ',';
354
+                    $tmp[] = '            \''.$parKey.'\' => '.$parVal.',';
355 355
                 }
356 356
                 $tmp[] = '        ));';
357 357
             }
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
     {
370 370
         $ret = array();
371 371
         foreach ($metadetas as $metadata) {
372
-            $ret[] = '            $schema->dropTable(\'' . $metadata->table['name'] . '\');';
372
+            $ret[] = '            $schema->dropTable(\''.$metadata->table['name'].'\');';
373 373
         }
374 374
 
375 375
         return $ret;
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@
 block discarded – undo
160 160
         $this->paramList = array(
161 161
             'pluginCode' => array(
162 162
                 'no' => 1,
163
-                 'label' => '[+]Plugin Code: ',
163
+                    'label' => '[+]Plugin Code: ',
164 164
                 'value' => null,
165 165
                 'name' => '[+]Please enter Plugin Name (only pascal case letters numbers are allowed)',
166 166
                 'validation' => array(
Please login to merge, or discard this patch.