Commit c0a6615c authored by DamienMcKenna's avatar DamienMcKenna Committed by DamienMcKenna

Issue #2935402 by DamienMcKenna, ikit-claw: Further improve coding standards compliance (D8)

parent 4482f601
......@@ -7,6 +7,8 @@ Backup and Migrate 8.x-4.x-dev, xxxx-xx-xx
#2947219 by bryrock, PhilY, Alex Andrascu: Timestamp no more uses site timezone.
#2962548 by mattshoaf, Alex Andrascu: Depends on Core Entity module.
#2992448 by Pasqualle, riddhi.addweb: Warning after install.
#2935402 by DamienMcKenna, ikit-claw: Further improve coding standards
compliance.
Backup and Migrate 8.x-4.0, 2018-03-29
......
<?php
/**
* @file
*/
namespace BackupMigrate\Drupal\Config;
use BackupMigrate\Core\Config\ConfigInterface;
......
<?php
/**
* @file
*/
namespace Drupal\backup_migrate\Controller;
use BackupMigrate\Core\Destination\DestinationInterface;
......
<?php
/**
* @file
*/
namespace Drupal\backup_migrate\Controller;
use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
......
<?php
/**
* @file
*/
namespace Drupal\backup_migrate\Controller;
use Drupal\backup_migrate\Entity\Schedule;
......
<?php
/**
* @file
*/
namespace Drupal\backup_migrate\Controller;
use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
......
<?php
/**
* @file
*/
namespace Drupal\backup_migrate\Controller;
use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
......
<?php
/**
* @file
*/
namespace BackupMigrate\Drupal\Destination;
use \BackupMigrate\Core\Destination\BrowserDownloadDestination;
......
<?php
/**
* @file
*/
namespace BackupMigrate\Drupal\Destination;
use BackupMigrate\Core\Destination\ReadableDestinationInterface;
......
<?php
/**
* @file
*/
namespace BackupMigrate\Drupal\Destination;
use BackupMigrate\Core\Destination\DirectoryDestination;
......
<?php
/**
* @file
*/
namespace Drupal\backup_migrate\Entity;
use Drupal\backup_migrate\DestinationInterface;
......
<?php
/**
* @file
*/
namespace Drupal\backup_migrate\Entity;
use BackupMigrate\Core\Config\Config;
......
<?php
/**
* @file
*/
namespace Drupal\backup_migrate\Entity;
use BackupMigrate\Core\Config\Config;
......
<?php
/**
* @file
*/
namespace Drupal\backup_migrate\Entity;
/**
......
<?php
/**
* @file
*/
namespace Drupal\backup_migrate\Entity;
use Drupal\Component\Plugin\PluginManagerInterface;
......
<?php
/**
* @file
*/
namespace BackupMigrate\Drupal\EntityPlugins\Annotation;
use Drupal\Component\Annotation\Plugin;
......
<?php
/**
* @file
*/
namespace BackupMigrate\Drupal\EntityPlugins\Annotation;
use Drupal\Component\Annotation\Plugin;
......
<?php
/**
* @file
*/
namespace BackupMigrate\Drupal\EntityPlugins;
use BackupMigrate\Core\Main\BackupMigrateInterface;
......
<?php
/**
* @file
*/
namespace BackupMigrate\Drupal\EntityPlugins;
/**
......
<?php
/**
* @file
*/
namespace BackupMigrate\Drupal\EntityPlugins;
use Drupal\Core\Cache\CacheBackendInterface;
......
<?php
/**
* @file
*/
namespace BackupMigrate\Drupal\EntityPlugins;
use BackupMigrate\Core\Main\BackupMigrateInterface;
......
<?php
/**
* @file
*/
namespace BackupMigrate\Drupal\EntityPlugins;
/**
......
<?php
/**
* @file
*/
namespace BackupMigrate\Drupal\EntityPlugins;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\DefaultPluginManager;
/**
* Class SourcePluginManager.
*
......
<?php
/**
* @file
*/
namespace BackupMigrate\Drupal\EntityPlugins;
use BackupMigrate\Core\Config\Config;
......
<?php
/**
* @file
*/
namespace BackupMigrate\Drupal\EntityPlugins;
use BackupMigrate\Core\Main\BackupMigrateInterface;
......
<?php
/**
* @file
*/
namespace BackupMigrate\Drupal\Environment;
use BackupMigrate\Core\Environment\EnvironmentBase;
......
<?php
/**
* @file
*/
namespace BackupMigrate\Drupal\Environment;
use Psr\Log\AbstractLogger;
......
<?php
/**
* @file
*/
namespace BackupMigrate\Drupal\File;
use \BackupMigrate\Core\File\TempFileAdapter;
......@@ -24,7 +28,7 @@ class DrupalTempFileAdapter extends TempFileAdapter implements TempFileAdapterIn
* Construct a manager.
*
* @param \Drupal\Core\File\FileSystem $filesystem
* A file path or stream URL for the temp directory
* A file path or stream URL for the temp directory.
* @param string $dir
* The directory to save to.
* @param string $prefix
......
<?php
/**
* @file
*/
namespace BackupMigrate\Drupal\Filter;
use BackupMigrate\Core\Config\Config;
......
<?php
/**
* @file
*/
namespace BackupMigrate\Drupal\Filter;
use BackupMigrate\Core\Exception\BackupMigrateException;
......
<?php
/**
* @file
*/
namespace Drupal\backup_migrate\Form;
use Drupal\backup_migrate\Entity\Destination;
......
<?php
/**
* @file
*/
namespace Drupal\backup_migrate\Form;
use BackupMigrate\Drupal\Config\DrupalConfigHelper;
......
<?php
/**
* @file
*/
namespace Drupal\backup_migrate\Form;
use BackupMigrate\Drupal\Config\DrupalConfigHelper;
......@@ -27,7 +31,7 @@ class BackupMigrateQuickBackupForm extends FormBase {
// Theme the form if we want it inline.
// @FIXME
// $form['#theme'] = 'backup_migrate_ui_manual_quick_backup_form_inline';
// $form['#theme'] = 'backup_migrate_ui_manual_quick_backup_form_inline';.
$bam = backup_migrate_get_service_object();
$form['quickbackup'] = [
......@@ -43,11 +47,11 @@ class BackupMigrateQuickBackupForm extends FormBase {
$form['quickbackup']['settings_profile_id'] = DrupalConfigHelper::getSettingsProfileSelector(t('Settings Profile'));
unset($form['quickbackup']['destination_id']['#options']['upload']);
// Create the service
// $bam = backup_migrate_get_service_object();
// $bam->setConfig($config);
// $bam->plugins()->get('namer')->confGet('filename');
// $form['quickbackup']['source_id'] = _backup_migrate_get_source_pulldown(\Drupal::config('backup_migrate.settings')->get('backup_migrate_source_id'));
// $form['quickbackup']['destination'] = _backup_migrate_get_destination_pulldown('manual backup', \Drupal::config('backup_migrate.settings')->get('backup_migrate_destination_id'), \Drupal::config('backup_migrate.settings')->get('backup_migrate_copy_destination_id'));
// $bam = backup_migrate_get_service_object();
// $bam->setConfig($config);
// $bam->plugins()->get('namer')->confGet('filename');
// $form['quickbackup']['source_id'] = _backup_migrate_get_source_pulldown(\Drupal::config('backup_migrate.settings')->get('backup_migrate_source_id'));.
// $form['quickbackup']['destination'] = _backup_migrate_get_destination_pulldown('manual backup', \Drupal::config('backup_migrate.settings')->get('backup_migrate_destination_id'), \Drupal::config('backup_migrate.settings')->get('backup_migrate_copy_destination_id'));.
$form['quickbackup']['submit'] = [
'#type' => 'submit',
'#value' => $this->t('Backup now'),
......
<?php
/**
* @file
*/
namespace Drupal\backup_migrate\Form;
use BackupMigrate\Drupal\Config\DrupalConfigHelper;
......
<?php
/**
* @file
*/
namespace Drupal\backup_migrate\Form;
use BackupMigrate\Drupal\Config\DrupalConfigHelper;
......
<?php
/**
* @file
*/
namespace Drupal\backup_migrate\Form;
use Drupal\Core\Form\FormStateInterface;
......
<?php
/**
* @file
*/
namespace Drupal\backup_migrate\Form;
use Drupal\Core\Entity\EntityConfirmFormBase;
......
<?php
/**
* @file
*/
namespace Drupal\backup_migrate\Form;
use Drupal\Core\Entity\EntityConfirmFormBase;
......
<?php
/**
* @file
*/
namespace Drupal\backup_migrate\Form;
use BackupMigrate\Drupal\Config\DrupalConfigHelper;
......
<?php
/**
* @file
*/
namespace Drupal\backup_migrate\Form;
use Drupal\Core\Entity\EntityConfirmFormBase;
......
<?php
/**
* @file
*/
namespace Drupal\backup_migrate\Form;
use BackupMigrate\Drupal\Config\DrupalConfigHelper;
......
<?php
/**
* @file
*/
namespace Drupal\backup_migrate\Form;
use Drupal\Core\Form\FormStateInterface;
......
<?php
/**
* @file
*/
namespace Drupal\backup_migrate\Form;
use BackupMigrate\Drupal\Config\DrupalConfigHelper;
......
<?php
/**
* @file
*/
namespace Drupal\backup_migrate\Plugin\BackupMigrateDestination;
use BackupMigrate\Drupal\EntityPlugins\DestinationPluginBase;
......
<?php
/**
* @file
*/
namespace Drupal\backup_migrate\Plugin\BackupMigrateSource;
use BackupMigrate\Core\Config\Config;
......
<?php
/**
* @file
*/
namespace Drupal\backup_migrate\Plugin\BackupMigrateSource;
use BackupMigrate\Core\Config\Config;
......
<?php
/**
* @file
*/
namespace Drupal\backup_migrate\Plugin\BackupMigrateSource;
use BackupMigrate\Core\Config\Config;
......
<?php
/**
* @file
*/
namespace Drupal\backup_migrate\Plugin\BackupMigrateSource;
use BackupMigrate\Drupal\EntityPlugins\SourcePluginBase;
......
<?php
/**
* @file
*/
namespace Drupal\backup_migrate\Plugin\BackupMigrateSource;
use BackupMigrate\Drupal\EntityPlugins\SourcePluginBase;
......
<?php
/**
* @file
*/
namespace Drupal\backup_migrate;
use Drupal\Core\Config\Entity\ConfigEntityInterface;
......@@ -9,4 +13,6 @@ use Drupal\Core\Config\Entity\ConfigEntityInterface;
*/
interface SettingsProfileInterface extends ConfigEntityInterface {
// Add get/set methods for your configuration properties here.
}
<?php
/**
* @file
*/
namespace BackupMigrate\Drupal\Source;
use BackupMigrate\Core\Config\Config;
......
<?php
/**
* @file
*/
namespace BackupMigrate\Drupal\Source;
use BackupMigrate\Core\Plugin\FileProcessorTrait;
......
<?php
/**
* @file
*/
namespace Drupal\Tests\backup_migrate\Functional;
use Drupal\Tests\BrowserTestBase;
......
<?php
/**
* @file
*/
namespace Drupal\Tests\backup_migrate\Functional;
use Drupal\Tests\BrowserTestBase;
......
<?php
/**
* @file
*/
namespace Drupal\Tests\backup_migrate\Functional;
use Drupal\Tests\BrowserTestBase;
......
<?php
/**
* @file
*/
namespace Drupal\Tests\backup_migrate\Functional;
use Drupal\Tests\BrowserTestBase;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment