Conditions | 3 |
Paths | 4 |
Total Lines | 16 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php if ( ! defined('EVENT_ESPRESSO_VERSION')) { exit('No direct script access allowed'); } |
||
16 | function __construct( $leading_zero = false, $input_settings = array(), $january_is_month_1 = true){ |
||
17 | $key_begin_range = $january_is_month_1 ? 1 : 0; |
||
18 | $key_range = range($key_begin_range, $key_begin_range + 11 ); |
||
19 | if($leading_zero){ |
||
20 | array_walk( $key_range, array( $this, '_zero_pad' ) ); |
||
21 | } |
||
22 | $value_range = range( 1, 12 ); |
||
23 | array_walk( $value_range, array( $this, '_zero_pad' ) ); |
||
24 | parent::__construct( |
||
25 | array_combine( |
||
26 | $key_range, |
||
27 | $value_range |
||
28 | ), |
||
29 | $input_settings |
||
30 | ); |
||
31 | } |
||
32 | |||
41 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.