1 | <?php |
||
10 | class OnPageService extends AbstractService |
||
11 | { |
||
12 | |||
13 | /** |
||
14 | * @var ApiResultLoader |
||
15 | */ |
||
16 | protected $loader; |
||
17 | |||
18 | /** |
||
19 | * OnPageService constructor. |
||
20 | * |
||
21 | * @param ApiResultLoader $loader |
||
22 | */ |
||
23 | public function __construct(ApiResultLoader $loader) |
||
27 | |||
28 | /** |
||
29 | * So that you get the error report of an |
||
30 | * api call you have to crawl the graph api call |
||
31 | * from a filter. |
||
32 | * |
||
33 | * In the next the you load the error report keys and |
||
34 | * commit it into the errorReport function. |
||
35 | * |
||
36 | * errorReport generates the error report and afterwards |
||
37 | * its stores in the field 'errors'. |
||
38 | * ' * |
||
39 | * |
||
40 | * @param array $buildData |
||
41 | * @param string $section |
||
42 | * @param ApiResultLoader $loader |
||
|
|||
43 | */ |
||
44 | public function build($buildData, $section) |
||
55 | |||
56 | /** |
||
57 | * Generates the error report key of an api call and |
||
58 | * return the result. |
||
59 | * |
||
60 | * @param mixed $graphApiCallResult |
||
61 | * @param mixed $errorReportKey |
||
62 | * |
||
63 | * @return int |
||
64 | */ |
||
65 | protected function errorReport($graphApiCallResult, $errorReportKey) |
||
83 | |||
84 | /** |
||
85 | * Fitted $tableApiCallResult by the elements of |
||
86 | * $showTableKey |
||
87 | * |
||
88 | * @param string $apiCall |
||
89 | * @param array $showTableKey |
||
90 | * |
||
91 | * @return array |
||
92 | */ |
||
93 | public function showColumns($apiCall, array $showTableKey) |
||
116 | |||
117 | /** |
||
118 | * Build only for development |
||
119 | */ |
||
120 | public function replaceNULL($array) |
||
129 | } |
||
130 |
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.