100+ results results for 'php is_bool repo:bill742/verbalbrew' (4497 ms)
22 * @package PHPExcel_Style 23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 33 * @package PHPExcel_Style 34 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 35 */ 36class PHPExcel_Style_Font implements PHPExcel_IComparable 37{ 153 $this->_strikethrough = NULL; 154 $this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor, $isConditional); 155 } else { 155 } else { 156 $this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor); 157 }Grammar.php https://gitlab.com/madwanz64/laravel | PHP | 286 lines
1<?php 2 245 246 return is_bool($value) 247 ? "'".(int) $value."'"Unit_test.php https://gitlab.com/BeyondeLabs/tweet-daily | PHP | 383 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 92 93 if (in_array($expected, array('is_object', 'is_string', 'is_bool', 'is_true', 'is_false', 'is_int', 'is_numeric', 'is_float', 'is_double', 'is_array', 'is_null'), TRUE)) 94 { 373{ 374 return (is_bool($test) AND $test === TRUE) ? TRUE : FALSE; 375} 377{ 378 return (is_bool($test) AND $test === FALSE) ? TRUE : FALSE; 379} 381 382/* End of file Unit_test.php */ 383/* Location: ./system/libraries/Unit_test.php */XmlDescriptor.php https://gitlab.com/oytunistrator/92five | PHP | 212 lines
1<?php 2 41 $objectXML->appendChild($defaultsXML = $dom->createElement('defaults')); 42 $defaults = is_array($argument->getDefault()) ? $argument->getDefault() : (is_bool($argument->getDefault()) ? array(var_export($argument->getDefault(), true)) : ($argument->getDefault() ? array($argument->getDefault()) : array())); 43 foreach ($defaults as $default) { 73 if ($option->acceptValue()) { 74 $defaults = is_array($option->getDefault()) ? $option->getDefault() : (is_bool($option->getDefault()) ? array(var_export($option->getDefault(), true)) : ($option->getDefault() ? array($option->getDefault()) : array())); 75 $objectXML->appendChild($defaultsXML = $dom->createElement('defaults'));XmlDescriptor.php https://gitlab.com/hoangduys4k5/laravelproject | PHP | 247 lines
1<?php 2 193 $objectXML->appendChild($defaultsXML = $dom->createElement('defaults')); 194 $defaults = \is_array($argument->getDefault()) ? $argument->getDefault() : (\is_bool($argument->getDefault()) ? [var_export($argument->getDefault(), true)] : ($argument->getDefault() ? [$argument->getDefault()] : [])); 195 foreach ($defaults as $default) { 222 if ($option->acceptValue()) { 223 $defaults = \is_array($option->getDefault()) ? $option->getDefault() : (\is_bool($option->getDefault()) ? [var_export($option->getDefault(), true)] : ($option->getDefault() ? [$option->getDefault()] : [])); 224 $objectXML->appendChild($defaultsXML = $dom->createElement('defaults'));Attribute.php https://gitlab.com/guillaumev/alkarama | PHP | 345 lines
1<?php 2 131 } 132 elseif (is_bool($value)) { 133 $value = new AttributeBoolean($name, $value);Xml.php https://gitlab.com/luisrepo/ClienteWS | PHP | 286 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Xml.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 24 */ 25require_once 'Zend/Config.php'; 26 70 if (empty($xml)) { 71 require_once 'Zend/Config/Exception.php'; 72 throw new Zend_Config_Exception('Filename is not set'); 75 $allowModifications = false; 76 if (is_bool($options)) { 77 $allowModifications = $options; 96 if ($this->_loadFileErrorStr !== null) { 97 require_once 'Zend/Config/Exception.php'; 98 throw new Zend_Config_Exception($this->_loadFileErrorStr);yaf_config.c https://gitlab.com/oytunistrator/yaf | C | 405 lines
7 | available through the world-wide-web at the following url: | 8 | http://www.php.net/license/3_01.txt | 9 | If you did not receive a copy of the PHP license and are unable to | 10 | obtain it through the world-wide-web, please send a note to | 11 | license@php.net so we can mail you a copy immediately. | 12 +----------------------------------------------------------------------+ 12 +----------------------------------------------------------------------+ 13 | Author: Xinchen Hui <laruence@php.net> | 14 +----------------------------------------------------------------------+ 23#include "php_ini.h" 24#include "standard/php_filestat.h" /* for php_stat */ 25 25 26#include "php_yaf.h" 27#include "yaf_namespace.h"UrlGenerator.php https://gitlab.com/reasonat/test8 | PHP | 341 lines
1<?php 2 52 * 53 * PHP's rawurlencode() encodes all chars except "a-zA-Z0-9-._~" according to RFC 3986. But we want to allow some chars 54 * to be used in their literal form (reasons below). Other chars inside the path must of course be encoded, e.g. 145 { 146 if (is_bool($referenceType) || is_string($referenceType)) { 147 @trigger_error('The hardcoded value you are using for the $referenceType argument of the '.__CLASS__.'::generate method is deprecated since version 2.8 and will not be supported anymore in 3.0. Use the constants defined in the UrlGeneratorInterface instead.', E_USER_DEPRECATED);Serializer.php https://bitbucket.org/acidel/buykoala.git | PHP | 362 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Serializer.php 21968 2010-04-22 03:53:34Z matthew $ 21 */ 23/** Zend_Amf_Constants */ 24#require_once 'Zend/Amf/Constants.php'; 25 26/** @see Zend_Amf_Parse_Serializer */ 27#require_once 'Zend/Amf/Parse/Serializer.php'; 28 29/** 30 * Serializer PHP misc types back to there corresponding AMF0 Type Marker. 31 * 65 { 66 // Workaround for PHP5 with E_STRICT enabled complaining about "Only 67 // variables should be passed by reference"Service.php https://github.com/jpratt/cal.git | PHP | 473 lines
1<?php 2/** 23 */ 24#require_once 'Zend/Json/Server/Smd.php'; 25 30 * @subpackage Server 31 * @version $Id: Service.php 12510 2008-11-10 16:29:34Z matthew $ 32 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) 68 'name' => 'is_string', 69 'optional' => 'is_bool', 70 'default' => null, 132 if (null == $this->getName()) { 133 #require_once 'Zend/Json/Server/Exception.php'; 134 throw new Zend_Json_Server_Exception('SMD service description requires a name; none provided'); 169 if (!preg_match($this->_nameRegex, $name)) { 170 #require_once 'Zend/Json/Server/Exception.php'; 171 throw new Zend_Json_Server_Exception(sprintf('Invalid name "%s" provided for service; must follow PHP method naming conventions', $name));pdo_mysql_prepare_native.php https://gitlab.com/iranjith4/hhvm | PHP | 332 lines
1<?php 2 require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc'); 45 46 if (!is_bool($ret)) 47 printf("[%03d] PDO::execute() should return a boolean value, got %s/%s\n", 327?> 328<?php 329require dirname(__FILE__) . '/mysql_pdo_test.inc';Serializer.php https://gitlab.com/devtoannh/cafe | PHP | 362 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Serializer.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 23/** Zend_Amf_Constants */ 24require_once 'Zend/Amf/Constants.php'; 25 26/** @see Zend_Amf_Parse_Serializer */ 27require_once 'Zend/Amf/Parse/Serializer.php'; 28 29/** 30 * Serializer PHP misc types back to there corresponding AMF0 Type Marker. 31 * 65 { 66 // Workaround for PHP5 with E_STRICT enabled complaining about "Only 67 // variables should be passed by reference"Serializer.php git://github.com/evert/SabreAMF.git | PHP | 269 lines
1<?php 2 32 if (!$type && is_null($data)) $type = SabreAMF_AMF3_Const::DT_NULL; 33 if (!$type && is_bool($data)) { 34 $type = $data?SabreAMF_AMF3_Const::DT_BOOL_TRUE:SabreAMF_AMF3_Const::DT_BOOL_FALSE;Logical.php https://gitlab.com/adamlwalker/generatedata | PHP | 288 lines
22 * @package PHPExcel_Calculation 23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 28 29/** PHPExcel root directory */ 30if (!defined('PHPEXCEL_ROOT')) { 34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); 35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); 36} 43 * @package PHPExcel_Calculation 44 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel) 45 */ 119 $arg = TRUE; 120 } elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) { 121 $arg = FALSE;PhpFormBuilder.php https://gitlab.com/em645jn/brochure | PHP | 539 lines
1<?php 2 4 5class PhpFormBuilder { 6 110 case 'add_submit': 111 if ( ! is_bool( $val ) ) { 112 return false; 116 case 'add_nonce': 117 if ( ! is_string( $val ) && ! is_bool( $val ) ) { 118 return false;Logical.php https://gitlab.com/ptisky/API_prestashop | PHP | 288 lines
22 * @package PHPExcel_Calculation 23 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 28 29/** PHPExcel root directory */ 30if (!defined('PHPEXCEL_ROOT')) { 34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); 35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); 36} 43 * @package PHPExcel_Calculation 44 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) 45 */ 119 $arg = TRUE; 120 } elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) { 121 $arg = FALSE;Service.php https://github.com/tuteke/isaved.git | PHP | 473 lines
1<?php 2/** 23 */ 24#require_once 'Zend/Json/Server/Smd.php'; 25 30 * @subpackage Server 31 * @version $Id: Service.php 16214 2009-06-21 19:34:03Z thomas $ 32 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com) 68 'name' => 'is_string', 69 'optional' => 'is_bool', 70 'default' => null, 132 if (null == $this->getName()) { 133 #require_once 'Zend/Json/Server/Exception.php'; 134 throw new Zend_Json_Server_Exception('SMD service description requires a name; none provided'); 169 if (!preg_match($this->_nameRegex, $name)) { 170 #require_once 'Zend/Json/Server/Exception.php'; 171 throw new Zend_Json_Server_Exception(sprintf('Invalid name "%s" provided for service; must follow PHP method naming conventions', $name));DbTable.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 445 lines
1<?php 2/** 187 $this->ambiguityIdentity = (1 === $flag ? true : false); 188 } elseif (is_bool($flag)) { 189 $this->ambiguityIdentity = $flag;Logical.php https://gitlab.com/Zinnurain/destination_finder_beta | PHP | 288 lines
22 * @package PHPExcel_Calculation 23 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 28 29/** PHPExcel root directory */ 30if (!defined('PHPEXCEL_ROOT')) { 34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); 35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); 36} 43 * @package PHPExcel_Calculation 44 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) 45 */ 119 $arg = TRUE; 120 } elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) { 121 $arg = FALSE;main.php https://gitlab.com/dali99/shimmie2-Material-Theme | PHP | 371 lines
1<?php 2/* 122 public function __construct(Image $image, $locked) { 123 assert(is_bool($locked)); 124 $this->image = $image;Logical.php https://gitlab.com/FellowsDevel/delicto | PHP | 290 lines
22 * @package PHPExcel_Calculation 23 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 28 29/** PHPExcel root directory */ 30if (!defined('PHPEXCEL_ROOT')) { 34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); 35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); 36} 43 * @package PHPExcel_Calculation 44 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel) 45 */ 119 $arg = true; 120 } elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) { 121 $arg = false;axis_label_centered.php https://gitlab.com/OnBlox/OnBlox-Template | PHP | 282 lines
1<?php 2/** 74 case 'showZeroValue': 75 if ( !is_bool( $propertyValue ) ) 76 {HtmlBuilder.php https://gitlab.com/alamgircsejnu/AMS-Project-Laravel | PHP | 568 lines
1<?php 2 80 81 return $this->toHtmlString('<script' . $this->attributes($attributes) . '></script>' . PHP_EOL); 82 } 100 101 return $this->toHtmlString('<link' . $this->attributes($attributes) . '>' . PHP_EOL); 102 } 138 139 return $this->toHtmlString('<link' . $this->attributes($attributes) . '>' . PHP_EOL); 140 } 451 // Treat boolean attributes as HTML properties 452 if (is_bool($value)) { 453 return $value ? $key : ''; 526 $content = is_array($content) ? implode(PHP_EOL, $content) : $content; 527 return $this->toHtmlString('<' . $tag . $this->attributes($attributes) . '>' . PHP_EOL . $this->toHtmlString($content) . PHP_EOL . '</' . $tag . '>' . PHP_EOL); 528 }Serializer.php https://github.com/basdog22/Qool.git | PHP | 362 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Serializer.php 24594 2012-01-05 21:27:01Z matthew $ 21 */ 23/** Zend_Amf_Constants */ 24require_once 'Zend/Amf/Constants.php'; 25 26/** @see Zend_Amf_Parse_Serializer */ 27require_once 'Zend/Amf/Parse/Serializer.php'; 28 29/** 30 * Serializer PHP misc types back to there corresponding AMF0 Type Marker. 31 * 65 { 66 // Workaround for PHP5 with E_STRICT enabled complaining about "Only 67 // variables should be passed by reference"Ini.php https://gitlab.com/Ltaimao/wecenter | PHP | 309 lines
1<?php 2/** 25 */ 26//require_once 'Zend/Config.php'; 27 106 */ 107 //require_once 'Zend/Config/Exception.php'; 108 throw new Zend_Config_Exception('Filename is not set'); 111 $allowModifications = false; 112 if (is_bool($options)) { 113 $allowModifications = $options; 149 */ 150 //require_once 'Zend/Config/Exception.php'; 151 throw new Zend_Config_Exception("Section '$sectionName' cannot be found in $filename"); 180 */ 181 //require_once 'Zend/Config/Exception.php'; 182 throw new Zend_Config_Exception($this->_loadFileErrorStr);Grammar.php https://gitlab.com/Sigpot/AirSpot | PHP | 459 lines
1<?php 2 248 249 if (is_bool($value)) { 250 return "'".(int) $value."'";Logger.php https://gitlab.com/hoanghung.dev/phunuvadoisong.com | PHP | 456 lines
1<?php 2/** 2/** 3 * Logger.php 4 * 362 // Convert true/false to string 363 if (is_bool($arg)) { 364 $arg = $arg ? "true" : "false";Util.php https://gitlab.com/oytunistrator/92five | PHP | 265 lines
1<?php 2/** 2/** 3 * PHP_CodeCoverage 4 * 4 * 5 * Copyright (c) 2009-2014, Sebastian Bergmann <sebastian@phpunit.de>. 6 * All rights reserved. 36 * 37 * @category PHP 38 * @package CodeCoverage 38 * @package CodeCoverage 39 * @author Sebastian Bergmann <sebastian@phpunit.de> 40 * @copyright 2009-2014 Sebastian Bergmann <sebastian@phpunit.de> 41 * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License 42 * @link http://github.com/sebastianbergmann/php-code-coverage 43 * @since File available since Release 1.0.0soundcloud.php https://gitlab.com/Gashler/sg | PHP | 261 lines
1<?php 2/* 146function soundcloud_booleanize( $value ) { 147 return is_bool( $value ) ? $value : $value === 'true' ? true : false; 148} 242 foreach ( $matches as $match ) { 243 $args = parse_url( html_entity_decode( $match[1] ), PHP_URL_QUERY ); 244 $args = wp_parse_args( $args ); 251 $content = preg_replace( $replace_regex, sprintf( "\n\n%s\n\n", $shortcode ), $content ); 252 /** This action is documented in modules/shortcodes/youtube.php */ 253 do_action( 'jetpack_embed_to_shortcode', 'soundcloud', $url_matches[0] );IsFloat.php https://gitlab.com/yousafsyed/easternglamor | PHP | 253 lines
1<?php 2/** 59 throw new I18nException\ExtensionNotLoadedException( 60 sprintf('%s component requires the intl PHP extension', __NAMESPACE__) 61 ); 103 * Returns true if and only if $value is a floating-point value. Uses the formal definition of a float as described 104 * in the PHP manual: {@link http://www.php.net/float} 105 * 111 { 112 if (!is_scalar($value) || is_bool($value)) { 113 $this->error(self::INVALID); 216 * of the string - i.e. 10,6 is not valid for en-US. 217 * @see http://www.php.net/float 218 */Yaml.php https://bitbucket.org/maatao/estrutura-b-sica-doctrine.git | PHP | 381 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Yaml.php 24092 2011-05-31 02:43:28Z adamlundrigan $ 20 */ 24 */ 25require_once 'Zend/Config.php'; 26 101 if (!is_callable($yamlDecoder)) { 102 require_once 'Zend/Config/Exception.php'; 103 throw new Zend_Config_Exception('Invalid parameter to setYamlDecoder() - must be callable'); 133 if (empty($yaml)) { 134 require_once 'Zend/Config/Exception.php'; 135 throw new Zend_Config_Exception('Filename is not set'); 139 $allowModifications = false; 140 if (is_bool($options)) { 141 $allowModifications = $options;theme.php https://gitlab.com/dali99/shimmie2-Material-Theme | PHP | 323 lines
1<?php 2class CommentListTheme extends Themelet { 30 31 // aaaaaaargh php 32 assert(is_array($images)); 34 assert(is_numeric($total_pages)); 35 assert(is_bool($can_post)); 36Database.php https://github.com/drawrof/hullowrld.git | PHP | 689 lines
1<?php defined('ROOT') OR die('No direct access allowed.'); 2/** 4 * 5 * $Id: Database.php 3917 2009-01-21 03:06:22Z zombor $ 6 * 9 * @copyright (c) 2007-2008 Kohana Team 10 * @license http://kohanaphp.com/license.html 11 */ 160 } 161 elseif (is_bool($value)) 162 {DB_utility.php https://gitlab.com/billyprice1/Stikked | PHP | 423 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 183 $res = $this->db->query(sprintf($this->_optimize_table, $this->db->escape_identifiers($table_name))); 184 if (is_bool($res)) 185 { 217 $query = $this->db->query(sprintf($this->_repair_table, $this->db->escape_identifiers($table_name))); 218 if (is_bool($query)) 219 {Pdo.php https://github.com/ntulip/piwik.git | PHP | 439 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Pdo.php 18079 2009-09-11 17:46:45Z ralph $ 21 */ 25 */ 26require_once 'Zend/Db/Statement.php'; 27 59 } catch (PDOException $e) { 60 require_once 'Zend/Db/Statement/Exception.php'; 61 throw new Zend_Db_Statement_Exception($e->getMessage(), $e->getCode(), $e); 65 /** 66 * Bind a column of the statement result set to a PHP variable. 67 * 69 * position or by name. 70 * @param mixed $param Reference to the PHP variable containing the value. 71 * @param mixed $type OPTIONALzlib_arginfo.h https://github.com/php/php-src.git | C Header | 231 lines
1/* This is a generated file, edit the .stub.php file instead. 2 * Stub hash: 508af4dd8892e7d2e70d16f2365c21a0921922d8 */ 70 71ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gzrewind, 0, 1, _IS_BOOL, 0) 72 ZEND_ARG_INFO(0, stream)Yaml.php https://bitbucket.org/kdms/sh-magento.git | PHP | 382 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Yaml.php 23294 2010-11-05 00:27:34Z ramon $ 20 */ 24 */ 25#require_once 'Zend/Config.php'; 26 101 if (!is_callable($yamlDecoder)) { 102 #require_once 'Zend/Config/Exception.php'; 103 throw new Zend_Config_Exception('Invalid parameter to setYamlDecoder() - must be callable'); 133 if (empty($yaml)) { 134 #require_once 'Zend/Config/Exception.php'; 135 throw new Zend_Config_Exception('Filename is not set'); 139 $allowModifications = false; 140 if (is_bool($options)) { 141 $allowModifications = $options;shBrushPhp.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 91 lines
29 */ 30SyntaxHighlighter.brushes.Php = function() 31{ 55 'gettimeofday gettype glob gmdate gmmktime ini_alter ini_get ini_get_all ini_restore ini_set '+ 56 'interface_exists intval ip2long is_a is_array is_bool is_callable is_dir is_double '+ 57 'is_executable is_file is_finite is_float is_infinite is_int is_integer is_link is_long '+ 86 87 this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags); 88}; 90SyntaxHighlighter.brushes.Php.prototype = new SyntaxHighlighter.Highlighter(); 91SyntaxHighlighter.brushes.Php.aliases = ['php']; 92agent.php https://bitbucket.org/codeyash/bootstrap.git | PHP | 537 lines
1<?php 2/** 9 * @copyright 2010 - 2013 Fuel Development Team 10 * @link http://fuelphp.com 11 */ 17 * 18 * This class uses PHP's get_browser() to get details from the browsers user agent 19 * string. If not available, it can use a coded alternative using the php_browscap.ini 98 'enabled' => true, 99 'url' => 'http://browsers.garykeith.com/stream.asp?Lite_PHP_BrowsCapINI', 100 'method' => 'wrapper', 438 curl_setopt($curl, CURLOPT_HEADER, 0); 439 curl_setopt($curl, CURLOPT_USERAGENT, 'Fuel PHP framework - Agent class (http://fuelphp.com)'); 440 curl_setopt($curl, CURLOPT_URL, static::$config['browscap']['url']); 445 case 'wrapper': 446 ini_set('user_agent', 'Fuel PHP framework - Agent class (http://fuelphp.com)'); 447 tryYaml.php https://gitlab.com/grayhamster/open-social-media-monitoring | PHP | 381 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Yaml.php 24594 2012-01-05 21:27:01Z matthew $ 20 */ 24 */ 25require_once 'Zend/Config.php'; 26 101 if (!is_callable($yamlDecoder)) { 102 require_once 'Zend/Config/Exception.php'; 103 throw new Zend_Config_Exception('Invalid parameter to setYamlDecoder() - must be callable'); 133 if (empty($yaml)) { 134 require_once 'Zend/Config/Exception.php'; 135 throw new Zend_Config_Exception('Filename is not set'); 139 $allowModifications = false; 140 if (is_bool($options)) { 141 $allowModifications = $options;odbc_arginfo.h https://github.com/php/php-src.git | C Header | 377 lines
1/* This is a generated file, edit the .stub.php file instead. 2 * Stub hash: 27a50ba79ed632721ee458527ef543e4b44ee897 */ 6 7ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_odbc_binmode, 0, 2, _IS_BOOL, 0) 8 ZEND_ARG_INFO(0, statement) 11 12ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_odbc_longreadlen, 0, 2, _IS_BOOL, 0) 13 ZEND_ARG_INFO(0, statement) 21 22ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_odbc_execute, 0, 1, _IS_BOOL, 0) 23 ZEND_ARG_INFO(0, statement) 41 42#if defined(PHP_ODBC_HAVE_FETCH_HASH) 43ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_odbc_fetch_object, 0, 1, stdClass, MAY_BE_FALSE) 48 49#if defined(PHP_ODBC_HAVE_FETCH_HASH) 50ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_odbc_fetch_array, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)Serializer.php https://bitbucket.org/simukti/zf1.git | PHP | 362 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Serializer.php 24593 2012-01-05 20:35:02Z matthew $ 21 */ 23/** Zend_Amf_Constants */ 24require_once 'Zend/Amf/Constants.php'; 25 26/** @see Zend_Amf_Parse_Serializer */ 27require_once 'Zend/Amf/Parse/Serializer.php'; 28 29/** 30 * Serializer PHP misc types back to there corresponding AMF0 Type Marker. 31 * 65 { 66 // Workaround for PHP5 with E_STRICT enabled complaining about "Only 67 // variables should be passed by reference"ext_std_variable.cpp https://gitlab.com/0072016/0072016-PHP.LLC | C++ | 516 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 2010-2015 Facebook, Inc. (http://www.facebook.com) | 6 | Copyright (c) 1997-2010 The PHP Group | 7 +----------------------------------------------------------------------+ 7 +----------------------------------------------------------------------+ 8 | This source file is subject to version 3.01 of the PHP license, | 9 | that is bundled with this package in the file LICENSE, and is | 10 | available through the world-wide-web at the following url: | 11 | http://www.php.net/license/3_01.txt | 12 | If you did not receive a copy of the PHP license and are unable to | 13 | obtain it through the world-wide-web, please send a note to | 14 | license@php.net so we can mail you a copy immediately. | 15 +----------------------------------------------------------------------+Service.php https://bitbucket.org/netglue/zf-1.12-release.git | PHP | 473 lines
1<?php 2/** 23 */ 24require_once 'Zend/Json/Server/Smd.php'; 25 68 'name' => 'is_string', 69 'optional' => 'is_bool', 70 'default' => null, 132 if (null == $this->getName()) { 133 require_once 'Zend/Json/Server/Exception.php'; 134 throw new Zend_Json_Server_Exception('SMD service description requires a name; none provided'); 169 if (!preg_match($this->_nameRegex, $name)) { 170 require_once 'Zend/Json/Server/Exception.php'; 171 throw new Zend_Json_Server_Exception(sprintf('Invalid name "%s" provided for service; must follow PHP method naming conventions', $name)); 197 if (!in_array($transport, $this->_transportTypes)) { 198 require_once 'Zend/Json/Server/Exception.php'; 199 throw new Zend_Json_Server_Exception(sprintf('Invalid transport "%s"; please select one of (%s)', $transport, implode(', ', $this->_transportTypes)));TinySrc.php https://gitlab.com/devtoannh/cafe | PHP | 317 lines
1<?php 2/** 22/** Zend_View_Helper_HtmlElement */ 23require_once 'Zend/View/Helper/HtmlElement.php'; 24 188 if (!in_array($format, array('png', 'jpeg'))) { 189 require_once 'Zend/View/Exception.php'; 190 throw new Zend_View_Exception('Invalid format; must be one of "jpeg" or "png"'); 215 if (!$this->_validateDimension($width)) { 216 require_once 'Zend/View/Exception.php'; 217 throw new Zend_View_Exception('Invalid dimension; must be an integer, optionally preceded by "-" or "x"'); 225 if (!$this->_validateDimension($height)) { 226 require_once 'Zend/View/Exception.php'; 227 throw new Zend_View_Exception('Invalid dimension; must be an integer, optionally preceded by "-" or "x"'); 264 { 265 if (!is_scalar($dim) || is_bool($dim)) { 266 return false;Yaml.php https://gitlab.com/fabiorf/curso-zend1-aula1 | PHP | 415 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Yaml.php 25169 2012-12-22 12:23:11Z rob $ 20 */ 24 */ 25require_once 'Zend/Config.php'; 26 101 if (!is_callable($yamlDecoder)) { 102 require_once 'Zend/Config/Exception.php'; 103 throw new Zend_Config_Exception('Invalid parameter to setYamlDecoder() - must be callable'); 133 if (empty($yaml)) { 134 require_once 'Zend/Config/Exception.php'; 135 throw new Zend_Config_Exception('Filename is not set'); 139 $allowModifications = false; 140 if (is_bool($options)) { 141 $allowModifications = $options;Serializer.php https://github.com/iulianmanole/dcms.git | PHP | 342 lines
1<?php 2/** 22/** Zend_Amf_Parse_Serializer */ 23require_once 'Zend/Amf/Parse/Serializer.php'; 24 25/** Zend_Amf_Parse_TypeLoader */ 26require_once 'Zend/Amf/Parse/TypeLoader.php'; 27 28/** 29 * Detect PHP object type and convert it to a corresponding AMF3 object type 30 * 38 /** 39 * Serialize PHP types to AMF3 and write to stream 40 * 42 * auto negotiates the type or use the user defined markerType to 43 * serialize the data from php back to AMF3 44 *SqlServerGrammar.php https://gitlab.com/nmhieucoder/laravel_tintuc | PHP | 532 lines
1<?php 2 142 { 143 return is_bool($binding) ? json_encode($binding) : $binding; 144 }generic-helper.class.php https://gitlab.com/haque.mdmanzurul/soundkreationsfinal | PHP | 367 lines
1<?php 2/** 157 $output = ""; 158 if($print) $output .= "\n<script type='text/javascript' class='av-php-sent-to-frontend'>/* <![CDATA[ */ \n"; 159 177 { 178 if(!is_numeric($object) && !is_bool($object)) $object = json_encode($object); 179 if(empty($object)) $object = "false";Output.php https://gitlab.com/sittipongwork/impro_dashboard | PHP | 575 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 97 // Get mime types for later 98 if (defined('ENVIRONMENT') AND file_exists(APPPATH.'config/'.ENVIRONMENT.'/mimes.php')) 99 { 99 { 100 include APPPATH.'config/'.ENVIRONMENT.'/mimes.php'; 101 } 103 { 104 include APPPATH.'config/mimes.php'; 105 } 265 { 266 $this->enable_profiler = (is_bool($val)) ? $val : TRUE; 267Converter.php https://gitlab.com/devtoannh/cafe | PHP | 397 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Converter.php 24354 2011-08-05 07:36:38Z sgehrig $ 20 */ 38 * 39 * @see Net_LDAP2_Util::asc2hex32() from Benedikt Hallinger <beni@php.net> 40 * @link http://pear.php.net/package/Net_LDAP2 40 * @link http://pear.php.net/package/Net_LDAP2 41 * @author Benedikt Hallinger <beni@php.net> 42 * 61 * 62 * @see Net_LDAP2_Util::hex2asc() from Benedikt Hallinger <beni@php.net>, 63 * heavily based on work from DavidSmith@byu.net 63 * heavily based on work from DavidSmith@byu.net 64 * @link http://pear.php.net/package/Net_LDAP2 65 * @author Benedikt Hallinger <beni@php.net>, heavily based on work from DavidSmith@byu.netFtp.php https://gitlab.com/puntodos/ean-landings | PHP | 448 lines
1<?php 2 116 { 117 if (is_bool($this->ignorePassiveAddress) && defined('FTP_USEPASVADDRESS')) { 118 ftp_set_option($this->connection, FTP_USEPASVADDRESS, ! $this->ignorePassiveAddress); 186 { 187 $stream = fopen('php://temp', 'w+b'); 188 fwrite($stream, $contents); 397 { 398 $stream = fopen('php://temp', 'w+'); 399 $result = ftp_fget($this->getConnection(), $stream, $path, $this->transferMode);Ini.php https://bitbucket.org/baruffaldi/cms-php-bfcms.git | PHP | 254 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Ini.php 11209 2008-09-03 14:42:23Z ralph $ 20 */ 25 */ 26require_once 'Zend/Config.php'; 27 91 */ 92 require_once 'Zend/Config/Exception.php'; 93 throw new Zend_Config_Exception('Filename is not set'); 96 $allowModifications = false; 97 if (is_bool($options)) { 98 $allowModifications = $options; 115 */ 116 require_once 'Zend/Config/Exception.php'; 117 throw new Zend_Config_Exception($this->_loadFileErrorStr);Ini.php https://bitbucket.org/baruffaldi/website-2008-computer-shopping-3.git | PHP | 254 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Ini.php 11206 2008-09-03 14:36:32Z ralph $ 20 */ 25 */ 26require_once 'Zend/Config.php'; 27 91 */ 92 require_once 'Zend/Config/Exception.php'; 93 throw new Zend_Config_Exception('Filename is not set'); 96 $allowModifications = false; 97 if (is_bool($options)) { 98 $allowModifications = $options; 115 */ 116 require_once 'Zend/Config/Exception.php'; 117 throw new Zend_Config_Exception($this->_loadFileErrorStr);Client.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 297 lines
1<?php 2 35* @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 36* @version CVS: $Id: Client.php,v 1.14 2008/09/10 18:50:31 sergiosgc Exp $ 37* @link http://pear.php.net/package/XML_RPC2 42// dependencies {{{ 43require_once 'XML/RPC2/Exception.php'; 44require_once 'XML/RPC2/Backend.php'; 54 * <code> 55 * require_once 'XML_RPC2/Client.php'; 56 * 69 * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 70 * @link http://pear.php.net/package/XML_RPC2 71 */ 122 /** 123 * ugly hack flag to avoid http://bugs.php.net/bug.php?id=21949 124 *Descriptor.php https://gitlab.com/pr0055/symfonypizza | PHP | 312 lines
1<?php 2 228 { 229 if (is_bool($value) || is_array($value) || (null === $value)) { 230 $jsonString = json_encode($value);Ini.php https://gitlab.com/devtoannh/cafe | PHP | 309 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Ini.php 24045 2011-05-23 12:45:11Z rob $ 20 */ 25 */ 26require_once 'Zend/Config.php'; 27 106 */ 107 require_once 'Zend/Config/Exception.php'; 108 throw new Zend_Config_Exception('Filename is not set'); 111 $allowModifications = false; 112 if (is_bool($options)) { 113 $allowModifications = $options; 149 */ 150 require_once 'Zend/Config/Exception.php'; 151 throw new Zend_Config_Exception("Section '$sectionName' cannot be found in $filename");_25000003_discuz_database_b62f87.bak.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 458 lines
1<?php 2 6 * 7 * $Id: discuz_database.php 31468 2012-08-31 02:27:23Z zhangguosheng $ 8 */ 192 193 if (is_bool($str)) 194 return $str ? '1' : '0';debug.php https://github.com/bermi/akelos.git | PHP | 319 lines
1<?php 2 21 list($default_file, $default_line, $default_method) = self::getLastFileAndLineAndMethod(); 22 $default_method = is_bool($text) || empty($text) ? 'var_dump' : $default_method; 23 $line = is_null($line) ? $default_line : $line; 46 $text = $formatted; 47 }elseif (is_bool($text) || empty($text)){ 48 $text = '<pre style="margin:10px;">'.$html_entities_function(self::dump($text, $default_method)).'</pre>'; 69 /** 70 * Returns a string representation of one of these PHP methods var_dump, var_export, or print_r 71 */ 116 /** 117 * Outputs debug info given a PHP resource (vars, objects, 118 * arrays...) 212 * WARNING: Inherited methods are not returned by this 213 * function. You can fetch them by using PHP native function 214 * get_class_methodsSerializer.php https://github.com/tanduy/zf.git | PHP | 349 lines
1<?php 2/** 23/** Zend_Amf_Constants */ 24require_once 'Zend/Amf/Constants.php'; 25 26/** @see Zend_Amf_Parse_Serializer */ 27require_once 'Zend/Amf/Parse/Serializer.php'; 28 29/** 30 * Serializer php misc types back to there corresponding AMF0 Type Marker. 31 * 109 default: 110 require_once 'Zend/Amf/Exception.php'; 111 throw new Zend_Amf_Exception("Unknown Type Marker: " . $markerType); 121 break; 122 case (is_bool($data)): 123 $markerType = Zend_Amf_Constants::AMF0_BOOLEAN;Converter.php https://gitlab.com/xibalba/ocelote | PHP | 322 lines
1<?php 2/** 3 * @copyright 2014 - 2019 Xibalba Lab. 4 * @license http://opensource.org/licenses/bsd-license.php 5 * @link https://gitlab.com/xibalba/ocelote 43 else return (int) $value; 44 } else if (is_bool($value)) return (bool) $value; 45 else if ($value === 'true' || $value === 'false') return ($value === 'true'); 56 public static function unbox($value) : string { 57 if (is_bool($value)) return $value ? 'true' : 'false'; 58 return (string) $value; 261 * 262 * @see http://php.net/manual/en/function.parse-str.php `parse_str()` official documentation. 263 *Test.php https://github.com/sunnysujan/wikireader.git | PHP | 496 lines
78 79 # See http://www.php.net/manual/en/language.operators.comparison.php 80 switch ($op) 368 369Test.php - TAP test framework for PHP with a L<Test::More>-like interface 370 372 373 #!/usr/bin/env php 374 <?php 374 <?php 375 require 'Test.php'; 376 427 428F<Test.php> is an implementation of Perl's L<Test::More> for PHP. Like 429Test::More it produces language agnostic TAP output (see L<TAP>) whichhelpers.php https://gitlab.com/jjpa2018/dashboard | PHP | 379 lines
1<?php 2 49 50 if (is_numeric($value) || is_bool($value)) { 51 return false; 362 { 363 return PHP_OS_FAMILY === 'Windows'; 364 }Csv.php https://bitbucket.org/moodle/moodle.git | PHP | 404 lines
1<?php 2 2 3namespace PhpOffice\PhpSpreadsheet\Writer; 4 4 5use PhpOffice\PhpSpreadsheet\Calculation\Calculation; 6use PhpOffice\PhpSpreadsheet\Spreadsheet; 10 /** 11 * PhpSpreadsheet object. 12 * 35 */ 36 private $lineEnding = PHP_EOL; 37 84 /** 85 * Save PhpSpreadsheet to file. 86 *Ini.php https://github.com/ntulip/piwik.git | PHP | 293 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Ini.php 16201 2009-06-21 18:51:15Z thomas $ 20 */ 25 */ 26require_once 'Zend/Config.php'; 27 105 */ 106 require_once 'Zend/Config/Exception.php'; 107 throw new Zend_Config_Exception('Filename is not set'); 110 $allowModifications = false; 111 if (is_bool($options)) { 112 $allowModifications = $options; 148 */ 149 require_once 'Zend/Config/Exception.php'; 150 throw new Zend_Config_Exception("Section '$sectionName' cannot be found in $filename");Xml.php https://github.com/cosmocommerce/magento-mirror.git | PHP | 296 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Xml.php 24593 2012-01-05 20:35:02Z matthew $ 20 */ 24 */ 25#require_once 'Zend/Config.php'; 26 80 if (empty($xml)) { 81 #require_once 'Zend/Config/Exception.php'; 82 throw new Zend_Config_Exception('Filename is not set'); 85 $allowModifications = false; 86 if (is_bool($options)) { 87 $allowModifications = $options; 106 if ($this->_loadFileErrorStr !== null) { 107 #require_once 'Zend/Config/Exception.php'; 108 throw new Zend_Config_Exception($this->_loadFileErrorStr);Form.class.php https://gitlab.com/ctheilman92/Aging-In-Place | PHP | 210 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 5 * 6 * @package PhpMyAdmin 7 */ 12 * 13 * @package PhpMyAdmin 14 */ 105 } 106 $keys[] = is_bool($value[$i]) ? (int)$value[$i] : $value[$i]; 107 } 118 * array_walk callback function, reads path of form fields from 119 * array (see file comment in setup.forms.php or user_preferences.forms.inc) 120 *Ini.php https://github.com/sitengine/sitengine.git | PHP | 293 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Ini.php 14667 2009-04-05 09:18:21Z rob $ 20 */ 25 */ 26require_once 'Zend/Config.php'; 27 105 */ 106 require_once 'Zend/Config/Exception.php'; 107 throw new Zend_Config_Exception('Filename is not set'); 110 $allowModifications = false; 111 if (is_bool($options)) { 112 $allowModifications = $options; 148 */ 149 require_once 'Zend/Config/Exception.php'; 150 throw new Zend_Config_Exception("Section '$sectionName' cannot be found in $filename");avatar.php https://gitlab.com/najomie/ljm | PHP | 377 lines
1<?php 2/** 173 if ( !is_admin() ) { 174 include_once( ABSPATH . '/wp-admin/includes/template.php' ); 175 176 if ( is_multisite() ) 177 include_once( ABSPATH . '/wp-admin/includes/ms.php' ); 178 } 180 if ( ( ( defined( 'PODS_DISABLE_FILE_UPLOAD' ) && true === PODS_DISABLE_FILE_UPLOAD ) 181 || ( defined( 'PODS_UPLOAD_REQUIRE_LOGIN' ) && is_bool( PODS_UPLOAD_REQUIRE_LOGIN ) && true === PODS_UPLOAD_REQUIRE_LOGIN && !is_user_logged_in() ) 182 || ( defined( 'PODS_UPLOAD_REQUIRE_LOGIN' ) && !is_bool( PODS_UPLOAD_REQUIRE_LOGIN ) && ( !is_user_logged_in() || !current_user_can( PODS_UPLOAD_REQUIRE_LOGIN ) ) ) ) 183 && ( ( defined( 'PODS_DISABLE_FILE_BROWSER' ) && true === PODS_DISABLE_FILE_BROWSER ) 184 || ( defined( 'PODS_FILES_REQUIRE_LOGIN' ) && is_bool( PODS_FILES_REQUIRE_LOGIN ) && true === PODS_FILES_REQUIRE_LOGIN && !is_user_logged_in() ) 185 || ( defined( 'PODS_FILES_REQUIRE_LOGIN' ) && !is_bool( PODS_FILES_REQUIRE_LOGIN ) && ( !is_user_logged_in() || !current_user_can( PODS_FILES_REQUIRE_LOGIN ) ) ) ) 188 <p>You do not have access to upload / browse files. Contact your website admin to resolve.</p> 189 <?php 190 return;class-api.php https://gitlab.com/ebrjose/comcebu | PHP | 578 lines
1<?php 2 95 public function is_connected() { 96 if ( is_bool( $this->connected ) ) { 97 return $this->connected; 357 /** 358 * @see https://apidocs.mailchimp.com/api/2.0/ecomm/order-add.php 359 * 383 /** 384 * @see https://apidocs.mailchimp.com/api/2.0/ecomm/order-del.php 385 *Serializer.php https://github.com/elrolito/zendamf-for-kohana.git | PHP | 362 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Serializer.php 23651 2011-01-21 21:51:00Z mikaelkael $ 21 */ 23/** Zend_Amf_Constants */ 24require_once 'Zend/Amf/Constants.php'; 25 26/** @see Zend_Amf_Parse_Serializer */ 27require_once 'Zend/Amf/Parse/Serializer.php'; 28 29/** 30 * Serializer PHP misc types back to there corresponding AMF0 Type Marker. 31 * 65 { 66 // Workaround for PHP5 with E_STRICT enabled complaining about "Only 67 // variables should be passed by reference"renderer.php https://github.com/mineirim/pas.git | PHP | 248 lines
1<?php 2/** 23 * <code> 24 * $wikidata = include 'tutorial_wikipedia_data.php'; 25 * 50 * - ezcGraphLineChartOptions 51 * - ezcGraphPieChartOptions 52 * - ezcGraphRadarChartOptions 217 case 'shortAxis': 218 if ( !is_bool( $propertyValue ) ) 219 {apc_sample_serializer.php https://gitlab.com/Blueprint-Marketing/hhvm | PHP | 162 lines
1<?php 2 4 * Write .cpp files for building libapc_prime.so that can be loaded by an 5 * HPHP-compiled server at startup time. 6 */ 6 */ 7class CacheArchiveHphpSerializer extends CacheArchiveSerializer { 8 public function __construct($archive_name) { 11 12 public function getName() { return 'hphp';} 13 public function unserialize($data) {} 17 $out = "\n#include \"apc_prime.h\"\n\n"; 18 $out .= "namespace HPHP {\n"; 19 $out .= str_repeat('/', 79)."\n\n"; 51 foreach ($data as $k => $v) { 52 if ($v === null || is_bool($v)) { 53 $keys .= $this->s($k).',';SchemaValidator.php https://gitlab.com/treighton/wpgit | PHP | 291 lines
1<?php 2 275 return 'integer'; 276 } elseif ($t == 'boolean' && is_bool($value)) { 277 return 'boolean';agent.php https://bitbucket.org/sriedel/iccrm-wip.git | PHP | 529 lines
1<?php 2/** 9 * @copyright 2010 - 2012 Fuel Development Team 10 * @link http://fuelphp.com 11 */ 17 * 18 * This class uses PHP's get_browser() to get details from the browsers user agent 19 * string. If not available, it can use a coded alternative using the php_browscap.ini 98 'enabled' => true, 99 'url' => 'http://browsers.garykeith.com/stream.asp?Lite_PHP_BrowsCapINI', 100 'method' => 'wrapper', 437 curl_setopt($curl, CURLOPT_HEADER, 0); 438 curl_setopt($curl, CURLOPT_USERAGENT, 'Fuel PHP framework - Agent class (http://fuelphp.com)'); 439 curl_setopt($curl, CURLOPT_URL, static::$config['browscap']['url']); 444 case 'wrapper': 445 ini_set('user_agent', 'Fuel PHP framework - Agent class (http://fuelphp.com)'); 446 $data = file_get_contents(static::$config['browscap']['url']);CellQuery.php https://gitlab.com/tjaafar/SuiteCRM | PHP | 417 lines
1<?php 2 26 */ 27require_once('Zend/Gdata/App/Util.php'); 28 31 */ 32require_once('Zend/Gdata/Query.php'); 33 333 { 334 if (is_bool($value)) { 335 $this->_params['return-empty'] = ($value?'true':'false'); 370 } else { 371 require_once 'Zend/Gdata/App/Exception.php'; 372 throw new Zend_Gdata_App_Exception('A spreadsheet key must be provided for cell queries.'); 377 } else { 378 require_once 'Zend/Gdata/App/Exception.php'; 379 throw new Zend_Gdata_App_Exception('A worksheet id must be provided for cell queries.');MySqlGrammar.php https://gitlab.com/jjpa2018/dashboard | PHP | 329 lines
1<?php 2 209 { 210 if (is_bool($value)) { 211 $value = $value ? 'true' : 'false'; 258 $values = collect($values)->reject(function ($value, $column) { 259 return $this->isJsonSelector($column) && is_bool($value); 260 })->map(function ($value) {Serializer.php https://github.com/mridgway/zf2.git | PHP | 365 lines
1<?php 2/** 33/** 34 * Serializer PHP misc types back to there corresponding AMF0 Type Marker. 35 * 73 { 74 // Workaround for PHP5 with E_STRICT enabled complaining about "Only 75 // variables should be passed by reference" 133 break; 134 case (is_bool($data)): 135 $markerType = Amf\Constants::AMF0_BOOLEAN; 202 { 203 // Workaround for PHP5 with E_STRICT enabled complaining about "Only 204 // variables should be passed by reference" 227 /** 228 * Write a PHP array with string or mixed keys. 229 *Validator.php https://github.com/zikula-modules/KnowledgeBase.git | PHP | 399 lines
1<?php 2/** 43 { 44 return (is_bool($this->entity[$fieldName])); 45 }eztemplateautoload.php https://bitbucket.org/crevillo/enetcall.git | PHP | 183 lines
1<?php 2/** 58$eZTemplateOperatorArray[] = array( 'class' => 'eZTemplateTypeOperator', 59 'operator_names' => array( 'is_array', 'is_boolean', 'is_integer', 60 'is_float', 'is_numeric', 'is_string', 178 179// eZTemplatePHPOperator is not autoload due to it's generic use 180// it's up to the users of eZTemplate to initiate a proper usageSerializer.php https://github.com/vicfryzel/zf.git | PHP | 349 lines
1<?php 2/** 23/** Zend_Amf_Constants */ 24require_once 'Zend/Amf/Constants.php'; 25 26/** @see Zend_Amf_Parse_Serializer */ 27require_once 'Zend/Amf/Parse/Serializer.php'; 28 29/** 30 * Serializer PHP misc types back to there corresponding AMF0 Type Marker. 31 * 109 default: 110 require_once 'Zend/Amf/Exception.php'; 111 throw new Zend_Amf_Exception("Unknown Type Marker: " . $markerType); 121 break; 122 case (is_bool($data)): 123 $markerType = Zend_Amf_Constants::AMF0_BOOLEAN;botprovider.php https://gitlab.com/alexprowars/bitrix | PHP | 393 lines
1<?php 2namespace Bitrix\Im\Integration\UI\EntitySelector; 32 $this->options['fillDialog'] = true; 33 if (isset($options['fillDialog']) && is_bool($options['fillDialog'])) 34 {Connection.php https://gitlab.com/mohamed_hussein/prodt | PHP | 375 lines
1<?php 2 104 // If the password contains a backslash it is treated as an escape character 105 // http://bugs.php.net/bug.php?id=53217 106 // so backslashes in the password need to be doubled up. 108 // will break on this doubling up when the bug is fixed, so check the version 109 // elseif (phpversion('pdo_pgsql') < 'version_this_was_fixed_in') { 110 else { 159 // correctly when parameters are bound using associative arrays. 160 // @see http://bugs.php.net/bug.php?id=48383 161 foreach ($args as &$value) { 161 foreach ($args as &$value) { 162 if (is_bool($value)) { 163 $value = (int) $value;Database.php https://github.com/craig1709/Shoal.git | PHP | 636 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2/** 4 * 5 * $Id: Database.php 4134 2009-03-28 04:37:54Z zombor $ 6 * 9 * @copyright (c) 2007-2008 Kohana Team 10 * @license http://kohanaphp.com/license.html 11 */ 115 } 116 elseif (is_bool($value)) 117 { 399 'Unknown field type: '.$type.'. '. 400 'Please report this: http://trac.kohanaphp.com/newticket' 401 );Converter.php https://github.com/basdog22/Qool.git | PHP | 397 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Converter.php 24594 2012-01-05 21:27:01Z matthew $ 20 */ 38 * 39 * @see Net_LDAP2_Util::asc2hex32() from Benedikt Hallinger <beni@php.net> 40 * @link http://pear.php.net/package/Net_LDAP2 40 * @link http://pear.php.net/package/Net_LDAP2 41 * @author Benedikt Hallinger <beni@php.net> 42 * 61 * 62 * @see Net_LDAP2_Util::hex2asc() from Benedikt Hallinger <beni@php.net>, 63 * heavily based on work from DavidSmith@byu.net 63 * heavily based on work from DavidSmith@byu.net 64 * @link http://pear.php.net/package/Net_LDAP2 65 * @author Benedikt Hallinger <beni@php.net>, heavily based on work from DavidSmith@byu.netVarCloner.php https://gitlab.com/nmhieucoder/laravel_tintuc | PHP | 288 lines
1<?php 2 67 68 if (\PHP_VERSION_ID >= 70400) { 69 $zvalIsRef = null !== \ReflectionReference::fromArrayElement($vals, $k); 96 case null === $v: 97 case \is_bool($v): 98 case \is_int($v): 145 // let's detect them with some black magic 146 if (\PHP_VERSION_ID < 80100 && ($a[$gid] = true) && isset($v[$gid])) { 147 unset($v[$gid]);Ini.php https://gitlab.com/devtoannh/cafe | PHP | 193 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Ini.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 24 */ 25require_once 'Zend/Config/Writer/FileAbstract.php'; 26 153 return $value; 154 } elseif (is_bool($value)) { 155 return ($value ? 'true' : 'false'); 159 /** @see Zend_Config_Exception */ 160 require_once 'Zend/Config/Exception.php'; 161 throw new Zend_Config_Exception('Value can not contain double quotes "');LineFormatter.php https://gitlab.com/madwanz64/laravel | PHP | 217 lines
1<?php declare(strict_types=1); 2 164 { 165 if (null === $data || is_bool($data)) { 166 return var_export($data, true);TableDefinition.php https://gitlab.com/VTTE/sitios-vtte | PHP | 268 lines
1<?php 2 103 if (\array_key_exists('id', $options)) { 104 if (\is_bool($options['id']) && $options['id'] == \false) { 105 $this->_auto_generate_id = \false;TinyMce.php https://github.com/juokaz/php-examples.git | PHP | 145 lines
1<?php 2 113 } 114 $script = 'tinyMCE_GZ.init({' . PHP_EOL 115 . 'themes: "' . implode(',', $this->_supported['theme']) . '",' . PHP_EOL 115 . 'themes: "' . implode(',', $this->_supported['theme']) . '",' . PHP_EOL 116 . 'plugins: "'. implode(',', $this->_supported['plugins']) . '",' . PHP_EOL 117 . 'languages: "' . implode(',', $this->_supported['languages']) . '",' . PHP_EOL 117 . 'languages: "' . implode(',', $this->_supported['languages']) . '",' . PHP_EOL 118 . 'disk_cache: true,' . PHP_EOL 119 . 'debug: false,' . PHP_EOL 127 { 128 $script = 'tinyMCE.init({' . PHP_EOL; 129 133 } 134 if (!is_bool($value)) { 135 $value = '"' . $value . '"';font.php https://gitlab.com/quyse/crashfix | PHP | 312 lines
1<?php 2/** 23 * <code> 24 * $graph = new ezcGraphPieChart(); 25 * $graph->title = 'Access statistics'; 214 case 'textShadow': 215 if ( !is_bool( $propertyValue ) ) 216 {Fixtures.php https://bitbucket.org/akiraaisha/alice.git | PHP | 274 lines
1<?php 2 268 if (isset($options['persist_once'])) { 269 if (false === is_bool($options['persist_once'])) { 270 throw new \InvalidArgumentException('Expected "persist_once" option value value to be a boolean.');VarCloner.php https://gitlab.com/jjpa2018/dashboard | PHP | 311 lines
1<?php 2 67 68 if (\PHP_VERSION_ID >= 70400) { 69 $zvalRef = ($r = \ReflectionReference::fromArrayElement($vals, $k)) ? $r->getId() : null; 77 unset($stub); // independent from the original structure 78 if (\PHP_VERSION_ID >= 70400 ? null !== $vals[$k] = $hardRefs[$zvalRef] ?? null : $v instanceof Stub && isset($hardRefs[spl_object_id($v)])) { 79 if (\PHP_VERSION_ID >= 70400) { 93 94 if (\PHP_VERSION_ID >= 70400) { 95 $hardRefs[$zvalRef] = $vals[$k]; 106 case null === $v: 107 case \is_bool($v): 108 case \is_int($v): 142 143 if (\PHP_VERSION_ID >= 80100) { 144 $stub->class = array_is_list($v) ? Stub::ARRAY_INDEXED : Stub::ARRAY_ASSOC;QuestionsController.php https://gitlab.com/daniel.setreus/quiz-app-api | PHP | 106 lines
1<?php 2 36 throw new \Exception("Atleast one choise is missing value for title or isCorrect", 1); 37 if(!is_bool($choice['isCorrect'])) 38 throw new \Exception("Value for isCorrect must be of type boolean");Model.php https://gitlab.com/remyvianne/krowkaramel | PHP | 404 lines
1<?php 2 138 139 public static $_table; // phpcs:ignore PSR2.Classes.PropertyDeclaration 140 protected $_errors; // phpcs:ignore PSR2.Classes.PropertyDeclaration 153 $created = parent::create(); 154 if (is_bool($created)) { 155 throw new \Exception('ORM is not initialised'); 229 * @return static 230 * @phpstan-ignore-next-line Our Model has incompatible return type with parent 231 */smarty_internal_resource_registered.php https://gitlab.com/webbroteam/satisfaction-mvc | PHP | 99 lines
1<?php 2/** 80 $t = call_user_func_array($source->smarty->registered_resources[$source->type][0][0], array($source->name, &$content, $source->smarty)); 81 if (is_bool($t) && !$t) { 82 throw new SmartyException("Unable to read template {$source->type} '{$source->name}'");Tokenize.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 413 lines
1<?php 2/** 292 case '~': 293 // Ignore binary string identifier. PHP strings are 294 // binary-safe. But keep it if it is not used as string 366 367 if (($level === $this->_level) && !is_bool($text)) { 368 $this->_nextModify['out'][] = $text;FileLoader.php https://github.com/symfony/symfony.git | PHP | 261 lines
1<?php 2 60 $args[2] = false; 61 } elseif (!\is_bool($ignoreErrors)) { 62 throw new \TypeError(sprintf('Invalid argument $ignoreErrors provided to "%s::import()": boolean or "not_found" expected, "%s" given.', static::class, get_debug_type($ignoreErrors))); 207 208 if (!str_ends_with($path, '.php') || !$info->isReadable()) { 209 continue; 249 foreach ($excludePaths as $path => $_) { 250 $class = $namespace.ltrim(str_replace('/', '\\', substr($path, $prefixLen, str_ends_with($path, '.php') ? -4 : null)), '\\'); 251 if (!$this->container->has($class)) {Memcached.php https://gitlab.com/fabiorf/chat | PHP | 231 lines
1<?php 2 130 case 'CACHE_LOOKUPS': 131 if (!is_bool($value)) { 132 throw new RuntimeException('Memcached option ' . $name . ' requires boolean value');weeMSSQLDatabase.class.php https://github.com/extend/wee.git | PHP | 203 lines
1<?php 2 58 @param $aParams The parameters of the database. 59 @throw ConfigurationException The MSSQL PHP extension is missing. 60 @throw DatabaseException The connection failed. 65 function_exists('mssql_connect') or burn('ConfigurationException', 66 sprintf(_WT('The "%s" PHP extension is required by this database driver.'), 'MSSQL')); 67 88 // Bool isn't supported directly, cast to int 89 if (is_bool($mValue)) 90 $mValue = (int)$mValue;InteractsWithInput.php https://gitlab.com/jjpa2018/dashboard | PHP | 540 lines
1<?php 2 235 236 return ! is_bool($value) && ! is_array($value) && trim((string) $value) === ''; 237 }Ini.php https://github.com/wokkie/sitellite.git | PHP | 458 lines
1<?php 2 2 3//include_once ('../../init.php'); 4 6 * Class for parsing, transforming, and writing files in the INI format, 7 * as defined by the PHP parse_ini_file() function. 8 * 14 * @package Misc 15 * @version 1.2, 2003-09-29, $Id: Ini.php,v 1.4 2008/02/17 18:55:47 lux Exp $ 16 */ 30 * this method defaults to assuming INI files _do_ have $sections, 31 * whereas PHP's parse_ini_file() function assumes the opposite. 32 * 241 function writeValue ($val) { 242 if (is_bool ($val)) { 243 if ($val) {DB_forge.php https://gitlab.com/fredec/ionizecms-1.0.8.x | PHP | 382 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 58 59 if (is_bool($sql)) 60 { 79 80 if (is_bool($sql)) 81 { 211 212 if (is_bool($sql)) 213 { 380 381/* End of file DB_forge.php */ 382/* Location: ./system/database/DB_forge.php */