Generate API documentation alpha

Cloud based service which generates API documentation for your GitHub based project using the great documentation generator ApiGen.

Status of WooCommerce (woothemes/woocommerce)

Command: php -dmemory_limit=1024M /var/www/projects/apigen/apigen/apigen.php -s '/var/www/projects/apigen/repos/woothemes/woocommerce/' -d '/var/www/projects/apigen/doc-progress/woothemes/woocommerce' --charset=auto --download --debug --colors=no --progressbar=yes
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/newrelic.so' - /usr/lib/php5/20131226/newrelic.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/newrelic.so' - /usr/lib/php5/20131226/newrelic.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Deprecated:  iconv_set_encoding(): Use of iconv.internal_encoding is deprecated in .../apigen/vendor/Nette/Nette/loader.php on line 30
ApiGen 3.0dev
-------------
Scanning .../repos/woothemes/woocommerce
[===============================================================>] 100.00% 153MB
Found 23 errors

1. There was an error processing the file .../repos/woothemes/woocommerce/includes/legacy/api/v1/class-wc-api-coupons.php.

There were following reasons for this exception:
Class WC_API_Coupons was redeclared (previously declared in file .../repos/woothemes/woocommerce/includes/legacy/api/v3/class-wc-api-coupons.php).

2. There was an error processing the file .../repos/woothemes/woocommerce/includes/legacy/api/v1/class-wc-api-orders.php.

There were following reasons for this exception:
Class WC_API_Orders was redeclared (previously declared in file .../repos/woothemes/woocommerce/includes/legacy/api/v3/class-wc-api-orders.php).

3. There was an error processing the file .../repos/woothemes/woocommerce/includes/legacy/api/v1/class-wc-api-customers.php.

There were following reasons for this exception:
Class WC_API_Customers was redeclared (previously declared in file .../repos/woothemes/woocommerce/includes/legacy/api/v3/class-wc-api-customers.php).

4. There was an error processing the file .../repos/woothemes/woocommerce/includes/legacy/api/v1/interface-wc-api-handler.php.

There were following reasons for this exception:
Class WC_API_Handler was redeclared (previously declared in file .../repos/woothemes/woocommerce/includes/legacy/api/v3/interface-wc-api-handler.php).

5. There was an error processing the file .../repos/woothemes/woocommerce/includes/legacy/api/v1/class-wc-api-products.php.

There were following reasons for this exception:
Class WC_API_Products was redeclared (previously declared in file .../repos/woothemes/woocommerce/includes/legacy/api/v3/class-wc-api-products.php).

6. There was an error processing the file .../repos/woothemes/woocommerce/includes/legacy/api/v1/class-wc-api-authentication.php.

There were following reasons for this exception:
Class WC_API_Authentication was redeclared (previously declared in file .../repos/woothemes/woocommerce/includes/legacy/api/v3/class-wc-api-authentication.php).

7. There was an error processing the file .../repos/woothemes/woocommerce/includes/legacy/api/v1/class-wc-api-server.php.

There were following reasons for this exception:
Class WC_API_Server was redeclared (previously declared in file .../repos/woothemes/woocommerce/includes/legacy/api/v3/class-wc-api-server.php).

8. There was an error processing the file .../repos/woothemes/woocommerce/includes/legacy/api/v1/class-wc-api-json-handler.php.

There were following reasons for this exception:
Class WC_API_JSON_Handler was redeclared (previously declared in file .../repos/woothemes/woocommerce/includes/legacy/api/v3/class-wc-api-json-handler.php).

9. There was an error processing the file .../repos/woothemes/woocommerce/includes/legacy/api/v1/class-wc-api-resource.php.

There were following reasons for this exception:
Class WC_API_Resource was redeclared (previously declared in file .../repos/woothemes/woocommerce/includes/legacy/api/v3/class-wc-api-resource.php).

10. There was an error processing the file .../repos/woothemes/woocommerce/includes/legacy/api/v1/class-wc-api-reports.php.

There were following reasons for this exception:
Class WC_API_Reports was redeclared (previously declared in file .../repos/woothemes/woocommerce/includes/legacy/api/v3/class-wc-api-reports.php).

