1 | <?php |
||
12 | class ArrayUtility |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * Append the errors of an api call to |
||
17 | * metaDataArray |
||
18 | * |
||
19 | * @param $metaDataArray |
||
20 | * @param $section |
||
21 | */ |
||
22 | public static function buildIndexActionArray(&$metaDataArray, $section) |
||
35 | |||
36 | /** |
||
37 | * Determine the error report of an aspect |
||
38 | * |
||
39 | * @param $graphApiCallResult |
||
40 | * @param $errorReportKey |
||
41 | * |
||
42 | * @return int |
||
43 | */ |
||
44 | protected static function errorReport($graphApiCallResult,$errorReportKey) { |
||
62 | } |
||
63 |
If the size of the collection does not change during the iteration, it is generally a good practice to compute it beforehand, and not on each iteration: