100+ results results for 'php is_null repo:connvoi/dev' (344 ms)
1<?php 2 549 { 550 if (! is_null($column->default)) { 551 return ' default '.$this->getDefaultValue($column->default);HelperForm.php https://gitlab.com/staging06/myproject | PHP | 337 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 22* @copyright 2007-2015 PrestaShop SA 23* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 24* International Registered Trademark & Property of PrestaShop SA 70 $this->tpl = $this->createTemplate($this->base_tpl); 71 if (is_null($this->submit_action)) { 72 $this->submit_action = 'submitAdd'.$this->table; 253 'required_fields' => $this->getFieldsRequired(), 254 'vat_number' => Module::isInstalled('vatnumber') && file_exists(_PS_MODULE_DIR_.'vatnumber/ajax.php'), 255 'module_dir' => _MODULE_DIR_,Store.php https://gitlab.com/ntphuc/BackendFeedy | PHP | 707 lines
1<?php 2 315 foreach ($keys as $value) { 316 if (is_null($this->get($value))) { 317 return false; 353 354 return is_null($key) ? count($old) > 0 : ! is_null($old); 355 }Grammar.php https://gitlab.com/susmitha.plts/photographer_portfolio | PHP | 459 lines
1<?php 2 102 // the affected columns, which will get something like "cascade", etc. 103 if (! is_null($command->onDelete)) { 104 $sql .= " on delete {$command->onDelete}"; 106 107 if (! is_null($command->onUpdate)) { 108 $sql .= " on update {$command->onUpdate}"; 335 foreach ($fluent->getAttributes() as $key => $value) { 336 if (! is_null($option = $this->mapFluentOptionToDoctrine($key))) { 337 if (method_exists($column, $method = 'set'.ucfirst($option))) {VariableCommentSniff.php https://gitlab.com/yousafsyed/easternglamor | PHP | 345 lines
42 * @version Release: @package_version@ 43 * @link http://pear.php.net/package/PHP_CodeSniffer 44 */ 314 * 315 * @param PHP_CodeSniffer_File $phpcsFile The PHP_CodeSniffer file where this token was found. 316 * @param int $stackPtr The position where the double quoted 320 */ 321 protected function processVariable(PHP_CodeSniffer_File $phpcsFile, $stackPtr) 322 { 331 * 332 * @param PHP_CodeSniffer_File $phpcsFile The PHP_CodeSniffer file where this token was found. 333 * @param int $stackPtr The position where the double quoted 337 */ 338 protected function processVariableInString(PHP_CodeSniffer_File $phpcsFile, $stackPtr) 339 {class-wp-hook.php https://gitlab.com/VTTE/sitios-vtte | PHP | 510 lines
392 * 393 * @link https://www.php.net/manual/en/arrayaccess.offsetexists.php 394 * 406 * 407 * @link https://www.php.net/manual/en/arrayaccess.offsetget.php 408 * 420 * 421 * @link https://www.php.net/manual/en/arrayaccess.offsetset.php 422 * 438 * 439 * @link https://www.php.net/manual/en/arrayaccess.offsetunset.php 440 * 451 * 452 * @link https://www.php.net/manual/en/iterator.current.php 453 *AbstractPaginator.php https://gitlab.com/dzakiafif/cokelatklasik | PHP | 487 lines
1<?php 2 154 { 155 if (is_null($fragment)) { 156 return $this->fragment;editar_factura_prov.php https://gitlab.com/cosouth.battle/sartinofi | PHP | 434 lines
1<?php 2 2 3require_model('asiento.php'); 4require_model('asiento_factura.php'); 4require_model('asiento_factura.php'); 5require_model('divisa.php'); 6require_model('fabricante.php'); 6require_model('fabricante.php'); 7require_model('forma_pago.php'); 8require_model('proveedor.php'); 8require_model('proveedor.php'); 9require_model('recibo_proveedor.php'); 10 104 /// paso 1, eliminamos los asientos asociados 105 if( !is_null($this->factura->idasiento) ) 106 {SQLite3.php https://gitlab.com/dmsapiens/physicians | PHP | 322 lines
2/** 3 * PHPExcel 4 * 22 * @package PHPExcel_CachedObjectStorage 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_CachedObjectStorage 34 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 35 */ 36class PHPExcel_CachedObjectStorage_SQLite3 extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache { 37 115 if ($cellResult === FALSE) { 116 throw new PHPExcel_Exception($this->_DBHandle->lastErrorMsg()); 117 }Store.php https://gitlab.com/blingbang2016/shop | PHP | 508 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 */ 447 { 448 if (is_null($type)) { 449 $this->_loadWebsiteCollection();HelperForm.php https://gitlab.com/ivandevp/petshop | PHP | 337 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 22* @copyright 2007-2016 PrestaShop SA 23* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 24* International Registered Trademark & Property of PrestaShop SA 70 $this->tpl = $this->createTemplate($this->base_tpl); 71 if (is_null($this->submit_action)) { 72 $this->submit_action = 'submitAdd'.$this->table; 253 'required_fields' => $this->getFieldsRequired(), 254 'vat_number' => Module::isInstalled('vatnumber') && file_exists(_PS_MODULE_DIR_.'vatnumber/ajax.php'), 255 'module_dir' => _MODULE_DIR_,linea_albaran_cliente.php https://gitlab.com/cosouth.battle/sartinofi | PHP | 509 lines
1<?php 2/* 6 7require_model('articulo.php'); 8require_model('albaran_cliente.php'); 233 { 234 return 'index.php?page=ventas_albaran&id='.$this->idalbaran; 235 } 238 { 239 if( is_null($this->referencia) OR $this->referencia == '') 240 { 240 { 241 return "index.php?page=ventas_articulos"; 242 } 243 else 244 return "index.php?page=ventas_articulo&ref=".urlencode($this->referencia); 245 }Currency.php https://gitlab.com/blingbang2016/shop | 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 */ 183 { 184 if (is_null($toCurrency)) { 185 return $price;error_report.lib.php https://gitlab.com/luyxtran264/myproject | PHP | 364 lines
16 */ 17if (is_readable('js/line_counts.php')) { 18 include_once 'js/line_counts.php'; 60 "configuration_storage" => 61 is_null($relParams['db']) ? "disabled" : 62 "enabled", 62 "enabled", 63 "php_version" => phpversion() 64 ); 83 } 84 } elseif ($exception_type == 'php') { 85 $errors = array(); 85 $errors = array(); 86 // create php error report 87 $i = 0;tcpdf_adapter.cls.php https://gitlab.com/exabyte-lab/tiffinbox | PHP | 498 lines
1<?php 2/** 2/** 3 * DOMPDF - PHP5 HTML to PDF renderer 4 * 25 * Alternatively, you may distribute this software under the terms of the 26 * PHP License, version 3.0 or later. A copy of this license should have 27 * been distributed with this file in the file LICENSE.PHP . If this is not 27 * been distributed with this file in the file LICENSE.PHP . If this is not 28 * the case, you can obtain a copy at http://www.php.net/license/3_0.txt. 29 * 39 40/* $Id: tcpdf_adapter.cls.php 311 2010-09-05 20:02:01Z fabien.menager $ */ 41 41 42require_once(DOMPDF_LIB_DIR . '/tcpdf/tcpdf.php'); 43compras_recibo.php https://gitlab.com/cosouth.battle/sartinofi | PHP | 370 lines
1<?php 2 7 8require_model('asiento.php'); 9require_model('cuenta_banco.php'); 9require_model('cuenta_banco.php'); 10require_model('cuenta_banco_proveedor.php'); 11require_model('ejercicio.php'); 11require_model('ejercicio.php'); 12require_model('factura_proveedor.php'); 13require_model('forma_pago.php'); 13require_model('forma_pago.php'); 14require_model('pago_recibo_proveedor.php'); 15require_model('partida.php'); 15require_model('partida.php'); 16require_model('proveedor.php'); 17require_model('recibo_factura.php');Cache.php https://gitlab.com/goolic/PrestaShop | PHP | 400 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 22 * @copyright 2007-2015 PrestaShop SA 23 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 24 * International Registered Trademark & Property of PrestaShop SA 258 259 if (is_null($this->sql_tables_cached)) { 260 $this->sql_tables_cached = $this->get(Tools::encryptIV(self::SQL_TABLES_NAME)); 323 { 324 if (is_null($this->sql_tables_cached)) { 325 $this->sql_tables_cached = $this->get(Tools::encryptIV(self::SQL_TABLES_NAME)); 362 { 363 // PHP is not efficient at storing array 364 // Better delete the whole cache if there areDispatcher.php https://gitlab.com/kimting254/wbms | PHP | 486 lines
1<?php namespace Illuminate\Events; 2 222 // listeners. Otherwise we will add the response on the response list. 223 if ( ! is_null($response) && $halt) 224 {class.jetpack-xmlrpc-server.php https://gitlab.com/ibnukipa/cakra | PHP | 429 lines
1<?php 2 153 function error( $error = null ) { 154 if ( !is_null( $error ) ) { 155 $this->error = $error; 340 $url = (string) $json_api_args[1]; 341 $post_body = is_null( $json_api_args[2] ) ? null : (string) $json_api_args[2]; 342 $user_details = (array) $json_api_args[4]; 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'; 411MethodProphecySpec.php https://gitlab.com/alamgircsejnu/AMS-Project-Laravel | PHP | 342 lines
1<?php 2 4 5use PhpSpec\ObjectBehavior; 6use Prophecy\Argument\ArgumentsWildcard; 57 58 function its_constructor_does_not_touch_third_argument_if_it_is_null($objectProphecy) 59 {autoload.function.php https://gitlab.com/OnBlox/OnBlox-Template | PHP | 385 lines
1<?php 2/* 41 42include_once (GLPI_ROOT."/config/based_config.php"); 43include_once (GLPI_ROOT."/config/define.php"); 89 90 if (is_null($TRANSLATE)) { // before login 91 return $str; 301 302 // Do not try to load phpcas using GLPI autoload 303 if (preg_match('/^CAS_.*/', $classname)) { 317 318 if (file_exists("$dir$item.class.php")) { 319 include_once("$dir$item.class.php"); 326 // trigger an error to get a backtrace, but only once (use prefix 'x' to handle empty case) 327// trigger_error("GLPI autoload : file $dir$item.class.php not founded trying to load class '$classname'"); 328 $notfound["x$classname"] = true;Logical.php https://gitlab.com/devtoannh/cafe | 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} 260 public static function STATEMENT_IF($condition = TRUE, $returnIfTrue = 0, $returnIfFalse = FALSE) { 261 $condition = (is_null($condition)) ? TRUE : (boolean) PHPExcel_Calculation_Functions::flattenSingleValue($condition); 262 $returnIfTrue = (is_null($returnIfTrue)) ? 0 : PHPExcel_Calculation_Functions::flattenSingleValue($returnIfTrue); 262 $returnIfTrue = (is_null($returnIfTrue)) ? 0 : PHPExcel_Calculation_Functions::flattenSingleValue($returnIfTrue); 263 $returnIfFalse = (is_null($returnIfFalse)) ? FALSE : PHPExcel_Calculation_Functions::flattenSingleValue($returnIfFalse); 264 282 $testValue = (is_null($testValue)) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($testValue); 283 $errorpart = (is_null($errorpart)) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($errorpart); 284URI.php https://gitlab.com/piotrbilski/yiiPriceWatcher | PHP | 314 lines
59 { 60 $this->scheme = is_null($scheme) || ctype_lower($scheme) ? $scheme : strtolower($scheme); 61 $this->userinfo = $userinfo; 127 // and it is our default scheme. 128 if (!is_null($this->scheme) && is_null($this->host) || $this->host === '') { 129 // support for relative paths is pretty abysmal when the 137 // validate username 138 if (!is_null($this->userinfo)) { 139 $encoder = new HTMLPurifier_PercentEncoder($chars_sub_delims . ':'); 175 } 176 } elseif (!is_null($this->scheme)) { 177 // path-rootless (hier) 202 203 if (!is_null($this->query)) { 204 $this->query = $qf_encoder->encode($this->query);sftp.php https://gitlab.com/wuhang2003/core | PHP | 467 lines
1<?php 2/** 35use Icewind\Streams\RetryWrapper; 36use phpseclib\Net\SFTP\Stream; 37 38/** 39* Uses phpseclib's Net\SFTP class and the Net\SFTP\Stream stream wrapper to 40* provide access to SFTP servers. 115 * 116 * @return \phpseclib\Net\SFTP connected client instance 117 * @throws \Exception when the connection failed 119 public function getConnection() { 120 if (!is_null($this->client)) { 121 return $this->client; 280 // workaround: stray stat cache entry when deleting empty folders 281 // see https://github.com/phpseclib/phpseclib/issues/706 282 $this->getConnection()->clearStatCache();SqlServerGrammar.php https://gitlab.com/dzakiafif/cokelatklasik | PHP | 551 lines
1<?php 2 532 { 533 if (!is_null($column->default)) { 534 return ' default '.$this->getDefaultValue($column->default);install.php https://gitlab.com/Blueprint-Marketing/WordPress-1 | PHP | 259 lines
20 <h2>Error: PHP is not running</h2> 21 <p>WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off.</p> 22</body> 66<body class="wp-core-ui<?php if ( is_rtl() ) echo ' rtl'; ?>"> 67<h1 id="logo"><a href="<?php echo esc_url( __( 'http://wordpress.org/' ) ); ?>"><?php _e( 'WordPress' ); ?></a></h1> 68 152$mysql_version = $wpdb->db_version(); 153$php_compat = version_compare( $php_version, $required_php_version, '>=' ); 154$mysql_compat = version_compare( $mysql_version, $required_mysql_version, '>=' ) || file_exists( WP_CONTENT_DIR . '/db.php' ); 156if ( !$mysql_compat && !$php_compat ) 157 $compat = sprintf( __( 'You cannot install because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.' ), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ); 158elseif ( !$php_compat ) 158elseif ( !$php_compat ) 159 $compat = sprintf( __( 'You cannot install because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.' ), $wp_version, $required_php_version, $php_version ); 160elseif ( !$mysql_compat )ElementDef.php https://gitlab.com/piotrbilski/yiiPriceWatcher | PHP | 216 lines
1<?php 2 185 } 186 if (!is_null($def->child)) { 187 $this->child = $def->child; 188 } 189 if (!is_null($def->formatting)) { 190 $this->formatting = $def->formatting;class-wc-shortcode-my-account.php https://gitlab.com/luyxtran264/myproject | PHP | 363 lines
1<?php 2/** 32 // Check cart class is loaded or abort 33 if ( is_null( WC()->cart ) ) { 34 return; 50 51 wc_get_template( 'myaccount/form-login.php' ); 52 90 91 wc_get_template( 'myaccount/my-account.php', array( 92 'current_user' => get_user_by( 'id', get_current_user_id() ), 266 if ( empty( $wp_hasher ) ) { 267 require_once ABSPATH . 'wp-includes/class-phpass.php'; 268 $wp_hasher = new PasswordHash( 8, true ); 310 if ( empty( $wp_hasher ) ) { 311 require_once ABSPATH . 'wp-includes/class-phpass.php'; 312 $wp_hasher = new PasswordHash( 8, true );theme.php https://gitlab.com/dali99/shimmie2-Material-Theme | PHP | 323 lines
1<?php 2class CommentListTheme extends Themelet { 10 private function get_anon_colour($ip) { 11 if(is_null($this->ct)) { 12 $this->ct = hsl_rainbow(); 30 31 // aaaaaaargh php 32 assert(is_array($images));EsmtpTransport.php https://gitlab.com/Jenny-Ha/ev-templates | PHP | 387 lines
1<?php 2 257 // Allow fluid method calls 258 if (is_null($return) && substr($method, 0, 3) == 'set') { 259 return $this;translations.php https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests | PHP | 275 lines
1<?php 2/** 4 * 5 * @version $Id: translations.php 718 2012-10-31 00:32:02Z nbachiyski $ 6 * @package pomo 9 10require_once dirname(__FILE__) . '/entry.php'; 11 143 function gettext_select_plural_form($count) { 144 if (!isset($this->_gettext_select_plural_form) || is_null($this->_gettext_select_plural_form)) { 145 list( $nplurals, $expression ) = $this->nplurals_and_expression_from_header($this->get_header('Plural-Forms')); 175 * Adds parantheses to the inner parts of ternary operators in 176 * plural expressions, because PHP evaluates ternary oerators from left to right 177 *install-helper.php https://gitlab.com/Gashler/dp | PHP | 198 lines
1<?php 2/** 38/** Load WordPress Bootstrap */ 39require_once(dirname(dirname(__FILE__)).'/wp-load.php'); 40 160 * @param string $col_type Column type 161 * @param bool $is_null Optional. Check is null. 162 * @param mixed $key Optional. Key info. 166 */ 167function check_column($table_name, $col_name, $col_type, $is_null = null, $key = null, $default = null, $extra = null) { 168 global $wpdb; 178 } 179 if (($is_null != null) && ($row->Null != $is_null)) { 180 ++$diffs;class.wsdlcache.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 209 lines
1<?php 2/* 14* @author Ingo Fischer <ingo@apollon.de> 15* @version $Id: class.wsdlcache.php,v 1.7 2007/04/17 16:34:03 snichol Exp $ 16* @access public 108 $this->releaseMutex($filename); 109 return (!is_null($s)) ? unserialize($s) : null; 110 } else {DB_result.php https://gitlab.com/betanurlaila/UI_onlineshop | PHP | 666 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 216 217 is_null($this->row_data) OR $this->data_seek(0); 218 $this->custom_result_object[$class_name] = array(); 259 260 is_null($this->row_data) OR $this->data_seek(0); 261 while ($row = $this->_fetch_object()) 300 301 is_null($this->row_data) OR $this->data_seek(0); 302 while ($row = $this->_fetch_assoc())Input.php https://gitlab.com/dleonov/my-framework-two | PHP | 419 lines
1<?php 2 82 83 if (is_null($source)) 84 { 206 { 207 if (empty($vars) && is_null($datasource)) 208 { 224 { 225 if (is_null($datasource)) 226 { 237 238 if (is_null($datasource)) 239 {Mobile.php https://gitlab.com/raku.takayama/eccube-2_13 | PHP | 457 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4: */ 4/** 5 * PHP versions 4 and 5 6 * 34 * @copyright 2003-2009 KUBO Atsuhiro <kubo@iteman.jp> 35 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License 36 * @version CVS: $Id$ 39 40require_once dirname(__FILE__) . '/../../PEAR.php'; 41require_once dirname(__FILE__) . '/Mobile/Error.php'; 64 * <code> 65 * require_once 'Net/UserAgent/Mobile.php'; 66 * 95 * @copyright 2003-2009 KUBO Atsuhiro <kubo@iteman.jp> 96 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License 97 * @version Release: 1.0.0Sharing.php https://gitlab.com/wuhang2003/core | PHP | 473 lines
1<?php 2 5 6require __DIR__ . '/../../vendor/autoload.php'; 7 27 public function asCreatingAShareWith($user, $body) { 28 $fullUrl = $this->baseUrl . "v{$this->apiVersion}.php/apps/files_sharing/api/v{$this->sharingApiVersion}/shares"; 29 $client = new Client(); 79 $fileinfo = $finfo->file("./$filename", FILEINFO_MIME_TYPE); 80 PHPUnit_Framework_Assert::assertEquals($fileinfo, "text/plain"); 81 if (file_exists("./$filename")) { 98 99 $fullUrl = substr($this->baseUrl, 0, -4) . "public.php/webdav"; 100 $options['auth'] = [$token, $password]; 104 $fileinfo = $finfo->file("./$filename", FILEINFO_MIME_TYPE); 105 PHPUnit_Framework_Assert::assertEquals($fileinfo, "text/plain"); 106 if (file_exists("./$filename")) {CacheBase.php https://gitlab.com/x0139/sstu.gov39.ru | PHP | 368 lines
3/** 4 * PHPExcel_CachedObjectStorage_CacheBase 5 * 21 * 22 * @category PHPExcel 23 * @package PHPExcel_CachedObjectStorage 23 * @package PHPExcel_CachedObjectStorage 24 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) 25 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 81 * 82 * @return PHPExcel_Worksheet 83 */ 311 * 312 * @param PHPExcel_Worksheet $parent The new worksheet 313 * @return voidUser_agent.php https://gitlab.com/dhayu-shadow/dhayu | PHP | 550 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 * 66 67 if ( ! is_null($this->agent)) 68 { 87 { 88 if (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/user_agents.php')) 89 { 89 { 90 include(APPPATH.'config/'.ENVIRONMENT.'/user_agents.php'); 91 } 91 } 92 elseif (is_file(APPPATH.'config/user_agents.php')) 93 {Localization.class.php https://gitlab.com/x33n/ProjectPier-Core | PHP | 488 lines
1<?php 2include_once 'persian.php'; 13 * 14 * This class will set up PHP environment to mach locale settings (using 15 * setlocale() function) and import apropriate set of words from language 102 function lang($name, $default = null) { 103 if (is_null($default)) { 104 $default = "{$this->locale}($name)"; 152 // Get settings file path and include it 153 $settings_file = $locale_dir.'/'.$locale.'.php'; 154 if (!is_file($settings_file)) { 195 */ 196 private function loadLanguageFiles($dir, $ext = 'php') { 197 trace(__FILE__,"loadLanguageFiles($dir, $ext):begin"); 217 * @access public 218 * @param $fmt (see date() in php.net) 219 * @param $timestampgravityforms-update-post.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 461 lines
1<?php 2/* 94 <label for="field_unique_custom_meta_value" class="inline"> 95 <?php _e('Unique Custom Field?'); ?> 96 <?php gform_tooltip('form_field_unique_custom_meta_value') ?> 100 101<?php 102 endif; 124 </script> 125<?php 126 } 385 { 386 if (!is_user_logged_in() || is_null($this->post['object']) || !in_array($type, array_keys($this->options['capabilities']))) 387 { 427 428 if (is_null($this->post['type_object'])) 429 {class-wp-image-editor.php https://gitlab.com/Gashler/dp | PHP | 403 lines
1<?php 2/** 296 297 if ( ! is_null( $dest_path ) && $_dest_path = realpath( $dest_path ) ) 298 $dir = $_dest_path;columns.php https://gitlab.com/VTTE/sitios-vtte | PHP | 448 lines
1<?php 2// exit if accessed directly 173 174 <?php wp_nonce_field( 'post_views_count', 'pvc_nonce' ); ?> 175 176 <span id="post-views-display"> 177 <?php echo __( 'Post Views', 'post-views-counter' ) . ': <b>' . number_format_i18n( $count ) . '</b>'; ?> 178 </span> 179 180 <?php 181 // restrict editing 185 ?> 186 <a href="#post-views" class="edit-post-views hide-if-no-js"><?php _e( 'Edit', 'post-views-counter' ); ?></a> 187 189 190 <p><?php _e( 'Adjust the views count for this post.', 'post-views-counter' ); ?></p> 191 <input type="hidden" name="current_post_views" id="post-views-current" value="<?php echo $count; ?>" />helper.php https://gitlab.com/endomorphosis/greenrenaissancejoomla | PHP | 332 lines
1<?php 2/** 2/** 3* @version $Id: helper.php 10027 2008-02-12 21:13:18Z ian $ 4* @package Joomla.Framework 6* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved. 7* @license GNU/GPL, see LICENSE.php 8* Joomla! is free software. This version may have been modified pursuant 11* other free or open source software licenses. 12* See COPYRIGHT.php for copyright notices and details. 13*/ 72 //If no client id has been passed return the whole array 73 if(is_null($id)) { 74 return $clients; 121 case 'front': 122 $result = JApplicationHelper::_checkPath( DS.'components'.DS. $user_option .DS. $name .'.php', 0 ); 123 break;inline_renderer.cls.php https://gitlab.com/alexballera/ferrenobrega | PHP | 191 lines
1<?php 2/** 6 * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 7 * @version $Id: inline_renderer.cls.php 448 2011-11-13 13:00:03Z fabien.menager $ 8 */ 47 48 if ( !is_null($w) && $child_x < $x + $w ) { 49 //This branch seems to be supposed to being called on the first part 106 107 if ( is_null($w) ) 108 $w = $child_w;class.jetpack-xmlrpc-server.php https://gitlab.com/endomorphosis/falkenstein | PHP | 367 lines
1<?php 2 132 function error( $error = null ) { 133 if ( !is_null( $error ) ) { 134 $this->error = $error; 298 $url = (string) $json_api_args[1]; 299 $post_body = is_null( $json_api_args[2] ) ? null : (string) $json_api_args[2]; 300 $my_id = (int) $json_api_args[3]; 342 // needed? 343 require_once ABSPATH . 'wp-admin/includes/admin.php'; 344 344 345 require_once dirname( __FILE__ ) . '/class.json-api.php'; 346 $api = WPCOM_JSON_API::init( $method, $url, $post_body ); 347 $api->token_details['user'] = $user_details; 348 require_once dirname( __FILE__ ) . '/class.json-api-endpoints.php'; 349Orderable.php https://gitlab.com/che234/adn | PHP | 366 lines
1<?php 2/** 2/** 3 * @version $Id: Orderable.php 30067 2016-03-08 13:44:25Z matias $ 4 * @author RocketTheme http://www.rockettheme.com 219 foreach ($this->_options['orderableBy'] as $orderBy) { 220 if (is_null($record->{$orderBy})) { 221 $query->andWhere($orderBy . ' IS NULL'); 273 foreach ($this->_options['orderableBy'] as $orderBy) { 274 if (is_null($record->{$orderBy})) { 275 $query->andWhere('r.' . $orderBy . ' IS NULL'); 302 foreach ($order_by_vals as $order_by_col => $order_by_val) { 303 if (is_null($order_by_val)) { 304 $query->andWhere($order_by_col . ' IS NULL'); 327 foreach ($order_by_vals as $order_by_col => $order_by_val) { 328 if (is_null($order_by_val)) { 329 $query->andWhere($order_by_col . ' IS NULL');helper.php https://gitlab.com/kedzior/dataset | PHP | 349 lines
1<?php 2$GLOBALS['THRIFT_ROOT'] = '../curator/demo/thrift'; 2$GLOBALS['THRIFT_ROOT'] = '../curator/demo/thrift'; 3// require_once $GLOBALS['THRIFT_ROOT'].'/Thrift.php'; 4// require_once $GLOBALS['THRIFT_ROOT'].'/protocol/TBinaryProtocol.php'; 4// require_once $GLOBALS['THRIFT_ROOT'].'/protocol/TBinaryProtocol.php'; 5// require_once $GLOBALS['THRIFT_ROOT'].'/transport/TSocket.php'; 6// require_once $GLOBALS['THRIFT_ROOT'].'/transport/THttpClient.php'; 6// require_once $GLOBALS['THRIFT_ROOT'].'/transport/THttpClient.php'; 7// require_once $GLOBALS['THRIFT_ROOT'].'/transport/TBufferedTransport.php'; 8// require_once $GLOBALS['THRIFT_ROOT'].'/transport/TFramedTransport.php'; 8// require_once $GLOBALS['THRIFT_ROOT'].'/transport/TFramedTransport.php'; 9// require_once $GLOBALS['THRIFT_ROOT'].'/packages/curator/Curator.php'; 10 10 11// These my_ functions work out if php has multibyte support and uses 12// the mb version if available.SqlServerGrammar.php https://gitlab.com/4gdevs/online-class-record-system | PHP | 344 lines
1<?php 2 27 { 28 if (is_null($query->columns)) { 29 $query->columns = ['*']; 52 { 53 if (! is_null($query->aggregate)) { 54 return; 83 84 if (! is_null($query->lock)) { 85 return $from.' with(rowlock,'.($query->lock ? 'updlock,' : '').'holdlock)';Abstract.php https://gitlab.com/blingbang2016/shop | PHP | 302 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 */ 53 { 54 if (is_null($this->_collection)) { 55 $this->setCollection(Mage::getModel('reports/grouped_collection')); 61 { 62 if (is_null($this->_aggregatedColumns)) { 63 foreach ($this->getColumns() as $column) { 257 { 258 if (is_null($this->_currentCurrencyCode)) { 259 $this->_currentCurrencyCode = (count($this->_storeIds) > 0)http.php https://gitlab.com/Gashler/dp | PHP | 519 lines
1<?php 2/** 24 25 if ( is_null($http) ) 26 $http = new WP_Http(); 319 if ( $url && !isset( $capabilities['ssl'] ) ) { 320 $scheme = parse_url( $url, PHP_URL_SCHEME ); 321 if ( 'https' == $scheme || 'ssl' == $scheme ) {GetTransacEmailsList.php https://gitlab.com/VTTE/sitios-vtte | PHP | 301 lines
1<?php 2/** 4 * 5 * PHP version 5 6 * 263 { 264 if (is_null($offset)) { 265 $this->container[] = $value;translations.php https://gitlab.com/gentotech/evotennissg | PHP | 275 lines
1<?php 2/** 4 * 5 * @version $Id: translations.php 718 2012-10-31 00:32:02Z nbachiyski $ 6 * @package pomo 9 10require_once dirname(__FILE__) . '/entry.php'; 11 143 function gettext_select_plural_form($count) { 144 if (!isset($this->_gettext_select_plural_form) || is_null($this->_gettext_select_plural_form)) { 145 list( $nplurals, $expression ) = $this->nplurals_and_expression_from_header($this->get_header('Plural-Forms')); 175 * Adds parentheses to the inner parts of ternary operators in 176 * plural expressions, because PHP evaluates ternary oerators from left to right 177 *Validator.php https://gitlab.com/hop23typhu/list-theme | PHP | 206 lines
1<?php 2 39 $this->aliases = array(); 40 // PHP is a bit lax with integer <=> string conversions in 41 // arrays, so we don't use the identical !== comparison 91 92 if (!is_null($d->allowed) || !empty($d->valueAliases)) { 93 // allowed and valueAliases require that we be dealing with 112 public function validateDirectiveAllowed($d) { 113 if (is_null($d->allowed)) return; 114 $this->with($d, 'allowed') 131 public function validateDirectiveValueAliases($d) { 132 if (is_null($d->valueAliases)) return; 133 $this->with($d, 'valueAliases') 142 } 143 if (!is_null($d->allowed)) { 144 foreach ($d->valueAliases as $alias => $real) {FolderHandler.php https://gitlab.com/varsha_evonix/intranet | PHP | 271 lines
1<?php 2/* 23 */ 24require_once CKFINDER_CONNECTOR_LIB_DIR . "/Utils/FileSystem.php"; 25 134 135 if (is_null($this->_resourceTypeConfig)) { 136 $connector =& CKFinder_Connector_Core_Factory::getInstance("Core_Connector"); 173 { 174 if (is_null($this->_url)) { 175 $this->_resourceTypeConfig = $this->getResourceTypeConfig(); 175 $this->_resourceTypeConfig = $this->getResourceTypeConfig(); 176 if (is_null($this->_resourceTypeConfig)) { 177 $connector =& CKFinder_Connector_Core_Factory::getInstance("Core_Connector"); 197 { 198 if (is_null($this->_serverPath)) { 199 $this->_resourceTypeConfig = $this->getResourceTypeConfig();Memcache.php https://gitlab.com/varsha_evonix/intranet | PHP | 312 lines
22 * @package PHPExcel_CachedObjectStorage 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 33 * @package PHPExcel_CachedObjectStorage 34 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 35 */ 36class PHPExcel_CachedObjectStorage_Memcache extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache { 37 106 /** 107 * Is a value set in the current PHPExcel_CachedObjectStorage_ICache for an indexed cell? 108 * 299 * Identify whether the caching method is currently available 300 * Some methods are dependent on the availability of certain extensions being enabled in the PHP build 301 *AssertionsTrait.php https://gitlab.com/dzakiafif/cokelatklasik | PHP | 203 lines
5use Illuminate\View\View; 6use PHPUnit_Framework_Assert as PHPUnit; 7 31 32 return PHPUnit::assertEquals($code, $this->response->getStatusCode(), "Expected status code {$code}, got {$actual}."); 33 } 48 if (!isset($this->response->original) || !$this->response->original instanceof View) { 49 return PHPUnit::assertTrue(false, 'The response was not a view.'); 50 } 54 } else { 55 PHPUnit::assertEquals($value, $this->response->original->$key); 56 } 84 if (!isset($this->response->original) || !$this->response->original instanceof View) { 85 return PHPUnit::assertTrue(false, 'The response was not a view.'); 86 }HeadMeta.php https://gitlab.com/yousafsyed/easternglamor | PHP | 449 lines
1<?php 2/** 23/** Zend_View_Helper_Placeholder_Container_Standalone */ 24#require_once 'Zend/View/Helper/Placeholder/Container/Standalone.php'; 25 66 * 67 * Set separator to PHP_EOL 68 * 73 parent::__construct(); 74 $this->setSeparator(PHP_EOL); 75 } 116 default: 117 #require_once 'Zend/View/Exception.php'; 118 $e = new Zend_View_Exception(sprintf('Invalid type "%s" passed to _normalizeType', $type)); 160 if (2 > $argc) { 161 #require_once 'Zend/View/Exception.php'; 162 $e = new Zend_View_Exception('Too few arguments provided; requires key value, and content');rendererbase.php https://gitlab.com/JrLucena/moodle | PHP | 271 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 151 $qa->get_last_qt_data()); 152 if (is_null($a->outof)) { 153 return '';Pagination.class.php https://gitlab.com/webbroteam/satisfaction-mvc | PHP | 447 lines
1<?php 2 4 * Pagination 5 * @link https://github.com/onassar/PHP-Pagination/blob/master/Pagination.class.php 6 * Supplies an API for setting pagination details, and renders the resulting 6 * Supplies an API for setting pagination details, and renders the resulting 7 * pagination markup (html) through the included render.inc.php file. 8 * 18 * // source inclusion 19 * require_once APP . '/vendors/PHP-Pagination/Pagination.class.php'; 20 * 30 * // source inclusion 31 * require_once APP . '/vendors/PHP-Pagination/Pagination.class.php'; 32 * 77 // current instantiation setting 78 if (!is_null($current)) { 79 $this->setCurrent($current);IsType.php https://gitlab.com/oytunistrator/92five | PHP | 190 lines
36 * 37 * @package PHPUnit 38 * @subpackage Framework_Constraint 38 * @subpackage Framework_Constraint 39 * @author Sebastian Bergmann <sebastian@phpunit.de> 40 * @author Bernhard Schussek <bschussek@2bepublished.at> 54 * @subpackage Framework_Constraint 55 * @author Sebastian Bergmann <sebastian@phpunit.de> 56 * @author Bernhard Schussek <bschussek@2bepublished.at> 56 * @author Bernhard Schussek <bschussek@2bepublished.at> 57 * @copyright 2001-2014 Sebastian Bergmann <sebastian@phpunit.de> 58 * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License 61 */ 62class PHPUnit_Framework_Constraint_IsType extends PHPUnit_Framework_Constraint 63{IniReaderTest.php https://gitlab.com/nghiep5890/bakery | PHP | 304 lines
4 * 5 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> 6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 12 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests 14 * @package Cake.Test.Case.Configure 14 * @package Cake.Test.Case.Configure 15 * @since CakePHP(tm) v 2.0 16 * @license http://www.opensource.org/licenses/mit-license.php MIT License 38 ), 39 'is_null' => null, 40 'bool_false' => false, 99/** 100 * Test reading acl.ini.php. 101 *stoplist.php https://gitlab.com/alexprowars/bitrix | PHP | 272 lines
1<?php 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/classes/general/stoplist.php"); 120 S.MASK_1, S.MASK_2, S.MASK_3, S.MASK_4, 121 S.USER_AGENT, S.USER_AGENT_IS_NULL, 122 S.URL_TO, S.URL_FROM, S.MESSAGE, S.MESSAGE_LID, 213 or length(USER_AGENT)<=0 or USER_AGENT is null) 214 and ($user_agent_len=0 or USER_AGENT_IS_NULL<>'Y') 215 and (upper('$url_from') like concat('%',upper(URL_FROM),'%')ResourceTypeConfig.php https://gitlab.com/varsha_evonix/intranet | PHP | 367 lines
1<?php 2/* 233 234 if (is_null($this->_config)) { 235 $this->_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config"); 240 241 // First, check the last extension (ex. in file.php.jpg, the "jpg"). 242 if ( !$this->checkSingleExtension( $pieces[sizeof($pieces)-1] ) ) { 259 else { 260 // Check only the last extension (ex. in file.php.jpg, only "jpg"). 261 return $this->checkSingleExtension( substr($fileName, strrpos($fileName,'.')+1) ); 276 { 277 if (is_null($this->_config)) { 278 $this->_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config"); 298 { 299 if (is_null($this->_config)) { 300 $this->_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");qrsplit.php https://gitlab.com/leobelizquierdo/cabotsubmitter-wordpress | PHP | 311 lines
1<?php 2/* 2/* 3 * PHP QR Code encoder 4 * 9 * 10 * PHP QR Code is distributed under LGPL 3 11 * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm> 299 { 300 if(is_null($string) || $string == '\0' || $string == '') { 301 throw new Exception('empty string!!!');date.php https://gitlab.com/Suhailgit/Project | PHP | 319 lines
25 * @param bool $display_time If true shows date and time, if false only shows date 26 * @param string $date_format Allows date and time formating using standard php syntax (http://php.net/manual/en/function.date.php) 27 * 68 * @param string $date The date to find the beginning of the day, defaults to today 69 * @param string $format Allows date and time formating using standard php syntax (http://php.net/manual/en/function.date.php) 70 * 102 * @param string $date The date to find the end of the day, defaults to today 103 * @param string $format Allows date and time formating using standard php syntax (http://php.net/manual/en/function.date.php) 104 * 203 * @param int $event (optional) 204 * @param string $date_format Allows date and time formating using standard php syntax (http://php.net/manual/en/function.date.php) 205 * @param string $timezone Timezone in which to present the date/time (or default behaviour if not set) 288 * @param bool $display_time If true shows date and time, if false only shows date 289 * @param string $date_format Allows date and time formating using standard php syntax (http://php.net/manual/en/function.date.php) 290 * @param string $timezone Timezone in which to present the date/time (or default behaviour if not set)MailboxHeader.php https://gitlab.com/oytunistrator/92five | 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 235 // Compute the string value of the header only if needed 236 if (is_null($this->getCachedValue())) { 237 $this->setCachedValue($this->createMailboxListString($this->_mailboxes));Database.php https://gitlab.com/Illprotectyew/xlt | PHP | 297 lines
1<?php 2/** 28 * @license http://opensource.org/licenses/MIT (MIT) 29 * @link http://sprintphp.com 30 * @since Version 1.0 64 * Example: 65 * > php index.php database migrate 66 * 113 // Already at the desired version? 114 if ((! is_null($to) && $current == $to) OR (is_null($to) && $current == $latest)) 115 { 118 119 $target = is_null($to) ? $latest : $to; 120 122 // to the latest version. 123 if (is_null($to)) { 124 // If we're in silent mode, don't prompt, just go to the latest...recommendation.class.php https://gitlab.com/x33n/ampache | PHP | 362 lines
1<?php 2/* vim:set softtabstop=4 shiftwidth=4 expandtab: */ 165 166 if (is_null($local_id)) { 167 debug_event('Recommendation', "$name did not match any local song", 5); 193 foreach ($similars as $similar) { 194 if (!$local_only || !is_null($similar['id'])) { 195 $results[] = $similar; 244 // name match 245 if (is_null($local_id)) { 246 $searchname = Catalog::trim_prefix($name); 258 // Then we give up 259 if (is_null($local_id)) { 260 debug_event('Recommendation', "$name did not match any local artist", 5); 285 foreach ($similars as $similar) { 286 if (!$local_only || !is_null($similar['id'])) { 287 $results[] = $similar;MailboxHeader.php https://gitlab.com/x33n/platform | PHP | 316 lines
1<?php 2 77 * <code> 78 * <?php 79 * //Sets two mailboxes in the Header, one with a personal name 101 * <code> 102 * <?php 103 * $header = new Swift_Mime_Headers_MailboxHeader('From', 128 * <code> 129 * <?php 130 * $header = new Swift_Mime_Headers_MailboxHeader('From', 153 * <code> 154 * <?php 155 * //Sets three email addresses as the Header data 203 //Compute the string value of the header only if needed 204 if (is_null($this->getCachedValue())) { 205 $this->setCachedValue($this->createMailboxListString($this->_mailboxes));timber.php https://gitlab.com/aristath/timber | PHP | 495 lines
44 protected function test_compatibility() { 45 if ( is_admin() || $_SERVER['PHP_SELF'] == '/wp-login.php' ) { 46 return; 48 if ( version_compare( phpversion(), '5.3.0', '<' ) && !is_admin() ) { 49 trigger_error( 'Timber requires PHP 5.3.0 or greater. You have '.phpversion(), E_USER_ERROR ); 50 } 87 * @example 88 * ```php 89 * $posts = Timber::get_posts(); 212 $caller_file = self::get_calling_script_file(); 213 $caller_file = apply_filters( 'timber_calling_php_file', $caller_file ); 214 $loader = new TimberLoader( $caller ); 216 $output = ''; 217 if ( is_null( $data ) ) { 218 $data = array();Event.php https://gitlab.com/blingbang2016/shop | 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 */ 160 if (!is_array($current)) { 161 if (!is_null($current)) { 162 $previous[] = $current; 167 foreach ($previous as $key => $value) { 168 if (array_key_exists($key, $current) && !is_null($current[$key]) && is_array($previous[$key])) { 169 if (!is_string($key) || is_array($current[$key])) { 171 } 172 } elseif (!array_key_exists($key, $current) || is_null($current[$key])) { 173 $current[$key] = $previous[$key];Migrator.php https://gitlab.com/kimting254/wbms | PHP | 411 lines
1<?php namespace Illuminate\Database\Migrations; 2 243 { 244 $files = $this->files->glob($path.'/*_*.php'); 245 252 { 253 return str_replace('.php', '', basename($file)); 254 273 { 274 foreach ($files as $file) $this->files->requireOnce($path.'/'.$file.'.php'); 275 } 370 { 371 if ( ! is_null($name)) 372 {TeamCity.php https://gitlab.com/Georgiy.Zhegusov/museum_documents | PHP | 409 lines
18 */ 19class PHPUnit_Util_Log_TeamCity extends PHPUnit_TextUI_ResultPrinter 20{ 79 */ 80 public function addWarning(PHPUnit_Framework_Test $test, PHPUnit_Framework_Warning $e, $time) 81 { 98 */ 99 public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time) 100 { 122 123 if (!is_null($actualString) && !is_null($expectedString)) { 124 $parameters['actual'] = $actualString; 139 */ 140 public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time) 141 {ventas_factura.php https://gitlab.com/cosouth.battle/sartinofi | PHP | 469 lines
1<?php 2/* 6 7require_model('agencia_transporte.php'); 8require_model('articulo.php'); 8require_model('articulo.php'); 9require_model('asiento.php'); 10require_model('asiento_factura.php'); 10require_model('asiento_factura.php'); 11require_model('cliente.php'); 12require_model('cuenta_banco_cliente.php'); 12require_model('cuenta_banco_cliente.php'); 13require_model('divisa.php'); 14require_model('ejercicio.php'); 14require_model('ejercicio.php'); 15require_model('factura_cliente.php'); 16require_model('forma_pago.php');AclSecurityHandler.php https://gitlab.com/cuza/Clinic_Recods | PHP | 328 lines
1<?php 2 175 $acl = $this->getObjectAcl($objectIdentity); 176 if (is_null($acl)) { 177 $acl = $this->createAcl($objectIdentity);Email.php https://bitbucket.org/wallindev/wallindev-wp.git | PHP | 411 lines
1<?php if ( ! defined( 'ABSPATH' ) ) exit; 2 58 foreach( $data[ 'fields' ] as $field ){ 59 if( is_null( $field ) ) continue; 60 if( is_array( $field ) ){ldap.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 487 lines
1<?php 2 3/** 4* @version $Id: ldap.php 14401 2010-01-26 14:10:00Z louis $ 5* @package Joomla.Framework 7* @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. 8* @license GNU/GPL, see LICENSE.php 9* Joomla! is free software and parts of it may contain or be derived from the 10* GNU General Public License or other free or open source software licenses. 11* See COPYRIGHT.php for copyright notices and details. 12*/ 174 { 175 if (is_null($username)) { 176 $username = $this->username; 177 } 178 if (is_null($password)) { 179 $password = $this->password;Associations.php https://gitlab.com/hennesfinest/wordpress-integration | PHP | 472 lines
1<?php 2/** 142 if (($typeId = $this->getTypeId($type)) !== false) { 143 if (is_null($storeId)) { 144 $storeId = Mage::app()->getStore()->getId(); 184 if (($typeId = $this->getTypeId($type)) !== false) { 185 if (is_null($storeId)) { 186 $storeId = Mage::app()->getStore()->getId(); 220 if (($typeId = $this->getTypeId($type)) !== false) { 221 if (is_null($storeId)) { 222 $storeId = Mage::app()->getStore()->getId(); 333 if (($typeId = Mage::helper('wordpress/associations')->getTypeId($type)) !== false) { 334 if (is_null($storeId)) { 335 $storeId = array((int)Mage::app()->getStore()->getId(), 0);pay_system.php https://gitlab.com/alexprowars/bitrix | PHP | 410 lines
1<?php 2use Bitrix\Sale\PaySystem; 195 { 196 if (!is_null($personTypeId)) 197 {group_ldap.php https://gitlab.com/Red54/core | PHP | 445 lines
1<?php 2/** 35 36 if(is_null($conMethods) || is_null($accMethods)) { 37 $conMethods = get_class_methods('\OCA\user_ldap\lib\Connection');ErrorModel.php https://gitlab.com/VTTE/sitios-vtte | PHP | 395 lines
1<?php 2/** 4 * 5 * PHP version 5 6 * 242 $allowedValues = $this->getCodeAllowableValues(); 243 if (!is_null($this->container['code']) && !in_array($this->container['code'], $allowedValues, true)) { 244 $invalidProperties[] = sprintf( 357 { 358 if (is_null($offset)) { 359 $this->container[] = $value;grammar.php https://gitlab.com/cetfosscell/brainstrain | PHP | 491 lines
1<?php namespace Laravel\Database\Query\Grammars; 2 48 { 49 if ( ! is_null($query->$component)) 50 { 79 { 80 if ( ! is_null($query->aggregate)) return; 81 175 { 176 if (is_null($query->wheres)) return ''; 177 323 { 324 if (is_null($query->havings)) return ''; 325FilesystemAdapter.php https://gitlab.com/alamgircsejnu/AMS-Project-Laravel | PHP | 383 lines
1<?php 2 121 */ 122 public function prepend($path, $data, $separator = PHP_EOL) 123 { 137 */ 138 public function append($path, $data, $separator = PHP_EOL) 139 { 355 { 356 if (is_null($visibility)) { 357 return;Command.php https://gitlab.com/blingbang2016/shop | PHP | 413 lines
1<?php 2/** 20 * @copyright Copyright (c) 2009 - 2011, RealDolmen (http://www.realdolmen.com) 21 * @license http://phpazure.codeplex.com/license 22 */ 29 * @copyright Copyright (c) 2009 - 2011, RealDolmen (http://www.realdolmen.com) 30 * @license http://phpazure.codeplex.com/license 31 */ 63 /** 64 * Replaces PHP's error handler 65 * 70 */ 71 public static function phpstderr($errno, $errstr, $errfile, $errline) 72 { 76 /** 77 * Replaces PHP's exception handler 78 *Emplacement.php https://gitlab.com/r.collas/site_central | PHP | 364 lines
1<?php 2 7 $this->getSession()->set("titre", "Gestion des emplacements"); 8 $this->_view->setFile('View/emplacement/gestion.php'); 9 } 15 // Si l'utilisateur ne peut pas ajouter plus de sous emplacements 16 if (count($types) == 1 && is_null($types[0]["id"]) && is_null($types[0]["categorie_value"])) { 17 echo "null" ; 22 $this->getLayout()->setEnabled(false) ; 23 $this->_view->setFile('View/emplacement/ajax_ajouter.php') ; 24 } 35 $this->getLayout()->setEnabled(false) ; 36 $this->_view->setFile('View/emplacement/ajax_modifier.php') ; 37 } 44 $this->getLayout()->setEnabled(false) ; 45 $this->_view->setFile("View/emplacement/ajax_get_description.php") ; 46 }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 } 156 157 if (is_null($title) || $title === false) { 158 $title = $url; 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 }Media.php https://gitlab.com/blingbang2016/shop | PHP | 296 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 */ 271 protected function _getAttributeId() { 272 if(is_null($this->_attributeId)) { 273 $attribute = Mage::getModel('eav/entity_attribute')ThemedController.php https://gitlab.com/Illprotectyew/xlt | PHP | 391 lines
1<?php namespace Myth\Controllers; 2/** 28 * @license http://opensource.org/licenses/MIT (MIT) 29 * @link http://sprintphp.com 30 * @since Version 1.0 34 35require_once dirname(__FILE__) .'/../Themers/escape.php'; 36 166 // Should we autoescape vars? 167 if (is_null($this->auto_escape)) 168 { 246 247 if (is_null($this->escaper)) 248 {Collection.php https://gitlab.com/biggercode/Eloquent-Outside-of-Laravel | PHP | 705 lines
1<?php namespace Illuminate\Support; 2 39 { 40 if (is_null($items)) return new static; 41 128 { 129 if (is_null($callback)) 130 { 216 { 217 if (is_null($glue)) return implode($this->lists($value)); 218 653 { 654 if (is_null($key)) 655 {Abstract.php https://gitlab.com/blingbang2016/shop | PHP | 460 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 */ 301 { 302 if(is_null($region)) { 303 $region = $this->getRegionId();FilterIntervalSlider.php https://gitlab.com/Lidbary/PHPRunner | PHP | 400 lines
1<?php 2class FilterIntervalSlider extends FilterControl 127 { 128 if (is_null( $data['sliderMin'] ) && is_null( $data['sliderMax'] ) || $data['sliderMax'] == $data['sliderMin']) 129 return true;Curl.class.php https://gitlab.com/fangjianwei/weifenxiao | PHP | 186 lines
1<?php 2/** 158 $decrypt=CookieCrypt::decrypt(base64_decode($value), self::$key); 159 if(is_null($decrypt)) 160 return $value;controller.php https://gitlab.com/Red54/core | PHP | 152 lines
1<?php 2/** 46 } 47 if (!is_null($password) && \OC_User::setPassword($username, $password)) { 48 \OC_JSON::success(); 144 } else { // if encryption is disabled, proceed 145 if (!is_null($password) && \OC_User::setPassword($username, $password)) { 146 \OC_JSON::success(array('data' => array('username' => $username)));Element.php https://gitlab.com/yousafsyed/easternglamor | PHP | 486 lines
1<?php 2/** 29 * @return void 30 * @SuppressWarnings(PHPMD.UnusedFormalParameter) 31 */ 62 * @return boolean 63 * @SuppressWarnings(PHPMD.UnusedLocalVariable) 64 */ 97 * @return \Magento\Framework\Simplexml\Element 98 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 99 */ 227 * @return string 228 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 229 * @SuppressWarnings(PHPMD.NPathComplexity) 306 { 307 if (is_null($value)) { 308 $value = $this;workflows.php https://bitbucket.org/kbasarab/kbasarab_vim.git | PHP | 482 lines
1<?php 2/** 3* Name: Workflows 4* Description: This PHP class object provides several useful functions for retrieving, parsing, 5* and formatting data to be used with Alfred 2 Workflows. 36 37 if ( !is_null( $bundleid ) ): 38 $this->bundle = $bundleid; 64 { 65 if ( is_null( $this->bundle ) ): 66 return false; 81 { 82 if ( is_null( $this->bundle ) ): 83 return false; 84 else: 85 if ( is_null( $this->cache ) ): 86 return false;record.add.php git://github.com/thorsten/phpMyFAQ.git | PHP | 330 lines
12 * @author Thorsten Rinne <thorsten@phpmyfaq.de> 13 * @copyright 2003-2021 phpMyFAQ Team 14 * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 14 * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 15 * @link https://www.phpmyfaq.de 16 * @since 2003-02-23 28use phpMyFAQ\Instance\Elasticsearch; 29use phpMyFAQ\Link; 30use phpMyFAQ\Logging; 30use phpMyFAQ\Logging; 31use phpMyFAQ\Notification; 32use phpMyFAQ\Question; 114 115 if (!is_null($question) && !is_null($categories['rubrik'])) { 116 // new entryEntity.php https://gitlab.com/blingbang2016/shop | PHP | 354 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 */ 50 { 51 if (is_null($this->_store)) { 52 try { 83 { 84 if (is_null($bind)) { 85 $defBind = 'entity_id'; 86 } 87 if (is_null($joinType)) { 88 $joinType = 'LEFT';DatabaseManager.php https://gitlab.com/dzakiafif/cokelatklasik | PHP | 297 lines
1<?php 2 235 236 if (is_null($config = array_get($connections, $name))) { 237 throw new InvalidArgumentException("Database [$name] not configured.");SQLiteGrammar.php https://gitlab.com/Laolballs/evotting | PHP | 564 lines
1<?php namespace Illuminate\Database\Schema\Grammars; 2 85 86 if ( ! is_null($foreign->onDelete)) 87 { 90 91 if ( ! is_null($foreign->onUpdate)) 92 { 129 130 if ( ! is_null($primary)) 131 { 542 { 543 if ( ! is_null($column->default)) 544 {install.php https://gitlab.com/gregtyka/helloworld1234 | PHP | 305 lines
20 <h2>Error: PHP is not running</h2> 21 <p>WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off.</p> 22</body> 75<body class="wp-core-ui<?php echo $body_classes ?>"> 76<h1 id="logo"><a href="<?php echo esc_url( __( 'https://wordpress.org/' ) ); ?>" tabindex="-1"><?php _e( 'WordPress' ); ?></a></h1> 77 163$mysql_version = $wpdb->db_version(); 164$php_compat = version_compare( $php_version, $required_php_version, '>=' ); 165$mysql_compat = version_compare( $mysql_version, $required_mysql_version, '>=' ) || file_exists( WP_CONTENT_DIR . '/db.php' ); 167if ( !$mysql_compat && !$php_compat ) 168 $compat = sprintf( __( 'You cannot install because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.' ), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ); 169elseif ( !$php_compat ) 169elseif ( !$php_compat ) 170 $compat = sprintf( __( 'You cannot install because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.' ), $wp_version, $required_php_version, $php_version ); 171elseif ( !$mysql_compat )Logical.php https://gitlab.com/mehedi-xion/web_apps_php_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} 260 public static function STATEMENT_IF($condition = TRUE, $returnIfTrue = 0, $returnIfFalse = FALSE) { 261 $condition = (is_null($condition)) ? TRUE : (boolean) PHPExcel_Calculation_Functions::flattenSingleValue($condition); 262 $returnIfTrue = (is_null($returnIfTrue)) ? 0 : PHPExcel_Calculation_Functions::flattenSingleValue($returnIfTrue); 262 $returnIfTrue = (is_null($returnIfTrue)) ? 0 : PHPExcel_Calculation_Functions::flattenSingleValue($returnIfTrue); 263 $returnIfFalse = (is_null($returnIfFalse)) ? FALSE : PHPExcel_Calculation_Functions::flattenSingleValue($returnIfFalse); 264 282 $testValue = (is_null($testValue)) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($testValue); 283 $errorpart = (is_null($errorpart)) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($errorpart); 284