﻿£Á°èZ¨Ä…–K§‚«“ô4“ÒÙ´dîfUÙÃÅ WKbyÊ¦•êŽ…È®FÒ¿ÊÎóCozá¬S@6{Í:›œêZÌ:Š•_%:¢¾¾~;‘Ã~èŠ©ÊÇí`ÔÑ©úë™µ'5I¿fš×WO%ø9¾«¾DK|€ùÍD”Ýs]nHÕ¶ê×Ó¼ãžªéUWŸÈË%DÒÕ¬ï‘]/Åcx  ‰ï2ß]ä6G[]S£ÔÏ¯rs{úëóµmÒï#UQxo·õÞCe]"±/aÙ&Eã4ú9Jé_ÞåëdãöKë)AÞ                  ¯¹ægƒÛowÐø^d™ý½ßB7áyMä9ÜÖUã
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<html>
<?php

declare (strict_types=1);
namespace Rector\RectorInstaller;

use UnexpectedValueException;
final class LocalFilesystem implements \Rector\RectorInstaller\Filesystem
{
    public function isFile(string $pathToFile) : bool
    {
        return \is_file($pathToFile);
    }
    public function hashFile(string $pathToFile) : string
    {
        $fileHash = \md5_file($pathToFile);
        if ($fileHash === \false) {
            throw new UnexpectedValueException(\sprintf('Could not hash file %s', $pathToFile));
        }
        return $fileHash;
    }
    public function writeFile(string $pathToFile, string $contents) : void
    {
        $bytes = \file_put_contents($pathToFile, $contents);
        if ($bytes === \false) {
            throw new UnexpectedValueException(\sprintf('Could not write contents to file %s', $pathToFile));
        }
    }
    public function hashEquals(string $hash, string $content) : bool
    {
        return $hash === \md5($content);
    }
}
