summaryrefslogtreecommitdiff
path: root/lib/omb.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-12-23 14:21:29 -0500
committerEvan Prodromou <evan@prodromou.name>2008-12-23 14:21:29 -0500
commiteb2f9c98ac115ce67e9a740b200c832153ffa05c (patch)
tree562e524f12420a97fc66a5c9db0ccd6a1f9aea09 /lib/omb.php
parentedbc0c665cc65875b4d14b79939233b1c9c06bb6 (diff)
replace NULL with null
Another global search-and-replace update. Here, I've replaced the PHP keyword 'NULL' with its lowercase version. This is another PEAR code standards change. darcs-hash:20081223192129-84dde-4a0182e0ec16a01ad88745ad3e08f7cb501aee0b.gz
Diffstat (limited to 'lib/omb.php')
-rw-r--r--lib/omb.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/omb.php b/lib/omb.php
index 94ccc2ecd..8199b0679 100644
--- a/lib/omb.php
+++ b/lib/omb.php
@@ -44,7 +44,7 @@ define('OAUTH_POST_BODY', OAUTH_NAMESPACE.'parameters/post-body');
define('OAUTH_HMAC_SHA1', OAUTH_NAMESPACE.'signature/HMAC-SHA1');
function omb_oauth_consumer() {
- static $con = NULL;
+ static $con = null;
if (!$con) {
$con = new OAuthConsumer(common_root_url(), '');
}
@@ -61,7 +61,7 @@ function omb_oauth_server() {
}
function omb_oauth_datastore() {
- static $store = NULL;
+ static $store = null;
if (!$store) {
$store = new LaconicaOAuthDataStore();
}
@@ -69,7 +69,7 @@ function omb_oauth_datastore() {
}
function omb_hmac_sha1() {
- static $hmac_method = NULL;
+ static $hmac_method = null;
if (!$hmac_method) {
$hmac_method = new OAuthSignatureMethod_HMAC_SHA1();
}
@@ -91,22 +91,22 @@ function omb_match_service($service, $type) {
function omb_service_uri($service) {
if (!$service) {
- return NULL;
+ return null;
}
$uris = $service->getURIs();
if (!$uris) {
- return NULL;
+ return null;
}
return $uris[0];
}
function omb_local_id($service) {
if (!$service) {
- return NULL;
+ return null;
}
$els = $service->getElements('xrd:LocalID');
if (!$els) {
- return NULL;
+ return null;
}
$el = $els[0];
return $service->parser->content($el);