Passed
Push — develop ( 1b3676...3dc6e9 )
by nguereza
01:55
created
src/Validator/Rule/UploadError.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Validator/Rule/MimeType.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
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];
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Validator/Rule/Size.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Validator/Rule/Required.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/File/FileInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/File/UploadFileInfo.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.