11. There was an error processing the file .../repos/woothemes/woocommerce/includes/legacy/api/v2/class-wc-api-authentication.php.

There were following reasons for this exception:
Class WC_API_Authentication was redeclared (previously declared in file .../repos/woothemes/woocommerce/includes/legacy/api/v3/class-wc-api-authentication.php).

12. There was an error processing the file .../repos/woothemes/woocommerce/includes/legacy/api/v2/class-wc-api-json-handler.php.

There were following reasons for this exception:
Class WC_API_JSON_Handler was redeclared (previously declared in file .../repos/woothemes/woocommerce/includes/legacy/api/v3/class-wc-api-json-handler.php).

13. There was an error processing the file .../repos/woothemes/woocommerce/includes/legacy/api/v2/class-wc-api-webhooks.php.

There were following reasons for this exception:
Class WC_API_Webhooks was redeclared (previously declared in file .../repos/woothemes/woocommerce/includes/legacy/api/v3/class-wc-api-webhooks.php).

14. There was an error processing the file .../repos/woothemes/woocommerce/includes/legacy/api/v2/class-wc-api-orders.php.

There were following reasons for this exception:
Class WC_API_Orders was redeclared (previously declared in file .../repos/woothemes/woocommerce/includes/legacy/api/v3/class-wc-api-orders.php).

15. There was an error processing the file .../repos/woothemes/woocommerce/includes/legacy/api/v2/class-wc-api-reports.php.

There were following reasons for this exception:
Class WC_API_Reports was redeclared (previously declared in file .../repos/woothemes/woocommerce/includes/legacy/api/v3/class-wc-api-reports.php).

16. There was an error processing the file .../repos/woothemes/woocommerce/includes/legacy/api/v2/interface-wc-api-handler.php.

There were following reasons for this exception:
Class WC_API_Handler was redeclared (previously declared in file .../repos/woothemes/woocommerce/includes/legacy/api/v3/interface-wc-api-handler.php).

17. There was an error processing the file .../repos/woothemes/woocommerce/includes/legacy/api/v2/class-wc-api-resource.php.

There were following reasons for this exception:
Class WC_API_Resource was redeclared (previously declared in file .../repos/woothemes/woocommerce/includes/legacy/api/v3/class-wc-api-resource.php).

18. There was an error processing the file .../repos/woothemes/woocommerce/includes/legacy/api/v2/class-wc-api-server.php.

There were following reasons for this exception:
Class WC_API_Server was redeclared (previously declared in file .../repos/woothemes/woocommerce/includes/legacy/api/v3/class-wc-api-server.php).

19. There was an error processing the file .../repos/woothemes/woocommerce/includes/legacy/api/v2/class-wc-api-coupons.php.

There were following reasons for this exception:
Class WC_API_Coupons was redeclared (previously declared in file .../repos/woothemes/woocommerce/includes/legacy/api/v3/class-wc-api-coupons.php).

20. There was an error processing the file .../repos/woothemes/woocommerce/includes/legacy/api/v2/class-wc-api-products.php.

There were following reasons for this exception:
Class WC_API_Products was redeclared (previously declared in file .../repos/woothemes/woocommerce/includes/legacy/api/v3/class-wc-api-products.php).

21. There was an error processing the file .../repos/woothemes/woocommerce/includes/legacy/api/v2/class-wc-api-exception.php.

There were following reasons for this exception:
Class WC_API_Exception was redeclared (previously declared in file .../repos/woothemes/woocommerce/includes/legacy/api/v3/class-wc-api-exception.php).

22. There was an error processing the file .../repos/woothemes/woocommerce/includes/legacy/api/v2/class-wc-api-customers.php.

There were following reasons for this exception:
Class WC_API_Customers was redeclared (previously declared in file .../repos/woothemes/woocommerce/includes/legacy/api/v3/class-wc-api-customers.php).

23. The TokenReflection library threw an exception while parsing the file .../repos/woothemes/woocommerce/tests/Tools/CodeHacking/CodeHackerTestHook.php.

This can have two reasons: a) the source code in the file is not valid or b) you have just found a bug in the TokenReflection library.

