original_string: public function attachFiltersToManager(Filter $filterManager, Application $app)
      {
          $stripOnVisibility = new StripOnVisibility($app['descriptor.builder']);
          $filtersOnAllDescriptors = array(
              new StripInternal($app['descriptor.builder']),
              new StripIgnore($app['descriptor.builder'])
          );
  
          foreach ($filtersOnAllDescriptors as $filter) {
              $filterManager->attach('phpDocumentor\Descriptor\ConstantDescriptor', $filter);
              $filterManager->attach('phpDocumentor\Descriptor\FunctionDescriptor', $filter);
              $filterManager->attach('phpDocumentor\Descriptor\InterfaceDescriptor', $filter);
              $filterManager->attach('phpDocumentor\Descriptor\TraitDescriptor', $filter);
              $filterManager->attach('phpDocumentor\Descriptor\PropertyDescriptor', $filter);
              $filterManager->attach('phpDocumentor\Descriptor\MethodDescriptor', $filter);
          }
  
          $filterManager->attach('phpDocumentor\Descriptor\PropertyDescriptor', $stripOnVisibility);
          $filterManager->attach('phpDocumentor\Descriptor\MethodDescriptor', $stripOnVisibility);
  
          return $filterManager;
      }
code: public function attachFiltersToManager(Filter $filterManager, Application $app)
      {
          $stripOnVisibility = new StripOnVisibility($app['descriptor.builder']);
          $filtersOnAllDescriptors = array(
              new StripInternal($app['descriptor.builder']),
              new StripIgnore($app['descriptor.builder'])
          );
  
          foreach ($filtersOnAllDescriptors as $filter) {
              $filterManager->attach('phpDocumentor\Descriptor\ConstantDescriptor', $filter);
              $filterManager->attach('phpDocumentor\Descriptor\FunctionDescriptor', $filter);
              $filterManager->attach('phpDocumentor\Descriptor\InterfaceDescriptor', $filter);
              $filterManager->attach('phpDocumentor\Descriptor\TraitDescriptor', $filter);
              $filterManager->attach('phpDocumentor\Descriptor\PropertyDescriptor', $filter);
              $filterManager->attach('phpDocumentor\Descriptor\MethodDescriptor', $filter);
          }
  
          $filterManager->attach('phpDocumentor\Descriptor\PropertyDescriptor', $stripOnVisibility);
          $filterManager->attach('phpDocumentor\Descriptor\MethodDescriptor', $stripOnVisibility);
  
          return $filterManager;
      }
code_tokens: public function attachFiltersToManager ( Filter $ filterManager , Application $ app ) { $ stripOnVisibility = new StripOnVisibility ( $ app [ 'descriptor.builder' ] ) ; $ filtersOnAllDescriptors = array ( new StripInternal ( $ app [ 'descriptor.builder' ] ) , new StripIgnore ( $ app [ 'descriptor.builder' ] ) ) ; foreach ( $ filtersOnAllDescriptors as $ filter ) { $ filterManager -> attach ( 'phpDocumentor\Descriptor\ConstantDescriptor' , $ filter ) ; $ filterManager -> attach ( 'phpDocumentor\Descriptor\FunctionDescriptor' , $ filter ) ; $ filterManager -> attach ( 'phpDocumentor\Descriptor\InterfaceDescriptor' , $ filter ) ; $ filterManager -> attach ( 'phpDocumentor\Descriptor\TraitDescriptor' , $ filter ) ; $ filterManager -> attach ( 'phpDocumentor\Descriptor\PropertyDescriptor' , $ filter ) ; $ filterManager -> attach ( 'phpDocumentor\Descriptor\MethodDescriptor' , $ filter ) ; } $ filterManager -> attach ( 'phpDocumentor\Descriptor\PropertyDescriptor' , $ stripOnVisibility ) ; $ filterManager -> attach ( 'phpDocumentor\Descriptor\MethodDescriptor' , $ stripOnVisibility ) ; return $ filterManager ; }
docstring: Attaches filters to the manager.
  
  @param Filter $filterManager
  @param Application $app
  
  @return Filter
docstring_tokens: Attaches filters to the manager .