Completed
Push — fix_travis ( e39dc3 )
by Ryo
315:01 queued 308:56
created
src/Eccube/Doctrine/ORM/Tools/Pagination/LimitSubqueryOutputWalker.php 2 patches
Unused Use Statements   -9 removed lines patch added patch discarded remove patch
@@ -18,18 +18,9 @@
 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
-use Doctrine\ORM\Query\AST\SimpleArithmeticExpression;
31
-use Doctrine\ORM\Query\Expr\OrderBy;
32
-use Doctrine\ORM\Query\Expr\Select;
33 24
 use Doctrine\ORM\Query\SqlWalker;
34 25
 use Doctrine\ORM\Query\AST\SelectStatement;
35 26
 
Please login to merge, or discard this patch.
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.
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/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/Command/PluginCommand/AbstractPluginGenerator.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
24 24
 
25 25
 namespace Eccube\Command\PluginCommand;
26 26
 
27
-use Eccube\Common\Constant;
28 27
 use Symfony\Component\Console\Question\Question;
29 28
 
30 29
 abstract class AbstractPluginGenerator
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
             if (is_array($params['value'])) {
128 128
                 $this->output->writeln($params['label']);
129 129
                 foreach ($params['value'] as $keys => $val) {
130
-                    $this->output->writeln('<info>  ' . $keys . '</info>');
130
+                    $this->output->writeln('<info>  '.$keys.'</info>');
131 131
                 }
132 132
             } else {
133 133
                 if (isset($params['show'])) {
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
                 } else {
136 136
                     $disp = $params['value'];
137 137
                 }
138
-                $this->output->writeln($params['label'] . ' <info>' . $disp . '</info>');
138
+                $this->output->writeln($params['label'].' <info>'.$disp.'</info>');
139 139
             }
140 140
         }
141 141
         $this->output->writeln('');
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
         $this->nestingLevel--;
166 166
         
167 167
         $this->output->writeln($params['name']);
168
-        $Question = new Question('<comment>Input' . self::INPUT_OPEN . $params['no'] . self::INPUT_CLOSE . ' : </comment>', '');
168
+        $Question = new Question('<comment>Input'.self::INPUT_OPEN.$params['no'].self::INPUT_CLOSE.' : </comment>', '');
169 169
         $value = $this->dialog->ask($this->input, $this->output, $Question);
170 170
         $value = trim($value);
171 171
         if ($value === self::STOP_PROCESS) {
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
                     $params['value'][$value] = $row[$value];
199 199
                     $this->output->writeln('<info>--- your entry list</info>');
200 200
                     foreach ($params['value'] as $subKey => $node) {
201
-                        $this->output->writeln('<info> - ' . $subKey . '</info>');
201
+                        $this->output->writeln('<info> - '.$subKey.'</info>');
202 202
                     }
203 203
                     $this->output->writeln('');
204 204
                     $this->output->writeln('--- Press Enter to move to the next step ---');
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
                     foreach ($row as $eventKey => $eventConst) {
211 211
                         if (strpos($eventKey, $value) !== false || strpos($eventConst, $value) !== false) {
212 212
                             if (count($searchList) >= $max) {
213
-                                $searchList['-- there are more then ' . $max . ''] = '';
213
+                                $searchList['-- there are more then '.$max.''] = '';
214 214
                                 break;
215 215
                             }
216 216
                             $searchList[$eventKey] = $eventConst;
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
                         $this->output->writeln('--- there are more then one search result');
222 222
                     }
223 223
                     foreach ($searchList as $subKey => $node) {
224
-                        $this->output->writeln(' - ' . $subKey);
224
+                        $this->output->writeln(' - '.$subKey);
225 225
                     }
226 226
 
227 227
                     if (!empty($searchList)) {
Please login to merge, or discard this patch.
src/Eccube/Command/PluginCommand.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -137,8 +137,8 @@  discard block
 block discarded – undo
137 137
             if ($code) {
138 138
                 $pluginDir = $service->calcPluginDir($code);
139 139
                 $service->checkPluginArchiveContent($pluginDir);
140
-                $config = $service->readYml($pluginDir . '/config.yml');
141
-                $event = $service->readYml($pluginDir . '/event.yml');
140
+                $config = $service->readYml($pluginDir.'/config.yml');
141
+                $event = $service->readYml($pluginDir.'/event.yml');
142 142
                 $service->checkSamePlugin($config['code']);
143 143
                 $service->registerPlugin($config, $event);
144 144
 
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 
188 188
             // ディレクトリは残し, プラグインを削除.
189 189
             $pluginDir = $service->calcPluginDir($code);
190
-            $config = $service->readYml($pluginDir . '/config.yml');
190
+            $config = $service->readYml($pluginDir.'/config.yml');
191 191
             $service->callPluginManagerMethod($config, 'disable');
192 192
             $service->callPluginManagerMethod($config, 'uninstall');
193 193
             $service->unregisterPlugin($plugin);
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,6 @@
 block discarded – undo
28 28
 use Symfony\Component\Console\Input\InputInterface;
29 29
 use Symfony\Component\Console\Output\OutputInterface;
30 30
 use Symfony\Component\Console\Input\InputOption;
31
-use Symfony\Component\Validator\Constraints as Assert;
32 31
 use Eccube\Command\PluginCommand\PluginGenerator;
33 32
 use Eccube\Command\PluginCommand\EntityFromDbGenerator;
34 33
 use Eccube\Command\PluginCommand\EntityFromYamlGenerator;
Please login to merge, or discard this patch.
src/Eccube/Command/PluginCommand/Resource/ServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         $app->match('/plugin/[lower_code]/hello', 'Plugin\[code]\Controller\[code]Controller::index')->bind('plugin_[code]_hello');
34 34
 
35 35
         // Form
36
-        $app['form.types'] = $app->share($app->extend('form.types', function ($types) use ($app) {
36
+        $app['form.types'] = $app->share($app->extend('form.types', function($types) use ($app) {
37 37
             $types[] = new [code]ConfigType();
38 38
 
39 39
             return $types;
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         // }
58 58
 
59 59
         // ログファイル設定
60
-        $app['monolog.logger.[lower_code]'] = $app->share(function ($app) {
60
+        $app['monolog.logger.[lower_code]'] = $app->share(function($app) {
61 61
 
62 62
             $logger = new $app['monolog.logger.class']('[lower_code]');
63 63
 
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.