original_string: public function determineChildrenPagination($perPage, HasMany $children)
      {
          if ($perPage === false)
          {
              return $children;
          }
  
          return is_null($perPage) ?
              $children->get() :
              $children->paginate($perPage);
      }
code: public function determineChildrenPagination($perPage, HasMany $children)
      {
          if ($perPage === false)
          {
              return $children;
          }
  
          return is_null($perPage) ?
              $children->get() :
              $children->paginate($perPage);
      }
code_tokens: public function determineChildrenPagination ( $ perPage , HasMany $ children ) { if ( $ perPage === false ) { return $ children ; } return is_null ( $ perPage ) ? $ children -> get ( ) : $ children -> paginate ( $ perPage ) ; }
docstring: Determines the pagination of children
  
  @param mixed $perPage
  @param HasMany $children
  @return mixed
docstring_tokens: Determines the pagination of children