This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include
, or for example
via PHP's auto-loading mechanism.
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | /* |
||
3 | * This file is part of EC-CUBE |
||
4 | * |
||
5 | * Copyright(c) 2000-2015 LOCKON CO.,LTD. All Rights Reserved. |
||
6 | * |
||
7 | * http://www.lockon.co.jp/ |
||
8 | * |
||
9 | * This program is free software; you can redistribute it and/or |
||
10 | * modify it under the terms of the GNU General Public License |
||
11 | * as published by the Free Software Foundation; either version 2 |
||
12 | * of the License, or (at your option) any later version. |
||
13 | * |
||
14 | * This program is distributed in the hope that it will be useful, |
||
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
17 | * GNU General Public License for more details. |
||
18 | * |
||
19 | * You should have received a copy of the GNU General Public License |
||
20 | * along with this program; if not, write to the Free Software |
||
21 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
||
22 | */ |
||
23 | |||
24 | |||
25 | namespace Eccube\Form\Type; |
||
26 | |||
27 | use Symfony\Component\Form\AbstractType; |
||
28 | use Symfony\Component\Form\Extension\Core\Type; |
||
29 | use Symfony\Component\Form\FormBuilderInterface; |
||
30 | use Symfony\Component\Validator\Constraints as Assert; |
||
31 | |||
32 | // deprecated 3.1で削除予定 |
||
33 | class OrderSearchType extends AbstractType |
||
34 | { |
||
35 | public $app; |
||
36 | |||
37 | 663 | public function __construct(\Silex\Application $app) |
|
38 | { |
||
39 | 663 | $this->app = $app; |
|
40 | } |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | public function buildForm(FormBuilderInterface $builder, array $options) |
||
46 | { |
||
47 | $app = $this->app; |
||
0 ignored issues
–
show
|
|||
48 | |||
49 | $builder |
||
50 | ->add('order_id_start', 'integer', array( |
||
51 | 'label' => '注文番号', |
||
52 | 'required' => false, |
||
53 | 'constraints' => array( |
||
54 | new Assert\Type(array( |
||
55 | 'type' => 'integer', |
||
56 | )), |
||
57 | ), |
||
58 | )) |
||
59 | ->add('order_id_end', 'integer', array( |
||
60 | 'label' => '注文番号', |
||
61 | 'required' => false, |
||
62 | 'constraints' => array( |
||
63 | new Assert\Type(array( |
||
64 | 'type' => 'integer', |
||
65 | )), |
||
66 | ), |
||
67 | )) |
||
68 | ->add('status', 'order_status', array( |
||
69 | 'label' => '対応状況', |
||
70 | )) |
||
71 | ->add('name', 'text', array( |
||
72 | 'required' => false, |
||
73 | )) |
||
74 | ->add('kana', 'text', array( |
||
75 | 'required' => false, |
||
76 | )) |
||
77 | ->add('email', 'email', array( |
||
78 | 'required' => false, |
||
79 | )) |
||
80 | ->add('tel', 'tel', array( |
||
81 | 'required' => false, |
||
82 | )) |
||
83 | ->add('birth_start', 'birthday', array( |
||
84 | 'label' => '誕生日', |
||
85 | 'required' => false, |
||
86 | 'input' => 'datetime', |
||
87 | 'widget' => 'choice', |
||
88 | 'format' => 'yyyy-MM-dd', |
||
89 | 'empty_value' => array('year' => '----', 'month' => '--', 'day' => '--'), |
||
90 | )) |
||
91 | ->add('birth_end', 'birthday', array( |
||
92 | 'label' => '誕生日', |
||
93 | 'required' => false, |
||
94 | 'input' => 'datetime', |
||
95 | 'widget' => 'choice', |
||
96 | 'format' => 'yyyy-MM-dd', |
||
97 | 'empty_value' => array('year' => '----', 'month' => '--', 'day' => '--'), |
||
98 | )) |
||
99 | ->add('sex', 'sex', array( |
||
100 | 'label' => '性別', |
||
101 | 'required' => false, |
||
102 | 'expanded' => true, |
||
103 | 'multiple' => true, |
||
104 | )) |
||
105 | ->add('payment', 'payment', array( |
||
106 | 'label' => '支払方法', |
||
107 | 'required' => false, |
||
108 | 'expanded' => true, |
||
109 | 'multiple' => true, |
||
110 | )) |
||
111 | ->add('order_date_start', 'date', array( |
||
112 | 'label' => '注文日', |
||
113 | 'required' => false, |
||
114 | 'input' => 'datetime', |
||
115 | 'widget' => 'choice', |
||
116 | 'format' => 'yyyy-MM-dd', |
||
117 | 'empty_value' => array('year' => '----', 'month' => '--', 'day' => '--'), |
||
118 | )) |
||
119 | ->add('order_date_end', 'date', array( |
||
120 | 'label' => '注文日', |
||
121 | 'required' => false, |
||
122 | 'input' => 'datetime', |
||
123 | 'widget' => 'choice', |
||
124 | 'format' => 'yyyy-MM-dd', |
||
125 | 'empty_value' => array('year' => '----', 'month' => '--', 'day' => '--'), |
||
126 | )) |
||
127 | ->add('update_date_start', 'date', array( |
||
128 | 'label' => '更新日', |
||
129 | 'required' => false, |
||
130 | 'input' => 'datetime', |
||
131 | 'widget' => 'choice', |
||
132 | 'format' => 'yyyy-MM-dd', |
||
133 | 'empty_value' => array('year' => '----', 'month' => '--', 'day' => '--'), |
||
134 | )) |
||
135 | ->add('update_date_end', 'date', array( |
||
136 | 'label' => '更新日', |
||
137 | 'required' => false, |
||
138 | 'input' => 'datetime', |
||
139 | 'widget' => 'choice', |
||
140 | 'format' => 'yyyy-MM-dd', |
||
141 | 'empty_value' => array('year' => '----', 'month' => '--', 'day' => '--'), |
||
142 | )) |
||
143 | ->add('payment_total_start', 'integer', array( |
||
144 | 'label' => '購入金額', |
||
145 | 'required' => false, |
||
146 | )) |
||
147 | ->add('payment_total_end', 'integer', array( |
||
148 | 'label' => '購入金額', |
||
149 | 'required' => false, |
||
150 | )) |
||
151 | ->add('buy_product_name', 'text', array( |
||
152 | 'label' => '購入商品名', |
||
153 | 'required' => false, |
||
154 | )) |
||
155 | ; |
||
156 | } |
||
157 | |||
158 | /** |
||
159 | * {@inheritdoc} |
||
160 | */ |
||
161 | 663 | public function getName() |
|
162 | { |
||
163 | 663 | return 'order_search'; |
|
164 | } |
||
165 | } |
||
166 |
This check looks for variable assignements that are either overwritten by other assignments or where the variable is not used subsequently.
Both the
$myVar
assignment in line 1 and the$higher
assignment in line 2 are dead. The first because$myVar
is never used and the second because$higher
is always overwritten for every possible time line.