Skip to content

Commit 88c45af

Browse files
committed
Use/moved Color and Image from pehape/tools library.
1 parent 303ee44 commit 88c45af

17 files changed

+40
-686
lines changed

examples/text-image.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
require __DIR__ . '/../vendor/autoload.php';
44

5-
$greyColor = Pehape\TextImage\Utils\Color::create('grey');
6-
$blackColor = Pehape\TextImage\Utils\Color::create('black');
7-
$redColor = Pehape\TextImage\Utils\Color::create('blue');
5+
$greyColor = Pehape\Tools\Objects\Color::create('grey');
6+
$blackColor = Pehape\Tools\Objects\Color::create('black');
7+
$redColor = Pehape\Tools\Objects\Color::create('blue');
88

99
// Basic image
1010
$basicImage = new \Pehape\TextImage\TextImage('Basic image');
-208 KB
Binary file not shown.
-217 KB
Binary file not shown.
-208 KB
Binary file not shown.
-208 KB
Binary file not shown.

fonts/open-sans/OpenSans-Light.ttf

-217 KB
Binary file not shown.
-208 KB
Binary file not shown.
-216 KB
Binary file not shown.
-208 KB
Binary file not shown.

src/Exceptions/exceptions.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
// @codingStandardsIgnoreStart
1111

1212
/** PHP Extensions exception. */
13-
class ExtensionException extends \Exception {}
13+
class ExtensionException extends \LogicException {}
1414

15-
/** Files operations exception. */
16-
class FileException extends \Exception {}
15+
/** PHP Extensions exception. */
16+
class FileException extends \RuntimeException {}
1717

1818
// @codingStandardsIgnoreEnd

0 commit comments

Comments
 (0)