Completed
Push — master ( a0bb97...1e5239 )
by chihiro
36:06
created
src/Eccube/Controller/Admin/Product/ClassCategoryController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
         $num = $app['eccube.repository.product_class']->createQueryBuilder('pc')
120 120
             ->select('count(pc.id)')
121 121
             ->where('pc.ClassCategory1 = :id OR pc.ClassCategory2 = :id')
122
-            ->setParameter('id',$id)
122
+            ->setParameter('id', $id)
123 123
             ->getQuery()
124 124
             ->getSingleScalarResult();
125 125
         if ($num > 0) {
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Product/ProductClassController.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
                                 'allow_add' => true,
139 139
                                 'allow_delete' => true,
140 140
                                 'data' => $ProductClasses,
141
-                             ));
141
+                                ));
142 142
 
143 143
                         $event = new EventArgs(
144 144
                             array(
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
                     $class2Valied = $this->isValiedCategory($ClassName2);
107 107
 
108 108
                     // 規格が選択されていないか、選択された状態で分類が保有されていれば、画面表示
109
-                    if($class1Valied && $class2Valied){
109
+                    if ($class1Valied && $class2Valied) {
110 110
                         $hasClassCategoryFlg = true;
111 111
                     }
112 112
 
Please login to merge, or discard this patch.
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -529,6 +529,9 @@  discard block
 block discarded – undo
529 529
     /**
530 530
      * 登録、更新時のエラー画面表示
531 531
      *
532
+     * @param Application $app
533
+     * @param boolean $not_product_class
534
+     * @param \Symfony\Component\Form\FormInterface $classForm
532 535
      */
533 536
     protected function render($app, $Product, $ProductClass, $not_product_class, $classForm, $error = null)
534 537
     {
@@ -580,6 +583,7 @@  discard block
 block discarded – undo
580 583
 
581 584
     /**
582 585
      * 規格1と規格2を組み合わせた商品規格を作成
586
+     * @param Application $app
583 587
      */
584 588
     private function createProductClasses($app, Product $Product, ClassName $ClassName1 = null, ClassName $ClassName2 = null)
585 589
     {
@@ -667,6 +671,7 @@  discard block
 block discarded – undo
667 671
      *
668 672
      * @param $productClassDest コピー先となる商品規格
669 673
      * @param $productClassOrig コピー元となる商品規格
674
+     * @param Application $app
670 675
      */
671 676
     private function setDefualtProductClass($app, $productClassDest, $productClassOrig) {
672 677
         $productClassDest->setDeliveryDate($productClassOrig->getDeliveryDate());
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
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
         $em->getConfiguration()->setSQLLogger(null);
199 199
 
200 200
         $response = new StreamedResponse();
201
-        $response->setCallback(function () use ($app, $request) {
201
+        $response->setCallback(function() use ($app, $request) {
202 202
 
203 203
             // CSV種別を元に初期化.
204 204
             $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_CATEGORY);
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 
213 213
             // データ行の出力.
214 214
             $app['eccube.service.csv.export']->setExportQueryBuilder($qb);
215
-            $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) {
215
+            $app['eccube.service.csv.export']->exportData(function($entity, $csvService) {
216 216
 
217 217
                 $Csvs = $csvService->getCsvs();
218 218
 
@@ -232,9 +232,9 @@  discard block
 block discarded – undo
232 232
         });
233 233
 
234 234
         $now = new \DateTime();
235
-        $filename = 'category_' . $now->format('YmdHis') . '.csv';
235
+        $filename = 'category_'.$now->format('YmdHis').'.csv';
236 236
         $response->headers->set('Content-Type', 'application/octet-stream');
237
-        $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename);
237
+        $response->headers->set('Content-Disposition', 'attachment; filename='.$filename);
238 238
         $response->send();
239 239
 
240 240
         return $response;
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
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
         $em->getConfiguration()->setSQLLogger(null);
237 237
 
238 238
         $response = new StreamedResponse();
239
-        $response->setCallback(function () use ($app, $request) {
239
+        $response->setCallback(function() use ($app, $request) {
240 240
 
241 241
             // CSV種別を元に初期化.
242 242
             $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_ORDER);
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
 
251 251
             // データ行の出力.
252 252
             $app['eccube.service.csv.export']->setExportQueryBuilder($qb);
253
-            $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) {
253
+            $app['eccube.service.csv.export']->exportData(function($entity, $csvService) {
254 254
 
255 255
                 $Csvs = $csvService->getCsvs();
256 256
 
@@ -280,9 +280,9 @@  discard block
 block discarded – undo
280 280
         });
281 281
 
282 282
         $now = new \DateTime();
283
-        $filename = 'order_' . $now->format('YmdHis') . '.csv';
283
+        $filename = 'order_'.$now->format('YmdHis').'.csv';
284 284
         $response->headers->set('Content-Type', 'application/octet-stream');
285
-        $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename);
285
+        $response->headers->set('Content-Disposition', 'attachment; filename='.$filename);
286 286
         $response->send();
287 287
 
288 288
         return $response;
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
         $em->getConfiguration()->setSQLLogger(null);
306 306
 
307 307
         $response = new StreamedResponse();
308
-        $response->setCallback(function () use ($app, $request) {
308
+        $response->setCallback(function() use ($app, $request) {
309 309
 
310 310
             // CSV種別を元に初期化.
311 311
             $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_SHIPPING);
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
 
320 320
             // データ行の出力.
321 321
             $app['eccube.service.csv.export']->setExportQueryBuilder($qb);
322
-            $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) {
322
+            $app['eccube.service.csv.export']->exportData(function($entity, $csvService) {
323 323
 
324 324
                 $Csvs = $csvService->getCsvs();
325 325
 
@@ -357,9 +357,9 @@  discard block
 block discarded – undo
357 357
         });
358 358
 
359 359
         $now = new \DateTime();
360
-        $filename = 'shipping_' . $now->format('YmdHis') . '.csv';
360
+        $filename = 'shipping_'.$now->format('YmdHis').'.csv';
361 361
         $response->headers->set('Content-Type', 'application/octet-stream');
362
-        $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename);
362
+        $response->headers->set('Content-Disposition', 'attachment; filename='.$filename);
363 363
         $response->send();
364 364
 
365 365
         return $response;
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Setting/Shop/PaymentController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -93,10 +93,10 @@  discard block
 block discarded – undo
93 93
                 // ファイルアップロード
94 94
                 $file = $form['payment_image']->getData();
95 95
                 $fs = new Filesystem();
96
-                if ($file && $fs->exists($app['config']['image_temp_realdir'] . '/' . $file)) {
96
+                if ($file && $fs->exists($app['config']['image_temp_realdir'].'/'.$file)) {
97 97
                     $fs->rename(
98
-                        $app['config']['image_temp_realdir'] . '/' . $file,
99
-                        $app['config']['image_save_realdir'] . '/' . $file
98
+                        $app['config']['image_temp_realdir'].'/'.$file,
99
+                        $app['config']['image_save_realdir'].'/'.$file
100 100
                     );
101 101
                 }
102 102
 
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
             }
145 145
 
146 146
             $extension = $image->guessExtension();
147
-            $filename = date('mdHis') . uniqid('_') . '.' . $extension;
147
+            $filename = date('mdHis').uniqid('_').'.'.$extension;
148 148
             $image->move($app['config']['image_temp_realdir'], $filename);
149 149
         }
150 150
         $event = new EventArgs(
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
         foreach ($Payments as $Payment) {
181 181
             if ($Payment->getId() != $id) {
182 182
                 $Payment->setRank($rank);
183
-                $rank ++;
183
+                $rank++;
184 184
             }
185 185
         }
186 186
 
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
         );
195 195
         $app['eccube.event.dispatcher']->dispatch(EccubeEvents::ADMIN_SETTING_SHOP_PAYMENT_DELETE_COMPLETE, $event);
196 196
 
197
-        $app->addSuccess('admin.delete.complete', 'admin') ;
197
+        $app->addSuccess('admin.delete.complete', 'admin');
198 198
 
199 199
         return $app->redirect($app->url('admin_setting_shop_payment'));
200 200
     }
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Setting/System/LogController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
     {
80 80
         $log = array();
81 81
 
82
-        foreach (array_reverse(file($logFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES)) as $line) {
82
+        foreach (array_reverse(file($logFile, FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES)) as $line) {
83 83
             // 上限に達した場合、処理を抜ける
84 84
             if (count($log) >= $formData['line_max']) {
85 85
                 break;
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Setting/System/SecurityController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
             if (count($allowHost) > 0) {
127 127
                 $form->get('admin_allow_host')->setData(Str::convertLineFeed(implode("\n", $allowHost)));
128 128
             }
129
-            $form->get('force_ssl')->setData((bool)$app['config']['force_ssl']);
129
+            $form->get('force_ssl')->setData((bool) $app['config']['force_ssl']);
130 130
         }
131 131
 
132 132
         return $app->render('Setting/System/security.twig', array(
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Setting/System/MasterdataController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
                 $entityName = str_replace('-', '\\', $data['masterdata_name']);
129 129
                 $entity = new $entityName();
130 130
                 $rank = 0;
131
-                $ids = array_map(function ($v) {return $v['id'];}, $data['data']);
131
+                $ids = array_map(function($v) {return $v['id']; }, $data['data']);
132 132
                 foreach ($data['data'] as $key => $value) {
133 133
                     if ($value['id'] !== null && $value['name'] !== null) {
134 134
                         $entity->setId($value['id']);
Please login to merge, or discard this patch.
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.