original_string: private function normalizeTagCounts( &$tagsArray, $tagCounts )
      {
          $maxFontSize = 200;
          $minFontSize = 100;
  
          $maxCount = max( $tagCounts );
          $minCount = min( $tagCounts );
  
          $spread = $maxCount - $minCount;
          if ( $spread == 0 )
              $spread = 1;
  
          $step = ( $maxFontSize - $minFontSize ) / ( $spread );
  
          foreach ( $tagsArray as $index => $tagItem )
          {
              $tagsArray[$index]['font_size'] = $minFontSize + ( ( $tagItem['count'] - $minCount ) * $step );
          }
      }
code: private function normalizeTagCounts( &$tagsArray, $tagCounts )
      {
          $maxFontSize = 200;
          $minFontSize = 100;
  
          $maxCount = max( $tagCounts );
          $minCount = min( $tagCounts );
  
          $spread = $maxCount - $minCount;
          if ( $spread == 0 )
              $spread = 1;
  
          $step = ( $maxFontSize - $minFontSize ) / ( $spread );
  
          foreach ( $tagsArray as $index => $tagItem )
          {
              $tagsArray[$index]['font_size'] = $minFontSize + ( ( $tagItem['count'] - $minCount ) * $step );
          }
      }
code_tokens: private function normalizeTagCounts ( & $ tagsArray , $ tagCounts ) { $ maxFontSize = 200 ; $ minFontSize = 100 ; $ maxCount = max ( $ tagCounts ) ; $ minCount = min ( $ tagCounts ) ; $ spread = $ maxCount - $ minCount ; if ( $ spread == 0 ) $ spread = 1 ; $ step = ( $ maxFontSize - $ minFontSize ) / ( $ spread ) ; foreach ( $ tagsArray as $ index => $ tagItem ) { $ tagsArray [ $ index ] [ 'font_size' ] = $ minFontSize + ( ( $ tagItem [ 'count' ] - $ minCount ) * $ step ) ; } }
docstring: Normalizes the count of tags to be able to be displayed properly on the page
  
  @param array $tagsArray
  @param array $tagCounts
docstring_tokens: Normalizes the count of tags to be able to be displayed properly on the page