PageRenderTime 553ms queryTime 150ms sortTime 7ms getByIdsTime 85ms findMatchingLines 124ms

100+ results results for 'php method_exists repo:uvegpohar/yii-bootstrap-uvegpohar' (553 ms)

Not the results you expected?
gallery.php https://gitlab.com/hunt9310/ras | 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();
                    
                
class-wp-image-editor-imagick.php https://gitlab.com/thisishayat/itv-2016 | PHP | 533 lines
                    
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(
                    
                
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');
                    
                
methodsTest.php https://gitlab.com/leoplanxxi/dr7-web-buap-2016 | PHP | 365 lines
                    
1<?php
                    
2require_once('../geoPHP.inc');
                    
2require_once('../geoPHP.inc');
                    
3require_once('PHPUnit/Autoload.php');
                    
4
                    
4
                    
5class MethodsTests extends PHPUnit_Framework_TestCase {
                    
6
                    
16        $value = file_get_contents('./input/'.$file);
                    
17        $geometry = geoPHP::load($value, $format);
                    
18
                    
62
                    
63    if (!method_exists($geometry, $method_name)) {
                    
64      $this->fail("Method ".$method_name.'() doesn\'t exists.');
                    
292    // Cannot test methods if GEOS is not intstalled
                    
293    if (!geoPHP::geosInstalled()) return;
                    
294
                    
                
class-config.php https://gitlab.com/remyvianne/krowkaramel | PHP | 305 lines
                    
1<?php
                    
2/**
                    
123		if ( $log_notice && ! $available && defined( 'WP_DEBUG' ) && WP_DEBUG ) {
                    
124			trigger_error( // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_trigger_error
                    
125				sprintf(
                    
125				sprintf(
                    
126					/* translators: %1$s is a PHP class name. */
                    
127					esc_html__(
                    
148		$method = 'enable_' . $feature;
                    
149		if ( ! method_exists( $this, $method ) ) {
                    
150			return self::FEATURE_NOT_AVAILABLE;
                    
153		$method_options = 'ensure_options_' . $feature;
                    
154		if ( method_exists( $this, $method_options ) ) {
                    
155			$this->{ $method_options }();
                    
270		$options = $this->get_feature_options( 'sync' );
                    
271		if ( method_exists( 'Automattic\Jetpack\Sync\Main', 'set_sync_data_options' ) ) {
                    
272			Sync_Main::set_sync_data_options( $options );
                    
                
ListController.php https://gitlab.com/gideonmarked/atls-express | PHP | 486 lines
                    
1<?php namespace Backend\Behaviors;
                    
2
                    
258    {
                    
259        if (method_exists($this->controller, 'onDelete')) {
                    
260            return call_user_func_array([$this->controller, 'onDelete'], func_get_args());
                    
345
                    
346        return implode(PHP_EOL, $collection);
                    
347    }
                    
                
RecordList.php https://gitlab.com/gideonmarked/newlifetrainingcenter-v2 | PHP | 335 lines
                    
1<?php namespace RainLab\Builder\Components;
                    
2
                    
290
                    
291        if (!method_exists($model, $scopeMethod)) {
                    
292            throw new SystemException('Scope method not found.');
                    
                
DumpDataCollector.php https://gitlab.com/guillaumev/alkarama | PHP | 310 lines
                    
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;
                    
73        $trace = DEBUG_BACKTRACE_PROVIDE_OBJECT | DEBUG_BACKTRACE_IGNORE_ARGS;
                    
74        if (PHP_VERSION_ID >= 50400) {
                    
75            $trace = debug_backtrace($trace, 7);
                    
101                        $name = $template->getTemplateName();
                    
102                        $src = method_exists($template, 'getSourceContext') ? $template->getSourceContext()->getCode() : (method_exists($template, 'getSource') ? $template->getSource() : false);
                    
103                        $info = $template->getDebugInfo();
                    
105                            $line = $info[$trace[$i - 1]['line']];
                    
106                            $file = method_exists($template, 'getSourceContext') ? $template->getSourceContext()->getPath() : null;
                    
107
                    
160            } else {
                    
161                $this->dumper = new CliDumper('php://output', $this->charset);
                    
162            }
                    
                
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;
                    
                
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);
                    
                
Converter.php https://gitlab.com/vincent.perdereau/picandparts | 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'];
                    
                
Column.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);
                    
                
Grammar.php https://gitlab.com/ntphuc/FoodyBackend | 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));
                    
                
BaseVarDumper.php https://gitlab.com/afzalpotenza/YII_salon | PHP | 272 lines
                    
1<?php
                    
2/**
                    
56        if ($highlight) {
                    
57            $result = highlight_string("<?php\n" . self::$_output, true);
                    
58            self::$_output = preg_replace('/&lt;\\?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);
                    
                
BladeCompiler.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	 *
                    
                
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    }
                    
                
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';
                    
                
ThemeSuggestions.php https://gitlab.com/guillaumev/alkarama | PHP | 359 lines
                    
1<?php
                    
2/**
                    
253      $method = 'alter' . implode('', $hook_suggestions);
                    
254      if (method_exists($this, $method)) {
                    
255        $methods[] = $method;
                    
                
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];
                    
                
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());
                    
                
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);
                    
                
DocBlockFactory.php https://gitlab.com/FSalazarH/WaitlessWeb | 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;
                    
                
handler.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 306 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
86        $getter = 'get_' . $key;
                    
87        if (method_exists($this, $getter)) {
                    
88            return $this->$getter();
                    
292
                    
293            $replaced = implode(PHP_EOL, array_reverse($reverse));
                    
294            $message = trim($replaced);
                    
                
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);
                    
                
Command.php https://gitlab.com/Sigpot/AirSpot | PHP | 523 lines
                    
1<?php
                    
2
                    
166    {
                    
167        $method = method_exists($this, 'handle') ? 'handle' : 'fire';
                    
168
                    
                
Environment.php https://gitlab.com/alexandresgv/siteentec | 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();
                    
                
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());
                    
                
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 abstract

                    
                
class-mb-include-exclude.php https://gitlab.com/code26/selah | PHP | 379 lines
                    
1<?php
                    
2/**
                    
75			$func = "check_{$by}";
                    
76			if ( ! isset( $conditions[ $by ] ) || ! method_exists( __CLASS__, $func ) ) {
                    
77				continue;
                    
274		 */
                    
275		if ( isset( $GLOBALS['pagenow'] ) && 'user-edit.php' === $GLOBALS['pagenow'] ) {
                    
276			// If edit other's profile, check edited user.
                    
283			return ! empty( $roles );
                    
284		} elseif ( isset( $GLOBALS['pagenow'] ) && 'profile.php' === $GLOBALS['pagenow'] ) {
                    
285			// If edit profile, check current user.
                    
298	protected static function check_edited_user_id( $user_ids ) {
                    
299		if ( isset( $GLOBALS['pagenow'] ) && 'user-edit.php' === $GLOBALS['pagenow'] ) {
                    
300			// If edit other's profile, check edited user.
                    
303			return in_array( $user_id, self::csv_to_array( $user_ids ) );
                    
304		} elseif ( isset( $GLOBALS['pagenow'] ) && 'profile.php' === $GLOBALS['pagenow'] ) {
                    
305			// If edit profile, check current user.
                    
                
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);
                    
                
Json.php https://gitlab.com/rsilveira1987/Expresso | PHP | 339 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Json.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
                    
20 */
                    
26 */
                    
27require_once 'Zend/Json/Expr.php';
                    
28
                    
77
                    
78        require_once 'Zend/Json/Decoder.php';
                    
79        return Zend_Json_Decoder::decode($encodedValue, $objectDecodeType);
                    
103    {
                    
104        if (is_object($valueToEncode) && method_exists($valueToEncode, 'toJson')) {
                    
105            return $valueToEncode->toJson();
                    
115             */
                    
116            require_once "Zend/Json/Encoder.php";
                    
117            $valueToEncode = self::_recursiveJsonExprFinder($valueToEncode, $javascriptExpressions);
                    
                
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;
                    
64
                    
                
PasswordCompatibilityLibrary.php https://gitlab.com/mlnkv/php-login-master | 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'];
                    
                
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 ' . $providerName
                    
                
RouteListCommand.php https://gitlab.com/rmoshiur81/Larave-Grading | PHP | 246 lines
                    
1<?php
                    
2
                    
175    {
                    
176        if (! method_exists($controller, 'getMiddleware')) {
                    
177            return [];
                    
                
function.html_radios.php https://gitlab.com/fangfangchen/xianpipa | 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();
                    
                
Dispatcher.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.6
                    
                
UuidValidator.php https://gitlab.com/reasonat/test8 | 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');
                    
                
Default.php https://gitlab.com/fabiorf/curso-zend1-aula1 | 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) {
                    
                
FilesystemManager.php https://gitlab.com/Sigpot/AirSpot | PHP | 330 lines
                    
1<?php
                    
2
                    
117
                    
118        if (method_exists($this, $driverMethod)) {
                    
119            return $this->{$driverMethod}($config);
                    
                
Lexer.php https://gitlab.com/isdzulqor/Slis-Dev | 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 stipulation
                    
                
JsHelper.php https://gitlab.com/tixture55/cakeATM | 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 */
                    
                
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'))) {
                    
                
BWGControllerTags_bwg.php https://gitlab.com/edgarze188/sunrise | PHP | 238 lines
                    
1<?php
                    
2
                    
25    echo WDWLibrary::message_id($message);
                    
26    if (method_exists($this, $task)) {
                    
27      $this->$task($id);
                    
34  public function display() {
                    
35    require_once WD_BWG_DIR . "/admin/models/BWGModelTags_bwg.php";
                    
36    $model = new BWGModelTags_bwg();
                    
37
                    
38    require_once WD_BWG_DIR . "/admin/views/BWGViewTags_bwg.php";
                    
39    $view = new BWGViewTags_bwg($model);
                    
45    $page = WDWLibrary::get('page');
                    
46    WDWLibrary::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
                    
47  } 
                    
189    $page = WDWLibrary::get('page');
                    
190    WDWLibrary::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
                    
191  }
                    
                
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' );
                    
176
                    
                
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);
                    
                
AbstractToken.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.');
                    
                
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]);
                    
                
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');
                    
194
                    
                
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);
                    
                
Query.php https://gitlab.com/remyvianne/krowkaramel | PHP | 366 lines
                    
1<?php
                    
2declare (strict_types=1);
                    
33use function md5;
                    
34use function method_exists;
                    
35use function reset;
                    
148 }
                    
149 $cache = method_exists(QueryCacheProfile::class, 'getResultCache') ? $this->_queryCacheProfile->getResultCache() : $this->_queryCacheProfile->getResultCacheDriver();
                    
150 assert($cache !== null);
                    
                
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';
                    
114
                    
                
Default.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) {
                    
                
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);
                    
                
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     */
                    
                
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 account
                    
                
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);
                    
                
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;
                    
                
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();
                    
                
ExceptionRenderer.php https://gitlab.com/alexandresgv/siteentec | PHP | 381 lines
                    
1<?php
                    
2/**
                    
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         2.0.0
                    
12 * @since         2.0.0
                    
13 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
14 */
                    
21use Cake\Core\Exception\MissingPluginException;
                    
22use Cake\Error\PHP7ErrorException;
                    
23use Cake\Event\Event;
                    
43 * You can implement application specific exception handling by creating a subclass of
                    
44 * ExceptionRenderer and configure it to be the `exceptionRenderer` in config/error.php
                    
45 *
                    
                
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);
                    
                
Reader.php https://gitlab.com/jjpa2018/dashboard | PHP | 464 lines
                    
24use Maatwebsite\Excel\Transactions\TransactionHandler;
                    
25use PhpOffice\PhpSpreadsheet\Cell\Cell;
                    
26use PhpOffice\PhpSpreadsheet\Reader\Exception;
                    
26use PhpOffice\PhpSpreadsheet\Reader\Exception;
                    
27use PhpOffice\PhpSpreadsheet\Reader\IReader;
                    
28use PhpOffice\PhpSpreadsheet\Spreadsheet;
                    
149     * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
                    
150     * @throws \PhpOffice\PhpSpreadsheet\Exception
                    
151     * @throws NoTypeDetectedException
                    
193     * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
                    
194     * @throws \PhpOffice\PhpSpreadsheet\Exception
                    
195     * @throws NoTypeDetectedException
                    
362     *
                    
363     * @throws \PhpOffice\PhpSpreadsheet\Exception
                    
364     * @throws SheetNotFoundException
                    
                
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		{
                    
                
revslider_admin.php https://gitlab.com/edgarze188/sunrise | PHP | 414 lines
                    
1<?php
                    
2
                    
165					
                    
166			if(method_exists($wpdb, "get_charset_collate"))
                    
167				$charset_collate = $wpdb->get_charset_collate();
                    
208			
                    
209			require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
                    
210			dbDelta($sql);
                    
                
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, it
                    
                
CBaseListView.php https://gitlab.com/muthuvel.ns/imp-file | PHP | 286 lines
                    
1<?php
                    
2/**
                    
157		$method='render'.$matches[1];
                    
158		if(method_exists($this,$method))
                    
159		{
                    
                
ParsedownGravTrait.php https://gitlab.com/asun89/socianovation-web | PHP | 360 lines
                    
1<?php
                    
2namespace Grav\Common\Markdown;
                    
103    {
                    
104        $continuable = in_array($Type, $this->continuable_blocks) || method_exists($this, 'block' . $Type . 'Continue');
                    
105
                    
117    {
                    
118        $completable = in_array($Type, $this->completable_blocks) || method_exists($this, 'block' . $Type . 'Complete');
                    
119
                    
322
                    
323                $url['query'] = http_build_query($actions, null, '&', PHP_QUERY_RFC3986);
                    
324            }
                    
                
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);
                    
                
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);
                    
                
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'))) {
                    
                
Dispatcher.php https://gitlab.com/heruujoko/ilearnman | PHP | 430 lines
                    
1<?php
                    
2
                    
249
                    
250        if (method_exists($command, 'queue')) {
                    
251            return $command->queue($queue, $command);
                    
                
Container.php https://gitlab.com/ramos.lauty/softlord | 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));
                    
                
ThrowMatcher.php https://gitlab.com/judielsm/Handora | 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(
                    
                
FilesystemAdapter.php https://gitlab.com/milton2913/myBlog | PHP | 433 lines
                    
1<?php
                    
2
                    
164     */
                    
165    public function prepend($path, $data, $separator = PHP_EOL)
                    
166    {
                    
181     */
                    
182    public function append($path, $data, $separator = PHP_EOL)
                    
183    {
                    
282
                    
283        if (method_exists($adapter, 'getUrl')) {
                    
284            return $adapter->getUrl($path);
                    
                
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);
                    
                
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'];
                    
                
modaccessibleobject.class.php https://gitlab.com/haque.mdmanzurul/modx-improve-carolyn | PHP | 286 lines
                    
1<?php
                    
2/**
                    
33                if (!$userid) $userid = '0';
                    
34                $xpdo->log(xPDO::LOG_LEVEL_INFO, "Principal {$userid} does not have permission to load object of class {$instance->_class} with primary key: " . (is_object($instance) && method_exists($instance,'getPrimaryKey') ? print_r($instance->getPrimaryKey(), true) : ''));
                    
35            }
                    
                
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]);
                    
                
FilesystemAdapter.php https://gitlab.com/Sigpot/AirSpot | 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    {
                    
240            return '/storage/'.$path;
                    
241        } elseif (method_exists($adapter, 'getUrl')) {
                    
242            return $adapter->getUrl($path);
                    
                
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) {
                    
                
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();
                    
                
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    }
                    
                
Dispatcher.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);
                    
                
file_info_context_coursecat.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 302 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
81        $methodname = "get_area_{$component}_{$filearea}";
                    
82        if (method_exists($this, $methodname)) {
                    
83            return $this->$methodname($itemid, $filepath, $filename);
                    
118        $filename = is_null($filename) ? '.' : $filename;
                    
119        $urlbase = $CFG->wwwroot.'/pluginfile.php';
                    
120        if (!$storedfile = $fs->get_file($this->context->id, 'coursecat', 'description', 0, $filepath, $filename)) {
                    
192        global $DB, $CFG;
                    
193        require_once($CFG->libdir.'/modinfolib.php');
                    
194
                    
                
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);
                    
                
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();
                    
                
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`";
                    
                
front.php https://gitlab.com/Gashler/sg | PHP | 289 lines
                    
1<?php
                    
2defined('WYSIJA') or die('Restricted access');
                    
16        // init shortcode [wysija_archive]
                    
17        require_once(WYSIJA_CORE.'controller.php');
                    
18        require_once(WYSIJA_CORE.'module'.DS.'module.php');// @todo: move to autoloader
                    
33                $this->controller=WYSIJA::get($paramscontroller,'controller');
                    
34                if(isset($_REQUEST['action']) && method_exists($this->controller, $_REQUEST['action'])){
                    
35                    add_action('init',array($this->controller,$_REQUEST['action']));
                    
62                   // we need this condition otherwise we will send two confirmation emails when on ms with buddypress
                    
63                    if(!WYSIJA::is_plugin_active('buddypress/bp-loader.php')){
                    
64                        add_filter('wpmu_validate_user_signup',  array($this,'registerms_posted'), 60,3);
                    
71               // special case when buddypress is activated
                    
72               if(WYSIJA::is_plugin_active('buddypress/bp-loader.php')){
                    
73                    add_action('bp_after_signup_profile_fields', array($this,'register_form_bp_extend'));
                    
276        preg_match_all('/\<div class="wysija-register">(.*?)\<\/div>/i',$content,$matches);
                    
277        if(!empty($matches[1]) && count($matches[1])>0)   require_once(WYSIJA_WIDGETS.'wysija_nl.php');
                    
278        foreach($matches[1] as $key => $mymatch){
                    
                
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 &&
                    
                
base.php https://gitlab.com/alexprowars/bitrix | PHP | 185 lines
                    
1<?php
                    
2namespace Bitrix\Landing\Internals;
                    
152
                    
153		if (method_exists($class, 'setAccessFilter'))
                    
154		{
                    
                
publicize.php https://gitlab.com/hunt9310/ras | PHP | 307 lines
                    
1<?php
                    
2/**
                    
21
                    
22		$this->in_jetpack = ( class_exists( 'Jetpack' ) && method_exists( 'Jetpack', 'enable_module_configurable' ) ) ? true : false;
                    
23
                    
23
                    
24		if ( $this->in_jetpack && method_exists( 'Jetpack', 'module_configuration_load' ) ) {
                    
25			Jetpack::enable_module_configurable( __FILE__ );
                    
28
                    
29		require_once dirname( __FILE__ ) . '/publicize/publicize.php';
                    
30
                    
31		if ( $this->in_jetpack )
                    
32			require_once dirname( __FILE__ ) . '/publicize/publicize-jetpack.php';
                    
33		else {
                    
33		else {
                    
34			require_once dirname( dirname( __FILE__ ) ) . '/mu-plugins/keyring/keyring.php';
                    
35			require_once dirname( __FILE__ ) . '/publicize/publicize-wpcom.php';
                    
                
Default.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 &&
                    
                
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"]);
                    
                
Inspector.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 stipulation
                    
                
OperationResponseParser.php https://gitlab.com/x33n/respond | 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");
                    
                
Registry.php https://gitlab.com/fabiorf/curso-zend1-aula1 | 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());
                    
                
Abstract.php https://gitlab.com/rsilveira1987/Expresso | PHP | 317 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Abstract.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php';
                    
27
                    
30 */
                    
31require_once 'Zend/Tool/Framework/Registry.php';
                    
32
                    
73            $setMethodName = 'set' . $optionName;
                    
74            if (method_exists($this, $setMethodName)) {
                    
75                $this->{$setMethodName}($optionValue);
                    
111        if (!$this->_debugLogger instanceof Zend_Log) {
                    
112            require_once 'Zend/Log.php';
                    
113            require_once 'Zend/Log/Writer/Null.php';
                    
                
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);
                    
                
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;
                    
                
InputHelper.php https://gitlab.com/mautic-master/mautic | PHP | 397 lines
                    
1<?php
                    
2/**
                    
98                            $useMask = $mask[$k];
                    
99                        } elseif (method_exists('Mautic\CoreBundle\Helper\InputHelper', $mask[$k])) {
                    
100                            $useMask = $mask[$k];
                    
102                    }
                    
103                } elseif (method_exists('Mautic\CoreBundle\Helper\InputHelper', $mask)) {
                    
104                    $useMask = $mask;
                    
116            return $value;
                    
117        } elseif (is_string($mask) && method_exists('Mautic\CoreBundle\Helper\InputHelper', $mask)) {
                    
118            if (is_array($value)) {
                    
                
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'
                    
                
ObjectManager.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 345 lines
                    
1<?php
                    
2/**
                    
12/**
                    
13 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
14 */
                    
29     *
                    
30     * @var \PHPUnit_Framework_TestCase
                    
31     */
                    
36     *
                    
37     * @param \PHPUnit_Framework_TestCase $testObject
                    
38     */
                    
38     */
                    
39    public function __construct(\PHPUnit_Framework_TestCase $testObject)
                    
40    {
                    
48     * @param array $originalArguments
                    
49     * @return null|object|\PHPUnit_Framework_MockObject_MockObject
                    
50     */
                    
                
CommonModel.php https://gitlab.com/e0/mautic | PHP | 279 lines
                    
1<?php
                    
2/**
                    
145            $repo = $this->getRepository();
                    
146            if (method_exists($repo, 'getEntity')) {
                    
147                return $repo->getEntity($id);
                    
                
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(
                    
                
PhpDumperTest.php https://gitlab.com/pr0055/symfonypizza | PHP | 298 lines
                    
21
                    
22class PhpDumperTest extends \PHPUnit_Framework_TestCase
                    
23{
                    
34
                    
35        $this->assertStringEqualsFile(self::$fixturesPath.'/php/services1.php', $dumper->dump(), '->dump() dumps an empty container as an empty PHP class');
                    
36        $this->assertStringEqualsFile(self::$fixturesPath.'/php/services1-1.php', $dumper->dump(array('class' => 'Container', 'base_class' => 'AbstractContainer', 'namespace' => 'Symfony\Component\DependencyInjection\Dump')), '->dump() takes a class and a base_class options');
                    
66        $dumper = new PhpDumper($container);
                    
67        $this->assertStringEqualsFile(self::$fixturesPath.'/php/services10.php', $dumper->dump(), '->dump() dumps an empty container as an empty PHP class');
                    
68    }
                    
254    {
                    
255        require_once self::$fixturesPath.'/php/services9.php';
                    
256        require_once self::$fixturesPath.'/includes/foo.php';
                    
284
                    
285        $this->assertEquals(file_get_contents(self::$fixturesPath.'/php/services24.php'), $dumper->dump());
                    
286    }
                    
                
Dispatcher.php https://gitlab.com/vincetang/mtweb | PHP | 411 lines
                    
1<?php
                    
2
                    
241
                    
242        if (method_exists($command, 'queue')) {
                    
243            $command->queue($queue, $command);
                    
                
caldav-PROPFIND.php https://gitlab.com/tiggerben/davical | PHP | 284 lines
                    
1<?php
                    
2/**
                    
14
                    
15require_once('iCalendar.php');
                    
16require_once('XMLDocument.php');
                    
16require_once('XMLDocument.php');
                    
17require_once('DAVResource.php');
                    
18
                    
43        foreach( $subprop AS $k => $v ) {
                    
44          if ( is_object($v) && method_exists($v,'GetTag') ) $property_list[] = $v->GetNSTag();
                    
45        }
                    
147            if ( $resource->IsExternal() ) {
                    
148              require_once("external-fetch.php");
                    
149              update_external ( $resource );
                    
264	if ( $resource->IsExternal() ) {
                    
265		require_once("external-fetch.php");
                    
266		update_external ( $resource );
                    
                
 

Source

Language