Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
297
Merge Requests
42
CI / CD
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
f8fddc82
Commit
f8fddc82
authored
4 hours ago
by
Guy Thouret
Browse files
Options
Download
(chore) Lint new File class -
#1120
parent
8a44ae34
fix/1120-thumbnail-oom
1 merge request
!397
WIP: Memory efficient method of getting Mime Types
Pipeline
#95608766
passed with stages
in 7 minutes and 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Core/File.php
View file @
f8fddc82
...
...
@@ -18,7 +18,7 @@ class File
protected
static
function
getType
(
&
$data
,
int
$type
)
:
string
{
$header
=
substr
(
$data
,
0
,
self
::
HEADER_LENGTH
);
$header
=
substr
(
$data
,
0
,
self
::
HEADER_LENGTH
);
$finfo
=
new
\finfo
(
$type
);
$type
=
$finfo
->
buffer
(
$header
);
unset
(
$finfo
);
...
...
This diff is collapsed.
Please
register
or
sign in
to comment