original_string: public static function within($listenerPath, $basePath)
      {
          return collect(static::getListenerEvents(
              (new Finder)->files()->in($listenerPath), $basePath
          ))->mapToDictionary(function ($event, $listener) {
              return [$event => $listener];
          })->all();
      }
code: public static function within($listenerPath, $basePath)
      {
          return collect(static::getListenerEvents(
              (new Finder)->files()->in($listenerPath), $basePath
          ))->mapToDictionary(function ($event, $listener) {
              return [$event => $listener];
          })->all();
      }
code_tokens: public static function within ( $ listenerPath , $ basePath ) { return collect ( static :: getListenerEvents ( ( new Finder ) -> files ( ) -> in ( $ listenerPath ) , $ basePath ) ) -> mapToDictionary ( function ( $ event , $ listener ) { return [ $ event => $ listener ] ; } ) -> all ( ) ; }
docstring: Get all of the events and listeners by searching the given listener directory.
  
  @param  string  $listenerPath
  @param  string  $basePath
  @return array
docstring_tokens: Get all of the events and listeners by searching the given listener directory .