src/Driver/Json.php
public function create($path, $fileName, array $data = [])
    {
        $this->checkExtension();

        $file = $this->getFile($path, $fileName);

        if (!file_exists($path)) {
            mkdir($path, 0775, true);
        }
        if (!file_exists($file)) {
            $fichier = fopen($file, 'w+');
            fwrite($fichier, json_encode($data));

            return fclose($fichier);
        }

        return false;
    }
public function create($path, $fileName, array $data = [])
    {
        $this->checkExtension();

        $file = $this->getFile($path, $fileName);

        if (!file_exists($path)) {
            mkdir($path, 0775, true);
        }
        if (!file_exists($file)) {
            $fichier = fopen($file, 'w+');
            fwrite($fichier, json_encode($data));

            return fclose($fichier);
        }

        return false;
    }
{@inheritDoc}