@@ -12,10 +12,10 @@ |
||
12 | 12 | |
13 | 13 | $field_info_items = array(); |
14 | 14 | |
15 | - if( !empty( $this->item['description'] ) ) { |
|
15 | + if ( ! empty( $this->item[ 'description' ] ) ) { |
|
16 | 16 | |
17 | - $field_info_items[] = array( |
|
18 | - 'value' => $this->item['description'] |
|
17 | + $field_info_items[ ] = array( |
|
18 | + 'value' => $this->item[ 'description' ] |
|
19 | 19 | ); |
20 | 20 | |
21 | 21 | } |
@@ -47,11 +47,11 @@ discard block |
||
47 | 47 | function modify_entry_value_workflow_step( $output, $entry, $field_settings, $field ) { |
48 | 48 | |
49 | 49 | // If not set, the entry hasn't started a workflow |
50 | - $has_workflow_step = isset( $entry['workflow_step'] ); |
|
50 | + $has_workflow_step = isset( $entry[ 'workflow_step' ] ); |
|
51 | 51 | |
52 | - if( $has_workflow_step ) { |
|
52 | + if ( $has_workflow_step ) { |
|
53 | 53 | |
54 | - $GFlow = new Gravity_Flow_API( $entry['form_id'] ); |
|
54 | + $GFlow = new Gravity_Flow_API( $entry[ 'form_id' ] ); |
|
55 | 55 | |
56 | 56 | if ( $current_step = $GFlow->get_current_step( $entry ) ) { |
57 | 57 | $output = esc_html( $current_step->get_name() ); |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | preg_match( '/workflow_step_status_(\d+)/', $key, $matches ); |
80 | 80 | |
81 | 81 | if ( ! empty( $matches ) ) { |
82 | - $workflow_step_id = intval( $matches[1] ); |
|
82 | + $workflow_step_id = intval( $matches[ 1 ] ); |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | return $workflow_step_id; |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | |
99 | 99 | $return = $label; |
100 | 100 | |
101 | - if ( '' === $label && $workflow_step_id = $this->get_step_id_from_key( $field['field'] ) ) { |
|
101 | + if ( '' === $label && $workflow_step_id = $this->get_step_id_from_key( $field[ 'field' ] ) ) { |
|
102 | 102 | |
103 | 103 | $step = $this->get_workflow_step( $workflow_step_id ); |
104 | 104 | |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | |
129 | 129 | $workflow_step = $GFlow->get_step( $workflow_step_id ); |
130 | 130 | |
131 | - if( ! $GFlow || ! $workflow_step ) { |
|
131 | + if ( ! $GFlow || ! $workflow_step ) { |
|
132 | 132 | return false; |
133 | 133 | } |
134 | 134 | |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | |
151 | 151 | foreach ( $search_fields as & $search_field ) { |
152 | 152 | |
153 | - if ( $this->name === $search_field['key'] ) { |
|
153 | + if ( $this->name === $search_field[ 'key' ] ) { |
|
154 | 154 | |
155 | 155 | $form_id = GravityView_View::getInstance()->getFormId(); |
156 | 156 | |
@@ -159,21 +159,21 @@ discard block |
||
159 | 159 | $choices = array(); |
160 | 160 | |
161 | 161 | foreach ( $workflow_steps as $step ) { |
162 | - $choices[] = array( |
|
162 | + $choices[ ] = array( |
|
163 | 163 | 'text' => $step->get_name(), |
164 | 164 | 'value' => $step->get_id(), |
165 | 165 | ); |
166 | 166 | } |
167 | 167 | |
168 | - $search_field['choices'] = $choices; |
|
168 | + $search_field[ 'choices' ] = $choices; |
|
169 | 169 | } |
170 | 170 | |
171 | 171 | // Workflow Step Statuses |
172 | - else if ( $workflow_step_id = $this->get_step_id_from_key( $search_field['key'] ) ) { |
|
172 | + else if ( $workflow_step_id = $this->get_step_id_from_key( $search_field[ 'key' ] ) ) { |
|
173 | 173 | |
174 | 174 | $status_key = sprintf( 'workflow_step_status_%d', $workflow_step_id ); |
175 | 175 | |
176 | - $search_field['choices'] = GravityView_Plugin_Hooks_Gravity_Flow::get_status_options( null, $status_key ); |
|
176 | + $search_field[ 'choices' ] = GravityView_Plugin_Hooks_Gravity_Flow::get_status_options( null, $status_key ); |
|
177 | 177 | } |
178 | 178 | } |
179 | 179 |
@@ -14,7 +14,7 @@ |
||
14 | 14 | |
15 | 15 | var $is_numeric = true; |
16 | 16 | |
17 | - var $search_operators = array( 'is', 'isnot', 'starts_with', 'ends_with' ); |
|
17 | + var $search_operators = array( 'is', 'isnot', 'starts_with', 'ends_with' ); |
|
18 | 18 | |
19 | 19 | var $group = 'pricing'; |
20 | 20 |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | function clear_product_info_cache( $form = array(), $entry_id = 0, $Edit_Entry_Render = null ) { |
51 | 51 | |
52 | - if( $this->should_hide_product_fields( $Edit_Entry_Render->entry ) ) { |
|
52 | + if ( $this->should_hide_product_fields( $Edit_Entry_Render->entry ) ) { |
|
53 | 53 | return; |
54 | 54 | } |
55 | 55 | |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | * @see GVCommon::entry_has_transaction_data() |
102 | 102 | * @param boolean $hide_product_fields Whether to hide product fields in the editor. Uses $entry data to determine. |
103 | 103 | */ |
104 | - $hide_product_fields = (bool) apply_filters( 'gravityview/edit_entry/hide-product-fields', $has_transaction_data ); |
|
104 | + $hide_product_fields = (bool)apply_filters( 'gravityview/edit_entry/hide-product-fields', $has_transaction_data ); |
|
105 | 105 | |
106 | 106 | return $hide_product_fields; |
107 | 107 | } |
@@ -40,7 +40,6 @@ |
||
40 | 40 | * Get the default date format for a field based on the field ID and the time format setting |
41 | 41 | * |
42 | 42 | * @since 1.16.4 |
43 | - |
|
44 | 43 | * @param string $date_format The Gravity Forms date format for the field. Default: "mdy" |
45 | 44 | * @param int $field_id The ID of the field. Used to figure out full date/day/month/year |
46 | 45 | * |
@@ -31,11 +31,11 @@ discard block |
||
31 | 31 | |
32 | 32 | public function field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id ) { |
33 | 33 | |
34 | - if( 'edit' === $context ) { |
|
34 | + if ( 'edit' === $context ) { |
|
35 | 35 | return $field_options; |
36 | 36 | } |
37 | 37 | |
38 | - $this->add_field_support('date_display', $field_options ); |
|
38 | + $this->add_field_support( 'date_display', $field_options ); |
|
39 | 39 | |
40 | 40 | return $field_options; |
41 | 41 | } |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | $field_input_id = gravityview_get_input_id_from_id( $field_id ); |
84 | 84 | |
85 | 85 | $date_field_output = ''; |
86 | - switch( $field_input_id ) { |
|
86 | + switch ( $field_input_id ) { |
|
87 | 87 | case 1: |
88 | 88 | $date_field_output = \GV\Utils::get( $parsed_date, 'month' ); |
89 | 89 | break; |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | ?> |
14 | 14 | <label for="<?php echo $this->get_field_id(); ?>" class="<?php echo $this->get_label_class(); ?>"><?php |
15 | 15 | |
16 | - echo '<span class="gv-label">'.$this->get_field_label().'</span>'; |
|
16 | + echo '<span class="gv-label">' . $this->get_field_label() . '</span>'; |
|
17 | 17 | |
18 | 18 | echo $this->get_tooltip() . $this->get_field_desc(); |
19 | 19 | |
@@ -26,14 +26,14 @@ discard block |
||
26 | 26 | |
27 | 27 | function render_input( $override_input = null ) { |
28 | 28 | |
29 | - if( isset( $override_input ) ) { |
|
29 | + if ( isset( $override_input ) ) { |
|
30 | 30 | echo $override_input; |
31 | 31 | return; |
32 | 32 | } |
33 | 33 | |
34 | 34 | ?> |
35 | 35 | <select name="<?php echo esc_attr( $this->name ); ?>[]" id="<?php echo $this->get_field_id(); ?>" multiple="multiple"> |
36 | - <?php foreach( $this->field['options'] as $value => $label ) : ?> |
|
36 | + <?php foreach ( $this->field[ 'options' ] as $value => $label ) : ?> |
|
37 | 37 | <option value="<?php echo esc_attr( $value ); ?>" <?php selected( in_array( $value, (array)$this->value ), true, true ); ?>><?php echo esc_html( $label ); ?></option> |
38 | 38 | <?php endforeach; ?> |
39 | 39 | </select> |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * @return void |
26 | 26 | */ |
27 | 27 | public function add( $value ) { |
28 | - $this->storage []= $value; |
|
28 | + $this->storage [ ] = $value; |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | * @return void |
50 | 50 | */ |
51 | 51 | public function merge( \GV\Collection $collection ) { |
52 | - array_map( array( $this, 'add'), $collection->all() ); |
|
52 | + array_map( array( $this, 'add' ), $collection->all() ); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
@@ -36,8 +36,7 @@ discard block |
||
36 | 36 | * |
37 | 37 | * @return void |
38 | 38 | */ |
39 | - public function emergency($message, array $context = array()) |
|
40 | - { |
|
39 | + public function emergency($message, array $context = array()) { |
|
41 | 40 | $this->log(LogLevel::EMERGENCY, $message, $context); |
42 | 41 | } |
43 | 42 | |
@@ -52,8 +51,7 @@ discard block |
||
52 | 51 | * |
53 | 52 | * @return void |
54 | 53 | */ |
55 | - public function alert($message, array $context = array()) |
|
56 | - { |
|
54 | + public function alert($message, array $context = array()) { |
|
57 | 55 | $this->log(LogLevel::ALERT, $message, $context); |
58 | 56 | } |
59 | 57 | |
@@ -67,8 +65,7 @@ discard block |
||
67 | 65 | * |
68 | 66 | * @return void |
69 | 67 | */ |
70 | - public function critical($message, array $context = array()) |
|
71 | - { |
|
68 | + public function critical($message, array $context = array()) { |
|
72 | 69 | $this->log(LogLevel::CRITICAL, $message, $context); |
73 | 70 | } |
74 | 71 | |
@@ -81,8 +78,7 @@ discard block |
||
81 | 78 | * |
82 | 79 | * @return void |
83 | 80 | */ |
84 | - public function error($message, array $context = array()) |
|
85 | - { |
|
81 | + public function error($message, array $context = array()) { |
|
86 | 82 | $this->log(LogLevel::ERROR, $message, $context); |
87 | 83 | } |
88 | 84 | |
@@ -97,8 +93,7 @@ discard block |
||
97 | 93 | * |
98 | 94 | * @return void |
99 | 95 | */ |
100 | - public function warning($message, array $context = array()) |
|
101 | - { |
|
96 | + public function warning($message, array $context = array()) { |
|
102 | 97 | $this->log(LogLevel::WARNING, $message, $context); |
103 | 98 | } |
104 | 99 | |
@@ -110,8 +105,7 @@ discard block |
||
110 | 105 | * |
111 | 106 | * @return void |
112 | 107 | */ |
113 | - public function notice($message, array $context = array()) |
|
114 | - { |
|
108 | + public function notice($message, array $context = array()) { |
|
115 | 109 | $this->log(LogLevel::NOTICE, $message, $context); |
116 | 110 | } |
117 | 111 | |
@@ -125,8 +119,7 @@ discard block |
||
125 | 119 | * |
126 | 120 | * @return void |
127 | 121 | */ |
128 | - public function info($message, array $context = array()) |
|
129 | - { |
|
122 | + public function info($message, array $context = array()) { |
|
130 | 123 | $this->log(LogLevel::INFO, $message, $context); |
131 | 124 | } |
132 | 125 | |
@@ -138,8 +131,7 @@ discard block |
||
138 | 131 | * |
139 | 132 | * @return void |
140 | 133 | */ |
141 | - public function debug($message, array $context = array()) |
|
142 | - { |
|
134 | + public function debug($message, array $context = array()) { |
|
143 | 135 | $this->log(LogLevel::DEBUG, $message, $context); |
144 | 136 | } |
145 | 137 |
@@ -36,9 +36,9 @@ discard block |
||
36 | 36 | * |
37 | 37 | * @return void |
38 | 38 | */ |
39 | - public function emergency($message, array $context = array()) |
|
39 | + public function emergency( $message, array $context = array() ) |
|
40 | 40 | { |
41 | - $this->log(LogLevel::EMERGENCY, $message, $context); |
|
41 | + $this->log( LogLevel::EMERGENCY, $message, $context ); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | /** |
@@ -52,9 +52,9 @@ discard block |
||
52 | 52 | * |
53 | 53 | * @return void |
54 | 54 | */ |
55 | - public function alert($message, array $context = array()) |
|
55 | + public function alert( $message, array $context = array() ) |
|
56 | 56 | { |
57 | - $this->log(LogLevel::ALERT, $message, $context); |
|
57 | + $this->log( LogLevel::ALERT, $message, $context ); |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | /** |
@@ -67,9 +67,9 @@ discard block |
||
67 | 67 | * |
68 | 68 | * @return void |
69 | 69 | */ |
70 | - public function critical($message, array $context = array()) |
|
70 | + public function critical( $message, array $context = array() ) |
|
71 | 71 | { |
72 | - $this->log(LogLevel::CRITICAL, $message, $context); |
|
72 | + $this->log( LogLevel::CRITICAL, $message, $context ); |
|
73 | 73 | } |
74 | 74 | |
75 | 75 | /** |
@@ -81,9 +81,9 @@ discard block |
||
81 | 81 | * |
82 | 82 | * @return void |
83 | 83 | */ |
84 | - public function error($message, array $context = array()) |
|
84 | + public function error( $message, array $context = array() ) |
|
85 | 85 | { |
86 | - $this->log(LogLevel::ERROR, $message, $context); |
|
86 | + $this->log( LogLevel::ERROR, $message, $context ); |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | /** |
@@ -97,9 +97,9 @@ discard block |
||
97 | 97 | * |
98 | 98 | * @return void |
99 | 99 | */ |
100 | - public function warning($message, array $context = array()) |
|
100 | + public function warning( $message, array $context = array() ) |
|
101 | 101 | { |
102 | - $this->log(LogLevel::WARNING, $message, $context); |
|
102 | + $this->log( LogLevel::WARNING, $message, $context ); |
|
103 | 103 | } |
104 | 104 | |
105 | 105 | /** |
@@ -110,9 +110,9 @@ discard block |
||
110 | 110 | * |
111 | 111 | * @return void |
112 | 112 | */ |
113 | - public function notice($message, array $context = array()) |
|
113 | + public function notice( $message, array $context = array() ) |
|
114 | 114 | { |
115 | - $this->log(LogLevel::NOTICE, $message, $context); |
|
115 | + $this->log( LogLevel::NOTICE, $message, $context ); |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | /** |
@@ -125,9 +125,9 @@ discard block |
||
125 | 125 | * |
126 | 126 | * @return void |
127 | 127 | */ |
128 | - public function info($message, array $context = array()) |
|
128 | + public function info( $message, array $context = array() ) |
|
129 | 129 | { |
130 | - $this->log(LogLevel::INFO, $message, $context); |
|
130 | + $this->log( LogLevel::INFO, $message, $context ); |
|
131 | 131 | } |
132 | 132 | |
133 | 133 | /** |
@@ -138,9 +138,9 @@ discard block |
||
138 | 138 | * |
139 | 139 | * @return void |
140 | 140 | */ |
141 | - public function debug($message, array $context = array()) |
|
141 | + public function debug( $message, array $context = array() ) |
|
142 | 142 | { |
143 | - $this->log(LogLevel::DEBUG, $message, $context); |
|
143 | + $this->log( LogLevel::DEBUG, $message, $context ); |
|
144 | 144 | } |
145 | 145 | |
146 | 146 | /** |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | protected function interpolate( $message, $context ) { |
154 | 154 | foreach ( $context as $key => $val ) { |
155 | 155 | if ( strpos( $message, "{{$key}}" ) !== false ) { |
156 | - $message = str_replace( "{{$key}}", (string) $val, $message ); |
|
156 | + $message = str_replace( "{{$key}}", (string)$val, $message ); |
|
157 | 157 | } |
158 | 158 | } |
159 | 159 |
@@ -10,14 +10,14 @@ discard block |
||
10 | 10 | * Describes log levels. |
11 | 11 | */ |
12 | 12 | class LogLevel { |
13 | - const EMERGENCY = 'emergency'; |
|
14 | - const ALERT = 'alert'; |
|
15 | - const CRITICAL = 'critical'; |
|
16 | - const ERROR = 'error'; |
|
17 | - const WARNING = 'warning'; |
|
18 | - const NOTICE = 'notice'; |
|
19 | - const INFO = 'info'; |
|
20 | - const DEBUG = 'debug'; |
|
13 | + const EMERGENCY = 'emergency'; |
|
14 | + const ALERT = 'alert'; |
|
15 | + const CRITICAL = 'critical'; |
|
16 | + const ERROR = 'error'; |
|
17 | + const WARNING = 'warning'; |
|
18 | + const NOTICE = 'notice'; |
|
19 | + const INFO = 'info'; |
|
20 | + const DEBUG = 'debug'; |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | /** |
@@ -26,127 +26,127 @@ discard block |
||
26 | 26 | * @TODO: (Foundation) Deprecate in future versions. |
27 | 27 | */ |
28 | 28 | abstract class Logger /** @todo extends Psr\Log\AbstractLogger */ { |
29 | - /** |
|
30 | - * System is unusable. |
|
31 | - * |
|
32 | - * @param string $message |
|
33 | - * @param array $context |
|
34 | - * |
|
35 | - * @return void |
|
36 | - */ |
|
37 | - public function emergency($message, array $context = array()) |
|
38 | - { |
|
39 | - $this->log(LogLevel::EMERGENCY, $message, $context); |
|
40 | - } |
|
29 | + /** |
|
30 | + * System is unusable. |
|
31 | + * |
|
32 | + * @param string $message |
|
33 | + * @param array $context |
|
34 | + * |
|
35 | + * @return void |
|
36 | + */ |
|
37 | + public function emergency($message, array $context = array()) |
|
38 | + { |
|
39 | + $this->log(LogLevel::EMERGENCY, $message, $context); |
|
40 | + } |
|
41 | 41 | |
42 | - /** |
|
43 | - * Action must be taken immediately. |
|
44 | - * |
|
45 | - * Example: Entire website down, database unavailable, etc. This should |
|
46 | - * trigger the SMS alerts and wake you up. |
|
47 | - * |
|
48 | - * @param string $message |
|
49 | - * @param array $context |
|
50 | - * |
|
51 | - * @return void |
|
52 | - */ |
|
53 | - public function alert($message, array $context = array()) |
|
54 | - { |
|
55 | - $this->log(LogLevel::ALERT, $message, $context); |
|
56 | - } |
|
42 | + /** |
|
43 | + * Action must be taken immediately. |
|
44 | + * |
|
45 | + * Example: Entire website down, database unavailable, etc. This should |
|
46 | + * trigger the SMS alerts and wake you up. |
|
47 | + * |
|
48 | + * @param string $message |
|
49 | + * @param array $context |
|
50 | + * |
|
51 | + * @return void |
|
52 | + */ |
|
53 | + public function alert($message, array $context = array()) |
|
54 | + { |
|
55 | + $this->log(LogLevel::ALERT, $message, $context); |
|
56 | + } |
|
57 | 57 | |
58 | - /** |
|
59 | - * Critical conditions. |
|
60 | - * |
|
61 | - * Example: Application component unavailable, unexpected exception. |
|
62 | - * |
|
63 | - * @param string $message |
|
64 | - * @param array $context |
|
65 | - * |
|
66 | - * @return void |
|
67 | - */ |
|
68 | - public function critical($message, array $context = array()) |
|
69 | - { |
|
70 | - $this->log(LogLevel::CRITICAL, $message, $context); |
|
71 | - } |
|
58 | + /** |
|
59 | + * Critical conditions. |
|
60 | + * |
|
61 | + * Example: Application component unavailable, unexpected exception. |
|
62 | + * |
|
63 | + * @param string $message |
|
64 | + * @param array $context |
|
65 | + * |
|
66 | + * @return void |
|
67 | + */ |
|
68 | + public function critical($message, array $context = array()) |
|
69 | + { |
|
70 | + $this->log(LogLevel::CRITICAL, $message, $context); |
|
71 | + } |
|
72 | 72 | |
73 | - /** |
|
74 | - * Runtime errors that do not require immediate action but should typically |
|
75 | - * be logged and monitored. |
|
76 | - * |
|
77 | - * @param string $message |
|
78 | - * @param array $context |
|
79 | - * |
|
80 | - * @return void |
|
81 | - */ |
|
82 | - public function error($message, array $context = array()) |
|
83 | - { |
|
84 | - $this->log(LogLevel::ERROR, $message, $context); |
|
85 | - } |
|
73 | + /** |
|
74 | + * Runtime errors that do not require immediate action but should typically |
|
75 | + * be logged and monitored. |
|
76 | + * |
|
77 | + * @param string $message |
|
78 | + * @param array $context |
|
79 | + * |
|
80 | + * @return void |
|
81 | + */ |
|
82 | + public function error($message, array $context = array()) |
|
83 | + { |
|
84 | + $this->log(LogLevel::ERROR, $message, $context); |
|
85 | + } |
|
86 | 86 | |
87 | - /** |
|
88 | - * Exceptional occurrences that are not errors. |
|
89 | - * |
|
90 | - * Example: Use of deprecated APIs, poor use of an API, undesirable things |
|
91 | - * that are not necessarily wrong. |
|
92 | - * |
|
93 | - * @param string $message |
|
94 | - * @param array $context |
|
95 | - * |
|
96 | - * @return void |
|
97 | - */ |
|
98 | - public function warning($message, array $context = array()) |
|
99 | - { |
|
100 | - $this->log(LogLevel::WARNING, $message, $context); |
|
101 | - } |
|
87 | + /** |
|
88 | + * Exceptional occurrences that are not errors. |
|
89 | + * |
|
90 | + * Example: Use of deprecated APIs, poor use of an API, undesirable things |
|
91 | + * that are not necessarily wrong. |
|
92 | + * |
|
93 | + * @param string $message |
|
94 | + * @param array $context |
|
95 | + * |
|
96 | + * @return void |
|
97 | + */ |
|
98 | + public function warning($message, array $context = array()) |
|
99 | + { |
|
100 | + $this->log(LogLevel::WARNING, $message, $context); |
|
101 | + } |
|
102 | 102 | |
103 | - /** |
|
104 | - * Normal but significant events. |
|
105 | - * |
|
106 | - * @param string $message |
|
107 | - * @param array $context |
|
108 | - * |
|
109 | - * @return void |
|
110 | - */ |
|
111 | - public function notice($message, array $context = array()) |
|
112 | - { |
|
113 | - $this->log(LogLevel::NOTICE, $message, $context); |
|
114 | - } |
|
103 | + /** |
|
104 | + * Normal but significant events. |
|
105 | + * |
|
106 | + * @param string $message |
|
107 | + * @param array $context |
|
108 | + * |
|
109 | + * @return void |
|
110 | + */ |
|
111 | + public function notice($message, array $context = array()) |
|
112 | + { |
|
113 | + $this->log(LogLevel::NOTICE, $message, $context); |
|
114 | + } |
|
115 | 115 | |
116 | - /** |
|
117 | - * Interesting events. |
|
118 | - * |
|
119 | - * Example: User logs in, SQL logs. |
|
120 | - * |
|
121 | - * @param string $message |
|
122 | - * @param array $context |
|
123 | - * |
|
124 | - * @return void |
|
125 | - */ |
|
126 | - public function info($message, array $context = array()) |
|
127 | - { |
|
128 | - $this->log(LogLevel::INFO, $message, $context); |
|
129 | - } |
|
116 | + /** |
|
117 | + * Interesting events. |
|
118 | + * |
|
119 | + * Example: User logs in, SQL logs. |
|
120 | + * |
|
121 | + * @param string $message |
|
122 | + * @param array $context |
|
123 | + * |
|
124 | + * @return void |
|
125 | + */ |
|
126 | + public function info($message, array $context = array()) |
|
127 | + { |
|
128 | + $this->log(LogLevel::INFO, $message, $context); |
|
129 | + } |
|
130 | 130 | |
131 | - /** |
|
132 | - * Detailed debug information. |
|
133 | - * |
|
134 | - * @param string $message |
|
135 | - * @param array $context |
|
136 | - * |
|
137 | - * @return void |
|
138 | - */ |
|
139 | - public function debug($message, array $context = array()) |
|
140 | - { |
|
141 | - $this->log(LogLevel::DEBUG, $message, $context); |
|
142 | - } |
|
131 | + /** |
|
132 | + * Detailed debug information. |
|
133 | + * |
|
134 | + * @param string $message |
|
135 | + * @param array $context |
|
136 | + * |
|
137 | + * @return void |
|
138 | + */ |
|
139 | + public function debug($message, array $context = array()) |
|
140 | + { |
|
141 | + $this->log(LogLevel::DEBUG, $message, $context); |
|
142 | + } |
|
143 | 143 | |
144 | 144 | /** |
145 | 145 | * Bake the context into { } placeholders in the message. |
146 | - * @param string $message |
|
147 | - * @param array $context |
|
148 | - * |
|
149 | - * @return string The baked message; |
|
146 | + * @param string $message |
|
147 | + * @param array $context |
|
148 | + * |
|
149 | + * @return string The baked message; |
|
150 | 150 | */ |
151 | 151 | protected function interpolate( $message, $context ) { |
152 | 152 | foreach ( $context as $key => $val ) { |
@@ -55,10 +55,10 @@ |
||
55 | 55 | $search_criteria[ $key ] = $field_filters; |
56 | 56 | } |
57 | 57 | |
58 | - if ( ! empty( $b[ $key ]['mode'] ) ) { |
|
59 | - $search_criteria[ $key ]['mode' ] = $b[ $key ]['mode']; |
|
60 | - } else if ( ! empty( $a[ $key ]['mode'] ) ) { |
|
61 | - $search_criteria[ $key ]['mode' ] = $a[ $key ]['mode']; |
|
58 | + if ( ! empty( $b[ $key ][ 'mode' ] ) ) { |
|
59 | + $search_criteria[ $key ][ 'mode' ] = $b[ $key ][ 'mode' ]; |
|
60 | + } else if ( ! empty( $a[ $key ][ 'mode' ] ) ) { |
|
61 | + $search_criteria[ $key ][ 'mode' ] = $a[ $key ][ 'mode' ]; |
|
62 | 62 | } |
63 | 63 | break; |
64 | 64 | case 'start_date': |