private function prepareDataForInsert($data)
    {
        $items = [];
        foreach ($data as $key => $value) {
            $items[] = ['key' => $key, 'value' => $value];
        }

        return $items;
    }
private function prepareDataForInsert($data)
    {
        $items = [];
        foreach ($data as $key => $value) {
            $items[] = ['key' => $key, 'value' => $value];
        }

        return $items;
    }
private function prepareDataForInsert ( $ data ) { $ items = [ ] ; foreach ( $ data as $ key => $ value ) { $ items [ ] = [ 'key' => $ key , 'value' => $ value ] ; } return $ items ; }
Prepare data for insert

@param array $data
@return array
Prepare data for insert