forked from randomstate/camelot-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Small code refactoring. Constructor property promotion.
- Loading branch information
Alex K
committed
Dec 1, 2023
1 parent
7a8dd80
commit 39f54e1
Showing
8 changed files
with
13 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
<?php | ||
|
||
|
||
namespace RandomState\Camelot; | ||
|
||
|
||
class Areas | ||
{ | ||
protected array $areas = []; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
<?php | ||
|
||
|
||
namespace RandomState\Camelot\Exceptions; | ||
|
||
|
||
use Throwable; | ||
|
||
class PdfEncryptedException extends \Exception | ||
{ | ||
public function __construct(string $filePath) | ||
{ | ||
parent::__construct("The PDF $filePath is encrypted and cannot be read without a password. Supply a password with \$camelot->password('my_password')."); | ||
parent::__construct(sprintf('The PDF "%s" is encrypted and cannot be read without a password. Supply a password with $camelot->password(\'my_password\').', $filePath)); | ||
} | ||
} |