100+ results results for 'php method_exists repo:openmelody/melody' (594 ms)
1<?php 2/** 9/** 10 * WordPress Image Editor Class for Image Manipulation through Imagick PHP Module 11 * 53 54 if ( version_compare( phpversion( 'imagick' ), '2.2.0', '<' ) ) 55 return false; 105 // Here, we just say no if you are missing it and aren't loading a jpeg. 106 if ( ! method_exists( 'Imagick', 'setIteratorIndex' ) && $mime_type != 'image/jpeg' ) 107 return false; 132 /** This filter is documented in wp-includes/class-wp-image-editor-imagick.php */ 133 // Even though Imagick uses less PHP memory than GD, set higher limit for users that have low PHP.ini limits 134 @ini_set( 'memory_limit', apply_filters( 'image_memory_limit', WP_MAX_MEMORY_LIMIT ) ); 493 494 /** This filter is documented in wp-includes/class-wp-image-editor-gd.php */ 495 return array(Grammar.php https://gitlab.com/ealexis.t/trends | PHP | 466 lines
1<?php 2 146 foreach ($this->modifiers as $modifier) { 147 if (method_exists($this, $method = "modify{$modifier}")) { 148 $sql .= $this->{$method}($blueprint, $column); 337 if (! is_null($option = $this->mapFluentOptionToDoctrine($key))) { 338 if (method_exists($column, $method = 'set'.ucfirst($option))) { 339 $column->{$method}($this->mapFluentValueToDoctrine($option, $value));FormMultiCheckbox.php https://gitlab.com/jalon/doadoronline | PHP | 467 lines
1<?php 2/** 126 // Render hidden element 127 $useHiddenElement = method_exists($element, 'useHiddenElement') && $element->useHiddenElement() 128 ? $element->useHiddenElement() 434 435 if (method_exists($this->view, 'plugin')) { 436 $this->inputHelper = $this->view->plugin('form_input'); 456 457 if (method_exists($this->view, 'plugin')) { 458 $this->labelHelper = $this->view->plugin('form_label');gallery.php https://gitlab.com/memuller.web/wp_site | PHP | 433 lines
1<?php 2 28 'gallery', 29 /** This filter is documented in modules/widgets/facebook-likebox.php */ 30 apply_filters( 'jetpack_widget_name', __( 'Gallery', 'jetpack' ) ), 83 if ( 'carousel' == $instance['link'] ) { 84 require_once plugin_dir_path( realpath( dirname( __FILE__ ) . '/../carousel/jetpack-carousel.php' ) ) . 'jetpack-carousel.php'; 85 97 98 /** This filter is documented in core/src/wp-includes/default-widgets.php */ 99 $title = apply_filters( 'widget_title', $instance['title'] ); 237 238 require_once plugin_dir_path( realpath( dirname( __FILE__ ) . '/../shortcodes/slideshow.php' ) ) . 'slideshow.php'; 239 403 404 if ( 'widgets.php' == $pagenow || 'customize.php' == $pagenow ) { 405 wp_enqueue_media();Resource.php https://gitlab.com/x33n/respond | PHP | 325 lines
1<?php 2 54 foreach ($methodMetadata as $conditionName => $conditions) { // process each method condition 55 if (method_exists($this, $conditionName)) { 56 $this->currentMethodName = $key;Reader.php https://gitlab.com/cmtsheikeshadi/first_app_development_project | PHP | 350 lines
1<?php 2/** 5* @license http://opensource.org/licenses/MIT 6* @link https://github.com/thephpleague/csv/ 7* @version 8.1.0 216 /** 217 * Return the key/pairs as a PHP generator 218 * 319 { 320 return is_scalar($value) || (is_object($value) && method_exists($value, '__toString')); 321 }BaseVarDumper.php https://gitlab.com/I-NOZex/quiz | PHP | 272 lines
1<?php 2/** 56 if ($highlight) { 57 $result = highlight_string("<?php\n" . self::$_output, true); 58 self::$_output = preg_replace('/<\\?php<br \\/>/', '', $result, 1); 119 self::$_output .= "$className#$id\n" . $spaces . '('; 120 if ('__PHP_Incomplete_Class' !== get_class($var) && method_exists($var, '__debugInfo')) { 121 $dumpValues = $var->__debugInfo(); 141 * 142 * The string is a valid PHP expression that can be evaluated by PHP parser 143 * and the evaluation result will give back the variable value. 147 * 148 * It also handles objects by using the PHP functions serialize() and unserialize(). 149 * 210 return; 211 } elseif ('__PHP_Incomplete_Class' !== get_class($var) && method_exists($var, '__toString')) { 212 $output = var_export($var->__toString(), true);Cloud.php https://gitlab.com/yousafsyed/easternglamor | PHP | 410 lines
1<?php 2/** 25 */ 26#require_once 'Zend/Tag/Item.php'; 27 121 $method = 'set' . ucfirst($key); 122 if (method_exists($this, $method)) { 123 $this->$method($value); 152 } else { 153 #require_once 'Zend/Tag/Cloud/Exception.php'; 154 throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array'); 174 } else { 175 #require_once 'Zend/Tag/Cloud/Exception.php'; 176 throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array'); 203 if (null === $this->_tags) { 204 #require_once 'Zend/Tag/ItemList.php'; 205 $this->setItemList(new Zend_Tag_ItemList());ARC2_TestHandler.php https://gitlab.com/klausmig/CloudSemanticWeb | PHP | 434 lines
1<?php 2/* 31 $m = 'run' . $type; 32 $r = method_exists($this, $m) ? $this->$m($id) : array('pass' => 0, 'info' => 'not supported'); 33 sleep(1);DB_utility.php https://gitlab.com/ablu/invertika-backup-web | PHP | 389 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 4.3.2 or newer 6 * 96 // Note: Due to a bug in current() that affects some versions 97 // of PHP we can not pass function call directly into it 98 return current($res); 124 // Note: Due to a bug in current() that affects some versions 125 // of PHP we can not pass function call directly into it 126 $res = $query->result_array(); 158 // Note: Due to a bug in current() that affects some versions 159 // of PHP we can not pass function call directly into it 160 $res = $query->result_array(); 177 { 178 if ( ! is_object($query) OR ! method_exists($query, 'list_fields')) 179 {ImageMagick.php https://gitlab.com/yousafsyed/easternglamor | PHP | 480 lines
1<?php 2/** 118 ); 119 if (method_exists($this->_imageHandler, 'optimizeImageLayers')) { 120 $this->_imageHandler->optimizeImageLayers(); 237 * @throws \Exception 238 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 239 * @SuppressWarnings(PHPMD.NPathComplexity) 264 265 if (method_exists($watermark, 'setImageOpacity')) { 266 // available from imagick 6.3.1 332 if (!class_exists('\Imagick', false)) { 333 throw new \Exception("Required PHP extension 'Imagick' was not loaded."); 334 } 422 if (!empty($font)) { 423 if (method_exists($image, 'setFont')) { 424 $image->setFont($font);SassNode.php https://gitlab.com/klausmig/CloudSemanticWeb | PHP | 392 lines
1<?php 2/* SVN FILE: $Id$ */ 11 12require_once 'SassContext.php'; 13require_once 'SassCommentNode.php'; 13require_once 'SassCommentNode.php'; 14require_once 'SassDebugNode.php'; 15require_once 'SassDirectiveNode.php'; 15require_once 'SassDirectiveNode.php'; 16require_once 'SassImportNode.php'; 17require_once 'SassMixinNode.php'; 17require_once 'SassMixinNode.php'; 18require_once 'SassMixinDefinitionNode.php'; 19require_once 'SassPropertyNode.php'; 19require_once 'SassPropertyNode.php'; 20require_once 'SassRootNode.php'; 21require_once 'SassRuleNode.php';Converter.php https://gitlab.com/blingbang2016/shop | PHP | 336 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 */ 188 189 if($useGetter && !method_exists($pearObject, $rules['getter'])) { 190 $mName = get_class($pearObject)."::".$rules['getter']; 193 194 if($useSetter && !method_exists($mageObject, $rules['setter'])) { 195 $mName = get_class($mageObject)."::".$rules['setter']; 200 201 if($useConverter && false === method_exists($this, $rules['converter'])) { 202 $mName = get_class($this)."::".$rules['converter'];function.html_options.php https://gitlab.com/adamlwalker/generatedata | PHP | 174 lines
1<?php 2/** 26 * 27 * @link http://www.smarty.net/manual/en/language.function.html.options.php {html_image} 28 * (Smarty online manual) 37{ 38 require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php'); 39 71 if (is_object($_sel)) { 72 if (method_exists($_sel, "__toString")) { 73 $_sel = smarty_function_escape_special_chars((string) $_sel->__toString()); 83 } elseif (is_object($_val)) { 84 if (method_exists($_val, "__toString")) { 85 $selected = smarty_function_escape_special_chars((string) $_val->__toString()); 146 if (is_object($value)) { 147 if (method_exists($value, "__toString")) { 148 $value = smarty_function_escape_special_chars((string) $value->__toString());Stream.php https://gitlab.com/x33n/respond | PHP | 261 lines
1<?php 2namespace GuzzleHttp\Stream; 4/** 5 * PHP stream implementation 6 */ 49 if ($type == 'string') { 50 $stream = fopen('php://temp', 'r+'); 51 if ($resource !== '') { 65 66 if ($type == 'object' && method_exists($resource, '__toString')) { 67 return self::factory((string) $resource, $options);NetClient.php https://gitlab.com/wuhang2003/rainloop-webmail | PHP | 629 lines
1<?php 2 187 */ 188 public function capturePhpErrorWithException($iErrNo, $sErrStr, $sErrFile, $iErrLine) 189 { 270 271 \set_error_handler(array(&$this, 'capturePhpErrorWithException')); 272 365 { 366 if (\method_exists($this, 'Logout') && !$this->bUnreadBuffer && !$this->bRunningCallback) 367 {Blueprint.php https://gitlab.com/x33n/grav | PHP | 432 lines
1<?php 2namespace Grav\Common\Data; 349 $data = call_user_func_array($o, $value); 350 } elseif ($f && method_exists($o, $f)) { 351 $data = call_user_func_array(array($o, $f), $value);emogrifier.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 228 lines
1<?php defined('_JEXEC') or die('Restricted access'); ?> 2<?php 20 2010-06-16 Added static caching for less processing overhead in situations where multiple emogrification takes place 21 2010-07-26 Fixed bug where '0' values were getting discarded because of php's empty() function... Thanks Scott! 22 2010-09-03 Added checks to invisible node removal to ensure that we don't try to remove non-existent child nodes of parents that have already been deleted 62 $xmldoc =@ new DOMDocument; 63 if(!is_object($xmldoc) || !method_exists($xmldoc,'loadHTML')) return $this->html; 64Column.php https://gitlab.com/techniconline/kmc | PHP | 494 lines
1<?php 2/* 121 $method = "set" . $name; 122 if (method_exists($this, $method)) { 123 $this->$method($value);Repository.php https://gitlab.com/yousafsyed/easternglamor | PHP | 275 lines
1<?php 2/** 25 */ 26#require_once 'Zend/Tool/Framework/Provider/Signature.php'; 27 30 */ 31#require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php'; 32 103 104 if (method_exists($provider, 'getName')) { 105 $providerName = $provider->getName(); 114 { 115 #require_once 'Zend/Tool/Framework/Provider/Exception.php'; 116 throw new Zend_Tool_Framework_Provider_Exception('A provider by the name ' . $providerNameDispatcher.php https://gitlab.com/Laolballs/cbtapp | PHP | 486 lines
1<?php namespace Illuminate\Events; 2 397 398 if (method_exists($class, 'queue')) 399 {view.html.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 138 lines
1<?php 2/** 7?> 8<?php 9class EmailViewEmail extends JView 13 $function = $this->getLayout(); 14 if(method_exists($this,$function)) $this->$function(); 15 parent::display($tpl); 78 $script .= "function insertTag(tag){ try{jInsertEditorText(tag,'editor_body'); document.getElementById('iframetag').style.display = 'none'; displayTags(); return true;} catch(err){alert('Your editor does not enable AcyMailing to automatically insert the tag, please copy/paste it manually in your Newsletter'); return false;}}"; 79 $iFrame = "'<iframe src=\'index.php?option=com_acymailing&ctrl=tag&task=tag&type=news\' width=\'100%\' height=\'100%\' scrolling=\'auto\'></iframe>'"; 80 $script .= "var openTag = true; 97 openTag = !openTag;}"; 98 $iFrame = "'<iframe src=\'index.php?option=com_acymailing&ctrl=template&task=theme&tmpl=component\' width=\'100%\' height=\'100%\' scrolling=\'auto\'></iframe>'"; 99 $script .= "var openTemplate = true;DocBlockReflection.php https://gitlab.com/yousafsyed/easternglamor | PHP | 296 lines
1<?php 2/** 93 $this->reflector = $commentOrReflector; 94 if (!method_exists($commentOrReflector, 'getDocComment')) { 95 throw new Exception\InvalidArgumentException('Reflector must contain method "getDocComment"'); 271 { 272 $str = "DocBlock [ /* DocBlock */ ] {" . PHP_EOL . PHP_EOL; 273 $str .= " - Tags [" . count($this->tags) . "] {" . PHP_EOL; 278 279 $str .= " }" . PHP_EOL; 280 $str .= "}" . PHP_EOL;class.php https://gitlab.com/alexprowars/bitrix | PHP | 228 lines
1<?php 2 161 $parameters = $this->arParams['METADATA']['HANDLER']['PARAMETERS']; 162 if (Loader::includeModule($module) && method_exists($className, $buildMethod)) 163 {AsseticExtension.php https://gitlab.com/freebird/WebApp | PHP | 170 lines
1<?php 2 39 $loader->load('templating_twig.xml'); 40 $loader->load('templating_php.xml'); 41 42 $def = $container->getDefinition('assetic.parameter_bag'); 43 if (method_exists($def, 'setFactory')) { 44 // to be inlined in assetic.xml when dependency on Symfony DependencyInjection is bumped to 2.6Default.php https://gitlab.com/gregtyka/SiberianCMS | PHP | 312 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Default.php 24612 2012-01-21 14:42:30Z sgehrig $ 20 */ 87 */ 88 require_once 'Zend/Ldap/Exception.php'; 89 throw new Zend_Ldap_Exception($this->_ldap, 'counting entries'); 142 } else if (is_array($attributeNameTreatment) && 143 !method_exists($attributeNameTreatment[0], $attributeNameTreatment[1])) { 144 $this->_attributeNameTreatment = self::ATTRIBUTE_TO_LOWER; 245 /** @see Zend_Ldap_Exception */ 246 require_once 'Zend/Ldap/Exception.php'; 247 throw new Zend_Ldap_Exception($this->_ldap, 'getting dn'); 265 /** @see Zend_Ldap_Exception */ 266 require_once 'Zend/Ldap/Exception.php'; 267 if ($this->_current === false) {profile.php https://gitlab.com/0072016/wordpress | PHP | 225 lines
1<?php 2/** 42 if ( ! class_exists( 'Facebook_Settings' ) ) 43 require_once( dirname(__FILE__) . '/settings.php' ); 44 69 if ( ! class_exists( 'Facebook_User' ) ) 70 require_once( dirname( dirname(__FILE__) ) . '/facebook-user.php' ); 71 92 93 if ( ! ( $wp_user && isset( $wp_user->ID ) && method_exists( $wp_user, 'exists' ) && $wp_user->exists() && user_can( $wp_user, 'edit_posts' ) ) ) 94 return; 117 if ( ! class_exists( 'Facebook_WP_Extend' ) ) 118 require_once( $facebook_loader->plugin_directory . 'includes/facebook-php-sdk/class-facebook-wp.php' ); 119 $permissions = Facebook_WP_Extend::get_permissions_by_facebook_user_id( $facebook_user_data['fb_uid'] ); 174 if ( ! class_exists( 'Facebook_WP_Extend' ) ) 175 require_once( dirname( dirname(__FILE__) ) . '/includes/facebook-php-sdk/class-facebook-wp.php' ); 176AbstractToken.php https://bitbucket.org/tippycracker/autokraitis.git | PHP | 286 lines
1<?php 2 90 { 91 if (!($user instanceof UserInterface || (is_object($user) && method_exists($user, '__toString')) || is_string($user))) { 92 throw new \InvalidArgumentException('$user must be an instanceof UserInterface, an object implementing a __toString method, or a primitive string.');DumpDataCollector.php https://gitlab.com/ealexis.t/trends | PHP | 295 lines
1<?php 2 44 $this->fileLinkFormat = $fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format'); 45 $this->charset = $charset ?: ini_get('php.output_encoding') ?: ini_get('default_charset') ?: 'UTF-8'; 46 $this->requestStack = $requestStack; 96 $name = $info->getTemplateName(); 97 $src = method_exists($info, 'getSource') ? $info->getSource() : $info->getEnvironment()->getLoader()->getSource($name); 98 $info = $info->getDebugInfo(); 150 if ($response->headers->has('Content-Type') && false !== strpos($response->headers->get('Content-Type'), 'html')) { 151 $this->dumper = new HtmlDumper('php://output', $this->charset); 152 } else { 152 } else { 153 $this->dumper = new CliDumper('php://output', $this->charset); 154 } 192 { 193 $data = fopen('php://memory', 'r+b'); 194BladeCompiler.php https://gitlab.com/fabian.morales/marlon_becerra | PHP | 714 lines
1<?php namespace Illuminate\View\Compilers; 2 115 // Here we will loop through all of the tokens returned by the Zend lexer and 116 // parse each one into the corresponding valid PHP. We will then have this 117 // template as the correctly rendered PHP that can be rendered natively. 128 $result = ltrim($result, PHP_EOL) 129 .PHP_EOL.implode(PHP_EOL, array_reverse($this->footer)); 130 } 172 /** 173 * Compile Blade comments into valid PHP. 174 * 181 182 return preg_replace($pattern, '<?php /*$1*/ ?>', $value); 183 } 185 /** 186 * Compile Blade echos into valid PHP. 187 *PwSpaceModel.php https://gitlab.com/wuhang2003/phpwind | PHP | 134 lines
1<?php 2Wind::import('SRV:space.bo.PwSpaceBo'); 5 * @author $Author: jieyin $ Foxsee@aliyun.com 6 * @copyright ©2003-2103 phpwind.com 7 * @license http://www.phpwind.com 7 * @license http://www.phpwind.com 8 * @version $Id: PwSpaceModel.php 20893 2012-11-16 07:00:39Z jieyin $ 9 * @package 25 $method = sprintf('model%sList', ucwords($mod)); 26 if (!method_exists($this, $method)) return array(); 27 return $this->$method($limit, $page); 29 $method = sprintf('model%s', ucwords($mod)); 30 if (!method_exists($this, $method)) return array(); 31 return $this->$method($limit);Command.php https://gitlab.com/kimting254/wbms | PHP | 387 lines
1<?php namespace Illuminate\Console; 2 112 { 113 $method = method_exists($this, 'handle') ? 'handle' : 'fire'; 114DocBlockFactory.php https://gitlab.com/alamgircsejnu/AMS-Project-Laravel | PHP | 277 lines
1<?php 2/** 2/** 3 * This file is part of phpDocumentor. 4 * 7 * 8 * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org> 9 * @license http://www.opensource.org/licenses/mit-license.php MIT 9 * @license http://www.opensource.org/licenses/mit-license.php MIT 10 * @link http://phpdoc.org 11 */ 12 13namespace phpDocumentor\Reflection; 14 14 15use phpDocumentor\Reflection\DocBlock\DescriptionFactory; 16use phpDocumentor\Reflection\DocBlock\StandardTagFactory;SonataCoreExtension.php https://gitlab.com/cuza/Clinic_Recods | PHP | 166 lines
1<?php 2 158 $definition = $container->getDefinition('sonata.core.slugify.cocur'); 159 if (method_exists($definition, 'setDeprecated')) { 160 $definition->setDeprecated(true);Environment.php https://gitlab.com/ViniciusP/project-games | PHP | 343 lines
1<?php 2/** 100 // Run the migration 101 if (method_exists($migration, MigrationInterface::CHANGE)) { 102 if ($direction === MigrationInterface::DOWN) { 107 $migration->setAdapter($proxyAdapter); 108 /** @noinspection PhpUndefinedMethodInspection */ 109 $migration->change(); 112 } else { 113 /** @noinspection PhpUndefinedMethodInspection */ 114 $migration->change(); 146 // Run the seeder 147 if (method_exists($seed, SeedInterface::RUN)) { 148 $seed->run();GetterSetterTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 268 lines
1<?php 2/** 7 8class GetterSetterTest extends \PHPUnit_Framework_TestCase 9{ 23 $this->assertTrue( 24 method_exists($classObject, $setterName), 25 "Method " . $setterName . " does not exist in " . $className 51 $this->assertTrue( 52 method_exists($classObject, $getterName), 53 "Method " . $getterName . " does not exist in " . $className 69 * @return array 70 * @SuppressWarnings(PHPMD.ExcessiveMethodLength) 71 */Error.php https://gitlab.com/arthur_quiroga/dystawork | PHP | 267 lines
1<?php 2 17 * is detected in a template, or when rendering a template. Other 18 * errors must use regular PHP exception classes (like when the template 19 * cache directory is not writable for instance). 179 if ($this->name) { 180 if (is_string($this->name) || (is_object($this->name) && method_exists($this->name, '__toString'))) { 181 $name = sprintf('"%s"', $this->name);Smd.php https://gitlab.com/Marwamimo/Crowdrise_Web | PHP | 461 lines
1<?php 2/** 99 $method = 'set' . ucfirst($key); 100 if (method_exists($this, $method)) { 101 $this->$method($value);ArrayUtils.php https://gitlab.com/x33n/ImpressPages | PHP | 275 lines
1<?php 2/** 14/** 15 * Utility class for testing and manipulation of PHP arrays. 16 * 135 * $hash = array( 136 * 1995 => 'Birth of PHP', 137 * 2009 => 'PHP 5.3.0', 137 * 2009 => 'PHP 5.3.0', 138 * 2012 => 'PHP 5.4.0', 139 * ); 217 218 if (method_exists($iterator, 'toArray')) { 219 return $iterator->toArray();Dispatcher.php https://gitlab.com/dzakiafif/cokelatklasik | PHP | 494 lines
1<?php 2 408 409 if (method_exists($class, 'queue')) { 410 $this->callQueueMethodOnHandler($class, $method, $arguments);ValidClassNamePass.php https://gitlab.com/4gdevs/online-class-record-system | PHP | 344 lines
1<?php 2 14use PhpParser\Node; 15use PhpParser\Node\Expr; 16use PhpParser\Node\Expr\ClassConstFetch; 16use PhpParser\Node\Expr\ClassConstFetch; 17use PhpParser\Node\Expr\New_ as NewExpr; 18use PhpParser\Node\Expr\StaticCall; 18use PhpParser\Node\Expr\StaticCall; 19use PhpParser\Node\Stmt; 20use PhpParser\Node\Stmt\Class_ as ClassStmt; 20use PhpParser\Node\Stmt\Class_ as ClassStmt; 21use PhpParser\Node\Stmt\Interface_ as InterfaceStmt; 22use PhpParser\Node\Stmt\Trait_ as TraitStmt; 229 230 if (!method_exists($class, $name) && !method_exists($class, '__callStatic')) { 231 throw $this->createError(sprintf('Call to undefined method %s::%s()', $class, $name), $stmt);reflection_php5.php https://gitlab.com/x33n/platform | PHP | 386 lines
5 * @subpackage UnitTester 6 * @version $Id: reflection_php5.php 2011 2011-04-29 08:22:48Z pp11 $ 7 */ 27 * Checks that a class has been declared. Versions 28 * before PHP5.0.2 need a check that it's not really 29 * an interface. 41 /** 42 * Needed to kill the autoload feature in PHP5 43 * for classes created dynamically. 61 /** 62 * Needed to kill the autoload feature in PHP5 63 * for classes created dynamically. 288 } 289 if (version_compare(phpversion(), '5.1.0', '>=')) { 290 if (in_array($name, array('__get', '__isset', $name == '__unset'))) {UuidValidator.php https://gitlab.com/matijabelec/bigpandadev | PHP | 346 lines
1<?php 2 83 84 if (!is_scalar($value) && !(is_object($value) && method_exists($value, '__toString'))) { 85 throw new UnexpectedTypeException($value, 'string');JsHelper.php https://gitlab.com/nghiep5890/bakery | PHP | 436 lines
4 * 5 * CakePHP : Rapid Development Framework (http://cakephp.org) 6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 12 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @link http://cakephp.org CakePHP(tm) Project 14 * @package Cake.View.Helper 14 * @package Cake.View.Helper 15 * @since CakePHP(tm) v 1.2 16 * @license http://www.opensource.org/licenses/mit-license.php MIT License 120 public function __call($method, $params) { 121 if ($this->{$this->_engineName} && method_exists($this->{$this->_engineName}, $method)) { 122 $buffer = false; 162 * @return string a JavaScript-safe/JSON representation of $val 163 * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/js.html#JsHelper::value 164 */password.php https://gitlab.com/oytunistrator/92five | PHP | 222 lines
1<?php 2/** 2/** 3 * A Compatibility library with PHP 5.5's simplified password hashing API. 4 * 4 * 5 * @author Anthony Ferrara <ircmaxell@php.net> 6 * @license http://www.opensource.org/licenses/mit-license.html MIT License 38 case PASSWORD_BCRYPT: 39 // Note that this is a C constant, but not exposed to PHP, so we don't define it here. 40 $cost = 10; 67 case 'object': 68 if (method_exists($options['salt'], '__tostring')) { 69 $salt = (string) $options['salt'];DBComposite.php https://gitlab.com/djpmedia/silverstripe-framework | PHP | 332 lines
1<?php 2 49 // by intentionally avoiding hasMethod() 50 if ($this->hasField($property) && !method_exists($this, "set$property")) { 51 $this->setField($property, $value); 60 // by intentionally avoiding hasMethod() 61 if ($this->hasField($property) && !method_exists($this, "get$property")) { 62 return $this->getField($property);component.php https://gitlab.com/alexprowars/bitrix | PHP | 273 lines
9endif; 10require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/components/bitrix/webdav/functions.php"); 11 161 CBPDocument::AddDocumentToHistory($arParams['DOCUMENT_ID'], $arParams['OBJECT']->arParams["element_name"], $GLOBALS["USER"]->GetID()); 162 if (method_exists('CIBlockDocumentWebdav', 'TruncateHistory')) 163 CIBlockDocumentWebdav::TruncateHistory($arParams['OBJECT']->wfParams['DOCUMENT_TYPE'], $arParams["DOCUMENT_ID"][2]);random.class.php https://gitlab.com/x33n/ampache | PHP | 362 lines
1<?php 2/* vim:set softtabstop=4 shiftwidth=4 expandtab: */ 78 79 if (!method_exists('Random', $method_name)) { 80 $method_name = 'get_default';MethodProphecy.php https://gitlab.com/ealexis.t/trends | PHP | 437 lines
1<?php 2 48 $double = $objectProphecy->reveal(); 49 if (!method_exists($double, $methodName)) { 50 throw new MethodNotFoundException(sprintf( 71 72 if (version_compare(PHP_VERSION, '7.0', '>=') && true === $reflectedMethod->hasReturnType()) { 73 $type = (string) $reflectedMethod->getReturnType();Command.php https://gitlab.com/alamgircsejnu/AMS-Project-Laravel | PHP | 523 lines
1<?php 2 166 { 167 $method = method_exists($this, 'handle') ? 'handle' : 'fire'; 168Dispatcher.php https://gitlab.com/ealexis.t/trends | PHP | 503 lines
1<?php 2 257 258 $queue = method_exists($event, 'onQueue') ? $event->onQueue() : null; 259 411 412 if (method_exists($class, 'queue')) { 413 $this->callQueueMethodOnHandler($class, $method, $arguments);Webapi.php https://gitlab.com/yousafsyed/easternglamor | PHP | 336 lines
1<?php 2/** 113 $methodName = 'prepare' . ucfirst($product->getDataConfig()['type_id']) . 'Options'; 114 if (method_exists($this, $methodName)) { 115 $data['cartItem']['product_option'] = $this->$methodName($product);editor.php https://gitlab.com/che234/adn | PHP | 343 lines
1<?php 2 107 // load mobile detect class 108 require_once(dirname(__FILE__) . '/mobile.php'); 109 } 122 // Joomla! 1.6+ 123 if (method_exists('JUser', 'getAuthorisedGroups')) { 124 $keys = $user->getAuthorisedGroups();MarkdownDescriptor.php https://gitlab.com/cuza/Clinic_Recods | PHP | 366 lines
1<?php 2 183 184 if (method_exists($definition, 'isShared')) { 185 $output .= "\n".'- Shared: '.($definition->isShared() ? 'yes' : 'no'); 189 190 if (method_exists($definition, 'isAutowired')) { 191 $output .= "\n".'- Autowired: '.($definition->isAutowired() ? 'yes' : 'no'); 336 337 if (method_exists($callable, '__invoke')) { 338 $string .= "\n- Type: `object`";Lexer.php https://gitlab.com/arvidthd/docolist | PHP | 362 lines
1<?php 2 99 if (class_exists('DOMDocument') && 100 method_exists('DOMDocument', 'loadHTML') && 101 !extension_loaded('domxml') 136 137 // once PHP DOM implements native line numbers, or we 138 // hack out something using XSLT, remove this stipulationDefault.php https://gitlab.com/grayhamster/open-social-media-monitoring | PHP | 312 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Default.php 24613 2012-01-21 14:44:26Z sgehrig $ 20 */ 87 */ 88 require_once 'Zend/Ldap/Exception.php'; 89 throw new Zend_Ldap_Exception($this->_ldap, 'counting entries'); 142 } else if (is_array($attributeNameTreatment) && 143 !method_exists($attributeNameTreatment[0], $attributeNameTreatment[1])) { 144 $this->_attributeNameTreatment = self::ATTRIBUTE_TO_LOWER; 245 /** @see Zend_Ldap_Exception */ 246 require_once 'Zend/Ldap/Exception.php'; 247 throw new Zend_Ldap_Exception($this->_ldap, 'getting dn'); 265 /** @see Zend_Ldap_Exception */ 266 require_once 'Zend/Ldap/Exception.php'; 267 if ($this->_current === false) {base.php https://gitlab.com/alexprowars/bitrix | PHP | 185 lines
1<?php 2namespace Bitrix\Landing\Internals; 152 153 if (method_exists($class, 'setAccessFilter')) 154 {class_image.php https://gitlab.com/ptisky/API_prestashop | PHP | 264 lines
1<?php 2/** 116 $class = __NAMESPACE__ . "\\image_$driver"; 117 if (class_exists($class) && method_exists($class, "available")) { 118 eval("\$avail = $class::available();"); 174 175/** Checks if PHP needs some extra extensions to use the image driver. This 176 * static method should be implemented into driver classes like abstractDefault.php https://gitlab.com/yousafsyed/easternglamor | PHP | 312 lines
1<?php 2/** 87 */ 88 #require_once 'Zend/Ldap/Exception.php'; 89 throw new Zend_Ldap_Exception($this->_ldap, 'counting entries'); 142 } else if (is_array($attributeNameTreatment) && 143 !method_exists($attributeNameTreatment[0], $attributeNameTreatment[1])) { 144 $this->_attributeNameTreatment = self::ATTRIBUTE_TO_LOWER; 245 /** @see Zend_Ldap_Exception */ 246 #require_once 'Zend/Ldap/Exception.php'; 247 throw new Zend_Ldap_Exception($this->_ldap, 'getting dn'); 265 /** @see Zend_Ldap_Exception */ 266 #require_once 'Zend/Ldap/Exception.php'; 267 if ($this->_current === false) { 291 /** @see Zend_Ldap_Exception */ 292 #require_once 'Zend/Ldap/Exception.php'; 293 if ($this->_current === false &&core.php https://gitlab.com/eita/agencia-consumo-responsavel | PHP | 339 lines
1<?php 2/* 10 global $json_api; 11 $php = ''; 12 if (!empty($json_api->query->controller)) { 16 if (file_exists("$dir/json-api.php")) { 17 $php = file_get_contents("$dir/json-api.php"); 18 } else { 18 } else { 19 // Check one directory up, in case json-api.php was moved 20 $dir = dirname($dir); 21 if (file_exists("$dir/json-api.php")) { 22 $php = file_get_contents("$dir/json-api.php"); 23 } 24 } 25 if (preg_match('/^\s*Version:\s*(.+)$/m', $php, $matches)) { 26 $version = $matches[1];function.html_radios.php https://gitlab.com/billyprice1/php-pastebin-v3 | PHP | 200 lines
1<?php 2/** 11 * 12 * File: function.html_radios.php<br> 13 * Type: function<br> 34 * 35 * @link http://smarty.php.net/manual/en/language.function.html.radios.php {html_radios} 36 * (Smarty online manual) 46{ 47 require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php'); 48 71 } elseif (is_object($_val)) { 72 if (method_exists($_val, "__toString")) { 73 $selected = smarty_function_escape_special_chars((string) $_val->__toString()); 144 if (is_object($value)) { 145 if (method_exists($value, "__toString")) { 146 $value = (string) $value->__toString();Application.php https://gitlab.com/luisrepo/ClienteWS | PHP | 416 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Application.php 23844 2011-04-06 00:34:03Z wilmoore $ 20 */ 67 * 68 * Initialize application. Potentially initializes include_paths, PHP 69 * settings, and bootstrap class. 79 80 require_once 'Zend/Loader/Autoloader.php'; 81 $this->_autoloader = Zend_Loader_Autoloader::getInstance(); 144 if (!empty($options['phpsettings'])) { 145 $this->setPhpSettings($options['phpsettings']); 146 } 157 $autoloader = $this->getAutoloader(); 158 if (method_exists($autoloader, 'setZfPath')) { 159 $zfPath = $options['autoloaderzfpath'];component.php https://gitlab.com/alexprowars/bitrix | PHP | 409 lines
9 "SHOW_STATUS" => "Y", 10 "EDIT_URL" => $arParams["SEF_MODE"] == "Y" ? "edit/#RESULT_ID#/" : "result_edit.php", 11 ); 15 $arDefaultUrl = array( 16 'EDIT_URL' => $arParams["SEF_MODE"] == "Y" ? "edit/#RESULT_ID#/" : "result_edit.php", 17 ); 49 $arParams['NAME_TEMPLATE'] = empty($arParams['NAME_TEMPLATE']) 50 ? (method_exists('CSite', 'GetNameFormat') ? CSite::GetNameFormat() : "#NAME# #LAST_NAME#") 51 : $arParams["NAME_TEMPLATE"]; 333 { 334 $file_link = "/bitrix/tools/form_show_file.php?rid=".$arParams["RESULT_ID"]."&hash=".$arrAns["USER_FILE_HASH"]."&lang=".LANGUAGE_ID; 335 348 $arResultAnswer["ANSWER_FILE"] = array(); 349 $arResultAnswer["ANSWER_FILE"]["URL"] = "/bitrix/tools/form_show_file.php?rid=".$arParams["RESULT_ID"]."&hash=".$arrA["USER_FILE_HASH"]."&lang=".LANGUAGE_ID; 350 $arResultAnswer["ANSWER_FILE"]["NAME"] = htmlspecialcharsbx($arrA["USER_FILE_NAME"]);utils.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 518 lines
71 { 72 if (method_exists($document, 'addScript')) 73 { 195 { 196 if (method_exists($document, 'addStyleSheet')) 197 { 391 392 if (!method_exists($document, 'loadRenderer')) 393 { 433 * <code> 434 * <?php echo FOFTemplateutils::route('view=categories&layout=tree'); ?> 435 * </code> 449 450 if ($route == 'index.php' || $route == 'index.php?') 451 {Json.php https://gitlab.com/jalon/doadoronline | PHP | 382 lines
1<?php 2/** 100 if (is_object($valueToEncode)) { 101 if (method_exists($valueToEncode, 'toJson')) { 102 return $valueToEncode->toJson(); 102 return $valueToEncode->toJson(); 103 } elseif (method_exists($valueToEncode, 'toArray')) { 104 return static::encode($valueToEncode->toArray(), $cycleCheck, $options); 216 * 217 * This function converts the SimpleXMLElement object into a PHP array by 218 * calling a recursive (protected static) function in this class. Once all 218 * calling a recursive (protected static) function in this class. Once all 219 * the XML elements are stored in the PHP array, it is returned to the caller. 220 * 296 * 297 * This function converts the XML formatted string into a PHP array by 298 * calling a recursive (protected static) function in this class. Then, itInspector.php https://gitlab.com/geeta7/drupal | PHP | 428 lines
1<?php 2/** 22 * 23 * @ingroup php_assert 24 */ 56 * 57 * @see http://php.net/manual/language.types.callable.php 58 */ 121 public static function assertStringable($string) { 122 return is_string($string) || (is_object($string) && method_exists($string, '__toString')); 123 } 140 * 141 * What PHP calls arrays are more formally called maps in most other 142 * programming languages. A map is a datatype that associates values to keys. 151 * 152 * @see http://php.net/manual/language.types.array.php 153 */Lexer.php https://gitlab.com/hop23typhu/list-theme | PHP | 298 lines
1<?php 2 97 class_exists('DOMDocument') && 98 method_exists('DOMDocument', 'loadHTML') && 99 !extension_loaded('domxml') 129 130 // once PHP DOM implements native line numbers, or we 131 // hack out something using XSLT, remove this stipulationOperationResponseParser.php https://gitlab.com/x33n/ampache | PHP | 195 lines
1<?php 2 107 $className = $command->getOperation()->getResponseClass(); 108 if (!method_exists($className, 'fromCommand')) { 109 throw new ResponseClassException("{$className} must exist and implement a static fromCommand() method");functions.php https://gitlab.com/aleritty/yaitb | PHP | 495 lines
1<?php 2namespace GuzzleHttp\Promise; 66 // Return a Guzzle promise that shadows the given promise. 67 if (method_exists($value, 'then')) { 68 $wfn = method_exists($value, 'wait') ? [$value, 'wait'] : null; 68 $wfn = method_exists($value, 'wait') ? [$value, 'wait'] : null; 69 $cfn = method_exists($value, 'cancel') ? [$value, 'cancel'] : null; 70 $promise = new Promise($wfn, $cfn);Registry.php https://gitlab.com/gregtyka/SiberianCMS | PHP | 419 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Registry.php 24593 2012-01-05 20:35:02Z matthew $ 21 */ 25 */ 26require_once 'Zend/Tool/Framework/Registry/Interface.php'; 27 144 if ($this->_config === null) { 145 require_once 'Zend/Tool/Framework/Client/Config.php'; 146 $this->setConfig(new Zend_Tool_Framework_Client_Config()); 171 if ($this->_storage === null) { 172 require_once 'Zend/Tool/Framework/Client/Storage.php'; 173 $this->setStorage(new Zend_Tool_Framework_Client_Storage()); 201 if ($this->_loader === null) { 202 require_once 'Zend/Tool/Framework/Loader/IncludePathLoader.php'; 203 $this->setLoader(new Zend_Tool_Framework_Loader_IncludePathLoader());Registry.php https://gitlab.com/luisrepo/ClienteWS | PHP | 419 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Registry.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 25 */ 26require_once 'Zend/Tool/Framework/Registry/Interface.php'; 27 144 if ($this->_config === null) { 145 require_once 'Zend/Tool/Framework/Client/Config.php'; 146 $this->setConfig(new Zend_Tool_Framework_Client_Config()); 171 if ($this->_storage === null) { 172 require_once 'Zend/Tool/Framework/Client/Storage.php'; 173 $this->setStorage(new Zend_Tool_Framework_Client_Storage()); 201 if ($this->_loader === null) { 202 require_once 'Zend/Tool/Framework/Loader/IncludePathLoader.php'; 203 $this->setLoader(new Zend_Tool_Framework_Loader_IncludePathLoader());Feed.php https://gitlab.com/luisrepo/ClienteWS | PHP | 361 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Feed.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 74 if (!ctype_alpha($value) && strlen($value) > 0) { 75 require_once 'Zend/Feed/Exception.php'; 76 throw new Zend_Feed_Exception('invalid parameter: "block" may only' 79 if (iconv_strlen($value, $this->getEncoding()) > 255) { 80 require_once 'Zend/Feed/Exception.php'; 81 throw new Zend_Feed_Exception('invalid parameter: "block" may only' 110 if (iconv_strlen($value, $this->getEncoding()) > 255) { 111 require_once 'Zend/Feed/Exception.php'; 112 throw new Zend_Feed_Exception('invalid parameter: any "author" may only' 135 if (iconv_strlen($value, $this->getEncoding()) > 255) { 136 require_once 'Zend/Feed/Exception.php'; 137 throw new Zend_Feed_Exception('invalid parameter: any "category" may only'reflection_php5.php https://gitlab.com/vince.omega/mcb-nov-build | PHP | 386 lines
5 * @subpackage UnitTester 6 * @version $Id: reflection_php5.php 1786 2008-04-26 17:32:20Z pp11 $ 7 */ 27 * Checks that a class has been declared. Versions 28 * before PHP5.0.2 need a check that it's not really 29 * an interface. 41 /** 42 * Needed to kill the autoload feature in PHP5 43 * for classes created dynamically. 61 /** 62 * Needed to kill the autoload feature in PHP5 63 * for classes created dynamically. 288 } 289 if (version_compare(phpversion(), '5.1.0', '>=')) { 290 if (in_array($name, array('__get', '__isset', $name == '__unset'))) {ExceptionRenderer.php https://gitlab.com/digaotinfo/abear.com.br | PHP | 296 lines
1<?php 2/** 7 * 8 * PHP 5 9 * 9 * 10 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 11 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 16 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 17 * @link http://cakephp.org CakePHP(tm) Project 18 * @package Cake.Error 18 * @package Cake.Error 19 * @since CakePHP(tm) v 2.0 20 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 48 * Using a subclass of ExceptionRenderer gives you full control over how Exceptions are rendered, you 49 * can configure your class in your core.php, with `Configure::write('Exception.renderer', 'MyClass');` 50 * You should place any custom exception renderers in `app/Lib/Error`.ThrowMatcher.php https://gitlab.com/Laolballs/cbtapp | PHP | 271 lines
3/* 4 * This file is part of PhpSpec, A php toolset to drive emergent 5 * design by specification. 20use PhpSpec\Exception\Example\MatcherException; 21use PhpSpec\Exception\Example\FailureException; 22use PhpSpec\Exception\Example\NotEqualException; 22use PhpSpec\Exception\Example\NotEqualException; 23use PhpSpec\Exception\Fracture\MethodNotFoundException; 24 188 if (count($invalidProperties) > 0) { 189 $withProperties = sprintf(' with'.PHP_EOL.'%s,'.PHP_EOL, 190 implode(",\n", $invalidProperties) 231 list($class, $methodName) = array($subject, $methodName); 232 if (!method_exists($class, $methodName) && !method_exists($class, '__call')) { 233 throw new MethodNotFoundException(Container.php https://gitlab.com/wormen/client.mastodont-engine | PHP | 282 lines
1<?php 2 64 * 65 * Allowing any PHP callable leads to difficult to debug problems 66 * as function names (strings) are callable (creating a function with 102 || isset($this->protected[$this->values[$id]]) 103 || !method_exists($this->values[$id], '__invoke') 104 ) { 159 { 160 if (!method_exists($callable, '__invoke')) { 161 throw new \InvalidArgumentException('Service definition is not a Closure or invokable object.'); 181 { 182 if (!method_exists($callable, '__invoke')) { 183 throw new \InvalidArgumentException('Callable is not a Closure or invokable object.'); 231 232 if (!is_object($this->values[$id]) || !method_exists($this->values[$id], '__invoke')) { 233 throw new \InvalidArgumentException(sprintf('Identifier "%s" does not contain an object definition.', $id));JUnit.php https://gitlab.com/techniconline/kmc | PHP | 454 lines
17 */ 18class PHPUnit_Util_Log_JUnit extends PHPUnit_Util_Printer implements PHPUnit_Framework_TestListener 19{ 118 * 119 * @param PHPUnit_Framework_Test $test 120 * @param Exception $e 157 */ 158 public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time) 159 { 199 "Incomplete Test\n" . 200 PHPUnit_Util_Filter::getFilteredStacktrace($e) 201 ) 364 365 if ($test instanceof PHPUnit_Framework_TestCase) { 366 $class = new ReflectionClass($test);FormSelect.php https://gitlab.com/yousafsyed/easternglamor | PHP | 326 lines
1<?php 2/** 139 // Render hidden element 140 $useHiddenElement = method_exists($element, 'useHiddenElement') 141 && method_exists($element, 'getUnselectedValue') 314 if (!$this->formHiddenHelper) { 315 if (method_exists($this->view, 'plugin')) { 316 $this->formHiddenHelper = $this->view->plugin('formhidden');MethodProphecy.php https://gitlab.com/Laolballs/cbtapp | PHP | 407 lines
1<?php 2 47 $double = $objectProphecy->reveal(); 48 if (!method_exists($double, $methodName)) { 49 throw new MethodNotFoundException(sprintf(Standalone.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 17 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) 18 * @version $Id: Standalone.php 11374 2008-09-12 17:06:22Z ralph $ 19 * @license http://framework.zend.com/license/new-bsd New BSD License 22/** Zend_View_Helper_Placeholder_Registry */ 23require_once 'Zend/View/Helper/Placeholder/Registry.php'; 24 24 25/** Zend_View_Helper_Abstract.php */ 26require_once 'Zend/View/Helper/Abstract.php'; 220 $container = $this->getContainer(); 221 if (method_exists($container, $method)) { 222 $return = call_user_func_array(array($container, $method), $args); 229 230 require_once 'Zend/View/Exception.php'; 231 throw new Zend_View_Exception('Method "' . $method . '" does not exist');Instantiator.php https://gitlab.com/ealexis.t/trends | PHP | 273 lines
1<?php 2/* 35 /** 36 * Markers used internally by PHP to define whether {@see \unserialize} should invoke 37 * the method {@see \Serializable::unserialize()} when dealing with classes implementing 198 { 199 if (\PHP_VERSION_ID >= 50600) { 200 return ! ($this->hasInternalAncestors($reflectionClass) && $reflectionClass->isFinal()); 202 203 return \PHP_VERSION_ID >= 50400 && ! $this->hasInternalAncestors($reflectionClass); 204 } 228 * 229 * @link http://news.php.net/php.internals/74654 230 * 253 { 254 return PHP_VERSION_ID === 50429 || PHP_VERSION_ID === 50513; 255 }Part.php https://gitlab.com/jalon/doadoronline | PHP | 234 lines
1<?php 2/** 140 141 if ($match !== null && method_exists($request, 'getUri')) { 142 if ($this->childRoutes !== null) {Dispatcher.php https://gitlab.com/dzakiafif/cokelatklasik | PHP | 411 lines
1<?php 2 241 242 if (method_exists($command, 'queue')) { 243 $command->queue($queue, $command);Static.php https://gitlab.com/dzakiafif/cokelatklasik | PHP | 158 lines
1<?php 2/* 2/* 3 * This file is part of the PHPUnit_MockObject package. 4 * 4 * 5 * (c) Sebastian Bergmann <sebastian@phpunit.de> 6 * 15 * 16 * @package PHPUnit_MockObject 17 * @author Sebastian Bergmann <sebastian@phpunit.de> 23 */ 24class PHPUnit_Framework_MockObject_Invocation_Static implements PHPUnit_Framework_MockObject_Invocation, PHPUnit_Framework_SelfDescribing 25{ 119 // Check the blacklist before asking PHP reflection to work around 120 // https://bugs.php.net/bug.php?id=53967 121 if ($object->isInternal() &&Generator.php https://gitlab.com/edot92/jpagithub | PHP | 283 lines
1<?php 2/** 6 * @copyright 2014 Barry vd. Heuvel / Fruitcake Studio (http://www.fruitcakestudio.nl) 7 * @license http://www.opensource.org/licenses/mit-license.php MIT 8 * @link https://github.com/barryvdh/laravel-ide-helper 63 * 64 * @param string $format The format to generate the helper in (php/json) 65 * @return string; 66 */ 67 public function generate($format = 'php') 68 { 70 $method = 'generate'.ucfirst($format).'Helper'; 71 if (method_exists($this, $method)) { 72 return $this->$method(); 74 75 return $this->generatePhpHelper(); 76 }Application.php https://gitlab.com/grayhamster/open-social-media-monitoring | PHP | 417 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Application.php 24594 2012-01-05 21:27:01Z matthew $ 20 */ 67 * 68 * Initialize application. Potentially initializes include_paths, PHP 69 * settings, and bootstrap class. 79 80 require_once 'Zend/Loader/Autoloader.php'; 81 $this->_autoloader = Zend_Loader_Autoloader::getInstance(); 144 if (!empty($options['phpsettings'])) { 145 $this->setPhpSettings($options['phpsettings']); 146 } 157 $autoloader = $this->getAutoloader(); 158 if (method_exists($autoloader, 'setZfPath')) { 159 $zfPath = $options['autoloaderzfpath'];Application.php https://gitlab.com/thuan9x/zend | PHP | 417 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Application.php 24101 2011-06-01 02:21:15Z adamlundrigan $ 20 */ 67 * 68 * Initialize application. Potentially initializes include_paths, PHP 69 * settings, and bootstrap class. 79 80 require_once 'Zend/Loader/Autoloader.php'; 81 $this->_autoloader = Zend_Loader_Autoloader::getInstance(); 144 if (!empty($options['phpsettings'])) { 145 $this->setPhpSettings($options['phpsettings']); 146 } 157 $autoloader = $this->getAutoloader(); 158 if (method_exists($autoloader, 'setZfPath')) { 159 $zfPath = $options['autoloaderzfpath'];AbstractFtpAdapter.php https://gitlab.com/techniconline/kmc | PHP | 613 lines
1<?php 2 107 108 if (method_exists($this, $method)) { 109 $this->$method($config[$setting]);ServiceContext.php git://github.com/twilio/twilio-php.git | PHP | 223 lines
1<?php 2 203 $property = $this->$name; 204 if (\method_exists($property, 'getContext')) { 205 return \call_user_func_array(array($property, 'getContext'), $arguments);toggle.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 185 lines
1<?php 2/** 7?> 8<?php 9class ToggleController extends JController{ 41 $function = $table.$task; 42 if(method_exists($this,$function)){ 43 $this->$function($elementId,$value); 120 $function = 'delete'.$table; 121 if(method_exists($this,$function)){ 122 $this->$function($value1,$value2);ThrowMatcher.php https://gitlab.com/dzakiafif/cokelatklasik | PHP | 275 lines
3/* 4 * This file is part of PhpSpec, A php toolset to drive emergent 5 * design by specification. 20use PhpSpec\Exception\Example\MatcherException; 21use PhpSpec\Exception\Example\FailureException; 22use PhpSpec\Exception\Example\NotEqualException; 22use PhpSpec\Exception\Example\NotEqualException; 23use PhpSpec\Exception\Fracture\MethodNotFoundException; 24 190 $withProperties = sprintf( 191 ' with'.PHP_EOL.'%s,'.PHP_EOL, 192 implode(",\n", $invalidProperties) 233 list($class, $methodName) = array($subject, $methodName); 234 if (!method_exists($class, $methodName) && !method_exists($class, '__call')) { 235 throw new MethodNotFoundException(class.wpcom-json-api-sharing-buttons-endpoint.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 385 lines
1<?php 2 14 } else if ( ! class_exists( 'Sharing_Service' ) || ! class_exists( 'Sharing_Source' ) || 15 ( method_exists( 'Jetpack', 'is_module_active' ) && ! Jetpack::is_module_active( 'sharedaddy' ) ) ) { 16 return new WP_Error( 'missing_jetpack_module', 'The Sharing module must be activated in order to use this endpoint', 400 ); 38 39 if ( method_exists( $button, 'get_options' ) ) { 40 // merge get_options() values into response, primarily to accountFilesystemManager.php https://gitlab.com/naufal/overtime-service-final | PHP | 330 lines
1<?php 2 117 118 if (method_exists($this, $driverMethod)) { 119 return $this->{$driverMethod}($config);update.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 449 lines
27 include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version 28 $php_version = phpversion(); 29 48 49 if ( method_exists( $wpdb, 'db_version' ) ) 50 $mysql_version = preg_replace('/[^0-9.].*/', '', $wpdb->db_version()); 68 'version' => $wp_version, 69 'php' => $php_version, 70 'locale' => $locale, 160 case 'load-plugins.php' : 161 case 'load-update.php' : 162 $timeout = HOUR_IN_SECONDS; 233function wp_update_themes() { 234 include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version 235mainControlsPanel.php https://gitlab.com/talueses/SIPVE | PHP | 254 lines
1<?php 2/*******************************************************************************\ 37?> 38<?php 39session_start(); // start up your PHP session! 43 44require_once "../controller/monitorremoto.control.php"; // Class CONTROLLER 45 49 50if (method_exists($obj, $_REQUEST["mainControlsMethod"])){ 51 call_user_func(array($obj, $_REQUEST["mainControlsMethod"])); 89 $(function() { 90 var maxPan = parseInt(<?php echo $obj->maxPan;?>); 91 var minPan = parseInt(<?php echo $obj->minPan;?>); 91 var minPan = parseInt(<?php echo $obj->minPan;?>); 92 var maxTilt = parseInt(<?php echo $obj->maxTilt;?>); 93 var minTilt = parseInt(<?php echo $obj->minTilt;?>);Data.php https://gitlab.com/gregtyka/SiberianCMS | PHP | 563 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Data.php 24593 2012-01-05 20:35:02Z matthew $ 20 */ 116 if ($this->hasItem($item['id'])) { 117 require_once 'Zend/Dojo/Exception.php'; 118 throw new Zend_Dojo_Exception('Overwriting items using addItem() is not allowed'); 134 if (!is_array($items) && (!is_object($items) || !($items instanceof Traversable))) { 135 require_once 'Zend/Dojo/Exception.php'; 136 throw new Zend_Dojo_Exception('Only arrays and Traversable objects may be added to ' . __CLASS__); 227 } else { 228 require_once 'Zend/Dojo/Exception.php'; 229 throw new Zend_Dojo_Exception('Invalid identifier; please use a string or integer'); 356 if (!is_string($json)) { 357 require_once 'Zend/Dojo/Exception.php'; 358 throw new Zend_Dojo_Exception('fromJson() expects JSON input');Data.php https://gitlab.com/luisrepo/ClienteWS | PHP | 563 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Data.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 116 if ($this->hasItem($item['id'])) { 117 require_once 'Zend/Dojo/Exception.php'; 118 throw new Zend_Dojo_Exception('Overwriting items using addItem() is not allowed'); 134 if (!is_array($items) && (!is_object($items) || !($items instanceof Traversable))) { 135 require_once 'Zend/Dojo/Exception.php'; 136 throw new Zend_Dojo_Exception('Only arrays and Traversable objects may be added to ' . __CLASS__); 227 } else { 228 require_once 'Zend/Dojo/Exception.php'; 229 throw new Zend_Dojo_Exception('Invalid identifier; please use a string or integer'); 356 if (!is_string($json)) { 357 require_once 'Zend/Dojo/Exception.php'; 358 throw new Zend_Dojo_Exception('fromJson() expects JSON input');Tabs.php https://gitlab.com/yousafsyed/easternglamor | PHP | 484 lines
1<?php 2/** 11 * Tabs block 12 * @SuppressWarnings(PHPMD.NumberOfChildren) 13 */ 109 * @throws \Exception 110 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 111 */ 309 * @return bool 310 * @SuppressWarnings(PHPMD.BooleanGetMethodName) 311 */ 326 if ($tab instanceof TabInterface) { 327 if (method_exists($tab, 'getTabUrl')) { 328 return $tab->getTabUrl(); 356 if ($tab instanceof TabInterface) { 357 if (method_exists($tab, 'getTabClass')) { 358 return $tab->getTabClass();DocBlock.php https://gitlab.com/techniconline/kmc | PHP | 470 lines
1<?php 2/** 2/** 3 * phpDocumentor 4 * 4 * 5 * PHP Version 5.3 6 * 8 * @copyright 2010-2011 Mike van Riel / Naenius (http://www.naenius.com) 9 * @license http://www.opensource.org/licenses/mit-license.php MIT 10 * @link http://phpdoc.org 12 13namespace phpDocumentor\Reflection; 14 14 15use phpDocumentor\Reflection\DocBlock\Tag; 16use phpDocumentor\Reflection\DocBlock\Context;ProviderTrait.php https://gitlab.com/I-NOZex/quiz | PHP | 243 lines
1<?php 2 26 [ 27 'only' => ['*.php'], 28 'recursive' => false, 197 } 198 if ($column->phpType === 'boolean') { 199 $format = 'boolean'; 201 $format = 'ntext'; 202 } elseif (stripos($column->name, 'time') !== false && $column->phpType === 'integer') { 203 $format = 'datetime'; 223 foreach ($this->_p as $obj) { 224 if (method_exists($obj, $func)) { 225 $c = call_user_func_array(array(&$obj, $func), $args);AbstractNode.php https://gitlab.com/yousafsyed/easternglamor | PHP | 306 lines
1<?php 2/** 2/** 3 * This file is part of PHPMD. 4 * 4 * 5 * Copyright (c) 2008-2012, Manuel Pichler <mapi@phpmd.org>. 6 * All rights reserved. 36 * 37 * @author Manuel Pichler <mapi@phpmd.org> 38 * @copyright 2008-2014 Manuel Pichler. All rights reserved. 38 * @copyright 2008-2014 Manuel Pichler. All rights reserved. 39 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 40 */ 41 42namespace PHPMD; 43init.php https://gitlab.com/che234/smproducciones | PHP | 321 lines
1<?php 2/** @var $gmDB 144 if(isset($settings['commentsBGColor']) || isset($settings['commentsBGAlpha'])) { 145 if(method_exists($gmCore, 'hex2rgb')) { 146 $rgb = implode(',', $gmCore->hex2rgb($allsettings['commentsBGColor'])); 240 jQuery(function() { 241 var settings = <?php echo $json_settings; ?>; 242 var content = <?php echo json_encode($content); ?>; 242 var content = <?php echo json_encode($content); ?>; 243 jQuery('#GmediaGallery_<?php echo $gallery['term_id'] ?>').gmPhantom([content, settings]); 244 }); 286 <div class="gmPhantom_ThumbContainer gmPhantom_ThumbLoader<?php echo(!in_array($item['type'], array('image'))? " mfp-iframe" : ''); ?>" data-ratio="<?php echo $thumb_r; ?>" data-no="<?php echo $i++; ?>"><?php 287 ?><a href="<?php echo $gmCore->upload['url'] . $item['src']; ?>" class="gmPhantom_Thumb"><img style="<?php echo $style; ?>" src="<?php echo $item['thumb']; ?>" alt="<?php echo esc_attr($item['title']); ?>"/></a><?php 288 if(in_array($allsettings['thumbsInfo'], array('label', 'label_bottom')) && ($item['title'] != '')) { 293 <div class="gmPhantom_ThumbLabel"><?php echo $item['title']; ?></div> 294 <div style="display:none;" class="gmPhantom_ThumbCaption"><?php echo $item['text']; ?></div><?php 295 } ?></div><?phpEntityTypeManager.php https://gitlab.com/geeta7/drupal | PHP | 261 lines
1<?php 2 250 } 251 if (method_exists($handler, 'setModuleHandler')) { 252 $handler->setModuleHandler($this->moduleHandler); 253 } 254 if (method_exists($handler, 'setStringTranslation')) { 255 $handler->setStringTranslation($this->stringTranslation);MemcachedEngine.php https://gitlab.com/captain4ever/ufriend_php | PHP | 338 lines
2/** 3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 11 * @link http://cakephp.org CakePHP(tm) Project 12 * @since CakePHP(tm) v 2.5.0 45 * - serialize = string, default => php. The serializer engine used to serialize data. 46 * Available engines are php, igbinary and json. Beside php, the memcached extension 47 * must be compiled with the appropriate serializer support. 64 'json' => Memcached::SERIALIZER_JSON, 65 'php' => Memcached::SERIALIZER_PHP 66 ); 216 * @return bool True if the data was successfully cached, false on failure 217 * @see http://php.net/manual/en/memcache.set.php 218 */Repository.php https://gitlab.com/yousafsyed/easternglamor | PHP | 313 lines
1<?php 2/** 25 */ 26#require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php'; 27 104 if (!$provider instanceof Zend_Tool_Framework_Provider_Interface) { 105 #require_once 'Zend/Tool/Framework/Manifest/Exception.php'; 106 throw new Zend_Tool_Framework_Manifest_Exception( 181 if (!class_exists('Zend_Tool_Framework_Metadata_Dynamic')) { 182 #require_once 'Zend/Tool/Framework/Metadata/Dynamic.php'; 183 } 187 if (!$metadata instanceof Zend_Tool_Framework_Metadata_Interface) { 188 #require_once 'Zend/Tool/Framework/Manifest/Exception.php'; 189 throw new Zend_Tool_Framework_Manifest_Exception( 284 $metadataString = ' ' . $metadata->__toString() . PHP_EOL; 285 //$metadataString = str_replace(PHP_EOL, PHP_EOL . ' ', $metadataString); 286 $string .= $metadataString;Dispatcher.php https://gitlab.com/techniconline/kmc | PHP | 388 lines
1<?php namespace Illuminate\Bus; 2 241 242 if (method_exists($command, 'queue')) { 243 $command->queue($queue, $command);Cache.php https://gitlab.com/luisrepo/ClienteWS | PHP | 207 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Cache.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 51 /** 52 * PHP SOAP wsdl cache constant 53 * 76 if (!array_key_exists($tokenId, self::$_storedToken)) { 77 require_once 'Zend/Service/DeveloperGarden/Exception.php'; 78 throw new Zend_Service_DeveloperGarden_Exception( 105 if (!array_key_exists($tokenId, self::$_storedToken)) { 106 require_once 'Zend/Service/DeveloperGarden/Exception.php'; 107 throw new Zend_Service_DeveloperGarden_Exception( 180 $cache = self::getCache(); 181 if (method_exists($cache, 'clean')) { 182 $cache->clean();Cache.php https://gitlab.com/gregtyka/SiberianCMS | PHP | 207 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Cache.php 24593 2012-01-05 20:35:02Z matthew $ 21 */ 51 /** 52 * PHP SOAP wsdl cache constant 53 * 76 if (!array_key_exists($tokenId, self::$_storedToken)) { 77 require_once 'Zend/Service/DeveloperGarden/Exception.php'; 78 throw new Zend_Service_DeveloperGarden_Exception( 105 if (!array_key_exists($tokenId, self::$_storedToken)) { 106 require_once 'Zend/Service/DeveloperGarden/Exception.php'; 107 throw new Zend_Service_DeveloperGarden_Exception( 180 $cache = self::getCache(); 181 if (method_exists($cache, 'clean')) { 182 $cache->clean();Converter.php https://gitlab.com/axeltizon/magentoV1.9-demopoweraccess | PHP | 336 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) 2014 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 188 189 if($useGetter && !method_exists($pearObject, $rules['getter'])) { 190 $mName = get_class($pearObject)."::".$rules['getter']; 193 194 if($useSetter && !method_exists($mageObject, $rules['setter'])) { 195 $mName = get_class($mageObject)."::".$rules['setter']; 200 201 if($useConverter && false === method_exists($this, $rules['converter'])) { 202 $mName = get_class($this)."::".$rules['converter'];Table.php https://gitlab.com/sandipmavani/rspsms | PHP | 440 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 4.3.2 or newer 6 * 318 { 319 if ( ! method_exists($query, 'list_fields')) 320 { 438 439/* End of file Table.php */ 440/* Location: ./system/libraries/Table.php */AbstractChannel.php https://gitlab.com/shinvdu/rabbitMQ-php-test | PHP | 252 lines
1<?php 2 2 3namespace PhpAmqpLib\Channel; 4 4 5use PhpAmqpLib\Connection\AbstractConnection; 6use PhpAmqpLib\Exception\AMQPOutOfBoundsException; 6use PhpAmqpLib\Exception\AMQPOutOfBoundsException; 7use PhpAmqpLib\Exception\AMQPRuntimeException; 8use PhpAmqpLib\Helper\MiscHelper; 8use PhpAmqpLib\Helper\MiscHelper; 9use PhpAmqpLib\Wire\AMQPReader; 10use PhpAmqpLib\Message\AMQPMessage; 11 12use PhpAmqpLib\Helper\Protocol\Protocol080; 13use PhpAmqpLib\Helper\Protocol\Protocol091;CommonModel.php https://gitlab.com/randydanniswara/website | PHP | 279 lines
1<?php 2/** 145 $repo = $this->getRepository(); 146 if (method_exists($repo, 'getEntity')) { 147 return $repo->getEntity($id);FlashMessenger.php https://gitlab.com/jalon/doadoronline | PHP | 281 lines
1<?php 2/** 270 271 if (method_exists($this->getView(), 'plugin')) { 272 $this->escapeHtmlHelper = $this->view->plugin('escapehtml');View.php https://gitlab.com/steven.r/recargaonline | PHP | 282 lines
1<?php 2/** 2/** 3 * Slim - a micro PHP 5 framework 4 * 171 // Ensure original behavior is maintained. DO NOT invoke stored Closures. 172 if (is_object($args[1]) && method_exists($args[1], '__invoke')) { 173 $this->data->set($args[0], $this->data->protect($args[1]));FeedAbstract.php https://gitlab.com/yousafsyed/easternglamor | PHP | 321 lines
1<?php 2/** 24 */ 25#require_once 'Zend/Feed/Reader.php'; 26 29 */ 30#require_once 'Zend/Feed/Reader/FeedInterface.php'; 31 271 foreach ($this->_extensions as $extension) { 272 if (method_exists($extension, $method)) { 273 return call_user_func_array(array($extension, $method), $args); 275 } 276 #require_once 'Zend/Feed/Exception.php'; 277 throw new Zend_Feed_Exception('Method: ' . $methodAbstractAdapter.php https://gitlab.com/yousafsyed/easternglamor | PHP | 310 lines
1<?php 2/** 105 if (!empty($checksum)) { 106 if (method_exists($this, $checksum)) { 107 return $this->$checksum($value);gallery.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 385 lines
1<?php 2 55 if ( 'carousel' == $instance['link'] ) { 56 require_once plugin_dir_path( realpath( dirname( __FILE__ ) . '/../carousel/jetpack-carousel.php' ) ) . 'jetpack-carousel.php'; 57 85 86 if ( method_exists( $this, $method ) ) 87 echo $this->$method( $args, $instance ); 198 199 require_once plugin_dir_path( realpath( dirname( __FILE__ ) . '/../shortcodes/slideshow.php' ) ) . 'slideshow.php'; 200 269 270 include dirname( __FILE__ ) . '/gallery/templates/form.php'; 271 } 362 363 if ( 'widgets.php' == $pagenow ) { 364 wp_enqueue_media();Compress.php https://gitlab.com/yousafsyed/easternglamor | PHP | 197 lines
1<?php 2/** 24 */ 25#require_once 'Zend/Filter/Interface.php'; 26 78 $method = 'set' . ucfirst($key); 79 if (method_exists($this, $method)) { 80 $this->$method($value); 99 if (!class_exists($adapter)) { 100 #require_once 'Zend/Loader.php'; 101 if (Zend_Loader::isReadable('Zend/Filter/Compress/' . ucfirst($adapter) . '.php')) { 108 if (!$this->_adapter instanceof Zend_Filter_Compress_CompressInterface) { 109 #require_once 'Zend/Filter/Exception.php'; 110 throw new Zend_Filter_Exception("Compression adapter '" . $adapter . "' does not implement Zend_Filter_Compress_CompressInterface"); 137 if (!is_string($adapter)) { 138 #require_once 'Zend/Filter/Exception.php'; 139 throw new Zend_Filter_Exception('Invalid adapter provided; must be string or instance of Zend_Filter_Compress_CompressInterface');Default.php https://gitlab.com/Ltaimao/wecenter | PHP | 312 lines
1<?php 2/** 87 */ 88 //require_once 'Zend/Ldap/Exception.php'; 89 throw new Zend_Ldap_Exception($this->_ldap, 'counting entries'); 142 } else if (is_array($attributeNameTreatment) && 143 !method_exists($attributeNameTreatment[0], $attributeNameTreatment[1])) { 144 $this->_attributeNameTreatment = self::ATTRIBUTE_TO_LOWER; 245 /** @see Zend_Ldap_Exception */ 246 //require_once 'Zend/Ldap/Exception.php'; 247 throw new Zend_Ldap_Exception($this->_ldap, 'getting dn'); 265 /** @see Zend_Ldap_Exception */ 266 //require_once 'Zend/Ldap/Exception.php'; 267 if ($this->_current === false) { 291 /** @see Zend_Ldap_Exception */ 292 //require_once 'Zend/Ldap/Exception.php'; 293 if ($this->_current === false &&NormalizerFormatter.php https://gitlab.com/ealexis.t/trends | PHP | 280 lines
1<?php 2 33 if (!function_exists('json_encode')) { 34 throw new \RuntimeException('PHP\'s json extension is required to use Monolog\'s NormalizerFormatter'); 35 } 93 // TODO 2.0 only check for Throwable 94 if ($data instanceof Exception || (PHP_VERSION_ID > 70000 && $data instanceof \Throwable)) { 95 return $this->normalizeException($data); 98 // non-serializable objects that implement __toString stringified 99 if (method_exists($data, '__toString') && !$data instanceof \JsonSerializable) { 100 $value = $data->__toString(); 176 { 177 if (version_compare(PHP_VERSION, '5.4.0', '>=')) { 178 return json_encode($data, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);Registry.php https://gitlab.com/grayhamster/open-social-media-monitoring | PHP | 419 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Registry.php 24594 2012-01-05 21:27:01Z matthew $ 21 */ 25 */ 26require_once 'Zend/Tool/Framework/Registry/Interface.php'; 27 144 if ($this->_config === null) { 145 require_once 'Zend/Tool/Framework/Client/Config.php'; 146 $this->setConfig(new Zend_Tool_Framework_Client_Config()); 171 if ($this->_storage === null) { 172 require_once 'Zend/Tool/Framework/Client/Storage.php'; 173 $this->setStorage(new Zend_Tool_Framework_Client_Storage()); 201 if ($this->_loader === null) { 202 require_once 'Zend/Tool/Framework/Loader/IncludePathLoader.php'; 203 $this->setLoader(new Zend_Tool_Framework_Loader_IncludePathLoader());Feed.php https://gitlab.com/grayhamster/open-social-media-monitoring | PHP | 361 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Feed.php 24594 2012-01-05 21:27:01Z matthew $ 20 */ 74 if (!ctype_alpha($value) && strlen($value) > 0) { 75 require_once 'Zend/Feed/Exception.php'; 76 throw new Zend_Feed_Exception('invalid parameter: "block" may only' 79 if (iconv_strlen($value, $this->getEncoding()) > 255) { 80 require_once 'Zend/Feed/Exception.php'; 81 throw new Zend_Feed_Exception('invalid parameter: "block" may only' 110 if (iconv_strlen($value, $this->getEncoding()) > 255) { 111 require_once 'Zend/Feed/Exception.php'; 112 throw new Zend_Feed_Exception('invalid parameter: any "author" may only' 135 if (iconv_strlen($value, $this->getEncoding()) > 255) { 136 require_once 'Zend/Feed/Exception.php'; 137 throw new Zend_Feed_Exception('invalid parameter: any "category" may only'