Completed
Push — 7.x-3.x ( d8666b...d48267 )
by Devin
03:54
created

commons_follow_plugin_argument_default_node   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A get_argument() 0 7 2
1
<?php
2
3
/**
4
 * @file
5
 * Holds the class defining the Views plugin that returns the node IDS that a
6
 * user has subscribed to.
7
 */
8
9
class commons_follow_plugin_argument_default_node extends views_plugin_argument_default {
10
11
  /**
12
   * Get the default argument.
13
   */
14
  function get_argument() {
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
15
    if (!$nids = commons_follow_get_nids()) {
16
      return FALSE;
17
    }
18
19
    return implode(',', $nids);
20
  }
21
}
22