2016-06-18 20:45:55 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace CodeInspector;
|
|
|
|
|
|
|
|
use PhpParser;
|
|
|
|
|
|
|
|
abstract class Plugin
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* checks an expression
|
|
|
|
* @param PhpParser\Node\Expr $stmt
|
|
|
|
* @param array<Type\Union> &$vars_in_scope
|
|
|
|
* @param array &$vars_possibly_in_scope
|
|
|
|
* @param string $file_name
|
|
|
|
* @return null|false
|
|
|
|
*/
|
2016-06-20 06:38:13 +02:00
|
|
|
public function checkExpression(PhpParser\Node\Expr $stmt, Context $context, $file_name)
|
2016-06-18 20:45:55 +02:00
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* checks a statement
|
|
|
|
* @param PhpParser\Node $stmt
|
|
|
|
* @param array<Type\Union> &$vars_in_scope
|
|
|
|
* @param array &$vars_possibly_in_scope
|
|
|
|
* @param string $file_name
|
|
|
|
* @return null|false
|
|
|
|
*/
|
2016-06-20 06:38:13 +02:00
|
|
|
public function checkStatement(PhpParser\Node $stmt, Context $context, $file_name)
|
2016-06-18 20:45:55 +02:00
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|