@@ -33,18 +33,18 @@ |
||
33 | 33 | { |
34 | 34 | parent::configureOptions($resolver); |
35 | 35 | |
36 | - $map_options = function (Options $options) { |
|
36 | + $map_options = function(Options $options) { |
|
37 | 37 | $return_options = array(); |
38 | 38 | if (isset($options['type_config']['options'])) { |
39 | 39 | foreach ($options['type_config']['options'] as $key => $value) { |
40 | 40 | //symfony expects only strings |
41 | - $return_options[(string)$value] = (string)$key; |
|
41 | + $return_options[(string) $value] = (string) $key; |
|
42 | 42 | } |
43 | 43 | return $return_options; |
44 | 44 | } |
45 | 45 | }; |
46 | 46 | |
47 | - $map_multiple = function (Options $options) { |
|
47 | + $map_multiple = function(Options $options) { |
|
48 | 48 | return !empty($options['type_config']['allow_multiple']); |
49 | 49 | }; |
50 | 50 |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | |
39 | 39 | public function get_url(midcom_db_article $article, $allow_external = false) |
40 | 40 | { |
41 | - if ( $allow_external |
|
41 | + if ($allow_external |
|
42 | 42 | && $this->_config->get('link_to_external_url') |
43 | 43 | && !empty($article->url)) { |
44 | 44 | return $article->url; |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | net_nemein_rss_manage::add_toolbar_buttons($this->_node_toolbar, $this->_topic->can_do('midgard:create')); |
112 | 112 | } |
113 | 113 | |
114 | - if ( $this->_topic->can_do('midgard:update') |
|
114 | + if ($this->_topic->can_do('midgard:update') |
|
115 | 115 | && $this->_topic->can_do('midcom:component_config')) { |
116 | 116 | $buttons[] = $workflow->get_button('config/', array( |
117 | 117 | MIDCOM_TOOLBAR_LABEL => $this->_l10n_midcom->get('component configuration'), |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | $this->_request_data['categories'] = explode(',', $this->_config->get('categories')); |
148 | 148 | |
149 | 149 | foreach ($this->_request_data['schemadb'] as $name => $schema) { |
150 | - if ( array_key_exists('categories', $schema->fields) |
|
150 | + if (array_key_exists('categories', $schema->fields) |
|
151 | 151 | && $schema->fields['categories']['type'] == 'select') { |
152 | 152 | // TODO: Merge schema local and component config categories? |
153 | 153 | $options = array_combine($this->_request_data['categories'], $this->_request_data['categories']); |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | |
225 | 225 | $qb->add_constraint('topic.guid', 'IN', $topic_guids); |
226 | 226 | |
227 | - if ( count($topic_guids) > 1 |
|
227 | + if (count($topic_guids) > 1 |
|
228 | 228 | && $list_from_folders_categories = $this->_config->get('list_from_folders_categories')) { |
229 | 229 | $list_from_folders_categories = explode(',', $list_from_folders_categories); |
230 | 230 | |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | |
241 | 241 | // Hide the articles that have the publish time in the future and if |
242 | 242 | // the user is not administrator |
243 | - if ( $this->_config->get('enable_scheduled_publishing') |
|
243 | + if ($this->_config->get('enable_scheduled_publishing') |
|
244 | 244 | && !midcom::get()->auth->admin) { |
245 | 245 | // Show the article only if the publishing time has passed or the viewer |
246 | 246 | // is the author |
@@ -49,9 +49,9 @@ |
||
49 | 49 | } |
50 | 50 | |
51 | 51 | // generate next action buttons |
52 | - if ( $next !== null |
|
52 | + if ($next !== null |
|
53 | 53 | && $invoice->can_do('midgard:update')) { |
54 | - $actions .= '<button id="invoice_' . $invoice->guid . '" class="yes ' . $next. '">'; |
|
54 | + $actions .= '<button id="invoice_' . $invoice->guid . '" class="yes ' . $next . '">'; |
|
55 | 55 | $actions .= $this->_l10n->get($next); |
56 | 56 | $actions .= '</button>'; |
57 | 57 | } |