<NME> StaticMatcher.php
<BEF> <?php

/*
 * This file is part of the Force Login module for Magento2.
 *
 * (c) bitExpert AG
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace BitExpert\ForceCustomerLogin\Helper\Strategy;

use BitExpert\ForceCustomerLogin\Model\WhitelistEntry;

/**
 * Class StaticMatcher
 *
 * @package BitExpert\ForceCustomerLogin\Helper\Strategy
 */
class StaticMatcher implements StrategyInterface
{
    /*
     * Rewrite
     */
    const REWRITE_DISABLED_URL_PREFIX = '/index.php';

    /**+
     * @var string
     */
    private $name;

    /**
     * RegExAllMatcher constructor.
     *
     * @param string $name
     */
    public function __construct($name)
    {
        $this->name = $name;
    }

    /**
     * @inheritDoc
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * @inheritDoc
     */
    public function isMatch($url, WhitelistEntry $rule)
    {
        return ($this->getCanonicalUrl($url) === $this->getCanonicalRule((string)$rule->getUrlRule()));
    }

     */
    private function getCanonicalUrl($url)
    {
        $canonicalUrl = rtrim($url,'/') . '/';
        return str_replace(self::REWRITE_DISABLED_URL_PREFIX, '', $canonicalUrl);
    }

        return str_replace(self::REWRITE_DISABLED_URL_PREFIX, '', $canonicalUrl);
    }

     */
    private function getCanonicalRule($rule)
    {
        return rtrim($rule,'/') . '/';
    }
}
        return rtrim($rule, '/') . '/';
    }
}

<MSG> #73 Fixed code style issue

<DFF> @@ -59,7 +59,7 @@ class StaticMatcher implements StrategyInterface
      */
     private function getCanonicalUrl($url)
     {
-        $canonicalUrl = rtrim($url,'/') . '/';
+        $canonicalUrl = rtrim($url, '/') . '/';
         return str_replace(self::REWRITE_DISABLED_URL_PREFIX, '', $canonicalUrl);
     }
 
@@ -69,6 +69,6 @@ class StaticMatcher implements StrategyInterface
      */
     private function getCanonicalRule($rule)
     {
-        return rtrim($rule,'/') . '/';
+        return rtrim($rule, '/') . '/';
     }
 }

#73 Fixed code style issue