Skip to content

Commit

Permalink
BUGFIX ; Variable with bad name #6
Browse files Browse the repository at this point in the history
Bugfixed case sensitive typo
  • Loading branch information
SDPBE committed Aug 29, 2018
1 parent ce4ddf6 commit f722af5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HeadlessChrome.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,14 +226,14 @@ private function getUniqueName($extension) {

/**
* To PDF for the specified URL
* @param String $PDFfilename
* @param String $PDFFilename
* @return String $location
* @throws Exception
*/
public function toPDF($PDFFilename = null){

if(!isset($PDFFilename)){
$PDFfilename = $this->getUniqueName('pdf');
$PDFFilename = $this->getUniqueName('pdf');
}

if ($PDFFilename && !strstr($PDFFilename, '.pdf')) {
Expand Down

0 comments on commit f722af5

Please sign in to comment.