PageRenderTime 629ms queryTime 60ms sortTime 31ms getByIdsTime 113ms findMatchingLines 234ms

100+ results results for 'php is_null' (629 ms)

Not the results you expected?
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_,
                    
                
PostgresGrammar.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 568 lines
                    
1<?php
                    
2
                    
549    {
                    
550        if (! is_null($column->default)) {
                    
551            return ' default '.$this->getDefaultValue($column->default);
                    
                
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	 *
                    
                
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    {
                    
                
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))) {
                    
                
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/ntphuc/FoodyBackend | 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    }
                    
                
AbstractPaginator.php https://gitlab.com/dzakiafif/cokelatklasik | PHP | 487 lines
                    
1<?php
                    
2
                    
154    {
                    
155        if (is_null($fragment)) {
                    
156            return $this->fragment;
                    
                
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;
                    
                
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      {
                    
                
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;
                    
                
Dispatcher.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-wc-shortcode-my-account.php https://gitlab.com/webkod3r/tripolis | 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 );
                    
                
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 )
                    
                
translations.php https://gitlab.com/Blueprint-Marketing/WordPress-1 | 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	 *
                    
                
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');
                    
43
                    
                
URI.php https://gitlab.com/Griffolion/Game-Embargo-Tracker | 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);
                    
                
compras_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 are
                    
                
ElementDef.php https://gitlab.com/I-NOZex/quiz | 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;
                    
                
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));
                    
                
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';
                    
411
                    
                
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 $timestamp 
                    
                
gravityforms-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    {
                    
                
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);
                    
                
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();
                    
                
MethodProphecySpec.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);
                    
284
                    
                
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;
                    
                
SqlServerGrammar.php https://gitlab.com/Pasantias/pasantiasASLG | 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)';
                    
                
Sharing.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")) {
                    
                
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 {
                    
                
Spy.php https://gitlab.com/oytunistrator/phpspy | PHP | 399 lines
                    
1<?php
                    
2/**
                    
6 * @license  MIT
                    
7 * @link     https://github.com/christopheraue/phpspy
                    
8 */
                    
9
                    
10namespace christopheraue\phpspy;
                    
11
                    
57        //Sometimes $classname and $methodname are transferred to this constructor in all lower case
                    
58        //although they were given in camel case. Strange behavior. Doesn't matter, since PHP
                    
59        //class and function names are case insensitive. Convert the names to all lower case.
                    
70        if (array_key_exists($this->_name, self::$_spies)) {
                    
71            /** @var \christopheraue\phpspy\Spy $spy */
                    
72            $spy = self::$_spies[$this->_name];
                    
301    {
                    
302        return !is_null($this->_substitute);
                    
303    }
                    
                
DB_result.php https://gitlab.com/pollux1er/PerencoCanteenAdmin | 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.0
                    
                
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    void
                    
                
User_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		{
                    
                
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;
                    
                
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');
                    
                
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;
                    
                
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;
                    
                
filter.php https://gitlab.com/Bartwillemsen/aurora-framework | PHP | 225 lines
                    
1<?php
                    
2namespace Aurora\Routing;
                    
57			// the first filter response if overriding is enabled.
                    
58			if (! is_null($response) and $override) return $response;
                    
59		}
                    
                
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));
                    
                
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  +----------------------------------------------------------------------+
                    
12  +----------------------------------------------------------------------+
                    
13  | Author: Xinchen Hui  <laruence@php.net>                              |
                    
14  +----------------------------------------------------------------------+
                    
23#include "php_ini.h"
                    
24#include "standard/php_filestat.h" /* for php_stat */
                    
25
                    
25
                    
26#include "php_yaf.h"
                    
27#include "yaf_namespace.h"
                    
48	zval  n_ctime;
                    
49	php_stat(Z_STRVAL_P(file), Z_STRLEN_P(file), 7 /* FS_CTIME */ , &n_ctime TSRMLS_CC);
                    
50	if (Z_TYPE(n_ctime) != IS_BOOL && ctime != Z_LVAL(n_ctime)) {
                    
                
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;
                    
                
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        }
                    
                
IniReaderTest.php https://gitlab.com/shubam39/CakeTooDoo | 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 *
                    
                
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';
                    
