Commit c22bb26d authored by NickWilde's avatar NickWilde

Issue #2807007: phpcs fixes For D8 Release

parent 7be024ce
<?php
/**
* @file
* Drush integration for Views Slideshow.
......
......@@ -7,7 +7,6 @@
use Drupal\Core\Url;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Asset;
use Drupal\Core\Link;
/**
......
......@@ -6,7 +6,6 @@
*/
use Drupal\Component\Utility\Html;
use Drupal\Core\Asset;
/**
* Views Slideshow: Theme the main frame wrapper.
......
......@@ -21,9 +21,9 @@ class ViewsSlideshowSkin extends Plugin {
/**
* The human-readable name of the slideshow skin.
*
* @ingroup plugin_translatable
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $label;
......
......@@ -21,9 +21,9 @@ class ViewsSlideshowType extends Plugin {
/**
* The human-readable name of the slideshow type.
*
* @ingroup plugin_translatable
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $label;
......
......@@ -21,9 +21,9 @@ class ViewsSlideshowWidget extends Plugin {
/**
* The human-readable name of the widget.
*
* @ingroup plugin_translatable
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $label;
......
......@@ -21,9 +21,9 @@ class ViewsSlideshowWidgetType extends Plugin {
/**
* The human-readable name of the widget type.
*
* @ingroup plugin_translatable
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $label;
......
......@@ -2,7 +2,6 @@
namespace Drupal\views_slideshow;
/**
* Provides a class to manipulate addons names.
*/
......@@ -12,7 +11,7 @@ class FormatAddonsName implements FormatAddonsNameInterface {
* Format callback to move from underscore separated words to camelCase.
*/
public function format($subject) {
return preg_replace_callback('/_(.?)/', function($matches) {
return preg_replace_callback('/_(.?)/', function ($matches) {
if (isset($matches[1])) {
return strtoupper($matches[1]);
}
......
......@@ -2,7 +2,6 @@
namespace Drupal\views_slideshow;
/**
* Provides a class for CRUD operations on path aliases.
*/
......
......@@ -275,7 +275,6 @@ class Slideshow extends StylePluginBase {
}
}
// Browse locations and remove the header if no widget is available.
foreach ($location as $location_id => $location_name) {
// If no widget is available, the only key is "header".
......
......@@ -10,6 +10,7 @@ use Drupal\Core\Plugin\DefaultPluginManager;
* Manager for Views Slideshow Type plugins.
*/
class ViewsSlideshowTypePluginManager extends DefaultPluginManager {
/**
* Constructs a new ViewsSlideshowTypePluginManager.
*
......
......@@ -10,6 +10,7 @@ use Drupal\Core\Plugin\DefaultPluginManager;
* Manager for Views Slideshow Widget plugins.
*/
class ViewsSlideshowWidgetPluginManager extends DefaultPluginManager {
/**
* Constructs a new ViewsSlideshowWidgetPluginManager.
*
......@@ -51,4 +52,4 @@ class ViewsSlideshowWidgetPluginManager extends DefaultPluginManager {
return $definitions;
}
}
\ No newline at end of file
}
......@@ -10,6 +10,7 @@ use Drupal\Core\Plugin\DefaultPluginManager;
* Manager for Views Slideshow widget type plugins.
*/
class ViewsSlideshowWidgetTypePluginManager extends DefaultPluginManager {
/**
* Constructs a new ViewsSlideshowWidgetTypePluginManager.
*
......
......@@ -36,9 +36,10 @@ function _views_slideshow_preprocess_views_view_slideshow(&$vars) {
// Make sure the main slideshow settings are defined before building the
// slideshow.
if (empty($main_frame_module)) {
drupal_set_message(t('No main frame module is enabled for views slideshow. '
. 'This is often because another module which Views Slideshow needs is not enabled. '
. 'For example, 3.x needs a module like "Views Slideshow: Cycle" enabled.'), 'error');
drupal_set_message(
t('No main frame module is enabled for views slideshow. This is often because another module which Views Slideshow needs is not enabled. For example, 4.x needs a module like "Views Slideshow: Cycle" enabled.'),
'error'
);
}
elseif (empty($options[$main_frame_module])) {
drupal_set_message(t('The options for @module does not exists.', array('@module' => $main_frame_module)), 'error');
......
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