original_string: public static function fromFile($fileName) {
          if (!file_exists($fileName))
              throw new SettingsException("file $fileName does not exist");
          return static::fromString(file_get_contents($fileName), dirname($fileName));
      }
code: public static function fromFile($fileName) {
          if (!file_exists($fileName))
              throw new SettingsException("file $fileName does not exist");
          return static::fromString(file_get_contents($fileName), dirname($fileName));
      }
code_tokens: public static function fromFile ( $ fileName ) { if ( ! file_exists ( $ fileName ) ) throw new SettingsException ( "file $fileName does not exist" ) ; return static :: fromString ( file_get_contents ( $ fileName ) , dirname ( $ fileName ) ) ; }
docstring: Creates settings from a JSON-encoded file.
  @param string $fileName
  @return Settings
docstring_tokens: Creates settings from a JSON - encoded file .