original_string: protected function withPublishedOnly($published)
      {
          if ($published === false)
          {
              return false;
          }
  
          if ($this->tokenManager->requestHasToken('preview_nodes'))
          {
              return false;
          }
  
          return true;
      }
code: protected function withPublishedOnly($published)
      {
          if ($published === false)
          {
              return false;
          }
  
          if ($this->tokenManager->requestHasToken('preview_nodes'))
          {
              return false;
          }
  
          return true;
      }
code_tokens: protected function withPublishedOnly ( $ published ) { if ( $ published === false ) { return false ; } if ( $ this -> tokenManager -> requestHasToken ( 'preview_nodes' ) ) { return false ; } return true ; }
docstring: Checks if the request includes unpublished nodes as well
  
  @param bool $published
  @return bool
docstring_tokens: Checks if the request includes unpublished nodes as well