Commit 297a7e27 authored by Stephen Mustgrave's avatar Stephen Mustgrave
Browse files

Issue #3321367: Drupal Coding Standard.

parent 0fd5dc3a
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -27,7 +27,8 @@ module should not be used on production sites.
Required.
```php
// Origin - no trailing slash.
$config['stage_file_proxy.settings']['origin'] = 'http://example.com';  // no trailing slash
$config['stage_file_proxy.settings']['origin'] = 'http://example.com';
// no trailing slash
```
Drush variable set:
```bash
@@ -40,11 +41,13 @@ special characters.
For example, setting a user name of "myusername" and password as, "letme&in" the
configuration would be the following:
```php
$config['stage_file_proxy.settings']['origin'] = 'http://myusername:letme%26in@example.com';
$config['stage_file_proxy.settings']['origin'] =
'http://myusername:letme%26in@example.com';
```
Drush variable set:
```bash
drush config-set stage_file_proxy.settings origin http://myusername:letme%26in@example.com
drush config-set stage_file_proxy.settings origin
http://myusername:letme%26in@example.com
```

### SSL verification
+5 −0
Original line number Diff line number Diff line
@@ -20,6 +20,11 @@ use Symfony\Component\HttpKernel\Exception\ServiceUnavailableHttpException;
 */
final class ImageStyleDownloadController implements ContainerInjectionInterface {

  /**
   * The decorated used to decorate the images.
   *
   * @var \Drupal\image\Controller\ImageStyleDownloadController
   */
  private CoreImageStyleDownloadController $decorated;

  /**
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ namespace Drupal\stage_file_proxy\EventDispatcher;
use Symfony\Contracts\EventDispatcher\Event;

/**
 * Class AlterExcludedPathsEvent.
 * Class of AlterExcludedPathsEvent.
 *
 * @package Drupal\stage_file_proxy\EventDispatcher
 */
+0 −2
Original line number Diff line number Diff line
@@ -19,8 +19,6 @@ class ImageDownloadControllerSubscriber implements EventSubscriberInterface {
   *
   * @param \Drupal\Core\Routing\RouteBuildEvent $event
   *   The event containing the route being built.
   *
   * @return void
   */
  public function onAlterDecorateController(RouteBuildEvent $event): void {
    $to_alter = [
+0 −1
Original line number Diff line number Diff line
@@ -153,7 +153,6 @@ class ProxySubscriber implements EventSubscriberInterface {
    $paths = [$relative_path];

    // Webp support.
    $is_webp = FALSE;
    if (str_ends_with($relative_path, '.webp')) {
      $paths[] = str_replace('.webp', '', $relative_path);
    }
Loading