Passed
Push — develop ( 4bd546...1b3676 )
by nguereza
10:36
created
src/Util/Helper.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 Helper
60 60
  * @package Platine\Upload\Util
61 61
  */
62
-class Helper
63
-{
62
+class Helper {
64 63
     /**
65 64
      * Normalize the uploaded files to fit our format
66 65
      *
Please login to merge, or discard this patch.
src/Storage/FileSystem.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,8 +62,7 @@  discard block
 block discarded – undo
62 62
  * @class FileSystem
63 63
  * @package Platine\Upload\Storage
64 64
  */
65
-class FileSystem implements StorageInterface
66
-{
65
+class FileSystem implements StorageInterface {
67 66
     /**
68 67
      * Path to move uploaded files
69 68
      * @var string
@@ -81,8 +80,7 @@  discard block
 block discarded – undo
81 80
      * @param string $path
82 81
      * @param bool $overwrite
83 82
      */
84
-    public function __construct(string $path, bool $overwrite)
85
-    {
83
+    public function __construct(string $path, bool $overwrite) {
86 84
         $this->overwrite = $overwrite;
87 85
         $directory = $this->normalizePath($path);
88 86
 
Please login to merge, or discard this patch.
src/Storage/StorageInterface.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 StorageInterface
60 60
  * @package Platine\Upload\Storage
61 61
  */
62
-interface StorageInterface
63
-{
62
+interface StorageInterface {
64 63
     /**
65 64
      * Move the uploaded file to destination
66 65
      * @param File $file
Please login to merge, or discard this patch.
src/Exception/UploadException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,6 +44,5 @@
 block discarded – undo
44 44
  * @class UploadException
45 45
  * @package Platine\Upload\Exception
46 46
  */
47
-class UploadException extends RuntimeException
48
-{
47
+class UploadException extends RuntimeException {
49 48
 }
Please login to merge, or discard this patch.
src/Exception/StorageException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,6 +42,5 @@
 block discarded – undo
42 42
  * @class StorageException
43 43
  * @package Platine\Upload\Exception
44 44
  */
45
-class StorageException extends UploadException
46
-{
45
+class StorageException extends UploadException {
47 46
 }
Please login to merge, or discard this patch.
src/Upload.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,8 +66,7 @@
 block discarded – undo
66 66
  * @class Upload
67 67
  * @package Platine\Upload
68 68
  */
69
-class Upload
70
-{
69
+class Upload {
71 70
     /**
72 71
      * Upload Storage
73 72
      * @var StorageInterface
Please login to merge, or discard this patch.
src/Validator/Validator.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@  discard block
 block discarded – undo
58 58
  * @class Validator
59 59
  * @package Platine\Upload\Validator
60 60
  */
61
-class Validator
62
-{
61
+class Validator {
63 62
     /**
64 63
      * The validate rules
65 64
      * @var RuleInterface[]
@@ -70,8 +69,7 @@  discard block
 block discarded – undo
70 69
      * Create new instance
71 70
      * @param RuleInterface[] $rules
72 71
      */
73
-    public function __construct(array $rules = [])
74
-    {
72
+    public function __construct(array $rules = []) {
75 73
         $this->rules = $rules;
76 74
     }
77 75
 
Please login to merge, or discard this patch.
src/Validator/RuleInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@
 block discarded – undo
58 58
  * @class RuleInterface
59 59
  * @package Platine\Upload\Validator
60 60
  */
61
-interface RuleInterface
62
-{
61
+interface RuleInterface {
63 62
     /**
64 63
      * Method to validate this Rule
65 64
      *
Please login to merge, or discard this patch.
src/Validator/Rule/Extension.php 1 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 Extension
60 60
  * @package Platine\Upload\Validator\Rule
61 61
  */
62
-class Extension implements RuleInterface
63
-{
62
+class Extension implements RuleInterface {
64 63
     /**
65 64
      * The list of allowed/forbidden extensions
66 65
      * @var array<int, string>
@@ -78,8 +77,7 @@  discard block
 block discarded – undo
78 77
      * @param array<int, string>|string $extensions
79 78
      * @param bool $exclude
80 79
      */
81
-    public function __construct(array|string $extensions, bool $exclude = false)
82
-    {
80
+    public function __construct(array|string $extensions, bool $exclude = false) {
83 81
         if (!is_array($extensions)) {
84 82
             $extensions = [$extensions];
85 83
         }
Please login to merge, or discard this patch.