Passed
Push — develop ( a949e6...03023c )
by Eric
02:16
created
src/Mapping/Builder.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,9 @@
 block discarded – undo
50 50
      * @param MimeTypeMap $mapping An associative array containing two entries.
51 51
      *                             See `MimeTypes` constructor for details.
52 52
      */
53
-    private function __construct(protected array $mapping) {}
53
+    private function __construct(protected array $mapping)
54
+    {
55
+}
54 56
 
55 57
     #[\Override]
56 58
     public function add(string $mime, string $extension, bool $prependExtension = true, bool $prependMime = true): void
Please login to merge, or discard this patch.
src/MimeTypes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
     /**
64 64
      * @var ?MimeTypeMap The cached built-in mapping array.
65 65
      */
66
-    private static ?array $builtIn = null;
66
+    private static ? array $builtIn = null;
67 67
 
68 68
     /**
69 69
      * Create a new mime types instance with the given mappings.
Please login to merge, or discard this patch.
src/Mapping/Generator.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,9 @@
 block discarded – undo
78 78
      *
79 79
      * @param non-empty-string $mimeTypesText The text from the mime.types file.
80 80
      */
81
-    public function __construct(protected string $mimeTypesText) {}
81
+    public function __construct(protected string $mimeTypesText)
82
+    {
83
+}
82 84
 
83 85
     /**
84 86
      * Generate the JSON from the mapCache.
Please login to merge, or discard this patch.
src/Interface/BuilderInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
      *
74 74
      * @return false|int The number of bytes that were written to the file, or false on failure.
75 75
      */
76
-    public function save(string $file, int $flags = 0, mixed $context = null): false|int;
76
+    public function save(string $file, int $flags = 0, mixed $context = null): false | int;
77 77
 
78 78
     /**
79 79
      * Create a new mapping builder based on types from a file.
Please login to merge, or discard this patch.