Completed
Push — master ( c53dd7...979eb7 )
by chihiro
31:42
created
src/Eccube/Controller/Admin/Setting/System/SystemController.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
                 return $phpinfo;
51 51
 
52
-               break;
52
+                break;
53 53
             default:
54 54
                 break;
55 55
         }
@@ -61,8 +61,8 @@  discard block
 block discarded – undo
61 61
         ));
62 62
     }
63 63
 
64
-     public function getSystemInfo(Application $app)
65
-     {
64
+        public function getSystemInfo(Application $app)
65
+        {
66 66
         $system = $app['eccube.service.system'];
67 67
         $server = $app['request'];
68 68
 
@@ -78,5 +78,5 @@  discard block
 block discarded – undo
78 78
         $arrSystemInfo[] = array('title' => 'HTTPユーザーエージェント', 'value' => $server->headers->get('User-Agent'));
79 79
 
80 80
         return $arrSystemInfo;
81
-     }
81
+        }
82 82
 }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -67,13 +67,13 @@
 block discarded – undo
67 67
         $server = $app['request'];
68 68
 
69 69
         $arrSystemInfo = array(
70
-            array('title' => 'EC-CUBE',     'value' => Constant::VERSION),
71
-            array('title' => 'サーバーOS',    'value' => php_uname()),
72
-            array('title' => 'DBサーバー',    'value' => $system->getDbversion()),
73
-            array('title' => 'WEBサーバー',   'value' => $server->server->get("SERVER_SOFTWARE")),
70
+            array('title' => 'EC-CUBE', 'value' => Constant::VERSION),
71
+            array('title' => 'サーバーOS', 'value' => php_uname()),
72
+            array('title' => 'DBサーバー', 'value' => $system->getDbversion()),
73
+            array('title' => 'WEBサーバー', 'value' => $server->server->get("SERVER_SOFTWARE")),
74 74
         );
75 75
 
76
-        $value = phpversion() . ' (' . implode(', ', get_loaded_extensions()) . ')';
76
+        $value = phpversion().' ('.implode(', ', get_loaded_extensions()).')';
77 77
         $arrSystemInfo[] = array('title' => 'PHP', 'value' => $value);
78 78
         $arrSystemInfo[] = array('title' => 'HTTPユーザーエージェント', 'value' => $server->headers->get('User-Agent'));
79 79
 
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Customer/CustomerEditController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
                         ->setCompanyName($Customer->getCompanyName())
89 89
                         ->setZip01($Customer->getZip01())
90 90
                         ->setZip02($Customer->getZip02())
91
-                        ->setZipcode($Customer->getZip01() . $Customer->getZip02())
91
+                        ->setZipcode($Customer->getZip01().$Customer->getZip02())
92 92
                         ->setPref($Customer->getPref())
93 93
                         ->setAddr01($Customer->getAddr01())
94 94
                         ->setAddr02($Customer->getAddr02())
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
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
         $em->getConfiguration()->setSQLLogger(null);
232 232
 
233 233
         $response = new StreamedResponse();
