original_string: protected function isAttributeBoolean(ModelAttributeData $attribute)
      {
          if ($attribute->cast == AttributeCast::BOOLEAN) {
              return true;
          }
  
          return $attribute->type === 'tinyint' && $attribute->length === 1;
      }
code: protected function isAttributeBoolean(ModelAttributeData $attribute)
      {
          if ($attribute->cast == AttributeCast::BOOLEAN) {
              return true;
          }
  
          return $attribute->type === 'tinyint' && $attribute->length === 1;
      }
code_tokens: protected function isAttributeBoolean ( ModelAttributeData $ attribute ) { if ( $ attribute -> cast == AttributeCast :: BOOLEAN ) { return true ; } return $ attribute -> type === 'tinyint' && $ attribute -> length === 1 ; }
docstring: Returns whether an attribute should be taken for a boolean.
  
  @param ModelAttributeData $attribute
  @return bool
docstring_tokens: Returns whether an attribute should be taken for a boolean .