If the license allows it please send the whole file or at least the following fragment describing where exacly is the problem along with the backtrace to apigen@apigen.org. Thank you!

The cause of the exception "Unexpected token found." was the : token (line 28) in the following part of Automattic\WooCommerce\Testing\Tools\CodeHacking\CodeHackerTestHook::executeBeforeTest() source code:

  1: <?php
  2: /**
  3:  * CodeHackerTestHook class file.
  4:  *
  5:  * @package WooCommerce/Testing
  6:  */
  7:
  8: namespace Automattic\WooCommerce\Testing\Tools\CodeHacking;
  9:
 10: use PHPUnit\Runner\BeforeTestHook;
 11:
 12: /**
 13:  * Helper to use the CodeHacker class in PHPUnit. To use, add this to phpunit.xml:
 14:  *
 15:  *    <extensions>
 16:  *      <extension class="CodeHackerTestHook" />
 17:  *    </extensions>
 18:  */
 19: final class CodeHackerTestHook implements BeforeTestHook {
 20:
 21: 	/**
 22: 	 * Runs before each test.
 23: 	 *
 24: 	 * @param string $test "TestClass::TestMethod".
 25: 	 *
 26: 	 * @throws \ReflectionException Thrown by execute_before_methods.
 27: 	 */
*28: 	public function executeBeforeTest( string $test ): void {
 29: 		CodeHacker::reset_hacks();
 30: 	}
 31: }
 32:
 33:

The exception backtrace is following:

#0 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionFunctionBase.php(302): TokenReflection\ReflectionFunctionBase->parseStaticVariables(Object(TokenReflection\Stream\StringStream))
#1 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionElement.php(122): TokenReflection\ReflectionFunctionBase->parseChildren(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\ReflectionClass))
#2 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionBase.php(73): TokenReflection\ReflectionElement->parseStream(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\ReflectionClass))
#3 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionElement.php(104): TokenReflection\ReflectionBase->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker), Object(TokenReflection\ReflectionClass))
#4 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionClass.php(1839): TokenReflection\ReflectionElement->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker), Object(TokenReflection\ReflectionClass))
#5 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionElement.php(122): TokenReflection\ReflectionClass->parseChildren(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\ReflectionFileNamespace))
#6 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionBase.php(73): TokenReflection\ReflectionElement->parseStream(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\ReflectionFileNamespace))
#7 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionElement.php(104): TokenReflection\ReflectionBase->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker), Object(TokenReflection\ReflectionFileNamespace))
#8 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionFileNamespace.php(299): TokenReflection\ReflectionElement->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker), Object(TokenReflection\ReflectionFileNamespace))
#9 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionElement.php(122): TokenReflection\ReflectionFileNamespace->parseChildren(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\ReflectionFile))
#10 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionBase.php(73): TokenReflection\ReflectionElement->parseStream(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\ReflectionFile))
#11 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionElement.php(104): TokenReflection\ReflectionBase->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker), Object(TokenReflection\ReflectionFile))
#12 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionFile.php(130): TokenReflection\ReflectionElement->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker), Object(TokenReflection\ReflectionFile))
#13 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionBase.php(73): TokenReflection\ReflectionFile->parseStream(Object(TokenReflection\Stream\StringStream), NULL)
#14 .../apigen/vendor/TokenReflection/TokenReflection/Broker.php(168): TokenReflection\ReflectionBase->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker))
#15 .../apigen/ApiGen/Generator.php(216): TokenReflection\Broker->processString('<?php\n/**\n * Co...', '/var/www/projec...')
#16 .../apigen/ApiGen/Application.php(125): ApiGen\Generator->parse()
#17 .../apigen/ApiGen/Application.php(84): ApiGen\Application->parse()
#18 .../apigen/apigen.php(50): ApiGen\Application->run()
#19 {main}

Found 505 classes, 0 constants, 856 functions and other 9 used PHP internal classes
Documentation for 497 classes, 0 constants, 750 functions and other 9 used PHP internal classes will be generated
Generating to directory .../doc-progress/woothemes/woocommerce
[===============================================================>] 100.00% 280MB
Done. Total time: 7 min 13 sec, used: 304 MB RAM