original_string: public function getEntityManager()
      {
          if (isset($this->entityManager) && is_object($this->entityManager)) {
              // 5.8 ->
              return $this->entityManager;
          }
          $pkgID = $this->c->getPackageID();
          if ($pkgID > 0) {
              return Package::getByID($pkgID)->getEntityManager();
          } else {
              return ORM::entityManager('app');
          }
      }
code: public function getEntityManager()
      {
          if (isset($this->entityManager) && is_object($this->entityManager)) {
              // 5.8 ->
              return $this->entityManager;
          }
          $pkgID = $this->c->getPackageID();
          if ($pkgID > 0) {
              return Package::getByID($pkgID)->getEntityManager();
          } else {
              return ORM::entityManager('app');
          }
      }
code_tokens: public function getEntityManager ( ) { if ( isset ( $ this -> entityManager ) && is_object ( $ this -> entityManager ) ) { // 5.8 -> return $ this -> entityManager ; } $ pkgID = $ this -> c -> getPackageID ( ) ; if ( $ pkgID > 0 ) { return Package :: getByID ( $ pkgID ) -> getEntityManager ( ) ; } else { return ORM :: entityManager ( 'app' ) ; } }
docstring: Gets the controller specific entity manager. If the controller belongs
  to a package, returns the package's entity manager. Otherwise returns
  the application specific entity manager.
docstring_tokens: Gets the controller specific entity manager . If the controller belongs to a package returns the package s entity manager . Otherwise returns the application specific entity manager .