Skip to content

Commit

Permalink
Merge branch 'master' into traits
Browse files Browse the repository at this point in the history
  • Loading branch information
peej committed Mar 10, 2013
2 parents 2f3857b + f45ea7f commit 83f4215
Show file tree
Hide file tree
Showing 21 changed files with 29 additions and 30 deletions.
5 changes: 3 additions & 2 deletions composer.json
Expand Up @@ -3,7 +3,7 @@
"description": "PHPDoctor: The PHP Documentation Creator",
"keywords": ["documentation", "api"],
"homepage": "http://peej.github.com/phpdoctor",
"license": "MIT",
"license": "GPL-2.0+",
"authors": [
{
"name": "Paul James",
Expand All @@ -15,5 +15,6 @@
},
"require-dev": {
"lastcraft/simpletest": "1.1.*"
}
},
"bin": ["phpdoc"]
}
2 changes: 1 addition & 1 deletion doclets/github/classWriter.php
Expand Up @@ -22,7 +22,7 @@
/** This generates the HTML API documentation for each individual interface
* and class.
*
* @package PHPDoctor\Doclets\Standard
* @package PHPDoctor\Doclets\Github
*/
class ClassWriter extends MDWriter {

Expand Down
2 changes: 1 addition & 1 deletion doclets/github/deprecatedWriter.php
Expand Up @@ -21,7 +21,7 @@

/** This generates the deprecated elements index.
*
* @package PHPDoctor\Doclets\Standard
* @package PHPDoctor\Doclets\Github
*/
class DeprecatedWriter extends MDWriter {

Expand Down
2 changes: 1 addition & 1 deletion doclets/github/functionWriter.php
Expand Up @@ -21,7 +21,7 @@

/** This generates the HTML API documentation for each global function.
*
* @package PHPDoctor\Doclets\Standard
* @package PHPDoctor\Doclets\Github
*/
class FunctionWriter extends MDWriter {

Expand Down
2 changes: 1 addition & 1 deletion doclets/github/github.php
Expand Up @@ -32,7 +32,7 @@
/** The standard doclet. This doclet generates HTML output similar to that
* produced by the Javadoc standard doclet.
*
* @package PHPDoctor\Doclets\Standard
* @package PHPDoctor\Doclets\Github
*/
class Github extends Doclet {

Expand Down
2 changes: 1 addition & 1 deletion doclets/github/globalWriter.php
Expand Up @@ -21,7 +21,7 @@

/** This generates the HTML API documentation for each global variable.
*
* @package PHPDoctor\Doclets\Standard
* @package PHPDoctor\Doclets\Github
*/
class GlobalWriter extends MDWriter {

Expand Down
2 changes: 1 addition & 1 deletion doclets/github/indexWriter.php
Expand Up @@ -21,7 +21,7 @@

/** This generates the element index.
*
* @package PHPDoctor\Doclets\Standard
* @package PHPDoctor\Doclets\Github
*/
class IndexWriter extends MDWriter {

Expand Down
2 changes: 1 addition & 1 deletion doclets/github/packageWriter.php
Expand Up @@ -22,7 +22,7 @@
/** This generates the README.md files that list the interfaces and
* classes for a given package.
*
* @package PHPDoctor\Doclets\Standard
* @package PHPDoctor\Doclets\Github
*/
class PackageWriter extends MDWriter {

Expand Down
2 changes: 1 addition & 1 deletion doclets/github/todoWriter.php
Expand Up @@ -21,7 +21,7 @@

/** This generates the todo elements index.
*
* @package PHPDoctor\Doclets\Standard
* @package PHPDoctor\Doclets\Github
*/
class TodoWriter extends MDWriter {

Expand Down
2 changes: 1 addition & 1 deletion doclets/github_wiki/classWriter.php
Expand Up @@ -22,7 +22,7 @@
/** This generates the HTML API documentation for each individual interface
* and class.
*
* @package PHPDoctor\Doclets\Standard
* @package PHPDoctor\Doclets\GithubWiki
*/
class ClassWriter extends MDWriter {

Expand Down
2 changes: 1 addition & 1 deletion doclets/github_wiki/deprecatedWriter.php
Expand Up @@ -21,7 +21,7 @@

/** This generates the deprecated elements index.
*
* @package PHPDoctor\Doclets\Standard
* @package PHPDoctor\Doclets\GithubWiki
*/
class DeprecatedWriter extends MDWriter {

Expand Down
2 changes: 1 addition & 1 deletion doclets/github_wiki/functionWriter.php
Expand Up @@ -21,7 +21,7 @@

/** This generates the HTML API documentation for each global function.
*
* @package PHPDoctor\Doclets\Standard
* @package PHPDoctor\Doclets\GithubWiki
*/
class FunctionWriter extends MDWriter {

Expand Down
2 changes: 1 addition & 1 deletion doclets/github_wiki/github_wiki.php
Expand Up @@ -32,7 +32,7 @@
/** The standard doclet. This doclet generates HTML output similar to that
* produced by the Javadoc standard doclet.
*
* @package PHPDoctor\Doclets\Standard
* @package PHPDoctor\Doclets\GithubWiki
*/
class Github_wiki extends Doclet {

Expand Down
2 changes: 1 addition & 1 deletion doclets/github_wiki/globalWriter.php
Expand Up @@ -21,7 +21,7 @@

/** This generates the HTML API documentation for each global variable.
*
* @package PHPDoctor\Doclets\Standard
* @package PHPDoctor\Doclets\GithubWiki
*/
class GlobalWriter extends MDWriter {

Expand Down
2 changes: 1 addition & 1 deletion doclets/github_wiki/indexWriter.php
Expand Up @@ -21,7 +21,7 @@

/** This generates the element index.
*
* @package PHPDoctor\Doclets\Standard
* @package PHPDoctor\Doclets\GithubWiki
*/
class IndexWriter extends MDWriter {

Expand Down
2 changes: 1 addition & 1 deletion doclets/github_wiki/mdWriter.php
Expand Up @@ -22,7 +22,7 @@
/** This generates the index.md file used for presenting the frame-formated
* "cover page" of the API documentation.
*
* @package PHPDoctor\Doclets\Github
* @package PHPDoctor\Doclets\GithubWiki
* @todo Refactor this class to MDWriter
*/
class MDWriter {
Expand Down
2 changes: 1 addition & 1 deletion doclets/github_wiki/packageWriter.php
Expand Up @@ -22,7 +22,7 @@
/** This generates the README.md files that list the interfaces and
* classes for a given package.
*
* @package PHPDoctor\Doclets\Standard
* @package PHPDoctor\Doclets\GithubWiki
*/
class PackageWriter extends MDWriter {

Expand Down
2 changes: 1 addition & 1 deletion doclets/github_wiki/todoWriter.php
Expand Up @@ -21,7 +21,7 @@

/** This generates the todo elements index.
*
* @package PHPDoctor\Doclets\Standard
* @package PHPDoctor\Doclets\GithubWiki
*/
class TodoWriter extends MDWriter {

Expand Down
2 changes: 2 additions & 0 deletions phpdoc
@@ -0,0 +1,2 @@
#!/usr/bin/env php
<?php include 'phpdoc.php';
16 changes: 6 additions & 10 deletions phpdoc.php
Expand Up @@ -26,8 +26,8 @@
die('This program must be run from the command line using the CLI version of PHP');

// check we are using the correct version of PHP
} elseif (!defined('T_COMMENT') || !extension_loaded('tokenizer') || version_compare(phpversion(), '4.3.0', '<')) {
error('You need PHP version 4.3.0 or greater with the "tokenizer" extension to run this script, please upgrade');
} elseif (!defined('T_COMMENT') || !extension_loaded('tokenizer') || version_compare(phpversion(), '5', '<')) {
error('You need PHP version 5 or greater with the "tokenizer" extension to run this script, please upgrade');
exit;
}

Expand All @@ -41,19 +41,15 @@
$argv[1] = $_ENV['PHPDoctor'];
} elseif (is_file(getcwd().'/phpdoctor.ini')) {
$argv[1] = getcwd().'/phpdoctor.ini';
} elseif (is_file('default.ini')) {
phpDoctor::warning('Using default config file "default.ini"');
$argv[1] = 'default.ini';
} elseif (is_file(dirname(__FILE__).'/phpdoctor.ini')) {
$argv[1] = dirname(__FILE__).'/phpdoctor.ini';
} else {
phpDoctor::error('Usage: phpdoc.php [config_file]');
exit;
die("Usage: phpdoc [config_file]\n");
}
}

$phpdoc =& new phpDoctor($argv[1]);
$phpdoc = new phpDoctor($argv[1]);

$rootDoc =& $phpdoc->parse();

$phpdoc->execute($rootDoc);

?>
2 changes: 1 addition & 1 deletion default.ini → phpdoctor.ini
Expand Up @@ -15,7 +15,7 @@ files = "*.php"
; Names of files or directories to ignore. This can be a single filename, or a
; comma separated list of filenames. Wildcards are NOT allowed.

ignore = "CVS, .svn, .git, _compiled"
ignore = "CVS, .svn, .git, _compiled, vendor"

; The directory to look for files in, if not used the PHPDoctor will look in
; the current directory (the directory it is run from).
Expand Down

0 comments on commit 83f4215

Please sign in to comment.