public function formatServiceDescription($service, $scalar = true)
    {
        return sprintf(
            $scalar ? self::SCALAR_FORMAT : self::NON_SCALAR_FORMAT,
            gettype($service),
            $scalar ? (string) $service : null
        );
    }
public function formatServiceDescription($service, $scalar = true)
    {
        return sprintf(
            $scalar ? self::SCALAR_FORMAT : self::NON_SCALAR_FORMAT,
            gettype($service),
            $scalar ? (string) $service : null
        );
    }
public function formatServiceDescription ( $ service , $ scalar = true ) { return sprintf ( $ scalar ? self :: SCALAR_FORMAT : self :: NON_SCALAR_FORMAT , gettype ( $ service ) , $ scalar ? ( string ) $ service : null ) ; }
Retrieve a suitable formatted service description.

@param  mixed  $service
@param  bool   $scalar
@return string
Retrieve a suitable formatted service description .