Skip to content

Commit

Permalink
Merge pull request #7 from DaanDeSmedt/dev
Browse files Browse the repository at this point in the history
BUGFIX ; Variable with bad name #6
  • Loading branch information
DaanDeSmedt authored Aug 29, 2018
2 parents 76c3ba6 + f722af5 commit cf903a9
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 cf903a9

Please sign in to comment.