@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | |
| 17 | 17 | // A user following their own node should not increase radioactivity. |
| 18 | 18 | if ($node->uid != $account->uid) { |
| 19 | - commons_radioactivity_incident_node($node, COMMONS_RADIOACTIVITY_FLAG_NODE); |
|
| 19 | + commons_radioactivity_incident_node($node, COMMONS_RADIOACTIVITY_FLAG_NODE); |
|
| 20 | 20 | } |
| 21 | 21 | } |
| 22 | 22 | } |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | // A user unfollowing their own node should not decrease radioactivity. |
| 34 | 34 | if ($node->uid != $account->uid) { |
| 35 | - commons_radioactivity_incident_node($node, -1 * COMMONS_RADIOACTIVITY_FLAG_NODE); |
|
| 35 | + commons_radioactivity_incident_node($node, -1 * COMMONS_RADIOACTIVITY_FLAG_NODE); |
|
| 36 | 36 | } |
| 37 | 37 | } |
| 38 | 38 | } |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | // Get the count of flagged users for a particular account. |
| 89 | 89 | $fl_results = db_select('flagging', 'f') |
| 90 | 90 | ->fields('f', array('entity_id', 'uid')) |
| 91 | - ->condition('f.entity_type','user','=') |
|
| 91 | + ->condition('f.entity_type', 'user', '=') |
|
| 92 | 92 | ->condition('f.uid', $user->uid, '=') |
| 93 | 93 | ->condition('f.fid', $flag->fid, '=') |
| 94 | 94 | ->extend('PagerDefault')->limit($limit) |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | ->execute(); |
| 113 | 113 | $user_ids = array_keys($results['user']); |
| 114 | 114 | foreach ($user_ids as $uid) { |
| 115 | - $out_results[] = user_view(user_load($uid), 'search_results');($user_ids); |
|
| 115 | + $out_results[] = user_view(user_load($uid), 'search_results'); ($user_ids); |
|
| 116 | 116 | } |
| 117 | 117 | $build['pager'] = array( |
| 118 | 118 | // As nice as it would be to make this use #theme, it is a bit more |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | ), |
| 160 | 160 | '#image_style' => '50x50', |
| 161 | 161 | '#path' => array( |
| 162 | - 'path' => 'user/' . $build['#account']->uid, |
|
| 162 | + 'path' => 'user/'.$build['#account']->uid, |
|
| 163 | 163 | 'options' => array( |
| 164 | 164 | 'attributes' => array( |
| 165 | 165 | 'class' => array('user-picture'), |
@@ -174,9 +174,9 @@ discard block |
||
| 174 | 174 | $groups = array(); |
| 175 | 175 | foreach ($build['#account']->og_user_node[LANGUAGE_NONE] AS $og_node) { |
| 176 | 176 | if ($gnode = node_load($og_node['target_id'])) { |
| 177 | - $groups['group-item group-' . $gnode->nid] = array( |
|
| 177 | + $groups['group-item group-'.$gnode->nid] = array( |
|
| 178 | 178 | 'title' => $gnode->title, |
| 179 | - 'href' => 'node/' . $gnode->nid, |
|
| 179 | + 'href' => 'node/'.$gnode->nid, |
|
| 180 | 180 | 'attributes' => array( |
| 181 | 181 | 'class' => array('group-link'), |
| 182 | 182 | ), |
@@ -249,7 +249,7 @@ discard block |
||
| 249 | 249 | $form['custom_search_types']['#options'] = array_merge(array('s-user' => t('People')), $other_options); |
| 250 | 250 | } |
| 251 | 251 | //We want to override the #submit with our own, the other submits aren't relevant for the user page |
| 252 | - $form['#submit'][]= 'commons_search_solr_user_search_submit'; |
|
| 252 | + $form['#submit'][] = 'commons_search_solr_user_search_submit'; |
|
| 253 | 253 | } |
| 254 | 254 | } |
| 255 | 255 | |
@@ -283,8 +283,8 @@ discard block |
||
| 283 | 283 | function commons_search_solr_user_search_submit($form, &$form_state) { |
| 284 | 284 | if ($form_state['values']['custom_search_types'] == 's-user') { |
| 285 | 285 | $user_search_page = apachesolr_search_page_load('user_search'); |
| 286 | - $keys = '/' . $form_state['values']['search_block_form']; |
|
| 287 | - $form_state['redirect'] = $user_search_page['search_path'] . $keys; |
|
| 286 | + $keys = '/'.$form_state['values']['search_block_form']; |
|
| 287 | + $form_state['redirect'] = $user_search_page['search_path'].$keys; |
|
| 288 | 288 | } |
| 289 | 289 | } |
| 290 | 290 | |
@@ -29,11 +29,11 @@ |
||
| 29 | 29 | ->condition('fid', $flag_ids, 'IN') |
| 30 | 30 | ->condition('uid', $account->uid, '=') |
| 31 | 31 | ->condition('entity_type', 'node', '=') |
| 32 | - ->fields('f',array('entity_id')) |
|
| 32 | + ->fields('f', array('entity_id')) |
|
| 33 | 33 | ->execute() |
| 34 | 34 | ->fetchAll(); |
| 35 | 35 | $nids = array(); |
| 36 | - foreach($result as $row) { |
|
| 36 | + foreach ($result as $row) { |
|
| 37 | 37 | $nids[] = (integer) $row->entity_id; |
| 38 | 38 | } |
| 39 | 39 | |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | ->condition('fid', $flag_ids, 'IN') |
| 25 | 25 | ->condition('uid', $account->uid, '=') |
| 26 | 26 | ->condition('entity_type', 'taxonomy_term', '=') |
| 27 | - ->fields('f',array('entity_id')) |
|
| 27 | + ->fields('f', array('entity_id')) |
|
| 28 | 28 | ->execute() |
| 29 | 29 | ->fetchAll(); |
| 30 | 30 | |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | $tids = array(); |
| 37 | - foreach($result as $row) { |
|
| 37 | + foreach ($result as $row) { |
|
| 38 | 38 | $tids[] = (integer) $row->entity_id; |
| 39 | 39 | } |
| 40 | 40 | |
@@ -48,14 +48,14 @@ discard block |
||
| 48 | 48 | $result = $query |
| 49 | 49 | ->addTag('node_access') |
| 50 | 50 | ->condition('tid', $tids, 'IN') |
| 51 | - ->fields('t',array('nid')) |
|
| 51 | + ->fields('t', array('nid')) |
|
| 52 | 52 | ->groupBy('nid') |
| 53 | 53 | ->execute() |
| 54 | 54 | ->fetchAll(); |
| 55 | 55 | |
| 56 | 56 | // Return the node IDs. |
| 57 | 57 | $nids = array(); |
| 58 | - foreach($result as $row) { |
|
| 58 | + foreach ($result as $row) { |
|
| 59 | 59 | $nids[] = (integer) $row->nid; |
| 60 | 60 | } |
| 61 | 61 | |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | ->condition('uid', $account->uid, '=') |
| 30 | 30 | ->condition('entity_type', 'node', '=') |
| 31 | 31 | ->condition('entity_id', $gids['node'], 'IN') |
| 32 | - ->fields('f',array('entity_id')) |
|
| 32 | + ->fields('f', array('entity_id')) |
|
| 33 | 33 | ->execute() |
| 34 | 34 | ->fetchAll(); |
| 35 | 35 | |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | $nids = array(); |
| 41 | - foreach($result as $row) { |
|
| 41 | + foreach ($result as $row) { |
|
| 42 | 42 | $nids[] = $row->entity_id; |
| 43 | 43 | } |
| 44 | 44 | |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | ->condition('fid', $flag_ids, 'IN') |
| 27 | 27 | ->condition('uid', $account->uid, '=') |
| 28 | 28 | ->condition('entity_type', 'user', '=') |
| 29 | - ->fields('f',array('entity_id')) |
|
| 29 | + ->fields('f', array('entity_id')) |
|
| 30 | 30 | ->execute() |
| 31 | 31 | ->fetchAll(); |
| 32 | 32 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | $uids = array(); |
| 39 | - foreach($result as $row) { |
|
| 39 | + foreach ($result as $row) { |
|
| 40 | 40 | $uids[] = (integer) $row->entity_id; |
| 41 | 41 | } |
| 42 | 42 | |