Skip to content

Commit

Permalink
Fix: Issue #2
Browse files Browse the repository at this point in the history
  • Loading branch information
ncjoes committed Mar 22, 2017
1 parent c7f64c0 commit e6ec22e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/PopplerPhp/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static function getInstance()
*
* @return bool
*/
public static function isSet($key)
public static function isKeySet($key)
{
return self::get($key, C::DEFAULT) != C::DEFAULT;
}
Expand Down
2 changes: 1 addition & 1 deletion src/PopplerPhp/PopplerUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function open($pdfFile)
if (is_file($real_path)) {
$this->source_pdf = $real_path;

if (!Config::isSet(C::OUTPUT_DIR)) {
if (!Config::isKeySet(C::OUTPUT_DIR)) {
Config::setOutputDirectory(dirname($pdfFile));
}

Expand Down
2 changes: 1 addition & 1 deletion tests/PopplerUtilTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function testMakeOptionsMethod()
public function testOutputDirMethodSetterAndGetter()
{
Config::setOutputDirectory(Config::getOutputDirectory(C::DEFAULT));
$this->assertTrue(Config::isSet(C::OUTPUT_DIR));
$this->assertTrue(Config::isKeySet(C::OUTPUT_DIR));

$source_file = __DIR__.'/sources/test1.pdf';
$cairo = new PdfToCairo($source_file);
Expand Down

0 comments on commit e6ec22e

Please sign in to comment.