Skip to content

Commit

Permalink
Merge pull request artkonekt#1 from pizzels/fix-call-to-self
Browse files Browse the repository at this point in the history
Remove calls to 'phpinvoice' class
  • Loading branch information
fulopattila122 authored Mar 5, 2018
2 parents 3683822 + 1409803 commit cbaec69
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/change_timezone.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
include('../InvoicePrinter.php');
$invoice = new phpinvoice();
$invoice = new InvoicePrinter();
/* Header Settings */
$invoice->setTimeZone('America/Los_Angeles');
$invoice->setLogo("images/example2.png");
Expand Down
2 changes: 1 addition & 1 deletion examples/example1.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
include('../InvoicePrinter.php');
$invoice = new phpinvoice();
$invoice = new InvoicePrinter();
/* Header Settings */
$invoice->setLogo("images/sample1.jpg");
$invoice->setColor("#007fff");
Expand Down
2 changes: 1 addition & 1 deletion examples/example2.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
include('../InvoicePrinter.php');
$invoice = new phpinvoice();
$invoice = new InvoicePrinter();
/* Header Settings */
$invoice->setLogo("images/example3.jpg");
$invoice->setColor("#AA3939");
Expand Down
2 changes: 1 addition & 1 deletion examples/simple.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
include('../InvoicePrinter.php');
$invoice = new phpinvoice();
$invoice = new InvoicePrinter();
/* Header Settings */
$invoice->setLogo("images/simple_sample.png");
$invoice->setColor("#677a1a");
Expand Down
2 changes: 1 addition & 1 deletion src/InvoicePrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ public function Body()
foreach ($this->items as $item) {
if ($item['description']) {
//Precalculate height
$calculateHeight = new phpinvoice;
$calculateHeight = new self;
$calculateHeight->addPage();
$calculateHeight->setXY(0, 0);
$calculateHeight->SetFont($this->font, '', 7);
Expand Down

0 comments on commit cbaec69

Please sign in to comment.