Skip to content
This repository has been archived by the owner on Dec 27, 2018. It is now read-only.

Commit

Permalink
Fixing code.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny committed Feb 14, 2016
1 parent 2d060e6 commit d6a0df9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/PHPoole.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public function __construct($options = [], $notificationCallback = null)
$this->setOptions($options);
}

if ($notificationCallback == null) {
if ($notificationCallback === null) {
$this->notificationCallback = function ($code, $message = '', $items_count = 0, $items_max = 0, $verbose = false) {
switch ($code) {
case 'CREATE':
Expand Down Expand Up @@ -820,7 +820,6 @@ protected function renderPage(Page $page, $dir)

$pathname = preg_replace('#/+#', '/', $pathname); // remove unnecessary slashes
$this->renderer->save($pathname);
//echo $pathname."\n";
return $pathname;
}

Expand Down

0 comments on commit d6a0df9

Please sign in to comment.