Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / views / src / Views.php
index 9962d38d574dd1d25aefc2eb84675f96f43349ca..dd241f714b602507c356ee5fca23cf5872c229e7 100644 (file)
@@ -283,8 +283,8 @@ class Views {
    *   Filters the views on status. Can either be 'all' (default), 'enabled' or
    *   'disabled'
    * @param mixed $exclude_view
-   *   view or current display to exclude
-   *   either a
+   *   View or current display to exclude.
+   *   Either a:
    *   - views object (containing $exclude_view->storage->name and $exclude_view->current_display)
    *   - views name as string:  e.g. my_view
    *   - views name and display id (separated by ':'): e.g. my_view:default
@@ -512,7 +512,7 @@ class Views {
       throw new \Exception('Invalid plugin type used. Valid types are "plugin" or "handler".');
     }
 
-    return array_keys(array_filter(static::$plugins, function($plugin_type) use ($type) {
+    return array_keys(array_filter(static::$plugins, function ($plugin_type) use ($type) {
       return $plugin_type == $type;
     }));
   }