for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ChinLeung\MultilingualRoutes\Macros;
use Closure;
class RequestMacros
{
/**
* Determine if the route name matches a given pattern in the current
* locale.
*
* @param mixed ...$patterns
* @return \Closure
*/
public function localizedRouteIs(): Closure
return function (...$patterns) {
return $this->routeIs(array_map(function ($pattern) {
routeIs()
ChinLeung\MultilingualRoutes\Macros\RequestMacros
localizedRouteIs()
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.
return locale().".{$pattern}";
}, $patterns));
};
}
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.