@@ -25,6 +25,7 @@ |
||
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | 27 | * Saves the declarations to a file and returns the file contents |
| 28 | + * @param string $file_path |
|
| 28 | 29 | */ |
| 29 | 30 | public function save( $file_path ) { |
| 30 | 31 | $handle = fopen( $file_path, 'r+'); |
@@ -19,6 +19,9 @@ |
||
| 19 | 19 | return $this->differences; |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | + /** |
|
| 23 | + * @param Differences\Missing $difference |
|
| 24 | + */ |
|
| 22 | 25 | public function add( $difference ) { |
| 23 | 26 | $this->differences[] = $difference; |
| 24 | 27 | } |
@@ -8,6 +8,9 @@ |
||
| 8 | 8 | class Visitor extends NodeVisitorAbstract { |
| 9 | 9 | public $analyzer; |
| 10 | 10 | |
| 11 | + /** |
|
| 12 | + * @param \Automattic\Jetpack\Analyzer\Differences $analyzer |
|
| 13 | + */ |
|
| 11 | 14 | public function __construct( $analyzer ) { |
| 12 | 15 | $this->analyzer = $analyzer; |
| 13 | 16 | } |
@@ -50,6 +50,9 @@ |
||
| 50 | 50 | return $declarations; |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | + /** |
|
| 54 | + * @param Declarations $declarations |
|
| 55 | + */ |
|
| 53 | 56 | public function file( $file_path, $declarations = null ) { |
| 54 | 57 | if ( ! $declarations ) { |
| 55 | 58 | $declarations = new Declarations(); |