-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Code-Pflege via phpStan, phpMD und phpCS (#36)
* bug fixes via phpstan
- Loading branch information
Showing
19 changed files
with
243 additions
and
159 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
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<?php | ||
|
||
/* | ||
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license | ||
* Click nbfs://nbhost/SystemFileSystem/Templates/Scripting/PHPClass.php to edit this template | ||
*/ | ||
namespace FriendsOfRedaxo\addon\MediapoolExif\Exception; | ||
|
||
use Exception; | ||
use Throwable; | ||
|
||
/** | ||
* Datei für ... | ||
* | ||
* @version 1.0 / 2024-03-31 | ||
* @author akrys | ||
*/ | ||
|
||
/** | ||
* Description of InvalidClassException | ||
* | ||
* @author akrys | ||
*/ | ||
class InvalidClassException extends Exception | ||
{ | ||
|
||
/** | ||
* Konstruktor | ||
* @param string $class | ||
* @param string $message | ||
* @param int $code | ||
* @param Throwable $previous | ||
*/ | ||
public function __construct( | ||
private string $class, | ||
string $message = "", | ||
int $code = 0, | ||
Throwable $previous = null | ||
) { | ||
if ($message === '') { | ||
$message = 'Invalid class: '.$class; | ||
} | ||
parent::__construct($message, $code, $previous); | ||
} | ||
|
||
/** | ||
* Formatname | ||
* @return string | ||
*/ | ||
public function getClass(): string | ||
{ | ||
return $this->class; | ||
} | ||
} |
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
Oops, something went wrong.