@@ -62,7 +62,7 @@ |
||
62 | 62 | $log = array(); |
63 | 63 | $message = array(); |
64 | 64 | |
65 | - foreach (array_reverse(file($logFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES)) as $line) { |
|
65 | + foreach (array_reverse(file($logFile, FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES)) as $line) { |
|
66 | 66 | // 上限に達した場合、処理を抜ける |
67 | 67 | if (count($log) >= $formData['line_max']) { |
68 | 68 | break; |
@@ -79,7 +79,7 @@ |
||
79 | 79 | |
80 | 80 | // 遷移が正しくない場合、デフォルトであるマイページの配送先追加の画面を設定する |
81 | 81 | if (!in_array($parentPage, $allowdParents)) { |
82 | - $parentPage = $app->url('mypage_delivery'); |
|
82 | + $parentPage = $app->url('mypage_delivery'); |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | /* @var $form \Symfony\Component\Form\FormInterface */ |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | |
30 | 30 | $PageLayout = new PageLayout(); |
31 | 31 | $PageLayout->setDeviceType($DeviceType); |
32 | - $PageLayout->setName( '商品購入/お届け先の追加'); |
|
32 | + $PageLayout->setName('商品購入/お届け先の追加'); |
|
33 | 33 | $PageLayout->setUrl('shopping_shipping_edit'); |
34 | 34 | $PageLayout->setFileName('Shopping/shipping_edit'); |
35 | 35 | $PageLayout->setEditFlg(2); |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | |
39 | 39 | $PageLayout = new PageLayout(); |
40 | 40 | $PageLayout->setDeviceType($DeviceType); |
41 | - $PageLayout->setName( '商品購入/お届け先の複数指定(お届け先の追加)'); |
|
41 | + $PageLayout->setName('商品購入/お届け先の複数指定(お届け先の追加)'); |
|
42 | 42 | $PageLayout->setUrl('shopping_shipping_multiple_edit'); |
43 | 43 | $PageLayout->setFileName('Shopping/shipping_multiple_edit'); |
44 | 44 | $PageLayout->setEditFlg(2); |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | |
48 | 48 | $PageLayout = new PageLayout(); |
49 | 49 | $PageLayout->setDeviceType($DeviceType); |
50 | - $PageLayout->setName( '商品購入/購入エラー'); |
|
50 | + $PageLayout->setName('商品購入/購入エラー'); |
|
51 | 51 | $PageLayout->setUrl('shopping_error'); |
52 | 52 | $PageLayout->setFileName('Shopping/shopping_error'); |
53 | 53 | $PageLayout->setEditFlg(2); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | |
57 | 57 | $PageLayout = new PageLayout(); |
58 | 58 | $PageLayout->setDeviceType($DeviceType); |
59 | - $PageLayout->setName( 'ご利用ガイド'); |
|
59 | + $PageLayout->setName('ご利用ガイド'); |
|
60 | 60 | $PageLayout->setUrl('help_guide'); |
61 | 61 | $PageLayout->setFileName('Help/guide'); |
62 | 62 | $PageLayout->setEditFlg(2); |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | |
65 | 65 | $PageLayout = new PageLayout(); |
66 | 66 | $PageLayout->setDeviceType($DeviceType); |
67 | - $PageLayout->setName( 'パスワード再発行(入力ページ)'); |
|
67 | + $PageLayout->setName('パスワード再発行(入力ページ)'); |
|
68 | 68 | $PageLayout->setUrl('forgot'); |
69 | 69 | $PageLayout->setFileName('Forgot/index'); |
70 | 70 | $PageLayout->setEditFlg(2); |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | |
73 | 73 | $PageLayout = new PageLayout(); |
74 | 74 | $PageLayout->setDeviceType($DeviceType); |
75 | - $PageLayout->setName( 'パスワード再発行(完了ページ)'); |
|
75 | + $PageLayout->setName('パスワード再発行(完了ページ)'); |
|
76 | 76 | $PageLayout->setUrl('forgot_complete'); |
77 | 77 | $PageLayout->setFileName('Forgot/complete'); |
78 | 78 | $PageLayout->setEditFlg(2); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | |
82 | 82 | $PageLayout = new PageLayout(); |
83 | 83 | $PageLayout->setDeviceType($DeviceType); |
84 | - $PageLayout->setName( 'パスワード変更((完了ページ)'); |
|
84 | + $PageLayout->setName('パスワード変更((完了ページ)'); |
|
85 | 85 | $PageLayout->setUrl('forgot_reset'); |
86 | 86 | $PageLayout->setFileName('Forgot/reset'); |
87 | 87 | $PageLayout->setEditFlg(2); |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | |
29 | 29 | $PageLayout = new PageLayout(); |
30 | 30 | $PageLayout->setDeviceType($DeviceType); |
31 | - $PageLayout->setName( '商品購入/配送方法選択'); |
|
31 | + $PageLayout->setName('商品購入/配送方法選択'); |
|
32 | 32 | $PageLayout->setUrl('shopping_delivery'); |
33 | 33 | $PageLayout->setFileName('Shopping/index'); |
34 | 34 | $PageLayout->setEditFlg(2); |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | |
38 | 38 | $PageLayout = new PageLayout(); |
39 | 39 | $PageLayout->setDeviceType($DeviceType); |
40 | - $PageLayout->setName( '商品購入/支払方法選択'); |
|
40 | + $PageLayout->setName('商品購入/支払方法選択'); |
|
41 | 41 | $PageLayout->setUrl('shopping_payment'); |
42 | 42 | $PageLayout->setFileName('Shopping/index'); |
43 | 43 | $PageLayout->setEditFlg(2); |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | |
47 | 47 | $PageLayout = new PageLayout(); |
48 | 48 | $PageLayout->setDeviceType($DeviceType); |
49 | - $PageLayout->setName( '商品購入/お届け先変更'); |
|
49 | + $PageLayout->setName('商品購入/お届け先変更'); |
|
50 | 50 | $PageLayout->setUrl('shopping_shipping_change'); |
51 | 51 | $PageLayout->setFileName('Shopping/index'); |
52 | 52 | $PageLayout->setEditFlg(2); |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | |
56 | 56 | $PageLayout = new PageLayout(); |
57 | 57 | $PageLayout->setDeviceType($DeviceType); |
58 | - $PageLayout->setName( '商品購入/お届け先変更'); |
|
58 | + $PageLayout->setName('商品購入/お届け先変更'); |
|
59 | 59 | $PageLayout->setUrl('shopping_shipping_edit_change'); |
60 | 60 | $PageLayout->setFileName('Shopping/index'); |
61 | 61 | $PageLayout->setEditFlg(2); |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | |
65 | 65 | $PageLayout = new PageLayout(); |
66 | 66 | $PageLayout->setDeviceType($DeviceType); |
67 | - $PageLayout->setName( '商品購入/お届け先の複数指定'); |
|
67 | + $PageLayout->setName('商品購入/お届け先の複数指定'); |
|
68 | 68 | $PageLayout->setUrl('shopping_shipping_multiple_change'); |
69 | 69 | $PageLayout->setFileName('Shopping/index'); |
70 | 70 | $PageLayout->setEditFlg(2); |
@@ -24,7 +24,7 @@ |
||
24 | 24 | $app['db.migrations.table_name'] = null; |
25 | 25 | $app['db.migrations.name'] = null; |
26 | 26 | |
27 | - $app['dispatcher']->addListener(ConsoleEvents::INIT, function (ConsoleEvent $event) use ($app) { |
|
27 | + $app['dispatcher']->addListener(ConsoleEvents::INIT, function(ConsoleEvent $event) use ($app) { |
|
28 | 28 | $application = $event->getApplication(); |
29 | 29 | |
30 | 30 | $helpers = array('dialog' => new DialogHelper()); |
@@ -28,7 +28,6 @@ |
||
28 | 28 | use Eccube\Entity\Master\DeviceType; |
29 | 29 | use Eccube\Util\Str; |
30 | 30 | use Symfony\Component\Filesystem\Filesystem; |
31 | -use Symfony\Component\Finder\Finder; |
|
32 | 31 | use Symfony\Component\Form\FormError; |
33 | 32 | use Symfony\Component\HttpFoundation\Request; |
34 | 33 | use Symfony\Component\HttpFoundation\Response; |
@@ -36,6 +36,9 @@ |
||
36 | 36 | { |
37 | 37 | protected $app; |
38 | 38 | |
39 | + /** |
|
40 | + * @param \Silex\Application $app |
|
41 | + */ |
|
39 | 42 | public function __construct($app) |
40 | 43 | { |
41 | 44 | $this->app = $app; |
@@ -36,7 +36,7 @@ |
||
36 | 36 | |
37 | 37 | public function __construct(Application $app) |
38 | 38 | { |
39 | - $this->app = $app; |
|
39 | + $this->app = $app; |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | public function supportsAttribute($attribute) |
@@ -52,11 +52,17 @@ |
||
52 | 52 | return $form; |
53 | 53 | } |
54 | 54 | |
55 | + /** |
|
56 | + * @param Application $app |
|
57 | + */ |
|
55 | 58 | protected function getSecurity($app) |
56 | 59 | { |
57 | 60 | return $app['security.token_storage']; |
58 | 61 | } |
59 | 62 | |
63 | + /** |
|
64 | + * @param Application $app |
|
65 | + */ |
|
60 | 66 | protected function isTokenValid($app) |
61 | 67 | { |
62 | 68 | $csrf = $app['form.csrf_provider']; |