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