original_string: private static function preserveBreakpoint($value, $length)
      {
          if (strlen($value) <= $length) {
              return $length;
          }
          $breakpoint = mb_strpos($value, ' ', $length);
          $length = $breakpoint;
          if (false === $breakpoint) {
              $length = mb_strlen($value);
          }
          return $length;
      }
code: private static function preserveBreakpoint($value, $length)
      {
          if (strlen($value) <= $length) {
              return $length;
          }
          $breakpoint = mb_strpos($value, ' ', $length);
          $length = $breakpoint;
          if (false === $breakpoint) {
              $length = mb_strlen($value);
          }
          return $length;
      }
code_tokens: private static function preserveBreakpoint ( $ value , $ length ) { if ( strlen ( $ value ) <= $ length ) { return $ length ; } $ breakpoint = mb_strpos ( $ value , ' ' , $ length ) ; $ length = $ breakpoint ; if ( false === $ breakpoint ) { $ length = mb_strlen ( $ value ) ; } return $ length ; }
docstring: Check truncate length to avoid split a word
  
  @param string $value
  @param int    $length
  
  @return int
docstring_tokens: Check truncate length to avoid split a word