private function generateExceptionsValues($navitiaExceptions)
    {
        $exceptions = array();

        foreach ($navitiaExceptions as $exception) {
            $date = new \DateTime($exception->date);

            $exception->value = $this->translator->trans(
                'global.exceptions.' . strtolower($exception->type),
                array('%date%' => $date->format('d/m/Y')),
                'messages'
            );
            $exceptions[$exception->id] = $exception;
        }

        return $exceptions;
    }
private function generateExceptionsValues($navitiaExceptions)
    {
        $exceptions = array();

        foreach ($navitiaExceptions as $exception) {
            $date = new \DateTime($exception->date);

            $exception->value = $this->translator->trans(
                'global.exceptions.' . strtolower($exception->type),
                array('%date%' => $date->format('d/m/Y')),
                'messages'
            );
            $exceptions[$exception->id] = $exception;
        }

        return $exceptions;
    }
private function generateExceptionsValues ( $ navitiaExceptions ) { $ exceptions = array ( ) ; foreach ( $ navitiaExceptions as $ exception ) { $ date = new \ DateTime ( $ exception -> date ) ; $ exception -> value = $ this -> translator -> trans ( 'global.exceptions.' . strtolower ( $ exception -> type ) , array ( '%date%' => $ date -> format ( 'd/m/Y' ) ) , 'messages' ) ; $ exceptions [ $ exception -> id ] = $ exception ; } return $ exceptions ; }
Generate value property of exceptions to display in view
Generate value property of exceptions to display in view