100+ results results for 'php is_string' (796 ms)
34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); 35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); 36} 149 // Create new PHPExcel 150 $objPHPExcel = new PHPExcel(); 151 430 /** 431 * Loads PHPExcel from file into PHPExcel instance 432 * 433 * @param string $pFilename 434 * @param PHPExcel $objPHPExcel 435 * @return PHPExcel 437 */ 438 public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel) 439 {abstract.php https://bitbucket.org/organicdevelopment/nooku-framework.git | PHP | 559 lines
1<?php 2/** 209 { 210 if(is_string($view) && strpos($view, '.') === false ) 211 { 384 //Create the complete identifier if a partial identifier was passed 385 if(is_string($filter) && strpos($filter, '.') === false ) 386 { 473 //Create the complete identifier if a partial identifier was passed 474 if(is_string($helper) && strpos($helper, '.') === false ) 475 { 506 if(ini_get('log_errors')) { 507 error_log(sprintf('PHP %s: %s in %s on line %d', self::$_errors[$code], $message, $this->_path, $line)); 508 } 519 * This function passes the template through the read filter chain before letting 520 * the PHP parser executed it. The result is buffered. 521 *class-terminus.php https://gitlab.com/Blueprint-Marketing/cli | PHP | 417 lines
27 if(!$configurator) { 28 $configurator = new Terminus\Configurator(TERMINUS_ROOT . '/php/config-spec.php'); 29 } 283 static function error_to_string($errors) { 284 if(is_string($errors)) { 285 return $errors; 337 338 $php_bin = self::get_php_binary(); 339 340 if(Terminus::is_test()) { 341 $script_path = __DIR__.'/boot-fs.php'; 342 } else { 353 354 private static function get_php_binary() { 355 if(defined('PHP_BINARY'))Store.php https://gitlab.com/ealexis.t/trends | PHP | 707 lines
1<?php 2 186 { 187 return is_string($id) && preg_match('/^[a-f0-9]{40}$/', $id); 188 }Url.php https://gitlab.com/x33n/respond | PHP | 548 lines
1<?php 2 420 { 421 if (is_string($query)) { 422 $output = null;Json.php https://bitbucket.org/baruffaldi/webapp-urltube.git | PHP | 242 lines
1<?php 2/** 23 */ 24require_once 'Zend/Json/Exception.php'; 25 72 73 require_once 'Zend/Json/Decoder.php'; 74 return Zend_Json_Decoder::decode($encodedValue, $objectDecodeType); 98 99 require_once 'Zend/Json/Encoder.php'; 100 return Zend_Json_Encoder::encode($valueToEncode, $cycleCheck, $options); 113 * 114 * This function converts the XML formatted string into a PHP array by 115 * calling a recursive (protected static) function in this class. Then, it 115 * calling a recursive (protected static) function in this class. Then, it 116 * converts that PHP array into JSON by calling the "encode" static funcion. 117 *basebutton.php https://gitlab.com/alexprowars/bitrix | PHP | 564 lines
1<?php 2 84 85 if (!empty($params['className']) && is_string($params['className'])) 86 { 298 { 299 if (is_string($link) && !empty($link)) 300 { 318 } 319 else if ((is_int($counter) && $counter > 0) || (is_string($counter) && mb_strlen($counter))) 320 { 517 { 518 if (is_string($fn)) 519 {svg_driver.php https://gitlab.com/OnBlox/OnBlox-Template | PHP | 288 lines
1<?php 2/** 29 * <code> 30 * $graph = new ezcGraphPieChart(); 31 * $graph->background->color = '#FFFFFFFF'; 252 case 'insertIntoGroup': 253 if ( !is_string( $propertyValue ) ) 254 {Size.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 365 lines
1<?php 2/** 76 { 77 if (is_string($options) || is_numeric($options)) { 78 $options = array('max' => $options); 143 { 144 if (!is_string($min) and !is_numeric($min)) { 145 throw new Exception\InvalidArgumentException('Invalid options to validator provided'); 188 { 189 if (!is_string($max) && !is_numeric($max)) { 190 throw new Exception\InvalidArgumentException('Invalid options to validator provided');Currency.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 357 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 134 { 135 if (is_string($toCurrency)) { 136 $code = $toCurrency; 158 { 159 if (is_string($toCurrency)) { 160 $code = $toCurrency;dumper.php https://bitbucket.org/allfields/wave.git | PHP | 360 lines
1<?php 2/** 5 * @subpackage UnitTester 6 * @version $Id: dumper.php 1723 2008-04-08 00:34:10Z lastcraft $ 7 */ 57 return "Boolean"; 58 } elseif (is_string($value)) { 59 return "String";yaf_config.c https://gitlab.com/oytunistrator/yaf | C | 405 lines
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 +----------------------------------------------------------------------+ 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" 72 switch(Z_TYPE_PP(value)) { 73 case IS_STRING: 74 case IS_CONSTANT: 176 case IS_CONSTANT: 177 case IS_STRING: 178 CHECK_ZVAL_STRING(zvalue);bcmath.c https://gitlab.com/envieidoc/advancedtomato2 | C | 579 lines
2 +----------------------------------------------------------------------+ 3 | PHP Version 5 | 4 +----------------------------------------------------------------------+ 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 1997-2014 The PHP Group | 6 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 134PHP_INI_BEGIN() 135 STD_PHP_INI_ENTRY("bcmath.scale", "0", PHP_INI_ALL, OnUpdateLongGEZero, bc_precision, zend_bcmath_globals, bcmath_globals) 136PHP_INI_END()AbstractAction.php https://gitlab.com/yousafsyed/easternglamor | PHP | 450 lines
1<?php 2/** 101 { 102 if (is_string($storeId)) { 103 $storeId = intval($storeId); 174 * @return array 175 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 176 */toolset.settings.class.php https://gitlab.com/Fraternal-Group/fraternal | PHP | 468 lines
1<?php 2 214 /** 215 * PHP dynamic setter. 216 * 224 /** 225 * PHP dynamic setter. 226 * 235 /** 236 * PHP dynamic fields unset() method support 237 * @param string $key 245 /** 246 * PHP dynamic support for isset($this->name) 247 * @param string $key 328 } else if ( 329 is_string( $param1 ) 330 || is_integer( $param1 )FreeBusyGenerator.php https://gitlab.com/wuhang2003/rainloop-webmail | PHP | 322 lines
1<?php 2 110 111 if (is_string($object)) { 112 $this->objects[] = Reader::read($object);File.php https://gitlab.com/devtoannh/cafe | PHP | 468 lines
25 */ 26require_once 'Zend/CodeGenerator/Php/Abstract.php'; 27 30 */ 31require_once 'Zend/CodeGenerator/Php/Class.php'; 32 38 */ 39class Zend_CodeGenerator_Php_File extends Zend_CodeGenerator_Php_Abstract 40{ 86 if ($fileName == '') { 87 require_once 'Zend/CodeGenerator/Php/Exception.php'; 88 throw new Zend_CodeGenerator_Php_Exception('FileName does not exist.'); 113 if ( ($realpath = Zend_Reflection_file::findRealpathInIncludePath($filePath)) === false) { 114 require_once 'Zend/CodeGenerator/Php/Exception.php'; 115 throw new Zend_CodeGenerator_Php_Exception('No file for ' . $realpath . ' was found.');internal-link-aliases.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 374 lines
1<?php 2 34 if (suwp::permalink_mode() != SUWP_PRETTY_PERMALINKS) 35 $this->print_message('error', sprintf(__('Link Mask Generator won’t work with default or “pathinfo” permalinks. Please change your <a href="%s">permalink structure</a> to enable this module’s functionality.', 'seo-ultimate'), 'options-permalink.php')); 36 111 112 if (!is_string($id)) $id = uniqid($i, true); 113twitter-timeline.php https://gitlab.com/vanafroo/voipWEB | PHP | 470 lines
1<?php 2 26 'twitter_timeline', 27 /** This filter is documented in modules/widgets/facebook-likebox.php */ 28 apply_filters( 'jetpack_widget_name', esc_html__( 'Twitter Timeline', 'jetpack' ) ), 63 public function admin_scripts( $hook ) { 64 // This is still 'widgets.php' when managing widgets via the Customizer. 65 if ( 'widgets.php' === $hook ) { 83 if ( isset( $instance['title'] ) ) { 84 /** This filter is documented in core/src/wp-includes/default-widgets.php */ 85 echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ) . $args['after_title']; 145 146 /** This action is documented in modules/widgets/social-media-icons.php */ 147 do_action( 'jetpack_bump_stats_extras', 'widget', 'twitter_timeline' ); 185 // If they entered something that might be a full URL, try to parse it out 186 if ( is_string( $new_instance['widget-id'] ) ) { 187 if ( preg_match(DataObject.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 541 lines
1<?php 2/** 11 * @author Magento Core Team <core@magentocommerce.com> 12 * @SuppressWarnings(PHPMD.NumberOfChildren) 13 */ 495 * @return void 496 * @link http://www.php.net/manual/en/arrayaccess.offsetset.php 497 */ 507 * @return bool 508 * @link http://www.php.net/manual/en/arrayaccess.offsetexists.php 509 */ 519 * @return void 520 * @link http://www.php.net/manual/en/arrayaccess.offsetunset.php 521 */ 531 * @return mixed 532 * @link http://www.php.net/manual/en/arrayaccess.offsetget.php 533 */Dbp.php https://bitbucket.org/kdms/sh-magento.git | PHP | 394 lines
1<?php 2/** 164 $parentNode = null; 165 } else if (is_string($parentNode)) { 166 $parentPath = $parentNode;Clover.php https://gitlab.com/ealexis.t/trends | PHP | 284 lines
1<?php 2/* 2/* 3 * This file is part of the PHP_CodeCoverage package. 4 * 4 * 5 * (c) Sebastian Bergmann <sebastian@phpunit.de> 6 * 11/** 12 * Generates a Clover XML logfile from an PHP_CodeCoverage object. 13 * 15 */ 16class PHP_CodeCoverage_Report_Clover 17{ 18 /** 19 * @param PHP_CodeCoverage $coverage 20 * @param string $targetLogical.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 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 */ 122 } else { 123 return PHPExcel_Calculation_Functions::VALUE(); 124 } 284 285 return self::STATEMENT_IF(PHPExcel_Calculation_Functions::IS_ERROR($testValue), $errorpart, $testValue); 286 } // function IFERROR()Headers.php https://gitlab.com/yousafsyed/easternglamor | PHP | 472 lines
1<?php 2/** 153 if (is_int($name)) { 154 if (is_string($value)) { 155 $this->addHeaderLine($value); 162 } 163 } elseif (is_string($name)) { 164 $this->addHeaderLine($name, $value);tiki-export_tracker.php https://gitlab.com/ElvisAns/tiki | PHP | 301 lines
1<?php 2 14 15require_once('tiki-setup.php'); 16$access->check_feature('feature_trackers'); 41if (! empty($_REQUEST['listfields'])) { 42 if (is_string($_REQUEST['listfields'])) { 43 $filters['fieldId'] = preg_split('/[,:]/', $_REQUEST['listfields']);Cloud.php https://gitlab.com/rsilveira1987/Expresso | PHP | 410 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Cloud.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $ 21 */ 25 */ 26require_once 'Zend/Tag/Item.php'; 27 152 } else { 153 require_once 'Zend/Tag/Cloud/Exception.php'; 154 throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array'); 174 } else { 175 require_once 'Zend/Tag/Cloud/Exception.php'; 176 throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array'); 203 if (null === $this->_tags) { 204 require_once 'Zend/Tag/ItemList.php'; 205 $this->setItemList(new Zend_Tag_ItemList());Dispatcher.php https://gitlab.com/kimting254/wbms | PHP | 486 lines
1<?php namespace Illuminate\Events; 2 147 { 148 if (is_string($subscriber)) 149 { 309 { 310 return is_string($listener) ? $this->createClassListener($listener) : $listener; 311 }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 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 */ 122 } else { 123 return PHPExcel_Calculation_Functions::VALUE(); 124 } 284 285 return self::STATEMENT_IF(PHPExcel_Calculation_Functions::IS_ERROR($testValue), $errorpart, $testValue); 286 } // function IFERROR()DynamicRouter.php https://gitlab.com/guillaumev/alkarama | PHP | 387 lines
1<?php 2 193 194 return is_string($name); 195 }Akismet.php https://gitlab.com/yousafsyed/easternglamor | PHP | 387 lines
1<?php 2/** 26 */ 27#require_once 'Zend/Version.php'; 28 31 */ 32#require_once 'Zend/Service/Abstract.php'; 33 109 { 110 #require_once 'Zend/Uri.php'; 111 if (!Zend_Uri::check($blogUrl)) { 111 if (!Zend_Uri::check($blogUrl)) { 112 #require_once 'Zend/Service/Exception.php'; 113 throw new Zend_Service_Exception('Invalid url provided for blog'); 183 if (!is_int($port)) { 184 #require_once 'Zend/Service/Exception.php'; 185 throw new Zend_Service_Exception('Invalid port');Logical.php https://gitlab.com/tonmoy1a/bitm-php-batch-26 | 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 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 */ 122 } else { 123 return PHPExcel_Calculation_Functions::VALUE(); 124 } 284 285 return self::STATEMENT_IF(PHPExcel_Calculation_Functions::IS_ERROR($testValue), $errorpart, $testValue); 286 } // function IFERROR()TraitUsageGenerator.php https://gitlab.com/yousafsyed/easternglamor | PHP | 353 lines
1<?php 2/** 163 } 164 if (! is_string($alias)) { 165 throw new Exception\InvalidArgumentException('Invalid Alias: $alias must be a string or array.'); 240 foreach ($traitsToReplace as $traitToReplace) { 241 if (! is_string($traitToReplace)) { 242 throw new Exception\InvalidArgumentException(MimeType.php https://gitlab.com/Ltaimao/wecenter | PHP | 476 lines
1<?php 2/** 24 */ 25//require_once 'Zend/Validate/Abstract.php'; 26 135 $mimetype = $mimetype->toArray(); 136 } elseif (is_string($mimetype)) { 137 $mimetype = explode(',', $mimetype); 138 } elseif (!is_array($mimetype)) { 139 //require_once 'Zend/Validate/Exception.php'; 140 throw new Zend_Validate_Exception("Invalid options to validator provided"); 158 * 159 * Note that for PHP 5.3.0 or higher, we don't use $_ENV['MAGIC'] or try to 160 * find a magic file in a common location as PHP now has a built-in internal 166 { 167 if (version_compare(PHP_VERSION, '5.3.0', '<') 168 && null === $this->_magicfile) {CookieJar.php https://gitlab.com/Ltaimao/wecenter | PHP | 428 lines
1<?php 2/** 25 */ 26require_once "Zend/Uri.php"; 27/** 29 */ 30require_once "Zend/Http/Cookie.php"; 31/** 33 */ 34require_once "Zend/Http/Response.php"; 35 129 { 130 if (is_string($cookie)) { 131 $cookie = Zend_Http_Cookie::fromString($cookie, $ref_uri, $encodeValue); 141 } else { 142 //require_once 'Zend/Http/Exception.php'; 143 throw new Zend_Http_Exception('Supplient argument is not a valid cookie string or object');file_helper.php https://gitlab.com/lisit1003/TTPHPServer | PHP | 479 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 * 240 241 // foreach (scandir($source_dir, 1) as $file) // In addition to being PHP5+, scandir() is simply not as fast 242 while (FALSE !== ($file = readdir($fp))) 288 289 if (is_string($returned_values)) 290 { 334 * 335 * Translates a file extension into a mime type based on config/mimes.php. 336 * Returns FALSE if it can't determine the type, or open the mime config file 354 { 355 if (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/mimes.php')) 356 {HookApi.php https://gitlab.com/iamgraeme/royalmile | PHP | 337 lines
1<?php 2namespace WebSharks\HtmlCompressor; 104 { 105 if (is_string($function)) { 106 return $function; 115 return spl_object_hash($function[0]).$function[1]; 116 } elseif (is_string($function[0])) { 117 return $function[0].'::'.$function[1];class-wp-customize-setting.php https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests | PHP | 439 lines
1<?php 2/** 249 250 if ( is_string( $value ) ) 251 return html_entity_decode( $value, ENT_QUOTES, 'UTF-8');CssSelector.php https://gitlab.com/fbi/radyo-api-server | PHP | 313 lines
1<?php 2 46 { 47 if (is_string($cssExpr)) { 48 if (preg_match('#^\w+\s*$#u', $cssExpr, $match)) {MimeType.php https://gitlab.com/yousafsyed/easternglamor | PHP | 476 lines
1<?php 2/** 24 */ 25#require_once 'Zend/Validate/Abstract.php'; 26 135 $mimetype = $mimetype->toArray(); 136 } elseif (is_string($mimetype)) { 137 $mimetype = explode(',', $mimetype); 138 } elseif (!is_array($mimetype)) { 139 #require_once 'Zend/Validate/Exception.php'; 140 throw new Zend_Validate_Exception("Invalid options to validator provided"); 158 * 159 * Note that for PHP 5.3.0 or higher, we don't use $_ENV['MAGIC'] or try to 160 * find a magic file in a common location as PHP now has a built-in internal 166 { 167 if (version_compare(PHP_VERSION, '5.3.0', '<') 168 && null === $this->_magicfile) {CookieJar.php https://gitlab.com/yousafsyed/easternglamor | PHP | 428 lines
1<?php 2/** 25 */ 26#require_once "Zend/Uri.php"; 27/** 29 */ 30#require_once "Zend/Http/Cookie.php"; 31/** 33 */ 34#require_once "Zend/Http/Response.php"; 35 129 { 130 if (is_string($cookie)) { 131 $cookie = Zend_Http_Cookie::fromString($cookie, $ref_uri, $encodeValue); 141 } else { 142 #require_once 'Zend/Http/Exception.php'; 143 throw new Zend_Http_Exception('Supplient argument is not a valid cookie string or object');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);file_helper.php https://gitlab.com/fredec/ionizecms-1.0.8.x | PHP | 479 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 * 240 241 // foreach (scandir($source_dir, 1) as $file) // In addition to being PHP5+, scandir() is simply not as fast 242 while (FALSE !== ($file = readdir($fp))) 288 289 if (is_string($returned_values)) 290 { 334 * 335 * Translates a file extension into a mime type based on config/mimes.php. 336 * Returns FALSE if it can't determine the type, or open the mime config file 477 478/* End of file file_helper.php */ 479/* Location: ./system/helpers/file_helper.php */lib.php https://gitlab.com/MotoSport/morgue | PHP | 307 lines
1<?php 2 292 $val = $ticket_info['fields'][$v]; 293 if (is_string($val)) { 294 $ticket[$k] = $val;Resource.php https://github.com/ramonornela/trilhas.git | PHP | 467 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: Resource.php 23568 2010-12-20 08:13:20Z mjh_ca $ 20 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_Loader_Autoloader_Interface */ 24require_once 'Zend/Loader/Autoloader/Interface.php'; 25 73 if (!is_array($options)) { 74 require_once 'Zend/Loader/Exception.php'; 75 throw new Zend_Loader_Exception('Options must be passed to resource loader constructor'); 83 ) { 84 require_once 'Zend/Loader/Exception.php'; 85 throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization'); 90 } 91 require_once 'Zend/Loader/Autoloader.php'; 92 Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);DebugBar.php https://gitlab.com/ntphuc/FoodyBackend | PHP | 468 lines
1<?php 2/* 46 47 protected $stackSessionNamespace = 'PHPDEBUGBAR_STACK_DATA'; 48 183 * 184 * If no http driver where defined, a PhpHttpDriver is automatically created 185 * 190 if ($this->httpDriver === null) { 191 $this->httpDriver = new PhpHttpDriver(); 192 } 219 array_walk_recursive($this->data, function (&$item) { 220 if (is_string($item) && !mb_check_encoding($item, 'UTF-8')) { 221 $item = mb_convert_encoding($item, 'UTF-8', 'UTF-8'); 253 */ 254 public function getDataAsHeaders($headerName = 'phpdebugbar', $maxHeaderLength = 4096, $maxTotalHeaderLength = 250000) 255 {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"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 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 */ 122 } else { 123 return PHPExcel_Calculation_Functions::VALUE(); 124 } 286 287 return self::STATEMENT_IF(PHPExcel_Calculation_Functions::IS_ERROR($testValue), $errorpart, $testValue); 288 } // function IFERROR()function_forumlist.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 386 lines
1<?php 2 6 * 7 * $Id: function_forumlist.php 31131 2012-07-18 09:44:21Z liulanbo $ 8 */ 39 $forum['icon'] = get_forumimg($forum['icon']); 40 $forum['icon'] = '<a href="forum.php?mod=forumdisplay&fid='.$forum['fid'].'"><img src="'.$forum['icon'].'" align="left" alt="" /></a>'; 41 } 44 45 $forum['lastpost'] = is_string($forum['lastpost']) ? explode("\t", $forum['lastpost']) : $forum['lastpost']; 46 60 if($lastpost['author']) { 61 $lastpost['author'] = '<a href="home.php?mod=space&username='.rawurlencode($lastpost['author']).'">'.$lastpost['author'].'</a>'; 62 } 136 if($fid != $_G['forum']['fid']) { 137 $visitedforums .= '<li><a href="forum.php?mod=forumdisplay&fid='.$fid.'">'.$_G['cache']['forums'][$fid]['name'].'</a></li>'; 138 if(++$count >= $_G['setting']['visitedforums']) {inputfilter.php https://github.com/chrisinammo/arthurmcneil.git | PHP | 551 lines
2/** 3 * @class: InputFilter (PHP4 & PHP5, with comments) 4 * @project: PHP Input Filter 5 * @date: 10-05-2005 6 * @version: 1.2.2_php4/php5 7 * @author: Daniel Morris 58 /** 59 * Method to be called by another php script. Processes for XSS and 60 * specified bad code. 75 // filter element for XSS and other 'bad' code etc. 76 if (is_string($value)) 77 { 85 */ 86 if (is_string($source) && !empty ($source)) 87 {listings.php https://gitlab.com/sihabudinahmad/asppi | PHP | 423 lines
120 ?> 121 <a href="<?php echo esc_attr( get_post_type_archive_link( $post_type ) ); ?>"><?php esc_html_e( 'View frontend archive', 'custom-post-type-ui' ); ?></a> 122 <?php } ?> 168 <p><strong><?php esc_html_e( 'Archives file name examples.', 'custom-post-type-ui' ); ?></strong><br/> 169 archive-<?php echo esc_html( $post_type ); ?>.php<br/> 170 archive.php<br/> 174 <p><strong><?php esc_html_e( 'Single Posts file name examples.', 'custom-post-type-ui' ); ?></strong><br/> 175 single-<?php echo esc_html( $post_type ); ?>-post_slug.php (WP 4.4+) *<br/> 176 single-<?php echo esc_html( $post_type ); ?>.php<br/> 178 singular.php (WP 4.3+)<br/> 179 index.php 180 </p> 334 <p><strong><?php esc_html_e( 'Archives', 'custom-post-type-ui' ); ?></strong><br /> 335 taxonomy-<?php echo esc_html( $taxonomy ); ?>-term_slug.php *<br /> 336 taxonomy-<?php echo esc_html( $taxonomy ); ?>.php<br />DumpDataCollector.php https://gitlab.com/madwanz64/laravel | PHP | 296 lines
1<?php 2 53 $this->fileLinkFormat = $fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format'); 54 $this->charset = $charset ?: ini_get('php.output_encoding') ?: ini_get('default_charset') ?: 'UTF-8'; 55 $this->requestStack = $requestStack; 127 if ($response->headers->has('Content-Type') && str_contains($response->headers->get('Content-Type'), 'html')) { 128 $dumper = new HtmlDumper('php://output', $this->charset); 129 $dumper->setDisplayOptions(['fileLinkFormat' => $this->fileLinkFormat]); 186 foreach ($this->data as $dump) { 187 if (!\is_string($dump['name']) || !\is_string($dump['file']) || !\is_int($dump['line'])) { 188 throw new \BadMethodCallException('Cannot unserialize '.__CLASS__); 191 192 self::__construct($this->stopwatch, \is_string($fileLinkFormat) || $fileLinkFormat instanceof FileLinkFormatter ? $fileLinkFormat : null, \is_string($charset) ? $charset : null); 193 } 244 245 if (!\in_array(\PHP_SAPI, ['cli', 'phpdbg'], true) && stripos($h[$i], 'html')) { 246 $dumper = new HtmlDumper('php://output', $this->charset);Binary.php https://gitlab.com/remyvianne/krowkaramel | PHP | 378 lines
1<?php 2 13 * 14 * PHP version 5 and 7 15 * 17 * @package EC 18 * @author Jim Wigginton <terrafrost@php.net> 19 * @copyright 2017 Jim Wigginton 20 * @license http://www.opensource.org/licenses/mit-license.html MIT License 21 * @link http://pear.php.net/package/Math_BigInteger 22 */ 23 24namespace phpseclib3\Crypt\EC\BaseCurves; 25 25 26use phpseclib3\Common\Functions\Strings; 27use phpseclib3\Math\BinaryField;PluginLoader.php https://gitlab.com/rsilveira1987/Expresso | PHP | 475 lines
26/** Zend_Loader */ 27require_once 'Zend/Loader.php'; 28 102 { 103 if (is_string($staticRegistryName) && !empty($staticRegistryName)) { 104 $this->_useStaticRegistry = $staticRegistryName; 140 { 141 if (!is_string($prefix) || !is_string($path)) { 142 require_once 'Zend/Loader/PluginLoader/Exception.php'; 164 { 165 if ((null !== $prefix) && is_string($prefix)) { 166 $prefix = $this->_formatPrefix($prefix); 196 { 197 if ((null !== $prefix) && is_string($prefix)) { 198 $prefix = $this->_formatPrefix($prefix);File.php https://github.com/basdog22/Qool.git | PHP | 468 lines
25 */ 26require_once 'Zend/CodeGenerator/Php/Abstract.php'; 27 30 */ 31require_once 'Zend/CodeGenerator/Php/Class.php'; 32 38 */ 39class Zend_CodeGenerator_Php_File extends Zend_CodeGenerator_Php_Abstract 40{ 86 if ($fileName == '') { 87 require_once 'Zend/CodeGenerator/Php/Exception.php'; 88 throw new Zend_CodeGenerator_Php_Exception('FileName does not exist.'); 113 if ( ($realpath = Zend_Reflection_File::findRealpathInIncludePath($filePath)) === false) { 114 require_once 'Zend/CodeGenerator/Php/Exception.php'; 115 throw new Zend_CodeGenerator_Php_Exception('No file for ' . $realpath . ' was found.');QueryBuilder.php https://gitlab.com/brucealdridge/yii2 | PHP | 260 lines
1<?php 2/** 238 } 239 if (is_string($value)) { 240 $value = $schema->quoteValue($value);VCardTest.php https://gitlab.com/deichbrise/vcard-viewhelper | PHP | 355 lines
1<?php 2 5// required to load 6require_once __DIR__ . '/../vendor/autoload.php'; 7 8/* 9 * This file is part of the VCard PHP Class from Jeroen Desloovere. 10 * 17/** 18 * This class will test our VCard PHP Class which can generate VCards. 19 * 21 */ 22class VCardTest extends \PHPUnit_Framework_TestCase 23{ 218 foreach ($emails as $key => $email) { 219 if (is_string($key)) { 220 $this->vcard->addEmail($email, $key);Event.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 340 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 168 if (array_key_exists($key, $current) && !is_null($current[$key]) && is_array($previous[$key])) { 169 if (!is_string($key) || is_array($current[$key])) { 170 $current[$key] = $this->_mergeNewDataRecursive($previous[$key], $current[$key]); 173 $current[$key] = $previous[$key]; 174 } elseif (!is_array($previous[$key]) && !is_string($key)) { 175 $current[] = $previous[$key]; 254 $data = $this->_getData('new_data'); 255 if (is_string($data)) { 256 $data = unserialize($data);CakeTestFixture.php https://gitlab.com/manuperazafa/elsartenbackend | PHP | 328 lines
1<?php 2/** 2/** 3 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> 4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 11 * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests 12 * @package Cake.TestSuite.Fixture 12 * @package Cake.TestSuite.Fixture 13 * @since CakePHP(tm) v 1.2.0.4667 14 * @license http://www.opensource.org/licenses/mit-license.php MIT License 34/** 35 * CakePHP's DBO driver (e.g: DboMysql). 36 * 129 public function init() { 130 if (isset($this->import) && (is_string($this->import) || is_array($this->import))) { 131 $import = array_merge(MailboxHeader.php https://gitlab.com/dsasmita/talita-shop | PHP | 358 lines
1<?php 2 88 * <code> 89 * <?php 90 * //Sets two mailboxes in the Header, one with a personal name 116 * <code> 117 * <?php 118 * $header = new Swift_Mime_Headers_MailboxHeader('From', 147 * <code> 148 * <?php 149 * $header = new Swift_Mime_Headers_MailboxHeader('From', 175 * <code> 176 * <?php 177 * //Sets three email addresses as the Header data 256 foreach ($mailboxes as $key => $value) { 257 if (is_string($key)) { //key is email addr 258 $address = $key;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) 67 protected $_paramOptionTypes = array( 68 'name' => 'is_string', 69 'optional' => 'is_bool', 70 'default' => null, 71 'description' => 'is_string', 72 ); 125 { 126 if (is_string($spec)) { 127 $this->setName($spec);Statement.php https://bitbucket.org/kdms/sh-magento.git | PHP | 485 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Statement.php 20096 2010-01-06 02:05:09Z bkarwin $ 21 */ 25 */ 26#require_once 'Zend/Db.php'; 27 30 */ 31#require_once 'Zend/Db/Statement/Interface.php'; 32 150 */ 151 #require_once 'Zend/Db/Statement/Exception.php'; 152 throw new Zend_Db_Statement_Exception("Invalid bind-variable position '$val'"); 158 */ 159 #require_once 'Zend/Db/Statement/Exception.php'; 160 throw new Zend_Db_Statement_Exception("Invalid bind-variable name '$val'");XmlFileLoader.php https://gitlab.com/fiesta-framework/Documentation | PHP | 256 lines
1<?php 2 101 { 102 return is_string($resource) && 'xml' === pathinfo($resource, PATHINFO_EXTENSION) && (!$type || 'xml' === $type); 103 }YamlFileLoader.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 236 lines
1<?php 2 107 { 108 return is_string($resource) && in_array(pathinfo($resource, PATHINFO_EXTENSION), array('yml', 'yaml'), true) && (!$type || 'yaml' === $type); 109 }Proxy.php https://bitbucket.org/cviolette/sugarcrm.git | PHP | 284 lines
1<?php 2 26 */ 27require_once 'Zend/Uri/Http.php'; 28/** 30 */ 31require_once 'Zend/Http/Client.php'; 32/** 34 */ 35require_once 'Zend/Http/Client/Adapter/Socket.php'; 36 125 if (! $this->socket) { 126 require_once 'Zend/Http/Client/Adapter/Exception.php'; 127 throw new Zend_Http_Client_Adapter_Exception("Trying to write but we are not connected"); 133 if ($this->connected_to[0] != "tcp://$host" || $this->connected_to[1] != $port) { 134 require_once 'Zend/Http/Client/Adapter/Exception.php'; 135 throw new Zend_Http_Client_Adapter_Exception("Trying to write but we are connected to the wrong proxy server");adodb-oracle.inc.php https://bitbucket.org/selfeky/xclusivescardwebsite.git | PHP | 342 lines
1<?php 2/* 36 { 37 if (is_string($d)) $d = ADORecordSet::UnixDate($d); 38 if (is_object($d)) $ds = $d->format($this->fmtDate); 46 47 if (is_string($ts)) $ts = ADORecordSet::UnixTimeStamp($ts); 48 if (is_object($ts)) $ds = $ts->format($this->fmtDate);class-facebook-wp.php https://gitlab.com/0072016/wordpress | PHP | 426 lines
26 27 return apply_filters( 'http_headers_useragent', 'WordPress/' . $wp_version . '; ' . home_url() . '; facebook-php-' . self::VERSION . '-wp' ); 28 } 200 public static function get_permissions_by_facebook_user_id( $facebook_id ) { 201 if ( ! ( is_string( $facebook_id ) && $facebook_id ) ) 202 return array(); 261 public static function get_app_access_token( $app_id, $app_secret ) { 262 if ( ! ( is_string( $app_id ) && $app_id && is_string( $app_secret ) && $app_secret ) ) 263 return ''; 398 /** 399 * Delete data persisted by the Facebook PHP SDK using WordPress-specific access method 400 * 415 /** 416 * Delete data persisted by the Facebook PHP SDK for every possible Facebook PHP SDK data key 417 *GifCreator.php https://gitlab.com/billyprice1/mc-skintools | PHP | 349 lines
1<?php 2 9 * @author Sybio (Clément Guillemain / @Sybio01) 10 * @license http://opensource.org/licenses/gpl-license.php GNU Public License 11 * @copyright Clément Guillemain 103 104 } elseif (is_string($frames[$i])) { // File path or URL or Binary source code 105Util.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.0Json.php https://github.com/jpratt/cal.git | PHP | 243 lines
1<?php 2/** 67 68 #require_once 'Zend/Json/Decoder.php'; 69 return Zend_Json_Decoder::decode($encodedValue, $objectDecodeType); 97 98 #require_once 'Zend/Json/Encoder.php'; 99 return Zend_Json_Encoder::encode($valueToEncode, $cycleCheck, $options); 112 * 113 * This function converts the XML formatted string into a PHP array by 114 * calling a recursive (protected static) function in this class. Then, it 114 * calling a recursive (protected static) function in this class. Then, it 115 * converts that PHP array into JSON by calling the "encode" static funcion. 116 * 132 if ($simpleXmlElementObject == null) { 133 #require_once 'Zend/Json/Exception.php'; 134 throw new Zend_Json_Exception('Function fromXml was called with an invalid XML formatted string.');Page.php https://gitlab.com/Ltaimao/wecenter | PHP | 404 lines
1<?php 2/** 26 */ 27//require_once 'Zend/Cache/Core.php'; 28 168 foreach ($options as $key=>$value) { 169 if (!is_string($key)) { 170 Zend_Cache::throwException("invalid option [$key] !"); 222 foreach ($conf as $key=>$value) { 223 if (!is_string($key)) { 224 Zend_Cache::throwException("unknown option [$key] !");FigletTest.php https://bitbucket.org/ksekar/campus.git | PHP | 363 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: FigletTest.php 24594 2012-01-05 21:27:01Z matthew $ 21 */ 23// Call Zend_Captcha_FigletTest::main() if this source file is executed directly. 24if (!defined("PHPUnit_MAIN_METHOD")) { 25 define("PHPUnit_MAIN_METHOD", "Zend_Captcha_FigletTest::main"); 27 28require_once 'Zend/Form/Element/Captcha.php'; 29require_once 'Zend/Captcha/Adapter.php'; 29require_once 'Zend/Captcha/Adapter.php'; 30require_once 'Zend/Config.php'; 31 39 */ 40class Zend_Captcha_FigletTest extends PHPUnit_Framework_TestCase 41{Type.php https://bitbucket.org/daveschwan/ronin-group.git | PHP | 303 lines
36 * 37 * @package PHPUnit 38 * @subpackage Util 50 * @subpackage Util 51 * @author Sebastian Bergmann <sebastian@phpunit.de> 52 * @copyright 2001-2014 Sebastian Bergmann <sebastian@phpunit.de> 53 * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License 54 * @link http://www.phpunit.de/ 55 * @since Class available since Release 3.0.0 56 */ 57class PHPUnit_Util_Type 58{ 159 // There seems to be no other way to check arrays for recursion 160 // http://www.php.net/manual/en/language.types.array.php#73936 161 preg_match_all('/\n \[(\w+)\] => Array\s+\*RECURSION\*/', print_r($value, TRUE), $matches);Page.php https://gitlab.com/rsilveira1987/Expresso | PHP | 404 lines
1<?php 2/** 26 */ 27require_once 'Zend/Cache/Core.php'; 28 168 foreach ($options as $key=>$value) { 169 if (!is_string($key)) { 170 Zend_Cache::throwException("invalid option [$key] !"); 222 foreach ($conf as $key=>$value) { 223 if (!is_string($key)) { 224 Zend_Cache::throwException("unknown option [$key] !");Page.php https://gitlab.com/yousafsyed/easternglamor | PHP | 404 lines
1<?php 2/** 26 */ 27#require_once 'Zend/Cache/Core.php'; 28 168 foreach ($options as $key=>$value) { 169 if (!is_string($key)) { 170 Zend_Cache::throwException("invalid option [$key] !"); 222 foreach ($conf as $key=>$value) { 223 if (!is_string($key)) { 224 Zend_Cache::throwException("unknown option [$key] !");Collection.php https://gitlab.com/ealexis.t/trends | PHP | 334 lines
1<?php 2 37 if (count($this->items) > 0) { 38 if (is_string($relations)) { 39 $relations = func_get_args();ajax.php https://gitlab.com/Rad1calDreamer/honey | PHP | 321 lines
6 7if (isset($_REQUEST['site_id']) && is_string($_REQUEST['site_id'])) 8{ 15 16require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php"); 17 25 26include(dirname(__FILE__)."/functions.php"); 27 319header('Content-Type: application/json; charset='.LANG_CHARSET); 320echo CUtil::PhpToJSObject($arRes); 321die();Decorator.php https://gitlab.com/staging06/myproject | PHP | 259 lines
1<?php 2 11 12require_once dirname(__FILE__) . "/../ClassLoader.php"; 13Swift_ClassLoader::load("Swift_Events_BeforeSendListener"); 140 { 141 if (is_string($value) && ($replaced = $this->replace($replacements, $value)) != $value) 142 { 149 { 150 if (is_string($att_value) 151 && ($att_replaced = $this->replace($replacements, $att_value)) != $att_value) 165 if ($this->isPermittedType($mime->getContentType()) 166 && is_string($body) && ($replaced = $this->replace($replacements, $body)) != $body) 167 {bcmath.c https://gitlab.com/0072016/appengine-php | C | 579 lines
2 +----------------------------------------------------------------------+ 3 | PHP Version 5 | 4 +----------------------------------------------------------------------+ 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 1997-2013 The PHP Group | 6 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 134PHP_INI_BEGIN() 135 STD_PHP_INI_ENTRY("bcmath.scale", "0", PHP_INI_ALL, OnUpdateLongGEZero, bc_precision, zend_bcmath_globals, bcmath_globals) 136PHP_INI_END()FigletTest.php https://bitbucket.org/dbaltas/zend-framework-1.x-on-git.git | PHP | 363 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: FigletTest.php 24593 2012-01-05 20:35:02Z matthew $ 21 */ 23// Call Zend_Captcha_FigletTest::main() if this source file is executed directly. 24if (!defined("PHPUnit_MAIN_METHOD")) { 25 define("PHPUnit_MAIN_METHOD", "Zend_Captcha_FigletTest::main"); 27 28require_once 'Zend/Form/Element/Captcha.php'; 29require_once 'Zend/Captcha/Adapter.php'; 29require_once 'Zend/Captcha/Adapter.php'; 30require_once 'Zend/Config.php'; 31 39 */ 40class Zend_Captcha_FigletTest extends PHPUnit_Framework_TestCase 41{Collection.php https://github.com/MrRio/magento.git | PHP | 346 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 94 $condition = $categoryIds; 95 } elseif (is_string($categoryIds)) { 96 $ids = explode(',', $categoryIds);Type.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 303 lines
36 * 37 * @package PHPUnit 38 * @subpackage Util 50 * @subpackage Util 51 * @author Sebastian Bergmann <sebastian@phpunit.de> 52 * @copyright 2001-2013 Sebastian Bergmann <sebastian@phpunit.de> 53 * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License 54 * @link http://www.phpunit.de/ 55 * @since Class available since Release 3.0.0 56 */ 57class PHPUnit_Util_Type 58{ 159 // There seems to be no other way to check arrays for recursion 160 // http://www.php.net/manual/en/language.types.array.php#73936 161 preg_match_all('/\n \[(\w+)\] => Array\s+\*RECURSION\*/', print_r($value, TRUE), $matches);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"UndefinedConstraint.php https://gitlab.com/imamul68e/137619_PHP31 | PHP | 286 lines
1<?php 2 71 // check string 72 if (is_string($value)) { 73 $this->checkString($value, $schema, $path, $i); 98 if (isset($schema->extends)) { 99 if (is_string($schema->extends)) { 100 $schema->extends = $this->validateUri($schema, $schema->extends); 252 if (property_exists($value, $key)) { 253 if (is_string($dependency)) { 254 // Draft 3 string is allowed - e.g. "dependencies": {"bar": "foo"}ufpdf.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 483 lines
1<?php 2/******************************************************************************* 17 18include_once './libraries/fpdf/fpdf.php'; 19 56 if($file=='') 57 $file=str_replace(' ','',$family).strtolower($style).'.php'; 58 if(defined('FPDF_FONTPATH')) 123 } 124 if(is_string($border)) 125 {Collection.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 260 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 68 'string'); 69 } elseif (is_string($entity)) { 70 $this->addFilter('entity',QueryBuilder.php https://gitlab.com/makkooz/nikestreetbeat | PHP | 260 lines
1<?php 2/** 207 * 208 * ```php 209 * $sql = $queryBuilder->batchInsert('user', ['name', 'age'], [ 238 } 239 if (is_string($value)) { 240 $value = $schema->quoteValue($value);utilities.class.php https://gitlab.com/mattswann/launch-housing | PHP | 399 lines
1<?php 2/* 26 * @copyright See the included NOTICE.md file for more information. 27 * @link http://aws.amazon.com/php/ PHP Developer Center 28 */ 77 { 78 if (is_string($class)) 79 { 195 * @author Ryan Parman <ryan@getcloudfusion.com> 196 * @license http://www.php.net/license/3_01.txt PHP License 197 * @param integer $size (Required) Filesize in bytes. 334 * 335 * @license http://us.php.net/manual/en/function.base64-decode.php#81425 PHP License 336 * @param string $s (Required) The string to test. 380 * 381 * @author Alix Axel <http://www.php.net/manual/en/function.com-create-guid.php#99425> 382 * @license http://www.php.net/license/3_01.txt PHP LicensePdf.php https://gitlab.com/code26/selah | PHP | 315 lines
1<?php 2namespace mikehaertl\wkhtmlto; 98 $this->setOptions($options); 99 } elseif (is_string($options)) { 100 $this->addPage($options); 305 if (is_string($val) && preg_match('/^(header|footer)-html$/', $key)) { 306 defined('PHP_MAXPATHLEN') || define('PHP_MAXPATHLEN', 255); 307 $isFile = (strlen($val) <= PHP_MAXPATHLEN) ? is_file($val) : false;yaf_route_map.c https://gitlab.com/oytunistrator/yaf | C | 323 lines
4 +----------------------------------------------------------------------+ 5 | This source file is subject to version 3.01 of the PHP license, | 6 | that is bundled with this package in the file LICENSE, and is | 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 +----------------------------------------------------------------------+ 21 22#include "php.h" 23#include "ext/standard/php_smart_str.h" /* for smart_str */filter.php https://bitbucket.org/moodle/moodle.git | PHP | 235 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 66 67 if (!is_string($text) or empty($text)) { 68 // non string data can not be filtered anywayHTMLModuleManager.php https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git | PHP | 403 lines
1<?php 2 145 public function registerModule($module, $overload = false) { 146 if (is_string($module)) { 147 // attempt to load the module 374 // descendants_are_inline, for ChildDef_Chameleon 375 if (is_string($def->content_model) && 376 strpos($def->content_model, 'Inline') !== false) {class-wc-gateway-stripe-addons.php https://gitlab.com/hunt9310/ras | PHP | 394 lines
1<?php 2if ( ! defined( 'ABSPATH' ) ) { 362 // If we couldn't find a Stripe customer linked to the subscription, fallback to the user meta data. 363 if ( ! $stripe_customer_id || ! is_string( $stripe_customer_id ) ) { 364 $user_id = $subscription->customer_user; 369 // If we couldn't find a Stripe customer linked to the account, fallback to the order meta data. 370 if ( ( ! $stripe_customer_id || ! is_string( $stripe_customer_id ) ) && false !== $subscription->order ) { 371 $stripe_customer_id = get_post_meta( $subscription->order->id, '_stripe_customer_id', true );YamlFileLoader.php https://gitlab.com/fbi/web | PHP | 325 lines
1<?php 2 77 { 78 return is_string($resource) && 'yml' === pathinfo($resource, PATHINFO_EXTENSION); 79 } 127 { 128 if (is_string($service) && 0 === strpos($service, '@')) { 129 $this->container->setAlias($id, substr($service, 1)); 189 if (isset($service['configurator'])) { 190 if (is_string($service['configurator'])) { 191 $definition->setConfigurator($service['configurator']); 282 $value = array_map(array($this, 'resolveServices'), $value); 283 } else if (is_string($value) && 0 === strpos($value, '@')) { 284 if (0 === strpos($value, '@?')) {derivative.inc.php https://gitlab.com/team_fsn/fsn-php | PHP | 540 lines
1<?php 2// +-----------------------------------------------------------------------+ 2// +-----------------------------------------------------------------------+ 3// | Piwigo - a PHP based photo gallery | 4// +-----------------------------------------------------------------------+ 71 $this->flags |= self::IS_MIMETYPE; 72 if ( ($size=@getimagesize(PHPWG_ROOT_PATH.$this->rel_path)) === false) 73 { 74 $this->rel_path = 'themes/default/icon/mimetypes/unknown.png'; 75 $size = getimagesize(PHPWG_ROOT_PATH.$this->rel_path); 76 } 125 { 126 return PHPWG_ROOT_PATH.$this->rel_path; 127 } 379 $rel_url = 'i'; 380 if ($conf['php_extension_in_urls']) $rel_url .= '.php'; 381 if ($conf['question_mark_in_urls']) $rel_url .= '?';Statement.php https://gitlab.com/remyvianne/krowkaramel | PHP | 342 lines
1<?php 2namespace MailPoetVendor\Doctrine\DBAL; 20use function is_array; 21use function is_string; 22class Statement implements IteratorAggregate, DriverStatement, Result 41 if ($type !== null) { 42 if (is_string($type)) { 43 $type = Type::getType($type);helpers.php https://gitlab.com/VTTE/sitios-vtte | PHP | 312 lines
1<?php 2use GutenPress\Forms; 78 $request = new WP_Http; 79 $result = $request->request( 'http://vimeo.com/api/v2/video/'.$id.'.php' , $args ); 80 //$iframe='<iframe src="http://player.vimeo.com/video/'.$id.'?title=0&byline=0&portrait=0" width="'.$width.'" height="'.$height.'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'; 132 } 133 if ( is_string($post) ) { 134 $excerpt = strip_shortcodes($post); 227/* 228 Super PHP Plugin to add Full SVG Media support to WordPress 229 Author URI: http://www.lewiscowles.co.uk/ 235 236 add_action( 'load-post.php', [ $this, 'add_editor_styles' ] ); 237 add_action( 'load-post-new.php', [ $this, 'add_editor_styles' ] ); 255 global $current_screen; 256 $mce_css .= ', ' . '/wp-admin/admin-ajax.php?action=adminlc_mce_svg.css'; 257 return $mce_css;Route.php https://gitlab.com/fabian.morales/marlon_becerra | PHP | 471 lines
1<?php 2/** 2/** 3 * Slim - a micro PHP 5 framework 4 * 164 $matches = array(); 165 if (is_string($callable) && preg_match('!^([^\:]+)\:([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)$!', $callable, $matches)) { 166 $class = $matches[1]; 368 * 369 * http://blog.sosedoff.com/2009/09/20/rails-like-php-url-router/ 370 *cURL.php https://gitlab.com/x33n/ampache | PHP | 349 lines
1<?php 2/** 25 * 26 * @var array cURL information array, see {@see http://php.net/curl_getinfo} 27 */ 101 102 } elseif (is_string($options['verify'])) { 103 curl_setopt($this->fp, CURLOPT_CAINFO, $options['verify']); 176 177 if (!is_string($responses[$key])) { 178 $options['hooks']->dispatch('multiple.request.complete', array(&$responses[$key], $key)); 226 } 227 elseif (!empty($data) && !is_string($data)) { 228 $data = http_build_query($data, null, '&'); 313 * @param string $url 314 * @param array|object $data Data to build query using, see {@see http://php.net/http_build_query} 315 * @return string URL with dataSqlServerGrammar.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 344 lines
1<?php 2 79 80 if (is_string($query->lock)) { 81 return $from.' '.$query->lock;Date.php https://bitbucket.org/babanesma/mysimpleadmin.git | PHP | 259 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Date.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 24 */ 25require_once 'Zend/Validate/Abstract.php'; 26 95 if (!array_key_exists('locale', $options)) { 96 require_once 'Zend/Registry.php'; 97 if (Zend_Registry::isRegistered('Zend_Locale')) { 124 { 125 require_once 'Zend/Locale.php'; 126 $this->_locale = Zend_Locale::findLocale($locale); 163 { 164 if (!is_string($value) && !is_int($value) && !is_float($value) && 165 !is_array($value) && !($value instanceof Zend_Date)) {Barcode.php https://gitlab.com/devtoannh/cafe | PHP | 352 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Barcode.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 141 */ 142 require_once 'Zend/Barcode/Exception.php'; 143 throw new Zend_Barcode_Exception( 150 */ 151 if (!is_string($barcode) || empty($barcode)) { 152 /** 154 */ 155 require_once 'Zend/Barcode/Exception.php'; 156 throw new Zend_Barcode_Exception( 177 if (!class_exists($barcodeName)) { 178 require_once 'Zend/Loader.php'; 179 Zend_Loader::loadClass($barcodeName);class.jetpack-xmlrpc-server.php https://gitlab.com/relacilia/cakra | PHP | 429 lines
1<?php 2 98 return $this->error( new Jetpack_Error( 'verify_secret_1_missing', sprintf( 'The required "%s" parameter is missing.', 'secret_1' ), 400 ) ); 99 } else if ( !is_string( $verify_secret ) ) { 100 return $this->error( new Jetpack_Error( 'verify_secret_1_malformed', sprintf( 'The required "%s" parameter is malformed.', 'secret_1' ), 400 ) ); 404 // needed? 405 require_once ABSPATH . 'wp-admin/includes/admin.php'; 406 406 407 require_once JETPACK__PLUGIN_DIR . 'class.json-api.php'; 408 $api = WPCOM_JSON_API::init( $method, $url, $post_body ); 409 $api->token_details['user'] = $user_details; 410 require_once JETPACK__PLUGIN_DIR . 'class.json-api-endpoints.php'; 411simbio_form_element.inc.php https://gitlab.com/mucill/sman7 | PHP | 399 lines
1<?php 2/** 113 foreach ($this->element_options as $option) { 114 if (is_string($option)) { 115 // if the selected element is an array then