JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr{ gilour

File "NormalizeComponentPropertiesForJavaScript.php"

Full Path: /var/www/lionsclub/core/vendor/livewire/livewire/src/HydrationMiddleware/NormalizeComponentPropertiesForJavaScript.php
File size: 857 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace Livewire\HydrationMiddleware;

use Illuminate\Database\Eloquent\Collection as EloquentCollection;

class NormalizeComponentPropertiesForJavaScript extends NormalizeDataForJavaScript implements HydrationMiddleware
{
    public static function hydrate($instance, $request)
    {
        //
    }

    public static function dehydrate($instance, $response)
    {
        foreach ($instance->getPublicPropertiesDefinedBySubClass() as $key => $value) {
            if (is_array($value)) {
                $instance->$key = static::reindexArrayWithNumericKeysOtherwiseJavaScriptWillMessWithTheOrder($value);
            }

            if ($value instanceof EloquentCollection) {
                // Preserve collection items order by reindexing underlying array.
                $instance->$key = $value->values();
            }
        }
    }
}