@@ -55,8 +55,7 @@ |
||
55 | 55 | * Class Required |
56 | 56 | * @package Platine\Upload\Validator\Rule |
57 | 57 | */ |
58 | -class Required implements RuleInterface |
|
59 | -{ |
|
58 | +class Required implements RuleInterface { |
|
60 | 59 | /** |
61 | 60 | * {@inheritdoc} |
62 | 61 | * @see RuleInterface |
@@ -54,8 +54,7 @@ |
||
54 | 54 | * Class RuleInterface |
55 | 55 | * @package Platine\Upload\Validator |
56 | 56 | */ |
57 | -interface RuleInterface |
|
58 | -{ |
|
57 | +interface RuleInterface { |
|
59 | 58 | |
60 | 59 | /** |
61 | 60 | * Method to validate this Rule |
@@ -54,8 +54,7 @@ discard block |
||
54 | 54 | * Class Validator |
55 | 55 | * @package Platine\Upload\Validator |
56 | 56 | */ |
57 | -class Validator |
|
58 | -{ |
|
57 | +class Validator { |
|
59 | 58 | |
60 | 59 | /** |
61 | 60 | * The validate rules |
@@ -67,8 +66,7 @@ discard block |
||
67 | 66 | * Create new instance |
68 | 67 | * @param array<int, RuleInterface> $rules |
69 | 68 | */ |
70 | - public function __construct(array $rules = []) |
|
71 | - { |
|
69 | + public function __construct(array $rules = []) { |
|
72 | 70 | $this->rules = $rules; |
73 | 71 | } |
74 | 72 |
@@ -58,8 +58,7 @@ discard block |
||
58 | 58 | * Class FileSystem |
59 | 59 | * @package Platine\Upload\Storage |
60 | 60 | */ |
61 | -class FileSystem implements StorageInterface |
|
62 | -{ |
|
61 | +class FileSystem implements StorageInterface { |
|
63 | 62 | |
64 | 63 | /** |
65 | 64 | * Path to move uploaded files |
@@ -78,8 +77,7 @@ discard block |
||
78 | 77 | * @param string $path |
79 | 78 | * @param bool $overwrite |
80 | 79 | */ |
81 | - public function __construct(string $path, bool $overwrite) |
|
82 | - { |
|
80 | + public function __construct(string $path, bool $overwrite) { |
|
83 | 81 | $this->overwrite = $overwrite; |
84 | 82 | $directory = $this->normalizePath($path); |
85 | 83 |
@@ -55,8 +55,7 @@ |
||
55 | 55 | * Class StorageInterface |
56 | 56 | * @package Platine\Upload\Storage |
57 | 57 | */ |
58 | -interface StorageInterface |
|
59 | -{ |
|
58 | +interface StorageInterface { |
|
60 | 59 | |
61 | 60 | /** |
62 | 61 | * Move the uploaded file to destination |