helper.php 181 B

123456789
  1. <?php
  2. function blueprint_data_option_test(array $param = null, $sort = false)
  3. {
  4. if ($sort) {
  5. asort($param);
  6. }
  7. return $param ?: ['yes' => 'Yes', 'no' => 'No'];
  8. }