Mercurial > hg > cmmr2012-drupal-site
diff vendor/zendframework/zend-feed/src/PubSubHubbub/Subscriber/Callback.php @ 2:5311817fb629
Theme updates
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 13:19:18 +0000 |
parents | c75dbcec494b |
children |
line wrap: on
line diff
--- a/vendor/zendframework/zend-feed/src/PubSubHubbub/Subscriber/Callback.php Thu Jul 05 15:32:06 2018 +0100 +++ b/vendor/zendframework/zend-feed/src/PubSubHubbub/Subscriber/Callback.php Tue Jul 10 13:19:18 2018 +0000 @@ -147,7 +147,7 @@ 'hub_verify_token', ]; foreach ($required as $key) { - if (!array_key_exists($key, $httpGetData)) { + if (! array_key_exists($key, $httpGetData)) { return false; } } @@ -157,11 +157,11 @@ return false; } if ($httpGetData['hub_mode'] == 'subscribe' - && !array_key_exists('hub_lease_seconds', $httpGetData) + && ! array_key_exists('hub_lease_seconds', $httpGetData) ) { return false; } - if (!Uri::factory($httpGetData['hub_topic'])->isValid()) { + if (! Uri::factory($httpGetData['hub_topic'])->isValid()) { return false; } @@ -169,7 +169,7 @@ * Attempt to retrieve any Verification Token Key attached to Callback * URL's path by our Subscriber implementation */ - if (!$this->_hasValidVerifyToken($httpGetData)) { + if (! $this->_hasValidVerifyToken($httpGetData)) { return false; } return true; @@ -220,14 +220,16 @@ * @param bool $checkValue * @return bool */ + // @codingStandardsIgnoreStart protected function _hasValidVerifyToken(array $httpGetData = null, $checkValue = true) { + // @codingStandardsIgnoreEnd $verifyTokenKey = $this->_detectVerifyTokenKey($httpGetData); if (empty($verifyTokenKey)) { return false; } $verifyTokenExists = $this->getStorage()->hasSubscription($verifyTokenKey); - if (!$verifyTokenExists) { + if (! $verifyTokenExists) { return false; } if ($checkValue) { @@ -250,8 +252,10 @@ * @param null|array $httpGetData * @return false|string */ + // @codingStandardsIgnoreStart protected function _detectVerifyTokenKey(array $httpGetData = null) { + // @codingStandardsIgnoreEnd /** * Available when sub keys encoding in Callback URL path */ @@ -286,8 +290,10 @@ * * @return array|void */ + // @codingStandardsIgnoreStart protected function _parseQueryString() { + // @codingStandardsIgnoreEnd $params = []; $queryString = ''; if (isset($_SERVER['QUERY_STRING'])) {