mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-01-27 08:18:41 +00:00
phpcs fixes
This commit is contained in:
parent
3177d6a4dc
commit
cb8c1fa8ef
|
|
@ -46,7 +46,7 @@ final class Installer extends InstallerAbstract
|
|||
*/
|
||||
public static function installExternal(DatabasePool $dbPool, array $data) : void
|
||||
{
|
||||
try {
|
||||
try {
|
||||
$dbPool->get()->con->query('select 1 from `media`');
|
||||
} catch (\Exception $e) {
|
||||
return; // @codeCoverageIgnore
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ class Collection extends Media implements \Iterator
|
|||
{
|
||||
$current = \current($this->sources);
|
||||
|
||||
return $current === false ? $this : $current ;
|
||||
return $current === false ? $this : $current;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ $fileIconFunction = function (int $extensionType) : string
|
|||
} elseif ($extensionType === ExtensionType::TEXT) {
|
||||
return 'file-text';
|
||||
} elseif ($extensionType === ExtensionType::PRESENTATION) {
|
||||
return 'file-powerpoint';
|
||||
return 'file-powerpoint';
|
||||
} elseif ($extensionType === ExtensionType::PDF) {
|
||||
return 'file-pdf';
|
||||
} elseif ($extensionType === ExtensionType::ARCHIVE) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user