private function getFileContents($file) {
    if (file_exists($file) === FALSE) {
      return NULL;
    }

    $contents = file_get_contents($file);
    if ($contents === FALSE) {
      return NULL;
    }

    return $contents;
  }
private function getFileContents($file) {
    if (file_exists($file) === FALSE) {
      return NULL;
    }

    $contents = file_get_contents($file);
    if ($contents === FALSE) {
      return NULL;
    }

    return $contents;
  }
private function getFileContents ( $ file ) { if ( file_exists ( $ file ) === FALSE ) { return NULL ; } $ contents = file_get_contents ( $ file ) ; if ( $ contents === FALSE ) { return NULL ; } return $ contents ; }
Get contents of file.

@param string $file File path.
@return mixed String on success or NULL on failure.
Get contents of file .