src/Utilities/Helper.php
protected static function transformRow($row)
    {
        foreach ($row as $key => $value) {
            if ($value instanceof DateTime) {
                $row[$key] = $value->format('Y-m-d H:i:s');
            } else {
                if (is_object($value)) {
                    $row[$key] = (string) $value;
                } else {
                    $row[$key] = $value;
                }
            }
        }

        return $row;
    }
protected static function transformRow($row)
    {
        foreach ($row as $key => $value) {
            if ($value instanceof DateTime) {
                $row[$key] = $value->format('Y-m-d H:i:s');
            } else {
                if (is_object($value)) {
                    $row[$key] = (string) $value;
                } else {
                    $row[$key] = $value;
                }
            }
        }

        return $row;
    }
protected static function transformRow ( $ row ) { foreach ( $ row as $ key => $ value ) { if ( $ value instanceof DateTime ) { $ row [ $ key ] = $ value -> format ( 'Y-m-d H:i:s' ) ; } else { if ( is_object ( $ value ) ) { $ row [ $ key ] = ( string ) $ value ; } else { $ row [ $ key ] = $ value ; } } } return $ row ; }
Transform row data into an array.

@param mixed $row
@return array
Transform row data into an array .