summary handle
@param  string $value
@return string
769282
static public function summary($value=null)
    {
        $value = StringHelper::str_cut(strip_tags($value), 84);   // 84*3 < 254
        
        return static::input($value);
    }
1373967
public function dump($value)
    {
        switch (gettype($value)) {
            // Handle boolean values.
            case "boolean": {
                $output = $value ? "true" : "false";

                // You can represent booleans (and NULLs) in either lower- or uppercase format.
                return $this->config["bool_lowercase"] ? $output : strtoupper($output);
            }

            // Handle NULL values.
            case "NULL": {
                return $this->config["null_lowercase"] ? "null" : "NULL";
            }

            // Handle integers.
            case "integer": {
                return (string) $value;
            }

            // Handle floats (doubles).
            case "double": {
                // Dumpy allows you to round floats to round_double decimal points.
                if ($this->config["round_double"] !== false) {
                    $value = round($value, $this->config["round_double"], PHP_ROUND_HALF_UP);
                }

                return (string) $value;
            }

            // Handle strings.
            case "string": {
                // @suggestion Multibyte support?
                // Look above for the detailed explanation.
                if (strlen($value) > $this->config["str_max_length"]) {
                    $value = substr($value, 0, $this->config["str_max_length"]) . "...";
                }

                // Dumpy allows you to replace newline characters with "\\n".
                if ($this->config["replace_newline"]) {
                    $value = str_replace(PHP_EOL, "\\n", $value);
                }

                return "\"{$value}\"";
            }

            // Handle arrays.
            case "array": {
                return $this->printArray($value) . PHP_EOL;
            }

            // Handle objects.
            case "object": {
                return $this->printObject($value);
            }
            // @codeCoverageIgnoreStart
        }
    }
1128373
public static function stringify($value)
    {
        $string = '';
        if (is_scalar($value)) {
            // integer, float, string, boolean
            $string = (string)$value;
        } elseif (is_resource($value)) {
            // resource
            $string = '[resource]';
        } else {
            // array, object, null, callable
            $string = json_encode($value);
        }
        return $string;
    }
1062321
public static function cmd($value): string
    {
        $value = Str::low($value);
        $value = preg_replace('#[^a-z0-9\_\-\.]#', '', $value);
        $value = Str::trim($value);

        return $value;
    }
202297
public function transform($value)
    {
        if (null === $value || !($value instanceof Collection)) {
            return '';
        }

        $string = '';
        foreach ($value as $item) {
            $string .= $item->getId();

            if ($value->last() != $item) {
                $string .= ',';
            }
        }

        return $string;
    }
578987
@Override
    public String handle(final Object value) {
        if (value instanceof NominatimRequest) {
            return ((NominatimRequest) value).getQueryString();
        } else {
            return value.toString();
        }
    }
98607
public function transform(string $value): string {
        
        if (strpos($value, 'hdl.handle.net') !== false) {
            $value = str_replace("http://", "", $value);
        }else if(strpos($value, 'https') !== false) {
            $value = str_replace("https://", "", $value);
        }else {
            $value = str_replace("http://", "", $value);
        }
        return $value;
        
    }
546621
public function xssClean($value)
	{
		if ( ! is_array($value))
		{
			if ( ! function_exists('htmLawed'))
			{
				if ( ! file_exists($file = VENDORPATH.'htmlawed'.DS.'htmlawed'.DS.'htmLawed.php'))
				{
					throw new \RuntimeException('You need to install the "htmlawed/htmlawed" composer package to use Security::xss_clean()');
				}
				require_once $file;
			}

			return htmLawed($value, array('safe' => 1, 'balanced' => 0));
		}

		foreach ($value as $k => $v)
		{
			$value[$k] = $this->xss_clean($v);
		}

		return $value;
	}
