for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace tonisormisson\addressform;
/**
* Class AddressHelper
* @package tonisormisson\addressform
* @author Tõnis Ormisson <[email protected]>
*/
class AddressHelper
{
* make the simple array list to DepDrop eatable list with id & name
* @param $list
* @return array
public function formatList($list)
$out = [];
foreach ($list as $key => $value) {
$out[] = [
'id' => $key,
'name' => $value['name'],
];
}
return $out;