File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ You can provide a callback function to generate links or other special formattin
162162` callback ` option. The callback will be given two parameters: the string to print, and the ScripturNum object that can
163163be used to generate the link. For example:
164164``` php
165- $a = new ScripturNumArray([ 'John 3:16'] );
165+ $a = new ScripturNum( 'John 3:16');
166166$f = function (string $s, ScripturNum $sn) {
167167 $sc = $sn->getWholeChapters();
168168 return "<a href =\ " https://www.esv.org/" . strtolower($sc- >toString('abbrev')) . "\">$s</a >";
Original file line number Diff line number Diff line change 2020echo " Complete. \n" ;
2121
2222
23- echo "Creating Markdown files... " ;
23+ echo "Creating Markdown files... \n " ;
2424$ argv [1 ] = "docs/structure.xml " ;
2525$ argv [2 ] = "docs " ;
2626$ argv [3 ] = "--lt " ;
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ abstract class Bible
1616 protected static $ BOOK_NAMES = [];
1717
1818 /**
19- * An array containing book names that are common words in English. Must match the terms used in $BOOK_NAMES in
20- * capitalization and spelling.
19+ * An array containing book names that are common words in English (or the used language) . Must match the terms used
20+ * in $BOOK_NAMES in capitalization and spelling.
2121 *
2222 * @var string[] The array of book names, grouped by book.
2323 */
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ public function test_zeroIndex() {
6262
6363 public function test_linkExample ()
6464 {
65- $ a = new ScripturNumArray ([ 'John 3:16 ' ] );
65+ $ a = new ScripturNum ( 'John 3:16 ' );
6666 $ f = function (string $ s , ScripturNum $ sn ) {
6767 $ sc = $ sn ->getWholeChapters ();
6868 return "<a href= \"https://www.esv.org/ " . strtolower ($ sc ->toString ('abbrev ' )) . "\"> $ s</a> " ;
You can’t perform that action at this time.
0 commit comments