---
layout: docs
title: checkIfLineIsTooLong
id: class.Facebook.HackCodegen.BaseCodeBuilder.checkIfLineIsTooLong
docid: class.Facebook.HackCodegen.BaseCodeBuilder.checkIfLineIsTooLong
permalink: /docs/reference/class.Facebook.HackCodegen.BaseCodeBuilder.checkIfLineIsTooLong/
---
# Facebook\\HackCodegen\\BaseCodeBuilder::checkIfLineIsTooLong()




Returns true if any lines are longer than the maximum length




``` Hack
final protected static function checkIfLineIsTooLong(
  string $code,
  int $max_length,
): bool;
```




## Parameters




+ ` string $code `
+ ` int $max_length `




## Returns




* ` bool `