Completed
Pull Request — experimental/3.1 (#2669)
by
unknown
34:00 queued 06:13
created
src/Eccube/Command/GeneratorCommand/generatortemplate/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->extend('form.types', function ($types) use ($app) {
36
+        $app['form.types'] = $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]'] = function ($app) {
60
+        $app['monolog.logger.[lower_code]'] = 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/Doctrine/ORM/Query/Extract.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,14 +121,14 @@
 block discarded – undo
121 121
                 $sql = sprintf(
122 122
                     "EXTRACT(%s FROM %s %s $op INTERVAL '$second SECONDS')",
123 123
                     $this->field,
124
-                    (string)$this->type,
124
+                    (string) $this->type,
125 125
                     $this->source->dispatch($sqlWalker));
126 126
                 break;
127 127
             default:
128 128
                 $sql = sprintf(
129 129
                     "EXTRACT(%s FROM %s %s $op INTERVAL $second SECOND)",
130 130
                     $this->field,
131
-                    (string)$this->type,
131
+                    (string) $this->type,
132 132
                     $this->source->dispatch($sqlWalker));
133 133
         }
134 134
 
Please login to merge, or discard this patch.
src/Eccube/Doctrine/Common/CsvDataFixtures/Loader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
             ->name('*.csv')
44 44
             ->sort(
45 45
                 // 定義ファイルに記載の順にソート.
46
-                function (\SplFileInfo $a, \SplFileInfo $b) use ($definition) {
46
+                function(\SplFileInfo $a, \SplFileInfo $b) use ($definition) {
47 47
                     if (!isset($definition[$a->getFilename()])) {
48 48
                         throw new \Exception(sprintf('"%s" is undefined in %s', $a->getFilename()));
49 49
                     }
Please login to merge, or discard this patch.
src/Eccube/Plugin/AbstractPluginManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,12 +9,12 @@
 block discarded – undo
9 9
 
10 10
     CONST MIGRATION_TABLE_PREFIX = 'migration_';
11 11
 
12
-    public function migrationSchema($app,$migrationFilePath,$pluginCode,$version=null)
12
+    public function migrationSchema($app, $migrationFilePath, $pluginCode, $version = null)
13 13
     {
14 14
         $config = new Configuration($app['db']);
15 15
         $config->setMigrationsNamespace('DoctrineMigrations');
16 16
         $config->setMigrationsDirectory($migrationFilePath);
17
-        $config->registerMigrationsFromDirectory($migrationFilePath );
17
+        $config->registerMigrationsFromDirectory($migrationFilePath);
18 18
         $config->setMigrationsTableName(self::MIGRATION_TABLE_PREFIX.$pluginCode);
19 19
         $migration = new Migration($config);
20 20
         $migration->setNoMigrationException(true);
Please login to merge, or discard this patch.
src/Eccube/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         $includedFiles = [];
55 55
 
56 56
         foreach ($this->paths as $path) {
57
-            if ( ! is_dir($path)) {
57
+            if (!is_dir($path)) {
58 58
                 throw MappingException::fileMappingDriversRequireConfiguredDirectoryPath($path);
59 59
             }
60 60
 
@@ -63,14 +63,14 @@  discard block
 block discarded – undo
63 63
                     new \RecursiveDirectoryIterator($path, \FilesystemIterator::SKIP_DOTS),
64 64
                     \RecursiveIteratorIterator::LEAVES_ONLY
65 65
                 ),
66
-                '/^.+' . preg_quote($this->fileExtension) . '$/i',
66
+                '/^.+'.preg_quote($this->fileExtension).'$/i',
67 67
                 \RecursiveRegexIterator::GET_MATCH
68 68
             );
69 69
 
70 70
             foreach ($iterator as $file) {
71 71
                 $sourceFile = $file[0];
72 72
 
73
-                if ( ! preg_match('(^phar:)i', $sourceFile)) {
73
+                if (!preg_match('(^phar:)i', $sourceFile)) {
74 74
                     $sourceFile = realpath($sourceFile);
75 75
                 }
76 76
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         foreach ($declared as $className) {
102 102
             $rc = new \ReflectionClass($className);
103 103
             $sourceFile = $rc->getFileName();
104
-            if (in_array($sourceFile, $includedFiles) && ! $this->isTransient($className)) {
104
+            if (in_array($sourceFile, $includedFiles) && !$this->isTransient($className)) {
105 105
                 $classes[] = $className;
106 106
             }
107 107
         }
Please login to merge, or discard this patch.
src/Eccube/Form/Extension/DoctrineOrmExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     {
39 39
         $builder->addEventListener(
40 40
             FormEvents::PRE_SET_DATA,
41
-            function (FormEvent $event) {
41
+            function(FormEvent $event) {
42 42
                 $form = $event->getForm();
43 43
                 $config = $form->getConfig();
44 44
                 // data_classオプションが必要
Please login to merge, or discard this patch.
src/Eccube/ServiceProvider/MobileDetectServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
             return new \Mobile_Detect();
17 17
         };
18 18
 
19
-        $app['mobile_detect.device_type'] = function ($app) {
19
+        $app['mobile_detect.device_type'] = function($app) {
20 20
             if ($app['mobile_detect']->isMobile()) {
21 21
                 return \Eccube\Entity\Master\DeviceType::DEVICE_TYPE_SP;
22 22
             } else {
Please login to merge, or discard this patch.
src/Eccube/Repository/QueryKey.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 {
29 29
     const PRODUCT_SEARCH = 'Product.getQueryBuilderBySearchData';
30 30
     const PRODUCT_SEARCH_ADMIN = 'Product.getQueryBuilderBySearchDataForAdmin';
31
-    const PRODUCT_GET_FAVORITE  = 'Product.getFavoriteProductQueryBuilderByCustomer';
31
+    const PRODUCT_GET_FAVORITE = 'Product.getFavoriteProductQueryBuilderByCustomer';
32 32
 
33 33
     const CUSTOMER_SEARCH = 'Customer.getQueryBuilderBySearchData';
34 34
 
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Shipping/EditController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -446,7 +446,7 @@
 block discarded – undo
446 446
                 $session->set('eccube.admin.order.product.search', $searchData);
447 447
                 $session->set('eccube.admin.order.product.search.page_no', $page_no);
448 448
             } else {
449
-                $searchData = (array)$session->get('eccube.admin.order.product.search');
449
+                $searchData = (array) $session->get('eccube.admin.order.product.search');
450 450
                 if (is_null($page_no)) {
451 451
                     $page_no = intval($session->get('eccube.admin.order.product.search.page_no'));
452 452
                 } else {
Please login to merge, or discard this patch.