1 | <?php defined('SYSPATH') OR die('No direct script access.'); |
||
3 | abstract class Migration_Driver |
||
4 | { |
||
5 | |||
6 | /** |
||
7 | * Get the driver of a srtain type |
||
8 | * @param type $type |
||
|
|||
9 | * @return type |
||
10 | */ |
||
11 | static public function factory($database = 'default') |
||
28 | 13 | ||
29 | protected $versions = null; |
||
30 | 13 | protected $_affected_rows = NULL; |
|
31 | 13 | ||
32 | public function __construct($config) |
||
37 | |||
38 | public function affected_rows() |
||
42 | /** |
||
43 | * Get or set the current versions |
||
44 | */ |
||
45 | public function versions(Migration_Driver_Versions $versions = NULL) |
||
57 | 1 | ||
58 | abstract public function clear_all(); |
||
59 | |||
60 | abstract public function table($name); |
||
63 | |||
64 | abstract public function create_table($table_name, $fields, $primary_key = TRUE); |
||
68 | |||
69 | abstract public function add_column($table_name, $column_name, $params); |
||
73 | |||
74 | abstract public function add_index($table_name, $index_name, $columns, $index_type = 'normal'); |
||
76 | } |
||
77 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.