more style fixes
This commit is contained in:
parent
6b90416891
commit
1e252b6763
8 changed files with 10 additions and 9 deletions
|
@ -8,7 +8,7 @@
|
|||
*/
|
||||
namespace OC\Preview;
|
||||
|
||||
class Image extends Provider{
|
||||
class Image extends Provider {
|
||||
|
||||
public function getMimeType() {
|
||||
return '/image\/.*/';
|
||||
|
|
|
@ -9,7 +9,8 @@
|
|||
namespace OC\Preview;
|
||||
|
||||
if(!is_null(shell_exec('ffmpeg -version'))) {
|
||||
class Movie extends Provider{
|
||||
|
||||
class Movie extends Provider {
|
||||
|
||||
public function getMimeType() {
|
||||
return '/video\/.*/';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php
|
||||
Provider{<?php
|
||||
/**
|
||||
* Copyright (c) 2013 Georg Ehrke georg@ownCloud.com
|
||||
* This file is licensed under the Affero General Public License version 3 or
|
||||
|
@ -9,7 +9,7 @@ namespace OC\Preview;
|
|||
|
||||
require_once('getid3/getid3.php');
|
||||
|
||||
class MP3 extends Provider{
|
||||
class MP3 extends Provider {
|
||||
|
||||
public function getMimeType() {
|
||||
return '/audio\/mpeg/';
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace OC\Preview;
|
|||
|
||||
if (extension_loaded('imagick')) {
|
||||
|
||||
class PDF extends Provider{
|
||||
class PDF extends Provider {
|
||||
|
||||
public function getMimeType() {
|
||||
return '/application\/pdf/';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*/
|
||||
namespace OC\Preview;
|
||||
|
||||
abstract class Provider{
|
||||
abstract class Provider {
|
||||
private $options;
|
||||
|
||||
public function __construct($options) {
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace OC\Preview;
|
|||
|
||||
if (extension_loaded('imagick')) {
|
||||
|
||||
class SVG extends Provider{
|
||||
class SVG extends Provider {
|
||||
|
||||
public function getMimeType() {
|
||||
return '/image\/svg\+xml/';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
namespace OC\Preview;
|
||||
|
||||
class TXT extends Provider{
|
||||
class TXT extends Provider {
|
||||
|
||||
public function getMimeType() {
|
||||
return '/text\/.*/';
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
*/
|
||||
namespace OC\Preview;
|
||||
|
||||
class Unknown extends Provider{
|
||||
class Unknown extends Provider {
|
||||
|
||||
public function getMimeType() {
|
||||
return '/.*/';
|
||||
|
|
Loading…
Reference in a new issue