1 | <?php |
||
5 | class ModelFactory |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * Make a Model Factory |
||
10 | * |
||
11 | * @param array $data Model Data |
||
12 | * |
||
13 | * @return \Dropbox\Models\ModelInterface |
||
14 | */ |
||
15 | 22 | public static function make(array $data = array()) |
|
75 | |||
76 | /** |
||
77 | * @param array $data |
||
78 | * |
||
79 | * @return bool |
||
80 | */ |
||
81 | 22 | protected static function isFileOrFolder(array $data) |
|
85 | |||
86 | /** |
||
87 | * @param string $tag |
||
88 | * |
||
89 | * @return bool |
||
90 | */ |
||
91 | 20 | protected static function isFile($tag) |
|
95 | |||
96 | /** |
||
97 | * @param string $tag |
||
98 | * |
||
99 | * @return bool |
||
100 | */ |
||
101 | 11 | protected static function isFolder($tag) |
|
105 | |||
106 | /** |
||
107 | * @param array $data |
||
108 | * |
||
109 | * @return bool |
||
110 | */ |
||
111 | 9 | protected static function isTemporaryLink(array $data) |
|
115 | |||
116 | /** |
||
117 | * @param array $data |
||
118 | * |
||
119 | * @return bool |
||
120 | */ |
||
121 | 8 | protected static function isList(array $data) |
|
125 | |||
126 | /** |
||
127 | * @param array $data |
||
128 | * |
||
129 | * @return bool |
||
130 | */ |
||
131 | 4 | protected static function isSearchResult(array $data) |
|
135 | |||
136 | /** |
||
137 | * @param string $tag |
||
|
|||
138 | * |
||
139 | * @return bool |
||
140 | */ |
||
141 | 1 | protected static function isFileRequestList(array $data) |
|
145 | |||
146 | /** |
||
147 | * @param array $data |
||
148 | * |
||
149 | * @return bool |
||
150 | */ |
||
151 | 1 | protected static function isFileRequest(array $data) |
|
155 | |||
156 | /** |
||
157 | * @param string $tag |
||
158 | * |
||
159 | * @return bool |
||
160 | */ |
||
161 | 2 | protected static function isDeletedFileOrFolder($tag) |
|
165 | } |
||
166 |
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.