Replace x() by isset(), !empty() or defaults()
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 30 Nov 2018 14:06:22 +0000 (09:06 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Fri, 30 Nov 2018 14:06:22 +0000 (09:06 -0500)
commit458981f75cff2427976c9abc787eadf8e9e6267f
treeb15c27c508bd938a8e0df3dc6afa678ca58cf370
parentea4e772b1e776876c40e30c67f30e6c35cf7d3aa
Replace x() by isset(), !empty() or defaults()

- Remove extraneous parentheses around empty() calls
- Remove duplicate calls to intval(), count() or strlen() after empty()
- Replace ternary operators outputting binary value with empty() return value
- Rewrite defaults() without x()
101 files changed:
boot.php
doc/themes.md
include/api.php
include/conversation.php
mod/admin.php
mod/api.php
mod/cal.php
mod/common.php
mod/contactgroup.php
mod/crepair.php
mod/delegate.php
mod/dfrn_confirm.php
mod/dfrn_notify.php
mod/dfrn_poll.php
mod/dfrn_request.php
mod/directory.php
mod/dirfind.php
mod/display.php
mod/fbrowser.php
mod/friendica.php
mod/hcard.php
mod/home.php
mod/item.php
mod/like.php
mod/localtime.php
mod/manage.php
mod/message.php
mod/modexp.php
mod/network.php
mod/noscrape.php
mod/oexchange.php
mod/openid.php
mod/parse_url.php
mod/photos.php
mod/ping.php
mod/poco.php
mod/poke.php
mod/profile.php
mod/profiles.php
mod/pubsubhubbub.php
mod/redir.php
mod/register.php
mod/removeme.php
mod/search.php
mod/settings.php
mod/starred.php
mod/subthread.php
mod/suggest.php
mod/tagger.php
mod/tagrm.php
mod/uimport.php
mod/wall_attach.php
mod/wall_upload.php
mod/wallmessage.php
mod/webfinger.php
spec/dfrn2_contact_request.svg
src/App.php
src/Content/Nav.php
src/Content/OEmbed.php
src/Content/Text/BBCode.php
src/Content/Text/HTML.php
src/Core/Authentication.php
src/Core/Console/AutomaticInstallation.php
src/Core/NotificationsManager.php
src/Core/Session/DatabaseSessionHandler.php
src/Core/UserImport.php
src/Database/DBStructure.php
src/Model/Contact.php
src/Model/FileTag.php
src/Model/Group.php
src/Model/Item.php
src/Model/Photo.php
src/Model/Profile.php
src/Model/User.php
src/Module/Contact.php
src/Module/Feed.php
src/Module/Login.php
src/Module/Magic.php
src/Network/Probe.php
src/Object/Post.php
src/Protocol/DFRN.php
src/Protocol/PortableContact.php
src/Render/FriendicaSmarty.php
src/Render/FriendicaSmartyEngine.php
src/Util/Emailer.php
src/Util/Network.php
src/Util/Temporal.php
src/Worker/OnePoll.php
tests/src/Core/Console/AutomaticInstallationConsoleTest.php
view/php/default.php
view/php/minimal.php
view/php/none.php
view/theme/duepuntozero/style.php
view/theme/frio/php/PHPColors/Color.php
view/theme/frio/php/default.php
view/theme/frio/php/frio_boot.php
view/theme/frio/php/standard.php
view/theme/frio/style.php
view/theme/frio/theme.php
view/theme/smoothly/php/default.php
view/theme/vier/theme.php