original_string: private function getRemainingColumnWidth(TcTable $table, $width) {
          if (!$this->maxWidth) {
              $margins = $table->getPdf()->getMargins();
              $content_width = $table->getPdf()->getPageWidth() - $margins['left'] - $margins['right'];
          } else {
              $content_width = $this->maxWidth;
          }
          $result = $content_width - (is_array($width) ? array_sum($width) : $width);
          return $result > 0 ? $result : 0;
      }
code: private function getRemainingColumnWidth(TcTable $table, $width) {
          if (!$this->maxWidth) {
              $margins = $table->getPdf()->getMargins();
              $content_width = $table->getPdf()->getPageWidth() - $margins['left'] - $margins['right'];
          } else {
              $content_width = $this->maxWidth;
          }
          $result = $content_width - (is_array($width) ? array_sum($width) : $width);
          return $result > 0 ? $result : 0;
      }
code_tokens: private function getRemainingColumnWidth ( TcTable $ table , $ width ) { if ( ! $ this -> maxWidth ) { $ margins = $ table -> getPdf ( ) -> getMargins ( ) ; $ content_width = $ table -> getPdf ( ) -> getPageWidth ( ) - $ margins [ 'left' ] - $ margins [ 'right' ] ; } else { $ content_width = $ this -> maxWidth ; } $ result = $ content_width - ( is_array ( $ width ) ? array_sum ( $ width ) : $ width ) ; return $ result > 0 ? $ result : 0 ; }
docstring: Get the remaining width available, taking into account margins and
  other cells width or the specified maxwidth if any.
  
  @param TcTable $table
  @param array|float $width sum of all other cells width
  @return float
docstring_tokens: Get the remaining width available taking into account margins and other cells width or the specified maxwidth if any .