original_string: public function getUserAllowedRoots()
      {
          $user = $this->getUser();
  
          if ($user->isAdmin) {
              return null;
          }
  
          return \array_map('intval', (array) $user->newscategories_roots);
      }
code: public function getUserAllowedRoots()
      {
          $user = $this->getUser();
  
          if ($user->isAdmin) {
              return null;
          }
  
          return \array_map('intval', (array) $user->newscategories_roots);
      }
code_tokens: public function getUserAllowedRoots ( ) { $ user = $ this -> getUser ( ) ; if ( $ user -> isAdmin ) { return null ; } return \ array_map ( 'intval' , ( array ) $ user -> newscategories_roots ) ; }
docstring: Get the user allowed roots. Return null if the user has no limitation.
  
  @return array|null
docstring_tokens: Get the user allowed roots . Return null if the user has no limitation .