Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
e518eacb
Commit
e518eacb
authored
Mar 12, 2015
by
Joas Schilling
Browse files
Add more type hinting
parent
1a1dc9b3
Changes
4
Show whitespace changes
Inline
Side-by-side
lib/private/preview/provider.php
View file @
e518eacb
...
@@ -26,7 +26,7 @@ abstract class Provider implements IProvider {
...
@@ -26,7 +26,7 @@ abstract class Provider implements IProvider {
* @param \OCP\Files\FileInfo $file
* @param \OCP\Files\FileInfo $file
* @return bool
* @return bool
*/
*/
public
function
isAvailable
(
$file
)
{
public
function
isAvailable
(
\
OCP\Files\FileInfo
$file
)
{
return
true
;
return
true
;
}
}
...
...
lib/private/preview/txt.php
View file @
e518eacb
...
@@ -18,7 +18,7 @@ class TXT extends Provider {
...
@@ -18,7 +18,7 @@ class TXT extends Provider {
/**
/**
* {@inheritDoc}
* {@inheritDoc}
*/
*/
public
function
isAvailable
(
$file
)
{
public
function
isAvailable
(
\
OCP\Files\FileInfo
$file
)
{
return
$file
->
getSize
()
>
5
;
return
$file
->
getSize
()
>
5
;
}
}
...
...
lib/public/ipreview.php
View file @
e518eacb
...
@@ -41,7 +41,7 @@ interface IPreview {
...
@@ -41,7 +41,7 @@ interface IPreview {
* In order to improve lazy loading a closure can be registered which will be
* In order to improve lazy loading a closure can be registered which will be
* called in case preview providers are actually requested
* called in case preview providers are actually requested
*
*
* $callable has to return an instance of \OC\Preview\Provider
* $callable has to return an instance of \OC
P
\Preview\
I
Provider
*
*
* @param string $mimeTypeRegex Regex with the mime types that are supported by this provider
* @param string $mimeTypeRegex Regex with the mime types that are supported by this provider
* @param \Closure $callable
* @param \Closure $callable
...
...
lib/public/preview/iprovider.php
View file @
e518eacb
...
@@ -23,7 +23,7 @@ interface IProvider {
...
@@ -23,7 +23,7 @@ interface IProvider {
* @param \OCP\Files\FileInfo $file
* @param \OCP\Files\FileInfo $file
* @return bool
* @return bool
*/
*/
public
function
isAvailable
(
$file
);
public
function
isAvailable
(
\
OCP\Files\FileInfo
$file
);
/**
/**
* get thumbnail for file at path $path
* get thumbnail for file at path $path
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment