@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | 'description' => '', |
| 27 | 27 | ); |
| 28 | 28 | |
| 29 | -if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers']) == false) { |
|
| 29 | +if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers']) == FALSE) { |
|
| 30 | 30 | $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'] = array(); |
| 31 | 31 | } |
| 32 | 32 | $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] = 'EWW\Dpf\Command\TransferCommandController'; |
@@ -69,15 +69,15 @@ discard block |
||
| 69 | 69 | ) |
| 70 | 70 | ); |
| 71 | 71 | |
| 72 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'Classes/Plugins/MetaTags/MetaTags.php', '_metatags', 'list_type', true); |
|
| 72 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'Classes/Plugins/MetaTags/MetaTags.php', '_metatags', 'list_type', TRUE); |
|
| 73 | 73 | $overrideSetup = 'plugin.tx_dpf_metatags.userFunc = EWW\Dpf\Plugins\MetaTags\MetaTags->main'; |
| 74 | 74 | \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', $overrideSetup); |
| 75 | 75 | |
| 76 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'Classes/Plugins/DownloadTool/DownloadTool.php', '_downloadtool', 'list_type', true); |
|
| 76 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'Classes/Plugins/DownloadTool/DownloadTool.php', '_downloadtool', 'list_type', TRUE); |
|
| 77 | 77 | $overrideSetup = 'plugin.tx_dpf_downloadtool.userFunc = EWW\Dpf\Plugins\DownloadTool\DownloadTool->main'; |
| 78 | 78 | \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', $overrideSetup); |
| 79 | 79 | |
| 80 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'Classes/Plugins/RelatedListTool/RelatedListTool.php', '_relatedlisttool', 'list_type', true); |
|
| 80 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'Classes/Plugins/RelatedListTool/RelatedListTool.php', '_relatedlisttool', 'list_type', TRUE); |
|
| 81 | 81 | $overrideSetup = 'plugin.tx_dpf_relatedlisttool.userFunc = EWW\Dpf\Plugins\RelatedListTool\RelatedListTool->main'; |
| 82 | 82 | \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', $overrideSetup); |
| 83 | 83 | |
@@ -32,11 +32,11 @@ discard block |
||
| 32 | 32 | $method = Http::GET, |
| 33 | 33 | $headers = array(), |
| 34 | 34 | $raw_headers = '', |
| 35 | - $strict_ssl = false, |
|
| 35 | + $strict_ssl = FALSE, |
|
| 36 | 36 | $content_type, |
| 37 | 37 | $expected_type, |
| 38 | 38 | $additional_curl_opts = array(), |
| 39 | - $auto_parse = true, |
|
| 39 | + $auto_parse = TRUE, |
|
| 40 | 40 | $serialize_payload_method = self::SERIALIZE_PAYLOAD_SMART, |
| 41 | 41 | $username, |
| 42 | 42 | $password, |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | $payload, |
| 45 | 45 | $parse_callback, |
| 46 | 46 | $error_callback, |
| 47 | - $follow_redirects = false, |
|
| 47 | + $follow_redirects = FALSE, |
|
| 48 | 48 | $max_redirects = self::MAX_REDIRECTS_DEFAULT, |
| 49 | 49 | $payload_serializers = array(); |
| 50 | 50 | |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | * for internal use. |
| 69 | 69 | * @param array $attrs hash of initial attribute values |
| 70 | 70 | */ |
| 71 | - private function __construct($attrs = null) |
|
| 71 | + private function __construct($attrs = NULL) |
|
| 72 | 72 | { |
| 73 | 73 | if (!is_array($attrs)) return; |
| 74 | 74 | foreach ($attrs as $attr => $value) { |
@@ -172,9 +172,9 @@ discard block |
||
| 172 | 172 | * @return Request $this |
| 173 | 173 | * @param bool|int $follow follow or not to follow or maximal number of redirects |
| 174 | 174 | */ |
| 175 | - public function followRedirects($follow = true) |
|
| 175 | + public function followRedirects($follow = TRUE) |
|
| 176 | 176 | { |
| 177 | - $this->max_redirects = $follow === true ? self::MAX_REDIRECTS_DEFAULT : max(0, $follow); |
|
| 177 | + $this->max_redirects = $follow === TRUE ? self::MAX_REDIRECTS_DEFAULT : max(0, $follow); |
|
| 178 | 178 | $this->follow_redirects = (bool) $follow; |
| 179 | 179 | return $this; |
| 180 | 180 | } |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | */ |
| 186 | 186 | public function doNotFollowRedirects() |
| 187 | 187 | { |
| 188 | - return $this->followRedirects(false); |
|
| 188 | + return $this->followRedirects(FALSE); |
|
| 189 | 189 | } |
| 190 | 190 | |
| 191 | 191 | /** |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | |
| 201 | 201 | $result = curl_exec($this->_ch); |
| 202 | 202 | |
| 203 | - if ($result === false) { |
|
| 203 | + if ($result === FALSE) { |
|
| 204 | 204 | if ($curlErrorNumber = curl_errno($this->_ch)) { |
| 205 | 205 | $curlErrorString = curl_error($this->_ch); |
| 206 | 206 | $this->_error($curlErrorString); |
@@ -303,7 +303,7 @@ discard block |
||
| 303 | 303 | * @param string $passphrase for client key |
| 304 | 304 | * @param string $encoding default PEM |
| 305 | 305 | */ |
| 306 | - public function clientSideCert($cert, $key, $passphrase = null, $encoding = 'PEM') |
|
| 306 | + public function clientSideCert($cert, $key, $passphrase = NULL, $encoding = 'PEM') |
|
| 307 | 307 | { |
| 308 | 308 | $this->client_cert = $cert; |
| 309 | 309 | $this->client_key = $key; |
@@ -313,7 +313,7 @@ discard block |
||
| 313 | 313 | return $this; |
| 314 | 314 | } |
| 315 | 315 | // @alias of basicAuth |
| 316 | - public function authenticateWithCert($cert, $key, $passphrase = null, $encoding = 'PEM') |
|
| 316 | + public function authenticateWithCert($cert, $key, $passphrase = NULL, $encoding = 'PEM') |
|
| 317 | 317 | { |
| 318 | 318 | return $this->clientSideCert($cert, $key, $passphrase, $encoding); |
| 319 | 319 | } |
@@ -325,7 +325,7 @@ discard block |
||
| 325 | 325 | * @param string $mimeType currently, sets the sends AND expects mime type although this |
| 326 | 326 | * behavior may change in the next minor release (as it is a potential breaking change). |
| 327 | 327 | */ |
| 328 | - public function body($payload, $mimeType = null) |
|
| 328 | + public function body($payload, $mimeType = NULL) |
|
| 329 | 329 | { |
| 330 | 330 | $this->mime($mimeType); |
| 331 | 331 | $this->payload = $payload; |
@@ -441,11 +441,11 @@ discard block |
||
| 441 | 441 | } |
| 442 | 442 | public function withoutStrictSSL() |
| 443 | 443 | { |
| 444 | - return $this->strictSSL(false); |
|
| 444 | + return $this->strictSSL(FALSE); |
|
| 445 | 445 | } |
| 446 | 446 | public function withStrictSSL() |
| 447 | 447 | { |
| 448 | - return $this->strictSSL(true); |
|
| 448 | + return $this->strictSSL(TRUE); |
|
| 449 | 449 | } |
| 450 | 450 | |
| 451 | 451 | /** |
@@ -457,7 +457,7 @@ discard block |
||
| 457 | 457 | * @param string $auth_username Authentication username. Default null |
| 458 | 458 | * @param string $auth_password Authentication password. Default null |
| 459 | 459 | */ |
| 460 | - public function useProxy($proxy_host, $proxy_port = 80, $auth_type = null, $auth_username = null, $auth_password = null, $proxy_type = Proxy::HTTP) |
|
| 460 | + public function useProxy($proxy_host, $proxy_port = 80, $auth_type = NULL, $auth_username = NULL, $auth_password = NULL, $proxy_type = Proxy::HTTP) |
|
| 461 | 461 | { |
| 462 | 462 | $this->addOnCurlOption(CURLOPT_PROXY, "{$proxy_host}:{$proxy_port}"); |
| 463 | 463 | $this->addOnCurlOption(CURLOPT_PROXYTYPE, $proxy_type); |
@@ -473,7 +473,7 @@ discard block |
||
| 473 | 473 | * @see Request::useProxy |
| 474 | 474 | * @return Request |
| 475 | 475 | */ |
| 476 | - public function useSocks4Proxy($proxy_host, $proxy_port = 80, $auth_type = null, $auth_username = null, $auth_password = null) |
|
| 476 | + public function useSocks4Proxy($proxy_host, $proxy_port = 80, $auth_type = NULL, $auth_username = NULL, $auth_password = NULL) |
|
| 477 | 477 | { |
| 478 | 478 | return $this->useProxy($proxy_host, $proxy_port, $auth_type, $auth_username, $auth_password, Proxy::SOCKS4); |
| 479 | 479 | } |
@@ -483,7 +483,7 @@ discard block |
||
| 483 | 483 | * @see Request::useProxy |
| 484 | 484 | * @return Request |
| 485 | 485 | */ |
| 486 | - public function useSocks5Proxy($proxy_host, $proxy_port = 80, $auth_type = null, $auth_username = null, $auth_password = null) |
|
| 486 | + public function useSocks5Proxy($proxy_host, $proxy_port = 80, $auth_type = NULL, $auth_username = NULL, $auth_password = NULL) |
|
| 487 | 487 | { |
| 488 | 488 | return $this->useProxy($proxy_host, $proxy_port, $auth_type, $auth_username, $auth_password, Proxy::SOCKS5); |
| 489 | 489 | } |
@@ -590,7 +590,7 @@ discard block |
||
| 590 | 590 | * If not auto parsing, Response->body returns the body |
| 591 | 591 | * as a string. |
| 592 | 592 | */ |
| 593 | - public function autoParse($auto_parse = true) |
|
| 593 | + public function autoParse($auto_parse = TRUE) |
|
| 594 | 594 | { |
| 595 | 595 | $this->auto_parse = $auto_parse; |
| 596 | 596 | return $this; |
@@ -602,7 +602,7 @@ discard block |
||
| 602 | 602 | */ |
| 603 | 603 | public function withoutAutoParsing() |
| 604 | 604 | { |
| 605 | - return $this->autoParse(false); |
|
| 605 | + return $this->autoParse(FALSE); |
|
| 606 | 606 | } |
| 607 | 607 | |
| 608 | 608 | /** |
@@ -611,7 +611,7 @@ discard block |
||
| 611 | 611 | */ |
| 612 | 612 | public function withAutoParsing() |
| 613 | 613 | { |
| 614 | - return $this->autoParse(true); |
|
| 614 | + return $this->autoParse(TRUE); |
|
| 615 | 615 | } |
| 616 | 616 | |
| 617 | 617 | /** |
@@ -796,7 +796,7 @@ discard block |
||
| 796 | 796 | * @param string $method Http Method |
| 797 | 797 | * @param string $mime Mime Type to Use |
| 798 | 798 | */ |
| 799 | - public static function init($method = null, $mime = null) |
|
| 799 | + public static function init($method = NULL, $mime = NULL) |
|
| 800 | 800 | { |
| 801 | 801 | // Setup our handlers, can call it here as it's idempotent |
| 802 | 802 | Bootstrap::init(); |
@@ -829,7 +829,7 @@ discard block |
||
| 829 | 829 | |
| 830 | 830 | curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $this->method); |
| 831 | 831 | if ($this->method === Http::HEAD) { |
| 832 | - curl_setopt($ch, CURLOPT_NOBODY, true); |
|
| 832 | + curl_setopt($ch, CURLOPT_NOBODY, TRUE); |
|
| 833 | 833 | } |
| 834 | 834 | |
| 835 | 835 | if ($this->hasBasicAuth()) { |
@@ -861,7 +861,7 @@ discard block |
||
| 861 | 861 | } |
| 862 | 862 | |
| 863 | 863 | if ($this->follow_redirects) { |
| 864 | - curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); |
|
| 864 | + curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); |
|
| 865 | 865 | curl_setopt($ch, CURLOPT_MAXREDIRS, $this->max_redirects); |
| 866 | 866 | } |
| 867 | 867 | |
@@ -871,7 +871,7 @@ discard block |
||
| 871 | 871 | //Support for value 1 removed in cURL 7.28.1 value 2 valid in all versions |
| 872 | 872 | if ($verifyValue > 0) $verifyValue++; |
| 873 | 873 | curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, $verifyValue); |
| 874 | - curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
|
| 874 | + curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); |
|
| 875 | 875 | |
| 876 | 876 | // https://github.com/nategood/httpful/issues/84 |
| 877 | 877 | // set Content-Length to the size of the payload if present |
@@ -927,7 +927,7 @@ discard block |
||
| 927 | 927 | curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); |
| 928 | 928 | |
| 929 | 929 | if ($this->_debug) { |
| 930 | - curl_setopt($ch, CURLOPT_VERBOSE, true); |
|
| 930 | + curl_setopt($ch, CURLOPT_VERBOSE, TRUE); |
|
| 931 | 931 | } |
| 932 | 932 | |
| 933 | 933 | curl_setopt($ch, CURLOPT_HEADER, 1); |
@@ -1054,7 +1054,7 @@ discard block |
||
| 1054 | 1054 | * @param string $uri optional uri to use |
| 1055 | 1055 | * @param string $mime expected |
| 1056 | 1056 | */ |
| 1057 | - public static function get($uri, $mime = null) |
|
| 1057 | + public static function get($uri, $mime = NULL) |
|
| 1058 | 1058 | { |
| 1059 | 1059 | return self::init(Http::GET)->uri($uri)->mime($mime); |
| 1060 | 1060 | } |
@@ -1067,7 +1067,7 @@ discard block |
||
| 1067 | 1067 | * @param string $uri optional uri to use |
| 1068 | 1068 | * @param string $mime expected |
| 1069 | 1069 | */ |
| 1070 | - public static function getQuick($uri, $mime = null) |
|
| 1070 | + public static function getQuick($uri, $mime = NULL) |
|
| 1071 | 1071 | { |
| 1072 | 1072 | return self::get($uri, $mime)->send(); |
| 1073 | 1073 | } |
@@ -1079,7 +1079,7 @@ discard block |
||
| 1079 | 1079 | * @param string $payload data to send in body of request |
| 1080 | 1080 | * @param string $mime MIME to use for Content-Type |
| 1081 | 1081 | */ |
| 1082 | - public static function post($uri, $payload = null, $mime = null) |
|
| 1082 | + public static function post($uri, $payload = NULL, $mime = NULL) |
|
| 1083 | 1083 | { |
| 1084 | 1084 | return self::init(Http::POST)->uri($uri)->body($payload, $mime); |
| 1085 | 1085 | } |
@@ -1091,7 +1091,7 @@ discard block |
||
| 1091 | 1091 | * @param string $payload data to send in body of request |
| 1092 | 1092 | * @param string $mime MIME to use for Content-Type |
| 1093 | 1093 | */ |
| 1094 | - public static function put($uri, $payload = null, $mime = null) |
|
| 1094 | + public static function put($uri, $payload = NULL, $mime = NULL) |
|
| 1095 | 1095 | { |
| 1096 | 1096 | return self::init(Http::PUT)->uri($uri)->body($payload, $mime); |
| 1097 | 1097 | } |
@@ -1103,7 +1103,7 @@ discard block |
||
| 1103 | 1103 | * @param string $payload data to send in body of request |
| 1104 | 1104 | * @param string $mime MIME to use for Content-Type |
| 1105 | 1105 | */ |
| 1106 | - public static function patch($uri, $payload = null, $mime = null) |
|
| 1106 | + public static function patch($uri, $payload = NULL, $mime = NULL) |
|
| 1107 | 1107 | { |
| 1108 | 1108 | return self::init(Http::PATCH)->uri($uri)->body($payload, $mime); |
| 1109 | 1109 | } |
@@ -1113,7 +1113,7 @@ discard block |
||
| 1113 | 1113 | * @return Request |
| 1114 | 1114 | * @param string $uri optional uri to use |
| 1115 | 1115 | */ |
| 1116 | - public static function delete($uri, $mime = null) |
|
| 1116 | + public static function delete($uri, $mime = NULL) |
|
| 1117 | 1117 | { |
| 1118 | 1118 | return self::init(Http::DELETE)->uri($uri)->mime($mime); |
| 1119 | 1119 | } |
@@ -25,6 +25,6 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | public function serialize($payload) |
| 27 | 27 | { |
| 28 | - return http_build_query($payload, null, '&'); |
|
| 28 | + return http_build_query($payload, NULL, '&'); |
|
| 29 | 29 | } |
| 30 | 30 | } |
| 31 | 31 | \ No newline at end of file |
@@ -8,11 +8,11 @@ discard block |
||
| 8 | 8 | |
| 9 | 9 | class JsonHandler extends MimeHandlerAdapter |
| 10 | 10 | { |
| 11 | - private $decode_as_array = false; |
|
| 11 | + private $decode_as_array = FALSE; |
|
| 12 | 12 | |
| 13 | 13 | public function init(array $args) |
| 14 | 14 | { |
| 15 | - $this->decode_as_array = !!(array_key_exists('decode_as_array', $args) ? $args['decode_as_array'] : false); |
|
| 15 | + $this->decode_as_array = !!(array_key_exists('decode_as_array', $args) ? $args['decode_as_array'] : FALSE); |
|
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | /** |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | { |
| 24 | 24 | $body = $this->stripBom($body); |
| 25 | 25 | if (empty($body)) |
| 26 | - return null; |
|
| 26 | + return NULL; |
|
| 27 | 27 | $parsed = json_decode($body, $this->decode_as_array); |
| 28 | 28 | if (is_null($parsed) && 'null' !== strtolower($body)) |
| 29 | 29 | throw new \Exception("Unable to parse response as JSON"); |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | public function parse($body) |
| 16 | 16 | { |
| 17 | 17 | if (empty($body)) |
| 18 | - return null; |
|
| 18 | + return NULL; |
|
| 19 | 19 | |
| 20 | 20 | $parsed = array(); |
| 21 | 21 | $fp = fopen('data://text/plain;base64,' . base64_encode($body), 'r'); |
@@ -38,9 +38,9 @@ discard block |
||
| 38 | 38 | { |
| 39 | 39 | $body = $this->stripBom($body); |
| 40 | 40 | if (empty($body)) |
| 41 | - return null; |
|
| 42 | - $parsed = simplexml_load_string($body, null, $this->libxml_opts, $this->namespace); |
|
| 43 | - if ($parsed === false) |
|
| 41 | + return NULL; |
|
| 42 | + $parsed = simplexml_load_string($body, NULL, $this->libxml_opts, $this->namespace); |
|
| 43 | + if ($parsed === FALSE) |
|
| 44 | 44 | throw new \Exception("Unable to parse response as XML"); |
| 45 | 45 | return $parsed; |
| 46 | 46 | } |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | $xml->openMemory(); |
| 68 | 68 | $xml->startDocument('1.0','ISO-8859-1'); |
| 69 | 69 | $this->serialize_node($xml, $payload); |
| 70 | - return $xml->outputMemory(true); |
|
| 70 | + return $xml->outputMemory(TRUE); |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | /** |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | /** |
| 91 | 91 | * @author Zack Douglas <[email protected]> |
| 92 | 92 | */ |
| 93 | - private function _future_serializeAsXml($value, $node = null, $dom = null) |
|
| 93 | + private function _future_serializeAsXml($value, $node = NULL, $dom = NULL) |
|
| 94 | 94 | { |
| 95 | 95 | if (!$dom) { |
| 96 | 96 | $dom = new \DOMDocument; |
@@ -20,8 +20,8 @@ discard block |
||
| 20 | 20 | $parent_type, |
| 21 | 21 | $charset, |
| 22 | 22 | $meta_data, |
| 23 | - $is_mime_vendor_specific = false, |
|
| 24 | - $is_mime_personal = false; |
|
| 23 | + $is_mime_vendor_specific = FALSE, |
|
| 24 | + $is_mime_personal = FALSE; |
|
| 25 | 25 | |
| 26 | 26 | private $parsers; |
| 27 | 27 | /** |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | public function _parseCode($headers) |
| 138 | 138 | { |
| 139 | 139 | $end = strpos($headers, "\r\n"); |
| 140 | - if ($end === false) $end = strlen($headers); |
|
| 140 | + if ($end === FALSE) $end = strlen($headers); |
|
| 141 | 141 | $parts = explode(' ', substr($headers, 0, $end)); |
| 142 | 142 | if (count($parts) < 2 || !is_numeric($parts[1])) { |
| 143 | 143 | throw new \Exception("Unable to parse response code from HTTP response due to malformed response"); |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | $content_type = explode(';', $content_type); |
| 157 | 157 | |
| 158 | 158 | $this->content_type = $content_type[0]; |
| 159 | - if (count($content_type) == 2 && strpos($content_type[1], '=') !== false) { |
|
| 159 | + if (count($content_type) == 2 && strpos($content_type[1], '=') !== FALSE) { |
|
| 160 | 160 | list($nill, $this->charset) = explode('=', $content_type[1]); |
| 161 | 161 | } |
| 162 | 162 | |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | } |
| 171 | 171 | |
| 172 | 172 | // Is vendor type? Is personal type? |
| 173 | - if (strpos($this->content_type, '/') !== false) { |
|
| 173 | + if (strpos($this->content_type, '/') !== FALSE) { |
|
| 174 | 174 | list($type, $sub_type) = explode('/', $this->content_type); |
| 175 | 175 | $this->is_mime_vendor_specific = substr($sub_type, 0, 4) === 'vnd.'; |
| 176 | 176 | $this->is_mime_personal = substr($sub_type, 0, 4) === 'prs.'; |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | |
| 179 | 179 | // Parent type (e.g. xml for application/vnd.github.message+xml) |
| 180 | 180 | $this->parent_type = $this->content_type; |
| 181 | - if (strpos($this->content_type, '+') !== false) { |
|
| 181 | + if (strpos($this->content_type, '+') !== FALSE) { |
|
| 182 | 182 | list($vendor, $this->parent_type) = explode('+', $this->content_type, 2); |
| 183 | 183 | $this->parent_type = Mime::getFullMime($this->parent_type); |
| 184 | 184 | } |
@@ -6,7 +6,7 @@ discard block |
||
| 6 | 6 | const VERSION = '0.2.18'; |
| 7 | 7 | |
| 8 | 8 | private static $mimeRegistrar = array(); |
| 9 | - private static $default = null; |
|
| 9 | + private static $default = NULL; |
|
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | 12 | * @param string $mime_type |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | * @param string $mime_type defaults to MimeHandlerAdapter |
| 22 | 22 | * @return MimeHandlerAdapter |
| 23 | 23 | */ |
| 24 | - public static function get($mimeType = null) |
|
| 24 | + public static function get($mimeType = NULL) |
|
| 25 | 25 | { |
| 26 | 26 | if (isset(self::$mimeRegistrar[$mimeType])) { |
| 27 | 27 | return self::$mimeRegistrar[$mimeType]; |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | const DIR_GLUE = DIRECTORY_SEPARATOR; |
| 15 | 15 | const NS_GLUE = '\\'; |
| 16 | 16 | |
| 17 | - public static $registered = false; |
|
| 17 | + public static $registered = FALSE; |
|
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * Register the autoloader and any other setup needed |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | */ |
| 73 | 73 | public static function registerHandlers() |
| 74 | 74 | { |
| 75 | - if (self::$registered === true) { |
|
| 75 | + if (self::$registered === TRUE) { |
|
| 76 | 76 | return; |
| 77 | 77 | } |
| 78 | 78 | |
@@ -92,6 +92,6 @@ discard block |
||
| 92 | 92 | Httpful::register($mime, $handler); |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | - self::$registered = true; |
|
| 95 | + self::$registered = TRUE; |
|
| 96 | 96 | } |
| 97 | 97 | } |