for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Propaganistas\LaravelIntl;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Config;
class Date
{
/**
* @var \Jenssegers\Date\Date
*/
protected $date;
* Date constructor.
public function __construct()
$this->date = \Jenssegers\Date\Date::make();
$this->setLocale(App::getLocale());
setLocale()
Propaganistas\LaravelIntl\Date
_setLocale()
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.
$this->setFallbackLocale(Config::get('app.fallback_locale'));
setFallbackLocale()
_setFallbackLocale()
}
* Handle dynamic calls to the object.
*
* @param string $method
* @param array $args
* @return mixed
public function __call($method, $args)
if (method_exists($this, '_' . $method)) {
return call_user_func_array([$this, '_' . $method], $args);
return call_user_func_array([$this->date, $method], $args);
* Spoofed setLocale method.
* @param string $locale
* @return $this
public function _setLocale($locale)
$this->date->setLocale($locale);
return $this;
* Spoofed setFallbackLocale method.
public function _setFallbackLocale($locale)
$this->date->setFallbackLocale($locale);
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.