]> git.mxchange.org Git - quix0rs-gnu-social.git/commit
Making many of the API actions more consistent with coding style
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 15 Oct 2013 00:54:10 +0000 (02:54 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 15 Oct 2013 01:07:40 +0000 (03:07 +0200)
commit29d0871e5a5b2561387bcad40ef4644ee1c2be08
treeff2c5b791c92ab123a35cbaea11d0adc87f265cb
parent8202e922aa3e8bdc9e622fac35b77f51fd69ffa5
Making many of the API actions more consistent with coding style

clientError and serverError exit after they're done so no need for
break or return. Also, $this->format is default.

We also got rid of the incredibly verbose version of $this->isPost()
which was spread all over the place.

Not all of this cleaning up is done yet.
43 files changed:
actions/apiaccountupdatedeliverydevice.php
actions/apiaccountupdateprofile.php
actions/apiaccountupdateprofileimage.php
actions/apiatomservice.php
actions/apiblockcreate.php
actions/apiblockdestroy.php
actions/apidirectmessage.php
actions/apidirectmessagenew.php
actions/apifriendshipscreate.php
actions/apignusocialconfig.php
actions/apignusocialversion.php
actions/apigroupcreate.php
actions/apigroupismember.php
actions/apigroupjoin.php
actions/apigroupleave.php
actions/apigroupmembership.php
actions/apigroupprofileupdate.php
actions/apigroupshow.php
actions/apilist.php
actions/apilistmember.php
actions/apilistmembers.php
actions/apilistmemberships.php
actions/apilists.php
actions/apilistsubscriber.php
actions/apilistsubscribers.php
actions/apilistsubscriptions.php
actions/apistatusesupdate.php
actions/apisubscriptions.php
actions/apitimelinefavorites.php
actions/apitimelinefriends.php
actions/apitimelinegroup.php
actions/apitimelinehome.php
actions/apitimelinelist.php
actions/apitimelinementions.php
actions/apitimelineuser.php
actions/apiuserfollowers.php
actions/apiuserfriends.php
actions/apiuserprofileimage.php
actions/apiusershow.php
lib/action.php
lib/apiaction.php
lib/apiauthaction.php
lib/apilistusers.php