1 | <?php |
||
14 | class Yikes_Easy_MC_CF7_Checkbox_Class extends Yikes_Easy_MC_Checkbox_Integration_Class { |
||
15 | |||
16 | /** |
||
17 | * The integration type. |
||
18 | * |
||
19 | * @var string $type |
||
20 | */ |
||
21 | protected $type = 'contact_form_7'; |
||
22 | |||
23 | /** |
||
24 | * Constructor. |
||
25 | */ |
||
26 | public function __construct() { |
||
31 | |||
32 | /** |
||
33 | * Registers the CF7 shortcode. |
||
34 | * |
||
35 | * @return boolean True if we were able to register the shortcode. |
||
36 | */ |
||
37 | public function init() { |
||
43 | |||
44 | /** |
||
45 | * Add yikes_mailchimp_checkbox to post data as "Yes" or "No." |
||
46 | * |
||
47 | * @param array $data CF7 posted data. |
||
48 | * @return array $data CF7 posted data. |
||
49 | */ |
||
50 | public function alter_cf7_data( $data = array() ) { |
||
54 | |||
55 | /** |
||
56 | * Subscribe the user if they so chose. |
||
57 | * |
||
58 | * @param Object $contact_form The CF7 object. |
||
59 | */ |
||
60 | public function new_cf7_subscription( $contact_form ) { |
||
74 | } |
||
75 | $yikes_easy_mc_cf7_checkbox_class = new Yikes_Easy_MC_CF7_Checkbox_Class(); |
||
76 |
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.