mirror of
https://github.com/Chouchen/Shikiryu_Backup.git
synced 2026-09-24 16:03:54 +02:00
💚 Fix with PHPCS
This commit is contained in:
1 parent
ee0e59d9b3
commit
c3a44ae390
15 files changed
+9
-9
No files matched your search
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Shikiryu\Backup\Transport;
|
||||
|
||||
use Shikiryu\Backup\Backup\BackupAbstract;
|
||||
|
||||
class Factory
|
||||
{
|
||||
/**
|
||||
*
|
||||
* @param BackupAbstract $backup
|
||||
* @param array $config
|
||||
*
|
||||
* @return TransportAbstract|null
|
||||
*/
|
||||
public static function build(BackupAbstract $backup, array $config)
|
||||
{
|
||||
$class = __NAMESPACE__.'\\'.array_keys($config)[0];
|
||||
if (class_exists($class)) {
|
||||
return new $class($backup, array_values($config)[0]);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user