387747
protected function handleDateParameter( $value )
    {
        $date = DateTime::createFromFormat(
            self::XML_RPC_ISO8601, (string)$value, new \DateTimeZone( 'UTC' )
        );

        // no separators, maybe, try again
        if ( $date instanceof DateTime )
        {
            $date->setTimezone( new DateTimeZone( date_default_timezone_get() ) );
            return $date;
        }

        $parts = explode( 'T', $value );

        if ( count( $parts ) != 2 )
            throw new UnexpectedValueException( "Invalid date $value" );
        if ( strlen( $parts[0] ) !== 8 || strlen( $parts[1] ) != 8)
            throw new UnexpectedValueException( "Invalid date $value" );

        $dateParts = array();
        sscanf( $parts[0], '%04d%02d%02d', $dateParts['year'], $dateParts['month'], $dateParts['day'] );
        sscanf( $parts[1], '%02d:%02d:%02d', $dateParts['hours'], $dateParts['minutes'], $dateParts['seconds'] );
        $iso8601date = sprintf(
            '%4d-%02d-%02dT%02d:%02d:%02d',
            $dateParts['year'], $dateParts['month'], $dateParts['day'],
            $dateParts['hours'], $dateParts['minutes'], $dateParts['seconds']
        );

        $date = DateTime::createFromFormat( self::XML_RPC_ISO8601, $iso8601date, new DateTimeZone( 'UTC' ) );
        if ( $date instanceof DateTime )
        {
            $date->setTimezone( new DateTimeZone( date_default_timezone_get() ) );
            return $date;
        }
        return $date;
    }
215077
protected function wrapValue($value)
    {
        if ($value === '*') {
            return $value;
        }

        // If the given value is a JSON selector we will wrap it differently than a
        // traditional value. We will need to split this path and wrap each part
        // wrapped, etc. Otherwise, we will simply wrap the value as a string.
        if ($this->isJsonSelector($value)) {
            return $this->wrapJsonSelector($value);
        }

        return '`' . str_replace('`', '``', $value) . '`';
    }
310489
public function dump($value)
    {
        $context = $this->contextFactory->createDumpContext();

        return $this->dumper->dump($value, $context);
    }
1024397
public function wrap($value)
    {
        if ($value instanceof Fluent) $value = $value->name;

        return parent::wrap($value);
    }
1305698
public function wrapSanitizer($value)
    {
        // Its a raw query, just cast as string, object has __toString()
        if ($value instanceof Raw) {
            return (string)$value;
        }

        if ($value instanceof \Closure) {
            return $value;
        }

        // Separate our table and fields which are joined with a ".", like my_table.id
        $valueArr = explode('.', $value, 2);

        foreach ($valueArr as $key => $subValue) {
            // Don't wrap if we have *, which is not a usual field
            $valueArr[$key] = trim($subValue) === '*' ? $subValue : static::SANITIZER . $subValue . static::SANITIZER;
        }

        // Join these back with "." and return
        return implode('.', $valueArr);
    }
1097467
public function getTypeForValue($value) : string
    {
        foreach ($this->handlers as $type => $handler) {
            if ($handler->canHandleValue($value)) {
                return $type;
            }
        }

        throw DataTypeException::handlerNotFoundForValue($value);
    }
1241833
protected function handleArrayParameter( $value )
    {
        $values = array();
        foreach ( $value->data->value as $subValue )
        {
            if ( $subValue->count() > 0 )
            {
                $subValue = (array)$subValue;
            }
            else
            {
                $subValue = array( (string)$subValue );
            }
            $values[] = $this->processParameter( $subValue );
        }

        return $values;
    }
262732
public function formatDetailed($value)
    {
        //\MUtil_Echo::track($value);
        if (is_array($value)) {
            $group = $this->currentUser->getGroup();

            if ($group) {
                $value = $group->applyGroupToData($value);
            }
        }

        return parent::formatDetailed($value);
    }
1155617
public function serialize($value): string
    {
        if ($value instanceof Carbon) {
            return $value->toDateString();
        }

        return $this->tryParsingDate($value, InvariantViolation::class)
            ->toDateString();
    }