original_string: protected function registerBadger()
      {
          $this->app->singleton(Badger::class, function (Container $app) {
              $calculator = $app->make('badger.calculator');
              $path = realpath($raw = __DIR__.'/../resources/templates') ?: $raw;
  
              $renderers = [
                  new PlasticRender($calculator, $path),
                  new PlasticFlatRender($calculator, $path),
                  new FlatSquareRender($calculator, $path),
                  new SocialRender($calculator, $path),
              ];
  
              return new Badger($renderers);
          });
  
          $this->app->singleton('badger', Badger::class);
      }
code: protected function registerBadger()
      {
          $this->app->singleton(Badger::class, function (Container $app) {
              $calculator = $app->make('badger.calculator');
              $path = realpath($raw = __DIR__.'/../resources/templates') ?: $raw;
  
              $renderers = [
                  new PlasticRender($calculator, $path),
                  new PlasticFlatRender($calculator, $path),
                  new FlatSquareRender($calculator, $path),
                  new SocialRender($calculator, $path),
              ];
  
              return new Badger($renderers);
          });
  
          $this->app->singleton('badger', Badger::class);
      }
code_tokens: protected function registerBadger ( ) { $ this -> app -> singleton ( Badger :: class , function ( Container $ app ) { $ calculator = $ app -> make ( 'badger.calculator' ) ; $ path = realpath ( $ raw = __DIR__ . '/../resources/templates' ) ? : $ raw ; $ renderers = [ new PlasticRender ( $ calculator , $ path ) , new PlasticFlatRender ( $ calculator , $ path ) , new FlatSquareRender ( $ calculator , $ path ) , new SocialRender ( $ calculator , $ path ) , ] ; return new Badger ( $ renderers ) ; } ) ; $ this -> app -> singleton ( 'badger' , Badger :: class ) ; }
docstring: Register the badger class.
  
  @return void
docstring_tokens: Register the badger class .