@@ -59,8 +59,7 @@ |
||
59 | 59 | * @class UploadError |
60 | 60 | * @package Platine\Upload\Validator\Rule |
61 | 61 | */ |
62 | -class UploadError implements RuleInterface |
|
63 | -{ |
|
62 | +class UploadError implements RuleInterface { |
|
64 | 63 | /** |
65 | 64 | * {@inheritdoc} |
66 | 65 | * @see RuleInterface |
@@ -71,7 +71,7 @@ |
||
71 | 71 | * Create new instance |
72 | 72 | * @param array<int, string>|string $mimeType |
73 | 73 | */ |
74 | - public function __construct(array|string $mimeType) |
|
74 | + public function __construct(array | string $mimeType) |
|
75 | 75 | { |
76 | 76 | if (!is_array($mimeType)) { |
77 | 77 | $mimeType = [$mimeType]; |
@@ -59,8 +59,7 @@ discard block |
||
59 | 59 | * @class MimeType |
60 | 60 | * @package Platine\Upload\Validator\Rule |
61 | 61 | */ |
62 | -class MimeType implements RuleInterface |
|
63 | -{ |
|
62 | +class MimeType implements RuleInterface { |
|
64 | 63 | /** |
65 | 64 | * The list of allowed uploaded file mime type |
66 | 65 | * @var array<int, string> |
@@ -71,8 +70,7 @@ discard block |
||
71 | 70 | * Create new instance |
72 | 71 | * @param array<int, string>|string $mimeType |
73 | 72 | */ |
74 | - public function __construct(array|string $mimeType) |
|
75 | - { |
|
73 | + public function __construct(array|string $mimeType) { |
|
76 | 74 | if (!is_array($mimeType)) { |
77 | 75 | $mimeType = [$mimeType]; |
78 | 76 | } |
@@ -72,7 +72,7 @@ |
||
72 | 72 | * Create new instance |
73 | 73 | * @param int|string $size |
74 | 74 | */ |
75 | - public function __construct(int|string $size) |
|
75 | + public function __construct(int | string $size) |
|
76 | 76 | { |
77 | 77 | if (is_int($size) === false) { |
78 | 78 | $size = Helper::sizeInBytes($size); |
@@ -60,8 +60,7 @@ discard block |
||
60 | 60 | * @class Size |
61 | 61 | * @package Platine\Upload\Validator\Rule |
62 | 62 | */ |
63 | -class Size implements RuleInterface |
|
64 | -{ |
|
63 | +class Size implements RuleInterface { |
|
65 | 64 | /** |
66 | 65 | * The uploaded file max size |
67 | 66 | * @var int |
@@ -72,8 +71,7 @@ discard block |
||
72 | 71 | * Create new instance |
73 | 72 | * @param int|string $size |
74 | 73 | */ |
75 | - public function __construct(int|string $size) |
|
76 | - { |
|
74 | + public function __construct(int|string $size) { |
|
77 | 75 | if (is_int($size) === false) { |
78 | 76 | $size = Helper::sizeInBytes($size); |
79 | 77 | } |
@@ -59,8 +59,7 @@ |
||
59 | 59 | * @class Required |
60 | 60 | * @package Platine\Upload\Validator\Rule |
61 | 61 | */ |
62 | -class Required implements RuleInterface |
|
63 | -{ |
|
62 | +class Required implements RuleInterface { |
|
64 | 63 | /** |
65 | 64 | * {@inheritdoc} |
66 | 65 | * @see RuleInterface |
@@ -56,8 +56,7 @@ |
||
56 | 56 | * @class FileInterface |
57 | 57 | * @package Platine\Upload\File |
58 | 58 | */ |
59 | -interface FileInterface |
|
60 | -{ |
|
59 | +interface FileInterface { |
|
61 | 60 | /** |
62 | 61 | * Return the path name of uploaded file |
63 | 62 | * @return string |
@@ -56,8 +56,7 @@ |
||
56 | 56 | * @class UploadFileInfo |
57 | 57 | * @package Platine\Upload\File |
58 | 58 | */ |
59 | -class UploadFileInfo |
|
60 | -{ |
|
59 | +class UploadFileInfo { |
|
61 | 60 | /** |
62 | 61 | * The full file name |
63 | 62 | * @var string |