Code Duplication    Length = 3-3 lines in 2 locations

packages/analyzer/src/Analyzer.php 2 locations

@@ 181-183 (lines=3) @@
178
				return;
179
			}
180
			$method = new Class_Method_Declaration( $this->current_relative_path, $node->getLine(), $this->current_class, $node->name->name, $node->isStatic() );
181
			foreach ( $node->getParams() as $param ) {
182
				$method->add_param( $param->var->name, $param->default, $param->type, $param->byRef, $param->variadic );
183
			}
184
			$this->add_declaration( $method );
185
		}
186
		if ( $node instanceof Node\Stmt\Function_ ) {
@@ 188-190 (lines=3) @@
185
		}
186
		if ( $node instanceof Node\Stmt\Function_ ) {
187
			$function = new Function_Declaration( $this->current_relative_path, $node->getLine(), $node->name->name );
188
			foreach ( $node->getParams() as $param ) {
189
				$function->add_param( $param->var->name, $param->default, $param->type, $param->byRef, $param->variadic );
190
			}
191
			$this->add_declaration( $function  );
192
		}
193
	}