@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | if (file_exists(MIDCOM_STATIC_ROOT . $jqgrid_path . 'i18n/grid.locale-' . $language . '.js')) { |
| 110 | 110 | $lang = $language; |
| 111 | 111 | } |
| 112 | - $head->add_jsfile(MIDCOM_STATIC_URL . $jqgrid_path . 'i18n/grid.locale-'. $lang . '.js'); |
|
| 112 | + $head->add_jsfile(MIDCOM_STATIC_URL . $jqgrid_path . 'i18n/grid.locale-' . $lang . '.js'); |
|
| 113 | 113 | $head->add_jsfile(MIDCOM_STATIC_URL . $jqgrid_path . 'jquery.jqgrid.min.js'); |
| 114 | 114 | |
| 115 | 115 | $head->add_jsfile(MIDCOM_STATIC_URL . '/midcom.grid/jqGrid.custom.js'); |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | public function set_option(string $key, $value, bool $autoquote_string = true) : self |
| 156 | 156 | { |
| 157 | 157 | $this->_raw_options[$key] = $value; |
| 158 | - if ( $autoquote_string |
|
| 158 | + if ($autoquote_string |
|
| 159 | 159 | && is_string($value)) { |
| 160 | 160 | $value = '"' . str_replace('"', '\\"', $value) . '"'; |
| 161 | 161 | } elseif ($value === true) { |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | public function set_select_column(string $name, string $label, string $options, array $selectdata) : self |
| 186 | 186 | { |
| 187 | 187 | $selectstring = implode(';', array_map( |
| 188 | - function ($key, $value) { |
|
| 188 | + function($key, $value) { |
|
| 189 | 189 | return $key . ':' . $value; |
| 190 | 190 | }, |
| 191 | 191 | array_keys($selectdata), |
@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | */ |
| 232 | 232 | public function remove_column(string $name) |
| 233 | 233 | { |
| 234 | - if ( empty($name) |
|
| 234 | + if (empty($name) |
|
| 235 | 235 | || !array_key_exists($name, $this->_columns)) { |
| 236 | 236 | throw new midcom_error('Invalid column name ' . $name); |
| 237 | 237 | } |