瀏覽代碼

:octocat: generate doc from QROptions instead of QROptionsTrait

smiley 1 年之前
父節點
當前提交
cfbf49a870
共有 2 個文件被更改,包括 5 次插入5 次删除
  1. 1 1
      docs/Usage/Configuration-settings.md
  2. 4 4
      docs/qroptions-doc.php

+ 1 - 1
docs/Usage/Configuration-settings.md

@@ -1,5 +1,5 @@
 # Configuration settings
-<!-- This file is auto generated from the source of QROptionsTrait.php -->
+<!-- This file is auto generated from the source of QROptions.php -->
 ## version
 
 QR Code version number

+ 4 - 4
docs/qroptions-doc.php

@@ -8,17 +8,17 @@
  * @license      MIT
  */
 
-use chillerlan\QRCode\QROptionsTrait;
+use chillerlan\QRCode\QROptions;
 
 require_once __DIR__.'/../vendor/autoload.php';
 
 $file    = 'Usage/Configuration-settings.md';
 $content = [
 	'# Configuration settings',
-	'<!-- This file is auto generated from the source of QROptionsTrait.php -->',
+	'<!-- This file is auto generated from the source of QROptions.php -->',
 ];
 
-$reflectionClass = new ReflectionClass(QROptionsTrait::class);
+$reflectionClass = new ReflectionClass(QROptions::class);
 
 foreach($reflectionClass->getProperties(ReflectionProperty::IS_PROTECTED) as $reflectionProperty){
 	$docblock = $reflectionProperty->getDocComment();
@@ -93,6 +93,6 @@ foreach($reflectionClass->getProperties(ReflectionProperty::IS_PROTECTED) as $re
 
 file_put_contents(__DIR__.'/'.$file, implode("\n", $content));
 
-printf('Built "%s" from "%s"', $file, QROptionsTrait::class);
+printf('Built "%s" from "%s"', $file, QROptions::class);
 
 exit(0);