Lines Matching refs:data
51 $data = $statement->fetchAll();
53 return $this->getNested($data);
75 $data = $statement->fetchAll();
77 return $this->getNested($data);
83 private function getNested(array $data): array argument
89 foreach ($data as &$node) {
102 foreach ($tree as $data) {
103 if (isset($data['children'])) {
104 $packages[$data['name']] = [$data['long_name'], $data['disabled'], []];
105 $children = &$packages[$data['name']][2];
108 foreach ($data['children'] as $k => $v) {
112 array_multisort($longNames, SORT_ASC, SORT_STRING, $data['children']);
114 foreach ($data['children'] as $child) {
118 } elseif (!isset($packages[$data['name']])) {
119 $packages[$data['name']] = [$data['long_name'], $data['disabled'], null];