@@ -79,7 +79,7 @@ |
||
79 | 79 | ); |
80 | 80 | |
81 | 81 | // isolate global scope |
82 | -call_user_func(function () use ($lib_dir, $lib_files, $autoloader_setup) { |
|
82 | +call_user_func(function() use ($lib_dir, $lib_files, $autoloader_setup) { |
|
83 | 83 | |
84 | 84 | $setups = array(); |
85 | 85 |
@@ -433,7 +433,7 @@ |
||
433 | 433 | break; |
434 | 434 | |
435 | 435 | default: |
436 | - $result = null;//skip further check |
|
436 | + $result = null; //skip further check |
|
437 | 437 | break; |
438 | 438 | } |
439 | 439 |
@@ -249,7 +249,6 @@ |
||
249 | 249 | * Import a relationship |
250 | 250 | * |
251 | 251 | * @param ODD $data ODD data |
252 | - |
|
253 | 252 | * @return bool |
254 | 253 | * @throws ImportException|InvalidParameterException |
255 | 254 | * @deprecated 1.9 |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | throw new \InvalidArgumentException("Constructor accepts only a \stdClass or null."); |
37 | 37 | } |
38 | 38 | |
39 | - $id = (int)$row; |
|
39 | + $id = (int) $row; |
|
40 | 40 | elgg_deprecated_notice('Passing an ID to constructor is deprecated. Use get_relationship()', 1.9); |
41 | 41 | $row = _elgg_get_relationship_row($id); |
42 | 42 | if (!$row) { |
@@ -44,11 +44,11 @@ discard block |
||
44 | 44 | } |
45 | 45 | } |
46 | 46 | |
47 | - foreach ((array)$row as $key => $value) { |
|
47 | + foreach ((array) $row as $key => $value) { |
|
48 | 48 | $this->attributes[$key] = $value; |
49 | 49 | } |
50 | 50 | |
51 | - $this->attributes['id'] = (int)$this->attributes['id']; |
|
51 | + $this->attributes['id'] = (int) $this->attributes['id']; |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |
@@ -161,7 +161,7 @@ |
||
161 | 161 | return false; |
162 | 162 | } |
163 | 163 | |
164 | - $guid = (int)$this->guid; |
|
164 | + $guid = (int) $this->guid; |
|
165 | 165 | $title = sanitize_string($this->title); |
166 | 166 | $description = sanitize_string($this->description); |
167 | 167 |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | |
237 | 237 | if ($alterInline) { |
238 | 238 | $isText = ($node->nodeType === XML_TEXT_NODE); |
239 | - $isLastInline = (! $node->nextSibling |
|
239 | + $isLastInline = (!$node->nextSibling |
|
240 | 240 | || ($node->nextSibling->nodeType === XML_ELEMENT_NODE |
241 | 241 | && in_array($node->nextSibling->nodeName, $this->_blocks))); |
242 | 242 | if ($isElement) { |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | continue; |
271 | 271 | } |
272 | 272 | } |
273 | - if ($isBlock || ! $node->nextSibling) { |
|
273 | + if ($isBlock || !$node->nextSibling) { |
|
274 | 274 | if ($isBlock) { |
275 | 275 | if (in_array($node->nodeName, $this->_descendList)) { |
276 | 276 | $elsToProcess[] = $node; |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | $ltrimFirstTextNode = true; |
282 | 282 | } |
283 | 283 | if ($alterInline) { |
284 | - if (! $isBlock) { |
|
284 | + if (!$isBlock) { |
|
285 | 285 | $tmpNode = $node; |
286 | 286 | if ($isElement && false !== strpos($tmpNode->textContent, "\n")) { |
287 | 287 | $inlinesToProcess[] = $tmpNode; |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | * @property string $location A location of the entity |
40 | 40 | */ |
41 | 41 | abstract class ElggEntity extends \ElggData implements |
42 | - Notable, // Calendar interface (deprecated 1.9) |
|
42 | + Notable, // Calendar interface (deprecated 1.9) |
|
43 | 43 | Locatable, // Geocoding interface |
44 | 44 | Importable // Allow import of data (deprecated 1.9) |
45 | 45 | { |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | case 'owner_guid': |
212 | 212 | case 'container_guid': |
213 | 213 | if ($value !== null) { |
214 | - $this->attributes[$name] = (int)$value; |
|
214 | + $this->attributes[$name] = (int) $value; |
|
215 | 215 | } else { |
216 | 216 | $this->attributes[$name] = null; |
217 | 217 | } |
@@ -417,8 +417,8 @@ discard block |
||
417 | 417 | elgg_set_ignore_access($ia); |
418 | 418 | } |
419 | 419 | |
420 | - $owner_guid = (int)$owner_guid; |
|
421 | - $access_id = ($access_id === null) ? $this->getAccessId() : (int)$access_id; |
|
420 | + $owner_guid = (int) $owner_guid; |
|
421 | + $access_id = ($access_id === null) ? $this->getAccessId() : (int) $access_id; |
|
422 | 422 | $owner_guid = $owner_guid ? $owner_guid : $this->getOwnerGUID(); |
423 | 423 | |
424 | 424 | // add new md |
@@ -610,7 +610,7 @@ discard block |
||
610 | 610 | * @see \ElggEntity::removeRelationship() |
611 | 611 | */ |
612 | 612 | public function deleteRelationships($relationship = null) { |
613 | - $relationship = (string)$relationship; |
|
613 | + $relationship = (string) $relationship; |
|
614 | 614 | $result = remove_entity_relationships($this->getGUID(), $relationship); |
615 | 615 | return $result && remove_entity_relationships($this->getGUID(), $relationship, true); |
616 | 616 | } |
@@ -1039,7 +1039,7 @@ discard block |
||
1039 | 1039 | * @see elgg_set_ignore_access() |
1040 | 1040 | */ |
1041 | 1041 | public function canEdit($user_guid = 0) { |
1042 | - $user_guid = (int)$user_guid; |
|
1042 | + $user_guid = (int) $user_guid; |
|
1043 | 1043 | $user = get_entity($user_guid); |
1044 | 1044 | if (!$user) { |
1045 | 1045 | $user = _elgg_services()->session->getLoggedInUser(); |
@@ -1281,7 +1281,7 @@ discard block |
||
1281 | 1281 | * @return int The owner GUID |
1282 | 1282 | */ |
1283 | 1283 | public function getOwnerGUID() { |
1284 | - return (int)$this->owner_guid; |
|
1284 | + return (int) $this->owner_guid; |
|
1285 | 1285 | } |
1286 | 1286 | |
1287 | 1287 | /** |
@@ -1312,7 +1312,7 @@ discard block |
||
1312 | 1312 | * @return bool |
1313 | 1313 | */ |
1314 | 1314 | public function setContainerGUID($container_guid) { |
1315 | - return $this->container_guid = (int)$container_guid; |
|
1315 | + return $this->container_guid = (int) $container_guid; |
|
1316 | 1316 | } |
1317 | 1317 | |
1318 | 1318 | /** |
@@ -1334,7 +1334,7 @@ discard block |
||
1334 | 1334 | * @return int |
1335 | 1335 | */ |
1336 | 1336 | public function getContainerGUID() { |
1337 | - return (int)$this->container_guid; |
|
1337 | + return (int) $this->container_guid; |
|
1338 | 1338 | } |
1339 | 1339 | |
1340 | 1340 | /** |
@@ -1574,7 +1574,7 @@ discard block |
||
1574 | 1574 | * @return bool |
1575 | 1575 | */ |
1576 | 1576 | public function isFullyLoaded() { |
1577 | - return ! ($this->tables_loaded < $this->tables_split); |
|
1577 | + return !($this->tables_loaded < $this->tables_split); |
|
1578 | 1578 | } |
1579 | 1579 | |
1580 | 1580 | /** |
@@ -1629,23 +1629,23 @@ discard block |
||
1629 | 1629 | |
1630 | 1630 | $subtype = $this->attributes['subtype']; |
1631 | 1631 | $subtype_id = add_subtype($type, $subtype); |
1632 | - $owner_guid = (int)$this->attributes['owner_guid']; |
|
1633 | - $access_id = (int)$this->attributes['access_id']; |
|
1634 | - $now = (string)time(); |
|
1635 | - $time_created = isset($this->attributes['time_created']) ? (int)$this->attributes['time_created'] : $now; |
|
1632 | + $owner_guid = (int) $this->attributes['owner_guid']; |
|
1633 | + $access_id = (int) $this->attributes['access_id']; |
|
1634 | + $now = (string) time(); |
|
1635 | + $time_created = isset($this->attributes['time_created']) ? (int) $this->attributes['time_created'] : $now; |
|
1636 | 1636 | |
1637 | 1637 | $site_guid = $this->attributes['site_guid']; |
1638 | 1638 | if ($site_guid == 0) { |
1639 | 1639 | $site_guid = $CONFIG->site_guid; |
1640 | 1640 | } |
1641 | - $site_guid = (int)$site_guid; |
|
1641 | + $site_guid = (int) $site_guid; |
|
1642 | 1642 | |
1643 | 1643 | $container_guid = $this->attributes['container_guid']; |
1644 | 1644 | if ($container_guid == 0) { |
1645 | 1645 | $container_guid = $owner_guid; |
1646 | 1646 | $this->attributes['container_guid'] = $container_guid; |
1647 | 1647 | } |
1648 | - $container_guid = (int)$container_guid; |
|
1648 | + $container_guid = (int) $container_guid; |
|
1649 | 1649 | |
1650 | 1650 | if ($access_id == ACCESS_DEFAULT) { |
1651 | 1651 | throw new \InvalidParameterException('ACCESS_DEFAULT is not a valid access level. See its documentation in elgglib.h'); |
@@ -1663,10 +1663,10 @@ discard block |
||
1663 | 1663 | } |
1664 | 1664 | } |
1665 | 1665 | |
1666 | - if ( $type == "object" ){ |
|
1667 | - if ( $subtype == "mission-posted" || $subtype == "mission" ){ |
|
1668 | - $duplicate_check = md5( sanitize_string($this->title).sanitize_string($this->description) ) . $owner_guid . get_input('__elgg_ts'); |
|
1669 | - try{ |
|
1666 | + if ($type == "object") { |
|
1667 | + if ($subtype == "mission-posted" || $subtype == "mission") { |
|
1668 | + $duplicate_check = md5(sanitize_string($this->title) . sanitize_string($this->description)) . $owner_guid . get_input('__elgg_ts'); |
|
1669 | + try { |
|
1670 | 1670 | $result = $this->getDatabase()->insertData("INSERT into {$CONFIG->dbprefix}entities |
1671 | 1671 | (type, subtype, owner_guid, site_guid, container_guid, |
1672 | 1672 | access_id, time_created, time_updated, last_action, enabled, duplicate_check) |
@@ -1674,12 +1674,12 @@ discard block |
||
1674 | 1674 | ('$type', $subtype_id, $owner_guid, $site_guid, $container_guid, |
1675 | 1675 | $access_id, $time_created, $now, $now, 'no', '$duplicate_check')"); |
1676 | 1676 | } |
1677 | - catch( DatabaseException $e ){ |
|
1677 | + catch (DatabaseException $e) { |
|
1678 | 1678 | error_log("Duplication prevented: " . $e->getMessage()); |
1679 | 1679 | return null; |
1680 | 1680 | } |
1681 | 1681 | } |
1682 | - else{ |
|
1682 | + else { |
|
1683 | 1683 | $result = $this->getDatabase()->insertData("INSERT into {$CONFIG->dbprefix}entities |
1684 | 1684 | (type, subtype, owner_guid, site_guid, container_guid, |
1685 | 1685 | access_id, time_created, time_updated, last_action, enabled) |
@@ -1702,13 +1702,13 @@ discard block |
||
1702 | 1702 | } |
1703 | 1703 | |
1704 | 1704 | // for BC with 1.8, ->subtype always returns ID, ->getSubtype() the string |
1705 | - $this->attributes['subtype'] = (int)$subtype_id; |
|
1706 | - $this->attributes['guid'] = (int)$result; |
|
1707 | - $this->attributes['time_created'] = (int)$time_created; |
|
1708 | - $this->attributes['time_updated'] = (int)$now; |
|
1709 | - $this->attributes['last_action'] = (int)$now; |
|
1710 | - $this->attributes['site_guid'] = (int)$site_guid; |
|
1711 | - $this->attributes['container_guid'] = (int)$container_guid; |
|
1705 | + $this->attributes['subtype'] = (int) $subtype_id; |
|
1706 | + $this->attributes['guid'] = (int) $result; |
|
1707 | + $this->attributes['time_created'] = (int) $time_created; |
|
1708 | + $this->attributes['time_updated'] = (int) $now; |
|
1709 | + $this->attributes['last_action'] = (int) $now; |
|
1710 | + $this->attributes['site_guid'] = (int) $site_guid; |
|
1711 | + $this->attributes['container_guid'] = (int) $container_guid; |
|
1712 | 1712 | |
1713 | 1713 | // Save any unsaved metadata |
1714 | 1714 | if (sizeof($this->temp_metadata) > 0) { |
@@ -1777,11 +1777,11 @@ discard block |
||
1777 | 1777 | } |
1778 | 1778 | |
1779 | 1779 | // See #6225. We copy these after the update event in case a handler changed one of them. |
1780 | - $guid = (int)$this->guid; |
|
1781 | - $owner_guid = (int)$this->owner_guid; |
|
1782 | - $access_id = (int)$this->access_id; |
|
1783 | - $container_guid = (int)$this->container_guid; |
|
1784 | - $time_created = (int)$this->time_created; |
|
1780 | + $guid = (int) $this->guid; |
|
1781 | + $owner_guid = (int) $this->owner_guid; |
|
1782 | + $access_id = (int) $this->access_id; |
|
1783 | + $container_guid = (int) $this->container_guid; |
|
1784 | + $time_created = (int) $this->time_created; |
|
1785 | 1785 | $time = time(); |
1786 | 1786 | |
1787 | 1787 | if ($access_id == ACCESS_DEFAULT) { |
@@ -1851,10 +1851,10 @@ discard block |
||
1851 | 1851 | } |
1852 | 1852 | |
1853 | 1853 | // guid needs to be an int https://github.com/elgg/elgg/issues/4111 |
1854 | - $this->attributes['guid'] = (int)$this->attributes['guid']; |
|
1854 | + $this->attributes['guid'] = (int) $this->attributes['guid']; |
|
1855 | 1855 | |
1856 | 1856 | // for BC with 1.8, ->subtype always returns ID, ->getSubtype() the string |
1857 | - $this->attributes['subtype'] = (int)$this->attributes['subtype']; |
|
1857 | + $this->attributes['subtype'] = (int) $this->attributes['subtype']; |
|
1858 | 1858 | |
1859 | 1859 | // Cache object handle |
1860 | 1860 | if ($this->attributes['guid']) { |
@@ -1945,7 +1945,7 @@ discard block |
||
1945 | 1945 | } |
1946 | 1946 | |
1947 | 1947 | global $CONFIG; |
1948 | - $guid = (int)$this->guid; |
|
1948 | + $guid = (int) $this->guid; |
|
1949 | 1949 | |
1950 | 1950 | if ($recursive) { |
1951 | 1951 | $hidden = access_get_show_hidden_status(); |
@@ -2008,7 +2008,7 @@ discard block |
||
2008 | 2008 | * @return bool |
2009 | 2009 | */ |
2010 | 2010 | public function enable($recursive = true) { |
2011 | - $guid = (int)$this->guid; |
|
2011 | + $guid = (int) $this->guid; |
|
2012 | 2012 | if (!$guid) { |
2013 | 2013 | return false; |
2014 | 2014 | } |
@@ -2189,7 +2189,7 @@ discard block |
||
2189 | 2189 | |
2190 | 2190 | _elgg_clear_entity_files($this); |
2191 | 2191 | |
2192 | - return (bool)$res; |
|
2192 | + return (bool) $res; |
|
2193 | 2193 | } |
2194 | 2194 | |
2195 | 2195 | /** |
@@ -2214,11 +2214,11 @@ discard block |
||
2214 | 2214 | $object->subtype = $this->getSubtype(); |
2215 | 2215 | $object->owner_guid = $this->getOwnerGUID(); |
2216 | 2216 | $object->container_guid = $this->getContainerGUID(); |
2217 | - $object->site_guid = (int)$this->site_guid; |
|
2217 | + $object->site_guid = (int) $this->site_guid; |
|
2218 | 2218 | $object->time_created = date('c', $this->getTimeCreated()); |
2219 | 2219 | $object->time_updated = date('c', $this->getTimeUpdated()); |
2220 | 2220 | $object->url = $this->getURL(); |
2221 | - $object->read_access = (int)$this->access_id; |
|
2221 | + $object->read_access = (int) $this->access_id; |
|
2222 | 2222 | return $object; |
2223 | 2223 | } |
2224 | 2224 | |
@@ -2267,7 +2267,7 @@ discard block |
||
2267 | 2267 | * @todo Unimplemented |
2268 | 2268 | */ |
2269 | 2269 | public function getLatitude() { |
2270 | - return (float)$this->{"geo:lat"}; |
|
2270 | + return (float) $this->{"geo:lat"}; |
|
2271 | 2271 | } |
2272 | 2272 | |
2273 | 2273 | /** |
@@ -2277,7 +2277,7 @@ discard block |
||
2277 | 2277 | * @todo Unimplemented |
2278 | 2278 | */ |
2279 | 2279 | public function getLongitude() { |
2280 | - return (float)$this->{"geo:long"}; |
|
2280 | + return (float) $this->{"geo:long"}; |
|
2281 | 2281 | } |
2282 | 2282 | |
2283 | 2283 | /* |
@@ -2322,7 +2322,7 @@ discard block |
||
2322 | 2322 | */ |
2323 | 2323 | public function getCalendarStartTime() { |
2324 | 2324 | elgg_deprecated_notice(__METHOD__ . ' has been deprecated', 1.9); |
2325 | - return (int)$this->calendar_start; |
|
2325 | + return (int) $this->calendar_start; |
|
2326 | 2326 | } |
2327 | 2327 | |
2328 | 2328 | /** |
@@ -2333,7 +2333,7 @@ discard block |
||
2333 | 2333 | */ |
2334 | 2334 | public function getCalendarEndTime() { |
2335 | 2335 | elgg_deprecated_notice(__METHOD__ . ' has been deprecated', 1.9); |
2336 | - return (int)$this->calendar_end; |
|
2336 | + return (int) $this->calendar_end; |
|
2337 | 2337 | } |
2338 | 2338 | |
2339 | 2339 | /* |
@@ -1673,13 +1673,11 @@ discard block |
||
1673 | 1673 | values |
1674 | 1674 | ('$type', $subtype_id, $owner_guid, $site_guid, $container_guid, |
1675 | 1675 | $access_id, $time_created, $now, $now, 'no', '$duplicate_check')"); |
1676 | - } |
|
1677 | - catch( DatabaseException $e ){ |
|
1676 | + } catch( DatabaseException $e ){ |
|
1678 | 1677 | error_log("Duplication prevented: " . $e->getMessage()); |
1679 | 1678 | return null; |
1680 | 1679 | } |
1681 | - } |
|
1682 | - else{ |
|
1680 | + } else{ |
|
1683 | 1681 | $result = $this->getDatabase()->insertData("INSERT into {$CONFIG->dbprefix}entities |
1684 | 1682 | (type, subtype, owner_guid, site_guid, container_guid, |
1685 | 1683 | access_id, time_created, time_updated, last_action, enabled) |
@@ -1687,8 +1685,7 @@ discard block |
||
1687 | 1685 | ('$type', $subtype_id, $owner_guid, $site_guid, $container_guid, |
1688 | 1686 | $access_id, $time_created, $now, $now, 'no')"); |
1689 | 1687 | } |
1690 | - } |
|
1691 | - else { |
|
1688 | + } else { |
|
1692 | 1689 | $result = $this->getDatabase()->insertData("INSERT into {$CONFIG->dbprefix}entities |
1693 | 1690 | (type, subtype, owner_guid, site_guid, container_guid, |
1694 | 1691 | access_id, time_created, time_updated, last_action) |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | * @return bool |
245 | 245 | */ |
246 | 246 | public function isLoggedIn() { |
247 | - return (bool)$this->getLoggedInUser(); |
|
247 | + return (bool) $this->getLoggedInUser(); |
|
248 | 248 | } |
249 | 249 | |
250 | 250 | /** |
@@ -435,7 +435,7 @@ discard block |
||
435 | 435 | |
436 | 436 | if (in_array($offset, array('user', 'id', 'name', 'username'))) { |
437 | 437 | elgg_deprecated_notice("Only 'guid' is stored in session for user now", 1.9); |
438 | - return (bool)$this->logged_in_user; |
|
438 | + return (bool) $this->logged_in_user; |
|
439 | 439 | } |
440 | 440 | |
441 | 441 | if ($this->has($offset)) { |
@@ -174,7 +174,7 @@ |
||
174 | 174 | return false; |
175 | 175 | } |
176 | 176 | |
177 | - $guid = (int)$this->guid; |
|
177 | + $guid = (int) $this->guid; |
|
178 | 178 | $name = sanitize_string($this->name); |
179 | 179 | $description = sanitize_string($this->description); |
180 | 180 | $url = sanitize_string($this->url); |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | * @access private |
44 | 44 | */ |
45 | 45 | function getRow($guid) { |
46 | - $guid = (int)$guid; |
|
46 | + $guid = (int) $guid; |
|
47 | 47 | return _elgg_services()->db->getDataRow("SELECT * from {$this->CONFIG->dbprefix}users_entity where guid=$guid"); |
48 | 48 | } |
49 | 49 | |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | * @return bool |
82 | 82 | */ |
83 | 83 | function ban($user_guid, $reason = "") { |
84 | - $user_guid = (int)$user_guid; |
|
84 | + $user_guid = (int) $user_guid; |
|
85 | 85 | |
86 | 86 | $user = get_entity($user_guid); |
87 | 87 | |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | * @return bool |
141 | 141 | */ |
142 | 142 | function unban($user_guid) { |
143 | - $user_guid = (int)$user_guid; |
|
143 | + $user_guid = (int) $user_guid; |
|
144 | 144 | |
145 | 145 | $user = get_entity($user_guid); |
146 | 146 | |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | * @return bool |
176 | 176 | */ |
177 | 177 | function makeAdmin($user_guid) { |
178 | - $user = get_entity((int)$user_guid); |
|
178 | + $user = get_entity((int) $user_guid); |
|
179 | 179 | |
180 | 180 | if (($user) && ($user instanceof \ElggUser) && ($user->canEdit())) { |
181 | 181 | if (_elgg_services()->events->trigger('make_admin', 'user', $user)) { |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | function removeAdmin($user_guid) { |
212 | 212 | |
213 | 213 | |
214 | - $user = get_entity((int)$user_guid); |
|
214 | + $user = get_entity((int) $user_guid); |
|
215 | 215 | |
216 | 216 | if (($user) && ($user instanceof \ElggUser) && ($user->canEdit())) { |
217 | 217 | if (_elgg_services()->events->trigger('remove_admin', 'user', $user)) { |
@@ -339,9 +339,9 @@ discard block |
||
339 | 339 | |
340 | 340 | // cast options we're sending to hook |
341 | 341 | foreach (array('seconds', 'limit', 'offset') as $key) { |
342 | - $options[$key] = (int)$options[$key]; |
|
342 | + $options[$key] = (int) $options[$key]; |
|
343 | 343 | } |
344 | - $options['count'] = (bool)$options['count']; |
|
344 | + $options['count'] = (bool) $options['count']; |
|
345 | 345 | |
346 | 346 | // allow plugins to override |
347 | 347 | $params = array( |
@@ -454,7 +454,7 @@ discard block |
||
454 | 454 | */ |
455 | 455 | function generateInviteCode($username) { |
456 | 456 | $time = time(); |
457 | - return "$time." . _elgg_services()->crypto->getHmac([(int)$time, $username])->getToken(); |
|
457 | + return "$time." . _elgg_services()->crypto->getHmac([(int) $time, $username])->getToken(); |
|
458 | 458 | } |
459 | 459 | |
460 | 460 | /** |
@@ -474,7 +474,7 @@ discard block |
||
474 | 474 | $time = $m[1]; |
475 | 475 | $mac = $m[2]; |
476 | 476 | |
477 | - return _elgg_services()->crypto->getHmac([(int)$time, $username])->matchesToken($mac); |
|
477 | + return _elgg_services()->crypto->getHmac([(int) $time, $username])->matchesToken($mac); |
|
478 | 478 | } |
479 | 479 | |
480 | 480 | /** |