Skip to content

Commit 77a1122

Browse files
committed
Tidying up DocGen output.
1 parent f1ef62f commit 77a1122

5 files changed

Lines changed: 9 additions & 36 deletions

File tree

docgen/export.php

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -42,36 +42,18 @@
4242
$gen->start();
4343
// $gen->extend();
4444

45-
ksort($gen->uniqueTypes);
46-
echo "There are " . count($gen->uniqueTypes) . " unique data types \n\n";
47-
print_r($gen->uniqueTypes);
45+
// ksort($gen->uniqueTypes);
46+
// echo "There are " . count($gen->uniqueTypes) . " unique data types \n\n";
47+
// print_r($gen->uniqueTypes);
4848

4949
$gen->extend('Phaser.Sprite');
5050
$sprite = $gen->get('Phaser.Sprite');
5151
$sprite->export('output/');
5252

53+
echo $sprite;
5354

54-
// echo $sprite;
5555

56-
/*
57-
foreach ($gen->classes as $key => $processor)
58-
{
59-
echo $key . " = " . $processor . "\n";
60-
// echo $processor . "\n";
61-
// echo $key . "\n";
62-
}
63-
64-
echo "\n";
65-
echo " - EXTENDING ... \n";
66-
echo "\n";
6756

68-
$gen->extend();
69-
70-
foreach ($gen->classes as $key => $processor)
71-
{
72-
echo $key . " = " . $processor . "\n";
73-
}
74-
*/
7557

7658
?>
7759
</pre>

docgen/index.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ function displaySection($title, $files) {
8282
else
8383
{
8484
echo "<li><a href=\"view.php?src=$file\">$name</a>";
85-
echo " &nbsp;&nbsp; [ <a href=\"export.php?src=$file\">json</a> ]</li>";
85+
// echo " &nbsp;&nbsp; [ <a href=\"export.php?src=$file\">json</a> ]</li>";
86+
echo " &nbsp;&nbsp; [ <a href=\"json.php?src=$file\">json</a> ]</li>";
8687
}
8788
}
8889

docgen/json.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@
1919
$gen = new PhaserDocGen();
2020
$gen->start();
2121

22-
$sprite = $gen->get('Phaser.Sprite');
23-
24-
$gen->extend('Phaser.Sprite');
25-
26-
echo $sprite->getJSON();
22+
$obj = $gen->get($src);
23+
$obj->extend();
2724

25+
echo $obj->getJSON();
2826
?>

docgen/output/Phaser.Sprite.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

docgen/src/Processor.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,6 @@ public function __construct($docgen, $file)
8282
$this->scanFile();
8383
}
8484

85-
public function findType($type)
86-
{
87-
foreach ($this->methods as $key => $method)
88-
{
89-
}
90-
}
91-
9285
/**
9386
* Scans the given JS source file and extracts blocks from it
9487
*/

0 commit comments

Comments
 (0)