234
-        $response->setCallback(function () use ($app, $request) {
234
+        $response->setCallback(function() use ($app, $request) {
235 235
 
236 236
             // CSV種別を元に初期化.
237 237
             $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_CUSTOMER);
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
 
246 246
             // データ行の出力.
247 247
             $app['eccube.service.csv.export']->setExportQueryBuilder($qb);
248
-            $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) {
248
+            $app['eccube.service.csv.export']->exportData(function($entity, $csvService) {
249 249
 
250 250
                 $Csvs = $csvService->getCsvs();
251 251
 
@@ -267,9 +267,9 @@  discard block
 block discarded – undo
267 267
         });
268 268
 
269 269
         $now = new \DateTime();
270
-        $filename = 'customer_' . $now->format('YmdHis') . '.csv';
270
+        $filename = 'customer_'.$now->format('YmdHis').'.csv';
271 271
         $response->headers->set('Content-Type', 'application/octet-stream');
272
-        $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename);
272
+        $response->headers->set('Content-Disposition', 'attachment; filename='.$filename);
273 273
 
274 274
         $response->send();
275 275
 
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/AdminController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,12 +65,12 @@  discard block
 block discarded – undo
65 65
     {
66 66
         // install.phpのチェック.
67 67
         if (isset($app['config']['eccube_install']) && $app['config']['eccube_install'] == 1) {
68
-            $file = $app['config']['root_dir'] . '/html/install.php';
68
+            $file = $app['config']['root_dir'].'/html/install.php';
69 69
             if (file_exists($file)) {
70 70
                 $message = $app->trans('admin.install.warning', array('installphpPath' => 'html/install.php'));
71 71
                 $app->addWarning($message, 'admin');
72 72
             }
73
-            $fileOnRoot = $app['config']['root_dir'] . '/install.php';
73
+            $fileOnRoot = $app['config']['root_dir'].'/install.php';
74 74
             if (file_exists($fileOnRoot)) {
75 75
                 $message = $app->trans('admin.install.warning', array('installphpPath' => 'install.php'));
76 76
                 $app->addWarning($message, 'admin');
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
                     t1.status
312 312
                 ORDER BY
313 313
                     t1.status';
314
-        $rsm = new ResultSetMapping();;
314
+        $rsm = new ResultSetMapping(); ;
315 315
         $rsm->addScalarResult('status', 'status');
316 316
         $rsm->addScalarResult('count', 'count');
317 317
         $query = $em->createNativeQuery($sql, $rsm);
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Content/CacheController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
                 }
59 59
                 if ($dir == 'doctrine') {
60 60
                     // doctrineが指定された場合は, cache driver経由で削除.
61
-                    $config =  $app['orm.em']->getConfiguration();
61
+                    $config = $app['orm.em']->getConfiguration();
62 62
                     $this->deleteDoctrineCache($config->getMetadataCacheImpl());
63 63
                     $this->deleteDoctrineCache($config->getQueryCacheImpl());
64 64
                     $this->deleteDoctrineCache($config->getResultCacheImpl());
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Content/LayoutController.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -109,20 +109,20 @@  discard block
 block discarded – undo
109 109
                 $max = count($Blocks);
110 110
                 for ($i = 0; $i < $max; $i++) {
111 111
                     // block_id が取得できない場合は INSERT しない
112
-                    if (!isset($data['id_' . $i])) {
112
+                    if (!isset($data['id_'.$i])) {
113 113
                         continue;
114 114
                     }
115 115
                     // 未使用は INSERT しない
116
-                    if ($data['target_id_' . $i] == \Eccube\Entity\PageLayout::TARGET_ID_UNUSED) {
116
+                    if ($data['target_id_'.$i] == \Eccube\Entity\PageLayout::TARGET_ID_UNUSED) {
117 117
                         continue;
118 118
                     }
119 119
                     // 他のページに anywhere が存在する場合は INSERT しない
120
-                    $anywhere = (isset($data['anywhere_' . $i]) && $data['anywhere_' . $i] == 1) ? 1 : 0;
121
-                    if (isset($data['anywhere_' . $i]) && $data['anywhere_' . $i] == 1) {
120
+                    $anywhere = (isset($data['anywhere_'.$i]) && $data['anywhere_'.$i] == 1) ? 1 : 0;
121
+                    if (isset($data['anywhere_'.$i]) && $data['anywhere_'.$i] == 1) {
122 122
                         $Other = $app['orm.em']->getRepository('Eccube\Entity\BlockPosition')
123 123
                             ->findBy(array(
124 124
                                 'anywhere' => 1,
125
-                                'block_id' => $data['id_' . $i],
125
+                                'block_id' => $data['id_'.$i],
126 126
                             ));
127 127
                         if (count($Other) > 0) {
128 128
                             continue;
@@ -132,14 +132,14 @@  discard block
 block discarded – undo
132 132
                     $BlockPosition = new \Eccube\Entity\BlockPosition();
133 133
                     $Block = $app['orm.em']->getRepository('Eccube\Entity\Block')
134 134
                         ->findOneBy(array(
135
-                            'id' => $data['id_' . $i],
135
+                            'id' => $data['id_'.$i],
136 136
                             'DeviceType' => $DeviceType,
137 137
                         ));
138 138
                     $BlockPosition
139 139
                         ->setPageId($id)
140
-                        ->setBlockId($data['id_' . $i])
141
-                        ->setBlockRow($data['top_' . $i])
142
-                        ->setTargetId($data['target_id_' . $i])
140
+                        ->setBlockId($data['id_'.$i])
141
+                        ->setBlockRow($data['top_'.$i])
142
+                        ->setTargetId($data['target_id_'.$i])
143 143
                         ->setBlock($Block)
144 144
                         ->setPageLayout($TargetPageLayout)
145 145
                         ->setAnywhere($anywhere);
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Content/BlockController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
                 // ファイル生成・更新
115 115
                 $tplDir = $app['config']['block_realdir'];
116 116
 
117
-                $filePath = $tplDir . '/' . $Block->getFileName() . '.twig';
117
+                $filePath = $tplDir.'/'.$Block->getFileName().'.twig';
118 118
 
119 119
                 $fs = new Filesystem();
120 120
                 $blockData = $form->get('block_html')->getData();
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
                 $fs->dumpFile($filePath, $blockData);
123 123
                 // 更新でファイル名を変更した場合、以前のファイルを削除
124 124
                 if ($Block->getFileName() != $previous_filename && !is_null($previous_filename)) {
125
-                    $oldFilePath = $tplDir . '/' . $previous_filename . '.twig';
125
+                    $oldFilePath = $tplDir.'/'.$previous_filename.'.twig';
126 126
                     if ($fs->exists($oldFilePath)) {
127 127
                         $fs->remove($oldFilePath);
128 128
                     }
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
         // テンプレートが変更されていた場合、DBからはブロック削除されるがtwigファイルは残る
175 175
         if ($Block->getDeletableFlg() > 0) {
176 176
             $tplDir = $app['config']['block_realdir'];
177
-            $file = $tplDir . '/' . $Block->getFileName() . '.twig';
177
+            $file = $tplDir.'/'.$Block->getFileName().'.twig';
178 178
             $fs = new Filesystem();
179 179
             if ($fs->exists($file)) {
180 180
                 $fs->remove($file);
Please login to merge, or discard this patch.
src/Eccube/Controller/ForgotController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
                 // リセットキーの発行・有効期限の設定
65 65
                 $Customer
66 66
                     ->setResetKey($app['eccube.repository.customer']->getUniqueResetKey($app))
67
-                    ->setResetExpire(new \DateTime('+' . $app['config']['customer_reset_expire'] .' min'));
67
+                    ->setResetExpire(new \DateTime('+'.$app['config']['customer_reset_expire'].' min'));
68 68
 
69 69
                 // リセットキーを更新
70 70
                 $app['orm.em']->persist($Customer);
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 
88 88
                 // ログ出力
89 89
                 $app['monolog']->addInfo(
90
-                    'send reset password mail to:'  . "{$Customer->getId()} {$Customer->getEmail()} {$request->getClientIp()}"
90
+                    'send reset password mail to:'."{$Customer->getId()} {$Customer->getEmail()} {$request->getClientIp()}"
91 91
                 );
92 92
             }
93 93
 
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 
168 168
             // ログ出力
169 169
             $app['monolog']->addInfo(
170
-                'reset password complete:' . "{$Customer->getId()} {$Customer->getEmail()} {$request->getClientIp()}"
170
+                'reset password complete:'."{$Customer->getId()} {$Customer->getEmail()} {$request->getClientIp()}"
171 171
             );
172 172
         } else {
173 173
             throw new HttpException\AccessDeniedHttpException('不正なアクセスです。');
Please login to merge, or discard this patch.
src/Eccube/Command/CacheClearCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 
56 56
     protected function execute(InputInterface $input, OutputInterface $output) {
57 57
 
58
-        \Eccube\Util\Cache::clear($this->app,$input->getOption('all'));
58
+        \Eccube\Util\Cache::clear($this->app, $input->getOption('all'));
59 59
         $output->writeln(sprintf("%s <info>success</info>", 'cache:clear'));
60 60
 
61 61
     }
Please login to merge, or discard this patch.