Skip to content
Snippets Groups Projects
Commit 7b46b3dd authored by git's avatar git Committed by Yas Naoi
Browse files

Issue #3016016 by shidat, yas, Xiaohua Guan: Comply with Drupal code standard...

Issue #3016016 by shidat, yas, Xiaohua Guan: Comply with Drupal code standard (2): No PHP code tag, No blank line following inline comment, dependencies prefixed project, concat surrounded, PHP open tag, Expected one blank line after function, Visibility declared on method
parent d94bf86e
No related branches found
No related tags found
No related merge requests found
Showing
with 11 additions and 23 deletions
......@@ -2,6 +2,6 @@ name: Cloud Server Template
description: 'Allow to pre-configure servers by starting from a base image.'
package: Cloud
dependencies:
- cloud
- cloud:cloud
core: 8.x
type: module
......@@ -10,5 +10,4 @@ use Drupal\content_translation\ContentTranslationHandler;
class CloudServerTemplateTranslationHandler extends ContentTranslationHandler {
// Override here the needed methods from ContentTranslationHandler.
}
......@@ -225,4 +225,5 @@ class CloudServerTemplateController extends ControllerBase implements ContainerI
\Drupal::moduleHandler()->invokeAll('cloud_server_template_post_launch_redirect_alter', [&$redirect_route, $cloud_server_template]);
return $this->redirect($redirect_route['route_name'], isset($redirect_route['params']) ? $redirect_route['params']: []);
}
}
......@@ -4,7 +4,6 @@
// Updated by yas 2015/06/01
// Updated by yas 2015/05/31
// Created by yas 2015/05/30.
namespace Drupal\cloud_server_template\Controller;
use Drupal\cloud\Controller\CloudContentListBuilder;
......
......@@ -335,4 +335,5 @@ class CloudServerTemplate extends RevisionableContentEntityBase implements Cloud
\Drupal::service('router.builder')->rebuild();
\Drupal::service('plugin.cache_clearer')->clearCachedDefinitions();
}
}
......@@ -16,7 +16,6 @@ use Drupal\user\EntityOwnerInterface;
interface CloudServerTemplateInterface extends ContentEntityInterface, RevisionLogInterface, EntityChangedInterface, EntityOwnerInterface, CloudContextInterface {
// Add get/set methods for your configuration properties here.
/**
* Gets the Cloud Server Template name.
*
......@@ -114,5 +113,4 @@ interface CloudServerTemplateInterface extends ContentEntityInterface, RevisionL
*/
public function setRevisionUserId($uid);
}
......@@ -17,7 +17,6 @@ class CloudServerTemplateViewsData extends EntityViewsData {
// Additional information for Views integration, such as table joins, can be
// put here.
return $data;
}
......
......@@ -91,4 +91,5 @@ class CloudServerTemplatePluginManager extends DefaultPluginManager implements C
$plugin = $this->loadPluginVariant($cloud_server_template->cloud_context());
return $plugin->launch($cloud_server_template, $form_state);
}
}
......@@ -62,4 +62,5 @@ class CloudServerTemplateCloudContextBundleDeriver extends DeriverBase implement
}
return $this->derivatives;
}
}
......@@ -66,4 +66,5 @@ class CloudServerTemplateMenuLinks extends DeriverBase implements ContainerDeriv
}
return $this->derivatives;
}
}
<?php
namespace Drupal\cloud_server_template\Plugin\Derivative;
use Drupal\Core\Menu\LocalTaskDefault;
......@@ -17,4 +16,5 @@ class CloudServerTemplateTab extends LocalTaskDefault {
$parameters['cloud_context'] = $template->cloud_context();
return $parameters;
}
}
......@@ -20,7 +20,6 @@ class CloudServerTemplateTypeHtmlRouteProvider extends AdminHtmlRouteProvider {
$collection = parent::getRoutes($entity_type);
// Provide your custom entity routes here.
return $collection;
}
......
......@@ -6,7 +6,6 @@
// Updated by yas 2016/05/24
// Updated by yas 2016/05/23
// Ureated by yas 2015/06/08.
namespace Drupal\Tests\cloud_server_template\Functional;
use Drupal\Component\Utility\Random;
......@@ -294,4 +293,5 @@ class CloudServerTemplateTest extends AwsCloudTestCase {
$image->setImageId($image_id);
$image->save();
}
}
......@@ -5,8 +5,8 @@ dependencies:
- drupal:views
- drupal:options
- drupal:user
- cloud
- cloud_server_template
- cloud:cloud
- cloud:cloud_server_template
# core: 8.x
# version: 8.x-1.x
# project: cloud
......
......@@ -77,5 +77,4 @@ interface ApiControllerInterface {
*/
public function updateSnapshotList($cloud_context);
}
......@@ -15,7 +15,6 @@
// Updated by yas 2016/05/11
// Updated by yas 2016/05/10
// Created by yas 2016/04/19.
namespace Drupal\aws_cloud\Aws\Ec2;
use Drupal\Core\Entity\ContentEntityInterface;
......@@ -28,7 +27,6 @@ use Drupal\user\EntityOwnerInterface;
*/
interface ElasticIpInterface extends ContentEntityInterface, EntityOwnerInterface {
// Add get/set methods for your configuration properties here.
/**
* {@inheritdoc}
*/
......
......@@ -12,7 +12,6 @@
// Updated by yas 2016/05/25
// Updated by yas 2016/05/18
// Created by yas 2016/04/19.
namespace Drupal\aws_cloud\Aws\Ec2;
use Drupal\Core\Entity\ContentEntityInterface;
......@@ -25,7 +24,6 @@ use Drupal\user\EntityOwnerInterface;
*/
interface ImageInterface extends ContentEntityInterface, EntityOwnerInterface {
// Add get/set methods for your configuration properties here.
/**
* {@inheritdoc}
*/
......
......@@ -14,7 +14,6 @@
// Updated by yas 2016/05/19
// Updated by yas 2016/05/18
// Created by yas 2016/04/18.
namespace Drupal\aws_cloud\Aws\Ec2;
use Drupal\Core\Entity\ContentEntityInterface;
......@@ -27,7 +26,6 @@ use Drupal\user\EntityOwnerInterface;
*/
interface InstanceInterface extends ContentEntityInterface, EntityOwnerInterface {
// Add get/set methods for your configuration properties here.
/**
* {@inheritdoc}
*/
......@@ -298,7 +296,6 @@ interface InstanceInterface extends ContentEntityInterface, EntityOwnerInterface
*/
public function setInstanceId($instance_id = '');
/**
* {@inheritdoc}
*/
......
......@@ -13,7 +13,6 @@
// Updated by yas 2016/05/18
// Updated by yas 2016/05/11
// Created by yas 2016/04/19.
namespace Drupal\aws_cloud\Aws\Ec2;
use Drupal\Core\Entity\ContentEntityInterface;
......@@ -27,7 +26,6 @@ use Drupal\user\EntityOwnerInterface;
*/
interface KeyPairInterface extends ContentEntityInterface, EntityOwnerInterface {
// Add get/set methods for your configuration properties here.
/**
* {@inheritdoc}
*/
......@@ -92,4 +90,5 @@ interface KeyPairInterface extends ContentEntityInterface, EntityOwnerInterface
* {@inheritdoc}
*/
public function saveKeyFile($key);
}
......@@ -13,7 +13,6 @@
// Updated by yas 2016/05/11
// Updated by yas 2016/05/10
// Created by yas 2016/04/19.
namespace Drupal\aws_cloud\Aws\Ec2;
use Drupal\Core\Entity\ContentEntityInterface;
......@@ -26,7 +25,6 @@ use Drupal\user\EntityOwnerInterface;
*/
interface SecurityGroupInterface extends ContentEntityInterface, EntityOwnerInterface {
// Add get/set methods for your configuration properties here.
/**
* {@inheritdoc}
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment