Skip to content

Commit

Permalink
PER code style (via Laravel Pint)
Browse files Browse the repository at this point in the history
  • Loading branch information
roberto-butti committed Dec 20, 2023
1 parent fff1aae commit 2b0d328
Show file tree
Hide file tree
Showing 42 changed files with 1,576 additions and 1,156 deletions.
8 changes: 6 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "library",
"description": "Package to create and stream e-books in the ePub 2.0 and 3.0 formats.",
"keywords": ["epub", "e-book"],
"homepage": "https://github.com/wallabag/PHPePub",
"homepage": "https://github.com/Hi-Folks/PHPePub",
"license": "LGPL-2.1",
"minimum-stability": "stable",
"authors": [
Expand Down Expand Up @@ -51,6 +51,10 @@
]
},
"require-dev": {
"rector/rector": "^0.18.13"
"rector/rector": "^0.18.13",
"laravel/pint": "^1.13"
},
"scripts": {
"format": "pint"
}
}
5 changes: 3 additions & 2 deletions legacy/EPub.Test.Example.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

include 'vendor/autoload.php';

use PHPePub\Core\EPub;
Expand Down Expand Up @@ -32,7 +33,7 @@
// setting timezone for time functions used for logging to work properly
date_default_timezone_set('Europe/Berlin');

$log = new Logger("Example", TRUE);
$log = new Logger("Example", true);

$fileDir = './PHPePub';

Expand Down Expand Up @@ -87,7 +88,7 @@

$cover = $content_start . "<h1>Test Book</h1>\n<h2>By: John Doe Johnson</h2>\n" . $bookEnd;
$book->addChapter("Notices", "Cover.html", $cover);
$book->buildTOC(NULL, "toc", "Table of Contents", TRUE, TRUE);
$book->buildTOC(null, "toc", "Table of Contents", true, true);
// function buildTOC($cssFileName = NULL, $tocCSSClass = "toc", $title = "Table of Contents", $addReferences = TRUE, $addToIndex = FALSE, $tocFileName = "TOC.xhtml") {


Expand Down
3 changes: 3 additions & 0 deletions pint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"preset": "per"
}
Loading

0 comments on commit 2b0d328

Please sign in to comment.