Lines Matching refs:proposal
132 foreach ($proposals as $proposal) {
135 if (is_null($proposal)) continue;
138 if ($proposal['quality'] < $lastQuality) {
144 if ($proposal['type'] !== '*' && $proposal['type'] !== $option['type']) {
148 if ($proposal['subType'] !== '*' && $proposal['subType'] !== $option['subType']) {
156 if (!array_key_exists($paramName, $proposal['parameters'])) {
159 if ($paramValue !== $proposal['parameters'][$paramName]) {
168 ($proposal['type'] !== '*' ? 20 : 0) +
169 ($proposal['subType'] !== '*' ? 10 : 0) +
175 ($proposal['quality'] > $lastQuality) ||
176 ($proposal['quality'] === $lastQuality && $specificity > $lastSpecificity) ||
177 …($proposal['quality'] === $lastQuality && $specificity === $lastSpecificity && $optionIndex < $las…
180 $lastQuality = $proposal['quality'];