normalize() public static method

Makes every value that is numerically indexed a key, given $default as value.
public static normalize ( array $data, mixed $default ) : array
$data array Data.
$default mixed Default value.
return array Normalized values.
 /**
  *
  */
 public function testNormalize()
 {
     $data = ['one', 'two' => 'three', 'four'];
     $default = 'default';
     $expected = ['one' => $default, 'two' => 'three', 'four' => $default];
     $this->assertEquals($expected, Transform::normalize($data, $default));
 }