mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-02-14 16:28:41 +00:00
php cs and stan fixes
This commit is contained in:
parent
248bc53fe8
commit
8682dca742
|
|
@ -196,7 +196,7 @@ class Media implements \JsonSerializable
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function decrypt(string $password, string $outputPath) : string
|
public function decrypt(string $password, string $outputPath = null) : string
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @todo Orange-Management/Modules#185
|
* @todo Orange-Management/Modules#185
|
||||||
|
|
@ -273,7 +273,7 @@ class Media implements \JsonSerializable
|
||||||
*/
|
*/
|
||||||
public function compareNonce(string $nonce) : bool
|
public function compareNonce(string $nonce) : bool
|
||||||
{
|
{
|
||||||
return \hash_equals($this->nonce, $nonce);
|
return $this->nonce === null ? false : \hash_equals($this->nonce, $nonce);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -30,11 +30,29 @@ use phpOMS\Views\View;
|
||||||
*/
|
*/
|
||||||
class BaseView extends View
|
class BaseView extends View
|
||||||
{
|
{
|
||||||
protected $form = '';
|
/**
|
||||||
|
* Form id
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
protected string $form = '';
|
||||||
|
|
||||||
protected $virtualPath = '';
|
/**
|
||||||
|
* Virtual path of the media file
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
protected string $virtualPath = '';
|
||||||
|
|
||||||
protected $name = '';
|
/**
|
||||||
|
* Name of the image preview
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
protected string $name = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,12 @@ use phpOMS\Views\View;
|
||||||
*/
|
*/
|
||||||
class BaseView extends View
|
class BaseView extends View
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Media files
|
||||||
|
*
|
||||||
|
* @var \Modules\Media\Models\Media[]
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
protected $media = [];
|
protected $media = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -30,11 +30,29 @@ use phpOMS\Views\View;
|
||||||
*/
|
*/
|
||||||
class BaseView extends View
|
class BaseView extends View
|
||||||
{
|
{
|
||||||
protected $form = '';
|
/**
|
||||||
|
* Form id
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
protected string $form = '';
|
||||||
|
|
||||||
protected $virtualPath = '';
|
/**
|
||||||
|
* Virtual path of the media file
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
protected string $virtualPath = '';
|
||||||
|
|
||||||
protected $name = '';
|
/**
|
||||||
|
* Name of the image preview
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
protected string $name = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user