original_string: public function addBundle($bundle)
      {
          $bundle = $this->getBundleString($bundle);
          // not root bundle
          if (strpos($this->getKernal(), $bundle) === false) {
              $bundles = $this->getBundles();
              if (!in_array($bundle, $bundles)) {
                  $bundles[] = $bundle;
                  $this->setBundles($bundles);
              }
          }
      }
code: public function addBundle($bundle)
      {
          $bundle = $this->getBundleString($bundle);
          // not root bundle
          if (strpos($this->getKernal(), $bundle) === false) {
              $bundles = $this->getBundles();
              if (!in_array($bundle, $bundles)) {
                  $bundles[] = $bundle;
                  $this->setBundles($bundles);
              }
          }
      }
code_tokens: public function addBundle ( $ bundle ) { $ bundle = $ this -> getBundleString ( $ bundle ) ; // not root bundle if ( strpos ( $ this -> getKernal ( ) , $ bundle ) === false ) { $ bundles = $ this -> getBundles ( ) ; if ( ! in_array ( $ bundle , $ bundles ) ) { $ bundles [ ] = $ bundle ; $ this -> setBundles ( $ bundles ) ; } } }
docstring: Add bundle to kernal.
  
  @param string $bundle
docstring_tokens: Add bundle to kernal .