original_string: protected static function arrayFormat(array $data, $name)
      {
          $format = "\t'$name' => [\n";
  
          if (count($data) > 0) {
              foreach ($data as $key => $value) {
                  $format .= "\t\t'$key' => $value::class , \n";
              }
          } else {
              $format .= "\t\t//\n";
          }
  
          $format .= "\t],\n\n";
  
          return $format;
      }
code: protected static function arrayFormat(array $data, $name)
      {
          $format = "\t'$name' => [\n";
  
          if (count($data) > 0) {
              foreach ($data as $key => $value) {
                  $format .= "\t\t'$key' => $value::class , \n";
              }
          } else {
              $format .= "\t\t//\n";
          }
  
          $format .= "\t],\n\n";
  
          return $format;
      }
code_tokens: protected static function arrayFormat ( array $ data , $ name ) { $ format = "\t'$name' => [\n" ; if ( count ( $ data ) > 0 ) { foreach ( $ data as $ key => $ value ) { $ format .= "\t\t'$key' => $value::class , \n" ; } } else { $ format .= "\t\t//\n" ; } $ format .= "\t],\n\n" ; return $ format ; }
docstring: Format args array.
  
  @param array  $data
  @param string $name
  
  @return string
docstring_tokens: Format args array .