src/Oro/Bundle/EntityExtendBundle/Form/Extension/EnumFieldConfigExtension.php 1 location
|
@@ 187-193 (lines=7) @@
|
184 |
|
{ |
185 |
|
usort( |
186 |
|
$options, |
187 |
|
function ($a, $b) { |
188 |
|
if ($a['priority'] == $b['priority']) { |
189 |
|
return 0; |
190 |
|
} |
191 |
|
|
192 |
|
return $a['priority'] < $b['priority'] ? -1 : 1; |
193 |
|
} |
194 |
|
); |
195 |
|
$index = 0; |
196 |
|
foreach ($options as &$option) { |
src/Oro/Bundle/SecurityBundle/DependencyInjection/Compiler/AclConfigurationPass.php 1 location
|
@@ 188-192 (lines=5) @@
|
185 |
|
} |
186 |
|
usort( |
187 |
|
$extensions, |
188 |
|
function ($a, $b) { |
189 |
|
return $a['priority'] == $b['priority'] |
190 |
|
? 0 |
191 |
|
: ($a['priority'] < $b['priority']) ? -1 : 1; |
192 |
|
} |
193 |
|
); |
194 |
|
|
195 |
|
return array_map( |
src/Oro/Bundle/SecurityBundle/Acl/Persistence/AclPrivilegeRepository.php 1 location
|
@@ 471-480 (lines=10) @@
|
468 |
|
} |
469 |
|
uasort( |
470 |
|
$data, |
471 |
|
function ($a, $b) { |
472 |
|
if ($a[1]) { |
473 |
|
return -1; |
474 |
|
} |
475 |
|
if ($b[1]) { |
476 |
|
return 1; |
477 |
|
} |
478 |
|
|
479 |
|
return strcmp($a[2], $b[2]); |
480 |
|
} |
481 |
|
); |
482 |
|
|
483 |
|
$privileges->clear(); |