original_string: public function userCanReachCenter(User $user, Center $center)
      {
          foreach ($user->getGroupCenters() as $groupCenter) {
              if ($center->getId() === $groupCenter->getCenter()->getId()) {
                  
                  return true;
              }
          }
          
          return false;
      }
code: public function userCanReachCenter(User $user, Center $center)
      {
          foreach ($user->getGroupCenters() as $groupCenter) {
              if ($center->getId() === $groupCenter->getCenter()->getId()) {
                  
                  return true;
              }
          }
          
          return false;
      }
code_tokens: public function userCanReachCenter ( User $ user , Center $ center ) { foreach ( $ user -> getGroupCenters ( ) as $ groupCenter ) { if ( $ center -> getId ( ) === $ groupCenter -> getCenter ( ) -> getId ( ) ) { return true ; } } return false ; }
docstring: Determines if a user is active on this center
  
  @param User $user
  @param Center $center
  @return bool
docstring_tokens: Determines if a user is active on this center