From e72379305107b221fff1780ab798fc29ee592207 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Mon, 19 Dec 2016 19:35:57 +0000 Subject: [PATCH] Apply fixes from StyleCI --- build_docs.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/build_docs.php b/build_docs.php index d39612a1..b29c012b 100755 --- a/build_docs.php +++ b/build_docs.php @@ -78,12 +78,12 @@ foreach ($TL->methods->method as $key => $method) { $ptype = 'Bool'; } $params .= "'".$param['name']."' => "; - $ptype = + $ptype = '['. str_replace('_', '\_', $ptype). '](../'.$link_type.'/'.$ptype.'.md)'; - $params .= (isset($param['subtype']) ? '\[' . $ptype . '\]' : $ptype).', '; + $params .= (isset($param['subtype']) ? '\['.$ptype.'\]' : $ptype).', '; } $md_method = '['.str_replace(['_', '.'], ['->', '\_'], $method).']('.$method.'.md)'; @@ -192,15 +192,14 @@ foreach ($TL->constructors->predicate as $key => $constructor) { case 'false': $ptype = 'Bool'; } - + $params .= "'".$param['name']."' => "; - $ptype = + $ptype = '['. str_replace('_', '\_', $ptype). '](../'.$link_type.'/'.$ptype.'.md)'; - $params .= (isset($param['subtype']) ? '\[' . $ptype . '\]' : $ptype).', '; - + $params .= (isset($param['subtype']) ? '\['.$ptype.'\]' : $ptype).', '; } $constructors[$constructor] = '[$'.str_replace('_', '\_', $real_type).'](../types/'.$real_type.'.md) = \['.$params.'\];