@@ -90,7 +90,7 @@ class="pull-right <?= $this->get_method_icon($transition->get_method()); ?>"></s
90
90
<ul class="list-unstyled">
91
91
<?php foreach ($ this ->base_structures as $ key => $ structure ): ?>
92
92
<li>
93
- <a href="#object-<?= str_replace ( ' ' , ' _ ' , strtolower ( $ key) ); ?> "><?= $ key ; ?> </a>
93
+ <a href="#object-<?= $ this -> strip_link_spaces ( $ key ); ?> "><?= $ key ; ?> </a>
94
94
</li>
95
95
<?php endforeach ; ?>
96
96
</ul>
@@ -180,9 +180,11 @@ class="value"><?= $value; ?></span>
180
180
<?php endif ; ?>
181
181
<?php if (!empty ($ transition ->request ->struct )): ?>
182
182
<h5>Structure</h5>
183
- <?php foreach ($ transition ->request ->struct as $ value ): ?>
184
- <?= $ value ?>
185
- <?php endforeach ; ?>
183
+ <div class="row">
184
+ <?php foreach ($ transition ->request ->struct as $ value ): ?>
185
+ <?= $ value ?>
186
+ <?php endforeach ; ?>
187
+ </div>
186
188
<?php endif ; ?>
187
189
<?php endif ; ?>
188
190
@@ -250,7 +252,8 @@ class="value"><?= $value; ?></span>
250
252
<?= $ key ; ?>
251
253
252
254
</h5>
253
- <pre class="collapse collapsed response-body" id="request-<?= $ href ?> "><?= $ value ; ?> </pre>
255
+ <pre class="collapse collapsed response-body"
256
+ id="request-<?= $ href ?> "><?= $ value ; ?> </pre>
254
257
</div>
255
258
<?php endforeach ; ?>
256
259
</div>
@@ -262,23 +265,23 @@ class="value"><?= $value; ?></span>
262
265
<?php endforeach ; ?>
263
266
<?php endforeach ; ?>
264
267
<?php endforeach ; ?>
265
- <?php if (count ($ this ->base_structures ) > 0 ):?>
266
- <h2><a id="datastructures">Data structures</a></h2>
267
- <?php foreach ($ this ->base_structures as $ key => $ structure ): ?>
268
- <div class="panel panel-default object-<?= str_replace (' ' , '_ ' , strtolower ($ key )); ?> structure">
269
- <div class="panel-heading">
270
- <h3 class="panel-title">
271
- <a id="object-<?= str_replace (' ' , '_ ' , strtolower ($ key )); ?> "><?= $ key ; ?> </a>
272
- </h3>
273
- </div>
274
- <div class="panel-body">
275
- <div class="row">
276
- <?= $ structure ; ?>
268
+ <?php if (count ($ this ->base_structures ) > 0 ): ?>
269
+ <h2><a id="datastructures">Data structures</a></h2>
270
+ <?php foreach ($ this ->base_structures as $ key => $ structure ): ?>
271
+ <div class="panel panel-default object-<?= $ this ->strip_link_spaces ($ key ); ?> structure">
272
+ <div class="panel-heading">
273
+ <h3 class="panel-title">
274
+ <a id="object-<?= $ this ->strip_link_spaces ($ key ); ?> "><?= $ key ; ?> </a>
275
+ </h3>
276
+ </div>
277
+ <div class="panel-body">
278
+ <div class="row">
279
+ <?= $ structure ; ?>
280
+ </div>
277
281
</div>
278
282
</div>
279
- </div>
280
- <?php endforeach ; ?>
281
- <?php endif ;?>
283
+ <?php endforeach ; ?>
284
+ <?php endif ; ?>
282
285
</div>
283
286
</div>
284
287
</div>
@@ -288,6 +291,6 @@ class="value"><?= $value; ?></span>
288
291
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"
289
292
integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
290
293
crossorigin="anonymous"></script>
291
- <script><?= Minifier::minify_js ( file_get_contents (__DIR__ . '/ ' . $ this ->template . '.js ' )); ?> </script>
294
+ <script><?= Minifier::minify_js (file_get_contents (__DIR__ . '/ ' . $ this ->template . '.js ' )); ?> </script>
292
295
</body>
293
296
</html>
0 commit comments