%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/pjold/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/
Upload File :
Create Path :
Current File : //var/www/pjold/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php

<?php

namespace Illuminate\Foundation\Http\Middleware;

class TrimStrings extends TransformsRequest
{
    /**
     * The attributes that should not be trimmed.
     *
     * @var array
     */
    protected $except = [
        //
    ];

    /**
     * Transform the given value.
     *
     * @param  string  $key
     * @param  mixed  $value
     * @return mixed
     */
    protected function transform($key, $value)
    {
        if (in_array($key, $this->except, true)) {
            return $value;
        }

        return is_string($value) ? trim($value) : $value;
    }
}

Zerion Mini Shell 1.0