public function makeJsonFileName($key, $dir = '')
    {
        if (! ends_with($dir, (DIRECTORY_SEPARATOR))) {
            $dir .= DIRECTORY_SEPARATOR;
        }

        return $this->dataDir($this->addSuffix('.json', $this->toDir($dir).strtolower($key)));
    }
public function makeJsonFileName($key, $dir = '')
    {
        if (! ends_with($dir, (DIRECTORY_SEPARATOR))) {
            $dir .= DIRECTORY_SEPARATOR;
        }

        return $this->dataDir($this->addSuffix('.json', $this->toDir($dir).strtolower($key)));
    }
public function makeJsonFileName ( $ key , $ dir = '' ) { if ( ! ends_with ( $ dir , ( DIRECTORY_SEPARATOR ) ) ) { $ dir .= DIRECTORY_SEPARATOR ; } return $ this -> dataDir ( $ this -> addSuffix ( '.json' , $ this -> toDir ( $ dir ) . strtolower ( $ key ) ) ) ; }
Make state json filename.

@param $key
@param string $dir
@return string
Make state json filename .