get_argument()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 4
nc 2
nop 0
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
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