<?php

/*
 * This file is part of JoliTypo - a project by JoliCode.
 *
 * This software consists of voluntary contributions made by many individuals
 * and is licensed under the MIT license.
 */

namespace JoliTypo\Fixer;

use JoliTypo\Fixer;
use JoliTypo\FixerInterface;
use JoliTypo\StateBag;

class CurlyQuote implements FixerInterface
{
    public function fix($content, StateBag $stateBag = null)
    {
        return preg_replace('@([a-z])\'@im', '$1'.Fixer::RSQUO, $content);
    }
}
