We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | |
| 74 | 74 | $GLOBALS['TSFE']->fe_user->setKey('ses', 'tx_dlf_basket', ''); |
| 75 | 75 | |
| 76 | - $GLOBALS['TSFE']->fe_user->sesData_change = true; |
|
| 76 | + $GLOBALS['TSFE']->fe_user->sesData_change = TRUE; |
|
| 77 | 77 | |
| 78 | 78 | $GLOBALS['TSFE']->fe_user->storeSessionData(); |
| 79 | 79 | |
@@ -412,7 +412,7 @@ discard block |
||
| 412 | 412 | |
| 413 | 413 | } |
| 414 | 414 | |
| 415 | - if ($page != null || $_piVars['addToBasket'] == 'list') { |
|
| 415 | + if ($page != NULL || $_piVars['addToBasket'] == 'list') { |
|
| 416 | 416 | |
| 417 | 417 | $documentItem = array( |
| 418 | 418 | 'id' => intval($_piVars['id']), |
@@ -442,7 +442,7 @@ discard block |
||
| 442 | 442 | $document = tx_dlf_document::getInstance($documentItem['id'],0); |
| 443 | 443 | |
| 444 | 444 | // set endpage for toc and subentry based on logid |
| 445 | - if (($_piVars['addToBasket'] == 'subentry') OR ($_piVars['addToBasket'] == 'toc')) { |
|
| 445 | + if (($_piVars['addToBasket'] == 'subentry') or ($_piVars['addToBasket'] == 'toc')) { |
|
| 446 | 446 | |
| 447 | 447 | $smLinks = $document->smLinks; |
| 448 | 448 | |
@@ -724,7 +724,7 @@ discard block |
||
| 724 | 724 | |
| 725 | 725 | } |
| 726 | 726 | |
| 727 | - return false; |
|
| 727 | + return FALSE; |
|
| 728 | 728 | |
| 729 | 729 | } |
| 730 | 730 | |
@@ -166,7 +166,7 @@ |
||
| 166 | 166 | |
| 167 | 167 | $params = array( |
| 168 | 168 | 'id' => $this->piVars['id'], |
| 169 | - 'addToBasket' => true |
|
| 169 | + 'addToBasket' => TRUE |
|
| 170 | 170 | ); |
| 171 | 171 | |
| 172 | 172 | if (empty($this->piVars['page'])) { |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | * |
| 73 | 73 | * @var float |
| 74 | 74 | */ |
| 75 | - protected $_documentBoost = false; |
|
| 75 | + protected $_documentBoost = FALSE; |
|
| 76 | 76 | |
| 77 | 77 | /** |
| 78 | 78 | * Document field values, indexed by name |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | */ |
| 94 | 94 | public function clear() |
| 95 | 95 | { |
| 96 | - $this->_documentBoost = false; |
|
| 96 | + $this->_documentBoost = FALSE; |
|
| 97 | 97 | |
| 98 | 98 | $this->_fields = array(); |
| 99 | 99 | $this->_fieldBoosts = array(); |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | } |
| 125 | 125 | else |
| 126 | 126 | { |
| 127 | - $this->_documentBoost = false; |
|
| 127 | + $this->_documentBoost = FALSE; |
|
| 128 | 128 | } |
| 129 | 129 | } |
| 130 | 130 | |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | * @param mixed $value |
| 152 | 152 | * @param mixed $boost Use false for default boost, else cast to float that should be > 0 or will be treated as false |
| 153 | 153 | */ |
| 154 | - public function addField($key, $value, $boost = false) |
|
| 154 | + public function addField($key, $value, $boost = FALSE) |
|
| 155 | 155 | { |
| 156 | 156 | if (!isset($this->_fields[$key])) |
| 157 | 157 | { |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | $this->_fields[$key] = array($this->_fields[$key]); |
| 165 | 165 | } |
| 166 | 166 | |
| 167 | - if ($this->getFieldBoost($key) === false) |
|
| 167 | + if ($this->getFieldBoost($key) === FALSE) |
|
| 168 | 168 | { |
| 169 | 169 | // boost not already set, set it now |
| 170 | 170 | $this->setFieldBoost($key, $boost); |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | * |
| 189 | 189 | * @deprecated Use addField(...) instead |
| 190 | 190 | */ |
| 191 | - public function setMultiValue($key, $value, $boost = false) |
|
| 191 | + public function setMultiValue($key, $value, $boost = FALSE) |
|
| 192 | 192 | { |
| 193 | 193 | $this->addField($key, $value, $boost); |
| 194 | 194 | } |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | ); |
| 211 | 211 | } |
| 212 | 212 | |
| 213 | - return false; |
|
| 213 | + return FALSE; |
|
| 214 | 214 | } |
| 215 | 215 | |
| 216 | 216 | /** |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | * @param mixed $value |
| 223 | 223 | * @param mixed $boost Use false for default boost, else cast to float that should be > 0 or will be treated as false |
| 224 | 224 | */ |
| 225 | - public function setField($key, $value, $boost = false) |
|
| 225 | + public function setField($key, $value, $boost = FALSE) |
|
| 226 | 226 | { |
| 227 | 227 | $this->_fields[$key] = $value; |
| 228 | 228 | $this->setFieldBoost($key, $boost); |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | */ |
| 237 | 237 | public function getFieldBoost($key) |
| 238 | 238 | { |
| 239 | - return isset($this->_fieldBoosts[$key]) ? $this->_fieldBoosts[$key] : false; |
|
| 239 | + return isset($this->_fieldBoosts[$key]) ? $this->_fieldBoosts[$key] : FALSE; |
|
| 240 | 240 | } |
| 241 | 241 | |
| 242 | 242 | /** |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | } |
| 256 | 256 | else |
| 257 | 257 | { |
| 258 | - $this->_fieldBoosts[$key] = false; |
|
| 258 | + $this->_fieldBoosts[$key] = FALSE; |
|
| 259 | 259 | } |
| 260 | 260 | } |
| 261 | 261 | |
@@ -319,7 +319,7 @@ discard block |
||
| 319 | 319 | return $this->_fields[$key]; |
| 320 | 320 | } |
| 321 | 321 | |
| 322 | - return null; |
|
| 322 | + return NULL; |
|
| 323 | 323 | } |
| 324 | 324 | |
| 325 | 325 | /** |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | $this->_postContext = stream_context_create(); |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | - public function performGetRequest($url, $timeout = false) |
|
| 74 | + public function performGetRequest($url, $timeout = FALSE) |
|
| 75 | 75 | { |
| 76 | 76 | // set the timeout if specified |
| 77 | 77 | if ($timeout !== FALSE && $timeout > 0.0) |
@@ -91,13 +91,13 @@ discard block |
||
| 91 | 91 | // $http_response_headers will be updated by the call to file_get_contents later |
| 92 | 92 | // see http://us.php.net/manual/en/wrappers.http.php for documentation |
| 93 | 93 | // Unfortunately, it will still create a notice in analyzers if we don't set it here |
| 94 | - $http_response_header = null; |
|
| 95 | - $responseBody = @file_get_contents($url, false, $this->_getContext); |
|
| 94 | + $http_response_header = NULL; |
|
| 95 | + $responseBody = @file_get_contents($url, FALSE, $this->_getContext); |
|
| 96 | 96 | |
| 97 | 97 | return $this->_getResponseFromParts($responseBody, $http_response_header); |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | - public function performHeadRequest($url, $timeout = false) |
|
| 100 | + public function performHeadRequest($url, $timeout = FALSE) |
|
| 101 | 101 | { |
| 102 | 102 | stream_context_set_option($this->_headContext, array( |
| 103 | 103 | 'http' => array( |
@@ -123,13 +123,13 @@ discard block |
||
| 123 | 123 | // $http_response_headers will be updated by the call to file_get_contents later |
| 124 | 124 | // see http://us.php.net/manual/en/wrappers.http.php for documentation |
| 125 | 125 | // Unfortunately, it will still create a notice in analyzers if we don't set it here |
| 126 | - $http_response_header = null; |
|
| 127 | - $responseBody = @file_get_contents($url, false, $this->_headContext); |
|
| 126 | + $http_response_header = NULL; |
|
| 127 | + $responseBody = @file_get_contents($url, FALSE, $this->_headContext); |
|
| 128 | 128 | |
| 129 | 129 | return $this->_getResponseFromParts($responseBody, $http_response_header); |
| 130 | 130 | } |
| 131 | 131 | |
| 132 | - public function performPostRequest($url, $rawPost, $contentType, $timeout = false) |
|
| 132 | + public function performPostRequest($url, $rawPost, $contentType, $timeout = FALSE) |
|
| 133 | 133 | { |
| 134 | 134 | stream_context_set_option($this->_postContext, array( |
| 135 | 135 | 'http' => array( |
@@ -161,8 +161,8 @@ discard block |
||
| 161 | 161 | // $http_response_header will be updated by the call to file_get_contents later |
| 162 | 162 | // see http://us.php.net/manual/en/wrappers.http.php for documentation |
| 163 | 163 | // Unfortunately, it will still create a notice in analyzers if we don't set it here |
| 164 | - $http_response_header = null; |
|
| 165 | - $responseBody = @file_get_contents($url, false, $this->_postContext); |
|
| 164 | + $http_response_header = NULL; |
|
| 165 | + $responseBody = @file_get_contents($url, FALSE, $this->_postContext); |
|
| 166 | 166 | |
| 167 | 167 | // reset content of post context to reclaim memory |
| 168 | 168 | stream_context_set_option($this->_postContext, 'http', 'content', ''); |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | { |
| 175 | 175 | //Assume 0, false as defaults |
| 176 | 176 | $status = 0; |
| 177 | - $contentType = false; |
|
| 177 | + $contentType = FALSE; |
|
| 178 | 178 | |
| 179 | 179 | //iterate through headers for real status, type, and encoding |
| 180 | 180 | if (is_array($httpHeaders) && count($httpHeaders) > 0) |
@@ -72,13 +72,13 @@ discard block |
||
| 72 | 72 | // set common options that will not be changed during the session |
| 73 | 73 | curl_setopt_array($this->_curl, array( |
| 74 | 74 | // return the response body from curl_exec |
| 75 | - CURLOPT_RETURNTRANSFER => true, |
|
| 75 | + CURLOPT_RETURNTRANSFER => TRUE, |
|
| 76 | 76 | |
| 77 | 77 | // get the output as binary data |
| 78 | - CURLOPT_BINARYTRANSFER => true, |
|
| 78 | + CURLOPT_BINARYTRANSFER => TRUE, |
|
| 79 | 79 | |
| 80 | 80 | // we do not need the headers in the output, we get everything we need from curl_getinfo |
| 81 | - CURLOPT_HEADER => false |
|
| 81 | + CURLOPT_HEADER => FALSE |
|
| 82 | 82 | )); |
| 83 | 83 | } |
| 84 | 84 | |
@@ -91,10 +91,10 @@ discard block |
||
| 91 | 91 | curl_close($this->_curl); |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | - public function performGetRequest($url, $timeout = false) |
|
| 94 | + public function performGetRequest($url, $timeout = FALSE) |
|
| 95 | 95 | { |
| 96 | 96 | // check the timeout value |
| 97 | - if ($timeout === false || $timeout <= 0.0) |
|
| 97 | + if ($timeout === FALSE || $timeout <= 0.0) |
|
| 98 | 98 | { |
| 99 | 99 | // use the default timeout |
| 100 | 100 | $timeout = $this->getDefaultTimeout(); |
@@ -103,10 +103,10 @@ discard block |
||
| 103 | 103 | // set curl GET options |
| 104 | 104 | curl_setopt_array($this->_curl, array( |
| 105 | 105 | // make sure we're returning the body |
| 106 | - CURLOPT_NOBODY => false, |
|
| 106 | + CURLOPT_NOBODY => FALSE, |
|
| 107 | 107 | |
| 108 | 108 | // make sure we're GET |
| 109 | - CURLOPT_HTTPGET => true, |
|
| 109 | + CURLOPT_HTTPGET => TRUE, |
|
| 110 | 110 | |
| 111 | 111 | // set the URL |
| 112 | 112 | CURLOPT_URL => $url, |
@@ -125,10 +125,10 @@ discard block |
||
| 125 | 125 | return new Apache_Solr_HttpTransport_Response($statusCode, $contentType, $responseBody); |
| 126 | 126 | } |
| 127 | 127 | |
| 128 | - public function performHeadRequest($url, $timeout = false) |
|
| 128 | + public function performHeadRequest($url, $timeout = FALSE) |
|
| 129 | 129 | { |
| 130 | 130 | // check the timeout value |
| 131 | - if ($timeout === false || $timeout <= 0.0) |
|
| 131 | + if ($timeout === FALSE || $timeout <= 0.0) |
|
| 132 | 132 | { |
| 133 | 133 | // use the default timeout |
| 134 | 134 | $timeout = $this->getDefaultTimeout(); |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | // set curl HEAD options |
| 138 | 138 | curl_setopt_array($this->_curl, array( |
| 139 | 139 | // this both sets the method to HEAD and says not to return a body |
| 140 | - CURLOPT_NOBODY => true, |
|
| 140 | + CURLOPT_NOBODY => TRUE, |
|
| 141 | 141 | |
| 142 | 142 | // set the URL |
| 143 | 143 | CURLOPT_URL => $url, |
@@ -156,10 +156,10 @@ discard block |
||
| 156 | 156 | return new Apache_Solr_HttpTransport_Response($statusCode, $contentType, $responseBody); |
| 157 | 157 | } |
| 158 | 158 | |
| 159 | - public function performPostRequest($url, $postData, $contentType, $timeout = false) |
|
| 159 | + public function performPostRequest($url, $postData, $contentType, $timeout = FALSE) |
|
| 160 | 160 | { |
| 161 | 161 | // check the timeout value |
| 162 | - if ($timeout === false || $timeout <= 0.0) |
|
| 162 | + if ($timeout === FALSE || $timeout <= 0.0) |
|
| 163 | 163 | { |
| 164 | 164 | // use the default timeout |
| 165 | 165 | $timeout = $this->getDefaultTimeout(); |
@@ -168,10 +168,10 @@ discard block |
||
| 168 | 168 | // set curl POST options |
| 169 | 169 | curl_setopt_array($this->_curl, array( |
| 170 | 170 | // make sure we're returning the body |
| 171 | - CURLOPT_NOBODY => false, |
|
| 171 | + CURLOPT_NOBODY => FALSE, |
|
| 172 | 172 | |
| 173 | 173 | // make sure we're POST |
| 174 | - CURLOPT_POST => true, |
|
| 174 | + CURLOPT_POST => TRUE, |
|
| 175 | 175 | |
| 176 | 176 | // set the URL |
| 177 | 177 | CURLOPT_URL => $url, |
@@ -56,10 +56,10 @@ discard block |
||
| 56 | 56 | */ |
| 57 | 57 | const SVN_ID = '$Id:$'; |
| 58 | 58 | |
| 59 | - public function performGetRequest($url, $timeout = false) |
|
| 59 | + public function performGetRequest($url, $timeout = FALSE) |
|
| 60 | 60 | { |
| 61 | 61 | // check the timeout value |
| 62 | - if ($timeout === false || $timeout <= 0.0) |
|
| 62 | + if ($timeout === FALSE || $timeout <= 0.0) |
|
| 63 | 63 | { |
| 64 | 64 | // use the default timeout |
| 65 | 65 | $timeout = $this->getDefaultTimeout(); |
@@ -70,13 +70,13 @@ discard block |
||
| 70 | 70 | // set curl GET options |
| 71 | 71 | curl_setopt_array($curl, array( |
| 72 | 72 | // return the response body from curl_exec |
| 73 | - CURLOPT_RETURNTRANSFER => true, |
|
| 73 | + CURLOPT_RETURNTRANSFER => TRUE, |
|
| 74 | 74 | |
| 75 | 75 | // get the output as binary data |
| 76 | - CURLOPT_BINARYTRANSFER => true, |
|
| 76 | + CURLOPT_BINARYTRANSFER => TRUE, |
|
| 77 | 77 | |
| 78 | 78 | // we do not need the headers in the output, we get everything we need from curl_getinfo |
| 79 | - CURLOPT_HEADER => false, |
|
| 79 | + CURLOPT_HEADER => FALSE, |
|
| 80 | 80 | |
| 81 | 81 | // set the URL |
| 82 | 82 | CURLOPT_URL => $url, |
@@ -98,10 +98,10 @@ discard block |
||
| 98 | 98 | return new Apache_Solr_HttpTransport_Response($statusCode, $contentType, $responseBody); |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | - public function performHeadRequest($url, $timeout = false) |
|
| 101 | + public function performHeadRequest($url, $timeout = FALSE) |
|
| 102 | 102 | { |
| 103 | 103 | // check the timeout value |
| 104 | - if ($timeout === false || $timeout <= 0.0) |
|
| 104 | + if ($timeout === FALSE || $timeout <= 0.0) |
|
| 105 | 105 | { |
| 106 | 106 | // use the default timeout |
| 107 | 107 | $timeout = $this->getDefaultTimeout(); |
@@ -112,16 +112,16 @@ discard block |
||
| 112 | 112 | // set curl HEAD options |
| 113 | 113 | curl_setopt_array($curl, array( |
| 114 | 114 | // return the response body from curl_exec |
| 115 | - CURLOPT_RETURNTRANSFER => true, |
|
| 115 | + CURLOPT_RETURNTRANSFER => TRUE, |
|
| 116 | 116 | |
| 117 | 117 | // get the output as binary data |
| 118 | - CURLOPT_BINARYTRANSFER => true, |
|
| 118 | + CURLOPT_BINARYTRANSFER => TRUE, |
|
| 119 | 119 | |
| 120 | 120 | // we do not need the headers in the output, we get everything we need from curl_getinfo |
| 121 | - CURLOPT_HEADER => false, |
|
| 121 | + CURLOPT_HEADER => FALSE, |
|
| 122 | 122 | |
| 123 | 123 | // this both sets the method to HEAD and says not to return a body |
| 124 | - CURLOPT_NOBODY => true, |
|
| 124 | + CURLOPT_NOBODY => TRUE, |
|
| 125 | 125 | |
| 126 | 126 | // set the URL |
| 127 | 127 | CURLOPT_URL => $url, |
@@ -143,10 +143,10 @@ discard block |
||
| 143 | 143 | return new Apache_Solr_HttpTransport_Response($statusCode, $contentType, $responseBody); |
| 144 | 144 | } |
| 145 | 145 | |
| 146 | - public function performPostRequest($url, $postData, $contentType, $timeout = false) |
|
| 146 | + public function performPostRequest($url, $postData, $contentType, $timeout = FALSE) |
|
| 147 | 147 | { |
| 148 | 148 | // check the timeout value |
| 149 | - if ($timeout === false || $timeout <= 0.0) |
|
| 149 | + if ($timeout === FALSE || $timeout <= 0.0) |
|
| 150 | 150 | { |
| 151 | 151 | // use the default timeout |
| 152 | 152 | $timeout = $this->getDefaultTimeout(); |
@@ -157,16 +157,16 @@ discard block |
||
| 157 | 157 | // set curl POST options |
| 158 | 158 | curl_setopt_array($curl, array( |
| 159 | 159 | // return the response body from curl_exec |
| 160 | - CURLOPT_RETURNTRANSFER => true, |
|
| 160 | + CURLOPT_RETURNTRANSFER => TRUE, |
|
| 161 | 161 | |
| 162 | 162 | // get the output as binary data |
| 163 | - CURLOPT_BINARYTRANSFER => true, |
|
| 163 | + CURLOPT_BINARYTRANSFER => TRUE, |
|
| 164 | 164 | |
| 165 | 165 | // we do not need the headers in the output, we get everything we need from curl_getinfo |
| 166 | - CURLOPT_HEADER => false, |
|
| 166 | + CURLOPT_HEADER => FALSE, |
|
| 167 | 167 | |
| 168 | 168 | // make sure we're POST |
| 169 | - CURLOPT_POST => true, |
|
| 169 | + CURLOPT_POST => TRUE, |
|
| 170 | 170 | |
| 171 | 171 | // set the URL |
| 172 | 172 | CURLOPT_URL => $url, |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | * |
| 48 | 48 | * @var float |
| 49 | 49 | */ |
| 50 | - private $_defaultTimeout = false; |
|
| 50 | + private $_defaultTimeout = FALSE; |
|
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | 53 | * Get the current default timeout setting (initially the default_socket_timeout ini setting) |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | public function getDefaultTimeout() |
| 59 | 59 | { |
| 60 | 60 | // lazy load the default timeout from the ini settings |
| 61 | - if ($this->_defaultTimeout === false) |
|
| 61 | + if ($this->_defaultTimeout === FALSE) |
|
| 62 | 62 | { |
| 63 | 63 | $this->_defaultTimeout = (int) ini_get('default_socket_timeout'); |
| 64 | 64 | |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | * @param float $timeout |
| 69 | 69 | * @return Apache_Solr_HttpTransport_Response HTTP response |
| 70 | 70 | */ |
| 71 | - public function performGetRequest($url, $timeout = false); |
|
| 71 | + public function performGetRequest($url, $timeout = FALSE); |
|
| 72 | 72 | |
| 73 | 73 | /** |
| 74 | 74 | * Perform a HEAD HTTP operation with an optional timeout and return the response |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | * @param float $timeout |
| 79 | 79 | * @return Apache_Solr_HttpTransport_Response HTTP response |
| 80 | 80 | */ |
| 81 | - public function performHeadRequest($url, $timeout = false); |
|
| 81 | + public function performHeadRequest($url, $timeout = FALSE); |
|
| 82 | 82 | |
| 83 | 83 | /** |
| 84 | 84 | * Perform a POST HTTP operation with an optional timeout and return the response |
@@ -90,5 +90,5 @@ discard block |
||
| 90 | 90 | * @param float $timeout |
| 91 | 91 | * @return Apache_Solr_HttpTransport_Response HTTP response |
| 92 | 92 | */ |
| 93 | - public function performPostRequest($url, $rawPost, $contentType, $timeout = false); |
|
| 93 | + public function performPostRequest($url, $rawPost, $contentType, $timeout = FALSE); |
|
| 94 | 94 | } |
| 95 | 95 | \ No newline at end of file |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | * |
| 70 | 70 | * @var boolean |
| 71 | 71 | */ |
| 72 | - protected $_isParsed = false; |
|
| 72 | + protected $_isParsed = FALSE; |
|
| 73 | 73 | |
| 74 | 74 | /** |
| 75 | 75 | * Parsed representation of the data |
@@ -84,8 +84,8 @@ discard block |
||
| 84 | 84 | * |
| 85 | 85 | * @var boolean |
| 86 | 86 | */ |
| 87 | - protected $_createDocuments = true, |
|
| 88 | - $_collapseSingleValueArrays = true; |
|
| 87 | + protected $_createDocuments = TRUE, |
|
| 88 | + $_collapseSingleValueArrays = TRUE; |
|
| 89 | 89 | |
| 90 | 90 | /** |
| 91 | 91 | * Constructor. Takes the raw HTTP response body and the exploded HTTP headers |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | * @param boolean $createDocuments Whether to convert the documents json_decoded as stdClass instances to Apache_Solr_Document instances |
| 95 | 95 | * @param boolean $collapseSingleValueArrays Whether to make multivalued fields appear as single values |
| 96 | 96 | */ |
| 97 | - public function __construct(Apache_Solr_HttpTransport_Response $response, $createDocuments = true, $collapseSingleValueArrays = true) |
|
| 97 | + public function __construct(Apache_Solr_HttpTransport_Response $response, $createDocuments = TRUE, $collapseSingleValueArrays = TRUE) |
|
| 98 | 98 | { |
| 99 | 99 | $this->_response = $response; |
| 100 | 100 | $this->_createDocuments = (bool) $createDocuments; |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | if (!$this->_isParsed) |
| 163 | 163 | { |
| 164 | 164 | $this->_parseData(); |
| 165 | - $this->_isParsed = true; |
|
| 165 | + $this->_isParsed = TRUE; |
|
| 166 | 166 | } |
| 167 | 167 | |
| 168 | 168 | if (isset($this->_parsedData->$key)) |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | return $this->_parsedData->$key; |
| 171 | 171 | } |
| 172 | 172 | |
| 173 | - return null; |
|
| 173 | + return NULL; |
|
| 174 | 174 | } |
| 175 | 175 | |
| 176 | 176 | /** |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | if (!$this->_isParsed) |
| 185 | 185 | { |
| 186 | 186 | $this->_parseData(); |
| 187 | - $this->_isParsed = true; |
|
| 187 | + $this->_isParsed = TRUE; |
|
| 188 | 188 | } |
| 189 | 189 | |
| 190 | 190 | return isset($this->_parsedData->$key); |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | $data = json_decode($this->_response->getBody()); |
| 202 | 202 | |
| 203 | 203 | // check that we receive a valid JSON response - we should never receive a null |
| 204 | - if ($data === null) |
|
| 204 | + if ($data === NULL) |
|
| 205 | 205 | { |
| 206 | 206 | throw new Apache_Solr_ParserException('Solr response does not appear to be valid JSON, please examine the raw response with getRawResponse() method'); |
| 207 | 207 | } |