File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010}
1111
1212
13+ echo "Clearing git status... " ;
14+ echo exec ("cd " . __DIR__ . "/docs && git reset --hard && git checkout master " );
15+ echo " Complete. \n" ;
16+
17+
1318echo "Running PHPDoc Analysis... " ;
14- exec ("php " . PHPDOC_PHAR_FILENAME . " run -d src -t docs/ --template= \"xml \"" );
19+ exec ("cd .. && php " . PHPDOC_PHAR_FILENAME . " run -d src -t docs/ --template= \"xml \"" );
1520echo " Complete \n" ;
1621
1722
3742 exit (0 );
3843}
3944
40-
41- echo "Committing and pushing to Repository... " ;
42- echo exec ("cd " . __DIR__ . "/docs && git add *.md && git commit -m \"Auto-Updated Documentation \"" );
43- echo " Complete. \n" ;
44-
4545// if --push is set, push the changes.
4646if (in_array ("--push " , $ argv )) {
47+ echo "Committing and pushing to Repository... " ;
48+ echo exec ("cd " . __DIR__ . "/docs && git add *.md && git commit -m \"Auto-Updated Documentation \"" );
49+ echo " Complete. \n" ;
50+
4751 echo "Pushing to remote repository... " ;
4852 echo exec ("cd " . __DIR__ . "/docs && git push " );
4953 echo " Complete. \n" ;
You can’t perform that action at this time.
0 commit comments