@@ -26,7 +26,7 @@ |
||
| 26 | 26 | |
| 27 | 27 | private function load_controller() : controller |
| 28 | 28 | { |
| 29 | - if ( $this->_config->get('simple_name_handling') |
|
| 29 | + if ($this->_config->get('simple_name_handling') |
|
| 30 | 30 | && !midcom::get()->auth->admin) { |
| 31 | 31 | foreach ($this->_request_data['schemadb']->all() as $schema) { |
| 32 | 32 | $schema->get_field('name')['readonly'] = true; |
@@ -159,16 +159,16 @@ |
||
| 159 | 159 | } |
| 160 | 160 | |
| 161 | 161 | /** |
| 162 | - * Inserts a link detector to the given HTML source. All outgoing |
|
| 163 | - * HTTP links in the source HTML are replaced with the given |
|
| 164 | - * link detector address so that the token "URL" is replaced with |
|
| 165 | - * encoded form of the original link. It is expected that the link detector |
|
| 166 | - * address points to a script that records the passed link and |
|
| 167 | - * forwards the client to the real link target. |
|
| 168 | - * |
|
| 169 | - * @param string $html the HTML source |
|
| 170 | - * @param string $address the link detector address |
|
| 171 | - */ |
|
| 162 | + * Inserts a link detector to the given HTML source. All outgoing |
|
| 163 | + * HTTP links in the source HTML are replaced with the given |
|
| 164 | + * link detector address so that the token "URL" is replaced with |
|
| 165 | + * encoded form of the original link. It is expected that the link detector |
|
| 166 | + * address points to a script that records the passed link and |
|
| 167 | + * forwards the client to the real link target. |
|
| 168 | + * |
|
| 169 | + * @param string $html the HTML source |
|
| 170 | + * @param string $address the link detector address |
|
| 171 | + */ |
|
| 172 | 172 | private function _insert_link_detector($html, $address) : string |
| 173 | 173 | { |
| 174 | 174 | $address = addslashes($address); |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | } |
| 34 | 34 | $config['name'] = $name; |
| 35 | 35 | $field = $this->prepare_field($config); |
| 36 | - if ( isset($config['default']) |
|
| 36 | + if (isset($config['default']) |
|
| 37 | 37 | && (!$this->object->id || $field instanceof transientnode)) { |
| 38 | 38 | $field->set_value($config['default']); |
| 39 | 39 | } |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | |
| 85 | 85 | private function prepare_field(array $config) : node |
| 86 | 86 | { |
| 87 | - if ( empty($config['storage']['location']) |
|
| 87 | + if (empty($config['storage']['location']) |
|
| 88 | 88 | // This line is needed because a parameter default is set by the schema parser and then ignored |
| 89 | 89 | // by the type. The things we do for backwards compatibility... |
| 90 | 90 | || $config['storage']['location'] === 'parameter') { |