@@ -9,6 +9,9 @@ |
||
9 | 9 | private $invocations; |
10 | 10 | private $file_path; |
11 | 11 | |
12 | + /** |
|
13 | + * @param $invocations |
|
14 | + */ |
|
12 | 15 | public function __construct( $file_path, $invocations ) { |
13 | 16 | $this->file_path = $file_path; |
14 | 17 | $this->invocations = $invocations; |
@@ -10,6 +10,9 @@ |
||
10 | 10 | private $declarations; |
11 | 11 | private $current_relative_path; |
12 | 12 | |
13 | + /** |
|
14 | + * @param $declarations |
|
15 | + */ |
|
13 | 16 | public function __construct( $current_relative_path, $declarations ) { |
14 | 17 | $this->current_relative_path = $current_relative_path; |
15 | 18 | $this->declarations = $declarations; |
@@ -30,6 +30,7 @@ |
||
30 | 30 | |
31 | 31 | /** |
32 | 32 | * Saves the items to a file and returns the file contents |
33 | + * @param string $file_path |
|
33 | 34 | */ |
34 | 35 | public function save( $file_path ) { |
35 | 36 | $handle = fopen( $file_path, 'w+'); |
@@ -37,6 +37,9 @@ |
||
37 | 37 | } |
38 | 38 | } |
39 | 39 | |
40 | + /** |
|
41 | + * @param string $root |
|
42 | + */ |
|
40 | 43 | public function scan_dir( $root, $exclude = array() ) { |
41 | 44 | $filter = function ( $file, $key, $iterator ) use ( $exclude ) { |
42 | 45 | if ( $iterator->hasChildren() && ! in_array( $file->getFilename(), $exclude ) ) { |
@@ -14,6 +14,9 @@ |
||
14 | 14 | public $line; |
15 | 15 | public $func_name; |
16 | 16 | |
17 | + /** |
|
18 | + * @param string $func_name |
|
19 | + */ |
|
17 | 20 | public function __construct( $path, $line, $func_name ) { |
18 | 21 | $this->path = $path; |
19 | 22 | $this->line = $line; |
@@ -33,6 +33,9 @@ |
||
33 | 33 | } |
34 | 34 | } |
35 | 35 | |
36 | + /** |
|
37 | + * @param string $root |
|
38 | + */ |
|
36 | 39 | public function scan_dir( $root, $exclude = array() ) { |
37 | 40 | |
38 | 41 | if ( is_null( $exclude ) || ! is_array( $exclude ) ) { |
@@ -9,6 +9,10 @@ |
||
9 | 9 | public $line; |
10 | 10 | public $message; |
11 | 11 | |
12 | + /** |
|
13 | + * @param string $type |
|
14 | + * @param string $message |
|
15 | + */ |
|
12 | 16 | function __construct( $type, $path, $line, $message ) { |
13 | 17 | $this->type = $type; |
14 | 18 | $this->path = $path; |