349
                    
                
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);
                    
                
Orderable.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.
                    
                
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    {
                    
                
html.php https://gitlab.com/Bartwillemsen/aurora-framework | PHP | 376 lines
                    
1<?php
                    
2namespace Aurora;
                    
37
                    
38		return '<script src="'.$url.'"'.static::attributes($attributes).'></script>'.PHP_EOL;
                    
39	}
                    
69
                    
70		return '<link href="'.$url.'"'.static::attributes($attributes).'>'.PHP_EOL;
                    
71	}
                    
205
                    
206		if (is_null($title)) $title = $email;
                    
207
                    
302
                    
303			if (! is_null($value)) {
                    
304				$html[] = $key.'="'.static::entities($value).'"';
                    
                
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)
                    
                
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		{
                    
                
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;
                    
                
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{
                    
                
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	 *
                    
                
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 '';
                    
                
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);
                    
                
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;
                    
                
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));
                    
                
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/Haithamgit/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)
                    
                
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...
                    
                
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 )
                    
                
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];
                    
                
SQLiteGrammar.php https://gitlab.com/kimting254/wbms | PHP | 611 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		{
                    
589	{
                    
590		if ( ! is_null($column->default))
                    
591		{
                    
                
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');
                    
                
Rate.php https://gitlab.com/yousafsyed/easternglamor | PHP | 534 lines
                    
1<?php
                    
2/**
                    
20 * @method \Magento\Tax\Model\ResourceModel\Calculation\Rate getResource()
                    
21 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
22 */
                    
77     * @param array $data
                    
78     * @SuppressWarnings(PHPMD.ExcessiveParameterList)
                    
79     */
                    
120     * @throws \Magento\Framework\Exception\LocalizedException
                    
121     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
122     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
235    {
                    
236        if (is_null($titles)) {
                    
237            $titles = $this->getTitle();
                    
264    {
                    
265        if (is_null($this->_titleModel)) {
                    
266            $this->_titleModel = $this->_titleFactory->create();
                    
                
CrawlerTrait.php https://gitlab.com/4gdevs/online-class-record-system | PHP | 520 lines
                    
1<?php
                    
2
                    
181
                    
182        if (! is_null($data)) {
                    
183            return $this->seeJson($data);
                    
212    {
                    
213        if (is_null($data)) {
                    
214            $this->assertJson(
                    
247
                    
248        if (is_null($actual) || $actual === false) {
                    
249            return $this->fail('Invalid JSON was returned from the route. Perhaps an exception was thrown?');
                    
315
                    
316        if (! is_null($value)) {
                    
317            $this->assertEquals(
                    
347
                    
348        if (! is_null($value)) {
                    
349            $this->assertEquals(
                    
                
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);
                    
                
Inline.php https://gitlab.com/oritadeu/dompdf | PHP | 198 lines
                    
1<?php
                    
2/**
                    
52
                    
53            if (!is_null($w) && $child_x < $x + $w) {
                    
54                //This branch seems to be supposed to being called on the first part
                    
111
                    
112            if (is_null($w))
                    
113                $w = $child_w;
                    
                
SQLite.php https://gitlab.com/adamlwalker/generatedata | PHP | 270 lines
                    
1<?php
                    
2/**
                    
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_SQLite extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache {
                    
37
                    
78     */
                    
79	public function addCacheData($pCoord, PHPExcel_Cell $cell) {
                    
80		if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) {
                    
232	 */
                    
233	public function __construct(PHPExcel_Worksheet $parent) {
                    
234		parent::__construct($parent);
                    
                
SQLite3.php https://gitlab.com/adamlwalker/generatedata | PHP | 277 lines
                    
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
                    
82     */
                    
83	public function addCacheData($pCoord, PHPExcel_Cell $cell) {
                    
84		if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) {
                    
112			throw new Exception($this->_DBHandle->lastErrorMsg());
                    
113		} elseif (is_null($cellResult)) {
                    
114			//	Return null if requested entry doesn't exist in cache
                    
                
Logical.php https://gitlab.com/kimting254/wbms | 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
                    
                
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.");
                    
                
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');
                    
                
calendar.php https://gitlab.com/x33n/ProjectPier-Core | PHP | 178 lines
                    
19<div class="calendar">
                    
20  <h2><?php echo clean(lang(sprintf('month %u', $month))); ?> <?php echo $year; ?></h2>
                    
21<?php
                    
77?>
                    
78      <th class="<?php echo $dow_class; ?>"><?php echo clean(lang(sprintf('weekday short %u', $dow ))); ?></th>
                    
79<?php
                    
112?>
                    
113      <td class="<?php echo $dow_class; ?>">
                    
114        <div class="date"><?php echo $dom; ?></div>
                    
120        <ul class="entries">
                    
121<?php
                    
122          foreach ($calendar[$dom] as $obj) {
                    
175    <div class="prev-month"><a href="<?php echo get_url('milestone', 'calendar', gmdate('Ym', $prevMonth)); ?>"><?php echo clean(lang(sprintf('month %u', gmdate('m', $prevMonth)))); ?> <?php echo gmdate('Y', $prevMonth); ?></a></div>
                    
176    <div class="next-month"><a href="<?php echo get_url('milestone', 'calendar', gmdate('Ym', $nextMonth)); ?>"><?php echo clean(lang(sprintf('month %u', gmdate('m', $nextMonth)))); ?> <?php echo gmdate('Y', $nextMonth); ?></a></div>
                    
177  </div>
                    
                
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 '';
                    
325
                    
                
FilesystemAdapter.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	 *
                    
                
DefinitionList.php https://gitlab.com/yousafsyed/easternglamor | PHP | 352 lines
                    
1<?php
                    
2/**
                    
206        $value = $classDefinition->getInstantiator($class);
                    
207        if (!is_null($value)) {
                    
208            return $value;
                    
                
compat.php https://gitlab.com/websumon/tosnib | PHP | 339 lines
                    
2/**
                    
3 * WordPress implementation for PHP functions either missing from older PHP versions or not included by default.
                    
4 *
                    
4 *
                    
5 * @package PHP
                    
6 * @access private
                    
62	if ( ! in_array( $encoding, array( 'utf8', 'utf-8', 'UTF8', 'UTF-8' ) ) ) {
                    
63		return is_null( $length ) ? substr( $str, $start ) : substr( $str, $start, $length );
                    
64	}
                    
68		preg_match_all( '/./us', $str, $match );
                    
69		$chars = is_null( $length ) ? array_slice( $match[0], $start ) : array_slice( $match[0], $start, $length );
                    
70		return implode( '', $chars );
                    
207		if ( ! ($wp_json instanceof Services_JSON ) ) {
                    
208			require_once( ABSPATH . WPINC . '/class-json.php' );
                    
209			$wp_json = new Services_JSON();
                    
                
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	}
                    
                
class-wp-http-streams.php https://gitlab.com/webkod3r/tripolis | PHP | 428 lines
                    
1<?php
                    
2/**
                    
10/**
                    
11 * Core class used to integrate PHP Streams as an HTTP transport.
                    
12 *
                    
17	/**
                    
18	 * Send a HTTP request to a URI using PHP Streams.
                    
19	 *
                    
78		/*
                    
79		 * Certain versions of PHP have issues with 'localhost' and IPv6, It attempts to connect
                    
80		 * to ::1, which fails when the server is not set up for it. For compatibility, always
                    
133		if ( !WP_DEBUG ) {
                    
134			// In the event that the SSL connection fails, silence the many PHP Warnings.
                    
135			if ( $secure_transport )
                    
202
                    
203		if ( ! is_null($r['body']) )
                    
204			$strHeaders .= $r['body'];
                    
                
Routes.php https://gitlab.com/fiesta-framework/Documentation | PHP | 573 lines
                    
1<?php 
                    
2
                    
16		$domains = null;
                    
17		if(!is_null($subdomains)) $domains = self::extractSubdomains($subdomains);
                    
18		if(is_callable($callback)) self::addCallable($uri,$callback,"get",$domains);
                    
202				{
                    
203					if(!is_null($value["subdomain"]))
                    
204					{
                    
382		self::$filters[$name]=$r;
                    
383		//if(!is_null($falsecall)) self::$_falsecall[$filter]=$falsecall;
                    
384	}
                    
571{
                    
572	include \Config::get('panel.folder').'/home.php';
                    
573});
                    
                
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    }
                    
                
 

Source

Language