100+ results for 'php func_get_arg'
Not the results you expected?
ImageSize.php (https://gitlab.com/luisrepo/ClienteWS) PHP · 364 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: ImageSize.php 23775 2011-03-01 17:25:24Z ralph $
20 */
23 * @see Zend_Validate_Abstract
24 */
25 require_once 'Zend/Validate/Abstract.php';
27 /**
131 $options = array('minwidth' => $options);
132 }
133 $argv = func_get_args();
134 array_shift($argv);
135 $options['minheight'] = array_shift($argv);
class-wp-walker.php (https://gitlab.com/WPonEB/WPonEB) PHP · 425 lines
SelectExtender.php (https://gitlab.com/reasonat/test8) PHP · 536 lines
1 <?php
3 namespace Drupal\Core\Database\Query;
73 */
74 public function hasAllTags() {
75 return call_user_func_array(array($this->query, 'hasAllTags'), func_get_args());
76 }
80 */
81 public function hasAnyTag() {
82 return call_user_func_array(array($this->query, 'hasAnyTag'), func_get_args());
83 }
class-wp-walker.php (https://gitlab.com/Blueprint-Marketing/interoccupy.net) PHP · 397 lines
zend_lucene.php (https://github.com/TheDgtl/customisation-db.git) PHP · 445 lines
1 <?php
2 /**
3 * File containing the ezcSearchQueryZendLucene class.
167 public function select()
168 {
169 $args = func_get_args();
170 $cols = ezcSearchQueryTools::arrayFlatten( $args );
171 $this->resultFields = array_merge( $this->resultFields, $cols );
192 public function highlight()
193 {
194 $args = func_get_args();
195 $cols = ezcSearchQueryTools::arrayFlatten( $args );
196 $this->highlightFields = array_merge( $this->highlightFields, $cols );
334 public function lOr()
335 {
336 $args = func_get_args();
337 if ( count( $args ) < 1 )
338 {
InArray.php (https://github.com/quarkness/piwik.git) PHP · 204 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: InArray.php 23775 2011-03-01 17:25:24Z ralph $
20 */
23 * @see Zend_Validate_Abstract
24 */
25 // require_once 'Zend/Validate/Abstract.php';
27 /**
74 $options = $options->toArray();
75 } else if (!is_array($options)) {
76 // require_once 'Zend/Validate/Exception.php';
77 throw new Zend_Validate_Exception('Array expected as parameter');
78 } else {
Grammar.php (https://github.com/sergiosgc/Structures_Grammar.git) PHP · 407 lines
1 <?php
2 /* vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker: */
3 namespace sergiosgc;
175 public function &addContextFreeRule()
176 {
177 $symbols = func_get_args();
178 if (count($symbols) == 0) throw new Structures_Grammar_Exception('At least one symbol is needed in a context-free grammar rule');
179 foreach($symbols as $i => $symbol) if (!($symbol instanceof Structures_Grammar_Symbol)) $symbols[$i] = Structures_Grammar_Symbol::create($symbol);
FilesSize.php (https://gitlab.com/Ltaimao/wecenter) PHP · 164 lines
1 <?php
2 /**
3 * Zend Framework
23 * @see Zend_Validate_File_Size
24 */
25 //require_once 'Zend/Validate/File/Size.php';
27 /**
77 $options = array('max' => $options);
78 } elseif (!is_array($options)) {
79 //require_once 'Zend/Validate/Exception.php';
80 throw new Zend_Validate_Exception('Invalid options to validator provided');
81 }
83 if (1 < func_num_args()) {
84 $argv = func_get_args();
85 array_shift($argv);
86 $options['max'] = array_shift($argv);
mysql_login.php (https://github.com/dlowe/aichallenge.git) PHP · 161 lines
FilesystemAdapter.php (https://gitlab.com/Sigpot/AirSpot) PHP · 383 lines
1 <?php
3 namespace Illuminate\Filesystem;
120 * @return int
121 */
122 public function prepend($path, $data, $separator = PHP_EOL)
123 {
124 if ($this->exists($path)) {
136 * @return int
137 */
138 public function append($path, $data, $separator = PHP_EOL)
139 {
140 if ($this->exists($path)) {
153 public function delete($paths)
154 {
155 $paths = is_array($paths) ? $paths : func_get_args();
157 foreach ($paths as $path) {
FilesSize.php (https://gitlab.com/rsilveira1987/Expresso) PHP · 164 lines
1 <?php
2 /**
3 * Zend Framework
23 * @see Zend_Validate_File_Size
24 */
25 require_once 'Zend/Validate/File/Size.php';
27 /**
77 $options = array('max' => $options);
78 } elseif (!is_array($options)) {
79 require_once 'Zend/Validate/Exception.php';
80 throw new Zend_Validate_Exception('Invalid options to validator provided');
81 }
83 if (1 < func_num_args()) {
84 $argv = func_get_args();
85 array_shift($argv);
86 $options['max'] = array_shift($argv);
DateTest.php (https://gitlab.com/Iftekhar_ramim/AtomicProjects_127301_B21) PHP · 188 lines
12 define('PHPEXCEL_ROOT', APPLICATION_PATH . '/');
13 }
14 require_once(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
15 }
50 $expectedResult += gmmktime(0,0,0);
51 }
52 $result = call_user_func_array(array('PHPExcel_Shared_Date','ExcelToPHP'),$args);
53 $this->assertEquals($expectedResult, $result);
54 }
177 $expectedResult += gmmktime(0,0,0);
178 }
179 $result = call_user_func_array(array('PHPExcel_Shared_Date','ExcelToPHP'),$args);
180 $this->assertEquals($expectedResult, $result);
181 }
FilesSize.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 164 lines
1 <?php
2 /**
3 * Zend Framework
23 * @see Zend_Validate_File_Size
24 */
25 #require_once 'Zend/Validate/File/Size.php';
27 /**
77 $options = array('max' => $options);
78 } elseif (!is_array($options)) {
79 #require_once 'Zend/Validate/Exception.php';
80 throw new Zend_Validate_Exception('Invalid options to validator provided');
81 }
83 if (1 < func_num_args()) {
84 $argv = func_get_args();
85 array_shift($argv);
86 $options['max'] = array_shift($argv);
Connection.php (https://gitlab.com/martinstti/silex-microframework-rest) PHP · 150 lines
Boolean.php (https://github.com/MontmereLimited/ZendFramework-v1.git) PHP · 375 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Boolean.php 23775 2011-03-01 17:25:24Z ralph $
20 */
23 * @see Zend_Filter_Interface
24 */
25 // // // // // // // // // // require_once 'Zend/Filter/Interface.php';
27 /**
53 self::EMPTY_ARRAY => 'array',
54 self::NULL => 'null',
55 self::PHP => 'php',
56 self::FALSE_STRING => 'false',
57 self::YES => 'yes',
ResponseHeader.php (https://github.com/MontmereLimited/ZendFramework-v1.git) PHP · 400 lines
124 if (!in_array($assertType, $this->_assertTypes)) {
125 // // // // // // // // // // require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
126 throw new Zend_Test_PHPUnit_Constraint_Exception(sprintf('Invalid assertion type "%s" provided to %s constraint', $assertType, __CLASS__));
164 case self::ASSERT_HEADER_REGEX:
165 if (4 > $argc) {
166 // // // // // // // // // // require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
167 throw new Zend_Test_PHPUnit_Constraint_Exception('Both a header name and content to match are required for ' . __FUNCTION__);
173 : $this->_headerRegex($response, $header, $match);
174 default:
175 // // // // // // // // // // require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
176 throw new Zend_Test_PHPUnit_Constraint_Exception('Invalid assertion type ' . __FUNCTION__);
190 public function fail($other, $description, $not = false)
191 {
192 // // // // // // // // // // require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
193 switch ($this->_assertType) {
194 case self::ASSERT_RESPONSE_CODE:
Snapshot.php (https://gitlab.com/jjpa2018/dashboard) PHP · 435 lines
1 <?php declare(strict_types=1);
2 /*
3 * This file is part of sebastian/global-state.
4 *
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
6 *
7 * For the full copyright and license information, please view the LICENSE
13 use function array_merge;
14 use function array_reverse;
15 use function func_get_args;
16 use function get_declared_classes;
17 use function get_declared_interfaces;
380 private function enumerateObjectsAndResources($variable): array
381 {
382 if (isset(func_get_args()[1])) {
383 $processed = func_get_args()[1];
capabilities.php (https://github.com/itspriddle/itt-capstone.git) PHP · 421 lines
1 <?php
3 class WP_Roles {
228 $cap = $this->translate_level_to_cap($cap);
230 $args = array_slice(func_get_args(), 1);
231 $args = array_merge(array($cap, $this->id), $args);
232 $caps = call_user_func_array('map_meta_cap', $args);
250 // Map meta capabilities to primitive capabilities.
251 function map_meta_cap($cap, $user_id) {
252 $args = array_slice(func_get_args(), 2);
253 $caps = array();
312 $current_user = wp_get_current_user();
314 $args = array_slice(func_get_args(), 1);
315 $args = array_merge(array($capability), $args);
ImageSize.php (https://bitbucket.org/alexandretaz/maniac_divers.git) PHP · 379 lines
InArray.php (https://github.com/Martin1982/IBMessagingWorkshopServer.git) PHP · 204 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: InArray.php 20358 2010-01-17 19:03:49Z thomas $
20 */
23 * @see Zend_Validate_Abstract
24 */
25 // require_once 'Zend/Validate/Abstract.php';
27 /**
74 $options = $options->toArray();
75 } else if (!is_array($options)) {
76 // require_once 'Zend/Validate/Exception.php';
77 throw new Zend_Validate_Exception('Array expected as parameter');
78 } else {
mysql.php (https://github.com/archoo/electionleaflets.git) PHP · 120 lines
1 <?php
2 // +----------------------------------------------------------------------+
3 // | PHP versions 4 and 5 |
8 // +----------------------------------------------------------------------+
9 // | MDB2 is a merge of PEAR DB and Metabases that provides a unified DB |
10 // | API as well as database abstraction for PHP applications. |
11 // | This LICENSE is in the BSD license style. |
12 // | |
43 // +----------------------------------------------------------------------+
44 //
45 // $Id: mysql.php,v 1.1 2007/09/21 08:37:02 richard Exp $
46 //
48 require_once 'MDB2/Driver/Function/Common.php';
50 /**
FilesSize.php (https://github.com/mrbanzai/zf2.git) PHP · 164 lines
ImageSize.php (https://github.com/richhl/kalturaCE.git) PHP · 366 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: ImageSize.php 18148 2009-09-16 19:27:43Z thomas $
20 */
23 * @see Zend_Validate_Abstract
24 */
25 require_once 'Zend/Validate/Abstract.php';
27 /**
133 $options = array('minwidth' => $options);
134 }
135 $argv = func_get_args();
136 array_shift($argv);
137 $options['minheight'] = array_shift($argv);
ImageSize.php (https://github.com/grandison/budo16.git) PHP · 370 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: ImageSize.php 16971 2009-07-22 18:05:45Z mikaelkael $
20 */
23 * @see Zend_Validate_Abstract
24 */
25 // require_once 'Zend/Validate/Abstract.php';
27 /**
137 $options = array('minwidth' => $options);
138 }
139 $argv = func_get_args();
140 array_shift($argv);
141 $options['minheight'] = array_shift($argv);
InArray.php (https://bitbucket.org/haichau59/manga.git) PHP · 204 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: InArray.php 24594 2012-01-05 21:27:01Z matthew $
20 */
23 * @see Zend_Validate_Abstract
24 */
25 //require_once 'Zend/Validate/Abstract.php';
27 /**
74 $options = $options->toArray();
75 } else if (!is_array($options)) {
76 //require_once 'Zend/Validate/Exception.php';
77 throw new Zend_Validate_Exception('Array expected as parameter');
78 } else {
DomQuery.php (https://github.com/sitengine/sitengine.git) PHP · 379 lines
2 /** PHPUnit_Framework_Constraint */
3 require_once 'PHPUnit/Framework/Constraint.php';
5 /** Zend_Dom_Query */
15 * @license New BSD {@link http://framework.zend.com/license/new-bsd}
16 */
17 class Zend_Test_PHPUnit_Constraint_DomQuery extends PHPUnit_Framework_Constraint
18 {
19 /**#@+
160 case self::ASSERT_CONTENT_COUNT_MAX:
161 if (3 > $argc) {
162 require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
163 throw new Zend_Test_PHPUnit_Constraint_Exception('No count provided against which to compare');
187 public function fail($other, $description, $not = false)
188 {
189 require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
190 switch ($this->_assertType) {
191 case self::ASSERT_CONTENT_CONTAINS:
functions.php (https://gitlab.com/alexandresgv/siteentec) PHP · 226 lines
1 <?php
2 /**
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
5 *
9 *
10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
11 * @link http://cakephp.org CakePHP(tm) Project
12 * @since 3.0.0
13 * @license http://www.opensource.org/licenses/mit-license.php MIT License
96 * @param mixed $args Array with arguments or multiple arguments in function.
97 * @return string|null Plural form of translated string.
98 * @link http://book.cakephp.org/3.0/en/core-libraries/global-constants-and-functions.html#__dn
99 */
100 function __dn($domain, $singular, $plural, $count, $args = null)
class.wp-dependencies.php (https://gitlab.com/darmawan.fatria/df-skp-2014) PHP · 509 lines
bootstrap.php (https://github.com/toopay/gas-orm.git) PHP · 230 lines
26 require_once GASPATH.'classes'.DIRECTORY_SEPARATOR.'core.php';
27 require_once GASPATH.'classes'.DIRECTORY_SEPARATOR.'data.php';
28 require_once GASPATH.'classes'.DIRECTORY_SEPARATOR.'janitor.php';
29 require_once GASPATH.'classes'.DIRECTORY_SEPARATOR.'orm.php';
30 require_once GASPATH.'interfaces'.DIRECTORY_SEPARATOR.'extension.php';
136 * global is_php method
137 */
138 function is_php($version = '5.0.0')
139 {
140 static $_is_php;
143 if ( ! isset($_is_php[$version]))
144 {
145 $_is_php[$version] = (version_compare(PHP_VERSION, $version) < 0) ? FALSE : TRUE;
146 }
ResponseHeader.php (https://github.com/MarcelloDuarte/zf2.git) PHP · 395 lines
1 <?php
2 /**
3 * Zend Framework
15 * @category Zend
16 * @package Zend_Test
17 * @subpackage PHPUnit
18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
23 * @namespace
24 */
25 namespace Zend\Test\PHPUnit\Constraint;
26 use Zend\Controller\Response;
28 /**
29 * Response header PHPUnit Constraint
30 *
31 * @uses PHPUnit_Framework_Constraint
InArray.php (https://github.com/timglabisch/pimcore.git) PHP · 204 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: InArray.php 24593 2012-01-05 20:35:02Z matthew $
20 */
23 * @see Zend_Validate_Abstract
24 */
25 // require_once 'Zend/Validate/Abstract.php';
27 /**
74 $options = $options->toArray();
75 } else if (!is_array($options)) {
76 // require_once 'Zend/Validate/Exception.php';
77 throw new Zend_Validate_Exception('Array expected as parameter');
78 } else {
node.php (https://github.com/ShadowCross/croogo.git) PHP · 244 lines
1 <?php
2 /**
3 * Node
4 *
5 * PHP version 5
6 *
7 * @category Model
9 * @version 1.0
10 * @author Fahad Ibnay Heylaal <contact@fahad19.com>
11 * @license http://www.opensource.org/licenses/mit-license.php The MIT License
12 * @link http://www.croogo.org
13 */
206 function isUniquePerType($fields, $or = true) {
207 if (!is_array($fields)) {
208 $fields = func_get_args();
209 if (is_bool($fields[count($fields) - 1])) {
210 $or = $fields[count($fields) - 1];
MockHandler.php (https://gitlab.com/aleritty/yaitb) PHP · 163 lines
SearchRequest.php (https://bitbucket.org/openplacement/sherlock.git) PHP · 348 lines
1 <?php
2 /**
3 * User: Zachary Tong
81 {
82 $this->params['index'] = array();
83 $args = func_get_args();
84 foreach ($args as $arg) {
85 $this->params['index'][] = $arg;
101 {
102 $this->params['type'] = array();
103 $args = func_get_args();
104 foreach ($args as $arg) {
105 $this->params['type'][] = $arg;
134 public function sort($value)
135 {
136 $args = func_get_args();
138 //single param, array of sorts
MY_Table.php (https://github.com/netconstructor/OpenVBX.git) PHP · 210 lines
1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2 /**
3 * "The contents of this file are subject to the Mozilla Public License
52 function add_id_row($id, $data)
53 {
54 $args = func_get_args();
55 array_shift($args);
56 $this->rows[] = (is_array($data)) ? $data : $args;
mysql.php (https://github.com/Getty/historical-php-rapidev.git) PHP · 120 lines
1 <?php
2 // +----------------------------------------------------------------------+
3 // | PHP versions 4 and 5 |
8 // +----------------------------------------------------------------------+
9 // | MDB2 is a merge of PEAR DB and Metabases that provides a unified DB |
10 // | API as well as database abstraction for PHP applications. |
11 // | This LICENSE is in the BSD license style. |
12 // | |
43 // +----------------------------------------------------------------------+
44 //
45 // $Id: mysql.php,v 1.11 2007/01/12 11:29:12 quipo Exp $
46 //
48 require_once 'MDB2/Driver/Function/Common.php';
50 /**
RedirectResponse.php (https://gitlab.com/ntphuc/BackendFeedy) PHP · 200 lines
array.php (https://bitbucket.org/organicdevelopment/nooku-framework.git) PHP · 168 lines
Rename.php (https://github.com/gryzz/crystal_magento.git) PHP · 305 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Rename.php 16971 2009-07-22 18:05:45Z mikaelkael $
20 */
23 * @see Zend_Filter_Interface
24 */
25 #require_once 'Zend/Filter/Interface.php';
27 /**
59 $options = array('target' => $options);
60 } elseif (!is_array($options)) {
61 #require_once 'Zend/Filter/Exception.php';
62 throw new Zend_Filter_Exception('Invalid options argument provided to filter');
63 }
ResponseHeader.php (https://github.com/mrbanzai/zf2.git) PHP · 395 lines
1 <?php
2 /**
3 * Zend Framework
15 * @category Zend
16 * @package Zend_Test
17 * @subpackage PHPUnit
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
23 * @namespace
24 */
25 namespace Zend\Test\PHPUnit\Constraint;
26 use Zend\Controller\Response;
28 /**
29 * Response header PHPUnit Constraint
30 *
31 * @uses PHPUnit_Framework_Constraint
select.php (https://github.com/woxxy/FoolFuuka.git) PHP · 426 lines
1 <?php
2 /**
3 * Database query builder for SELECT statements.
7 * @author Kohana Team
8 * @copyright (c) 2008-2009 Kohana Team
9 * @license http://kohanaphp.com/license
10 */
79 public function select($columns = NULL)
80 {
81 $columns = func_get_args();
83 $this->_select = array_merge($this->_select, $columns);
108 public function from($tables)
109 {
110 $tables = func_get_args();
112 $this->_from = array_merge($this->_from, $tables);
Rename.php (https://github.com/Exercise/zf2.git) PHP · 304 lines
Subject.php (https://gitlab.com/judielsm/Handora) PHP · 267 lines
call.php (https://github.com/agallou/atoum.git) PHP · 483 lines
1 <?php
3 namespace mageekguy\atoum\asserters\adapter;
5 use
6 mageekguy\atoum,
7 mageekguy\atoum\php,
8 mageekguy\atoum\test,
9 mageekguy\atoum\asserter,
137 $this->setTrace();
139 foreach (func_get_args() as $call)
140 {
141 $this->addBeforeCall($call);
154 $this->setTrace();
156 foreach (func_get_args() as $call)
157 {
158 $this->addAfterCall($call);
log.php (https://github.com/jizillon/phpzillon-browser.git) PHP · 181 lines
Request.php (https://bitbucket.org/helfreire/tccsite.git) PHP · 505 lines
1 <?php namespace Illuminate\Http;
3 use Illuminate\Session\Store as SessionStore;
111 public function is($pattern)
112 {
113 foreach (func_get_args() as $pattern)
114 {
115 if (str_is($pattern, $this->path()))
150 public function has($key)
151 {
152 if (count(func_get_args()) > 1)
153 {
154 foreach (func_get_args() as $value)
200 public function only($keys)
201 {
202 $keys = is_array($keys) ? $keys : func_get_args();
204 return array_only($this->input(), $keys) + array_fill_keys($keys, null);
Trigger.php (https://github.com/voidit/chyrp.git) PHP · 176 lines
1 <?php
2 /**
3 * Class: Trigger
39 foreach ($name as $index => $call) {
40 $args = func_get_args();
41 $args[0] = $call;
42 if ($index + 1 == count($name))
50 return false;
52 $arguments = func_get_args();
53 array_shift($arguments);
89 if (is_array($name))
90 foreach ($name as $index => $filter) {
91 $args = func_get_args();
92 $args[0] =& $target;
93 $args[1] = $filter;
ResponseHeader.php (https://github.com/Unplagged/unplagged.git) PHP · 400 lines
124 if (!in_array($assertType, $this->_assertTypes)) {
125 require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
126 throw new Zend_Test_PHPUnit_Constraint_Exception(sprintf('Invalid assertion type "%s" provided to %s constraint', $assertType, __CLASS__));
164 case self::ASSERT_HEADER_REGEX:
165 if (4 > $argc) {
166 require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
167 throw new Zend_Test_PHPUnit_Constraint_Exception('Both a header name and content to match are required for ' . __FUNCTION__);
173 : $this->_headerRegex($response, $header, $match);
174 default:
175 require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
176 throw new Zend_Test_PHPUnit_Constraint_Exception('Invalid assertion type ' . __FUNCTION__);
190 public function fail($other, $description, $not = false)
191 {
192 require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
193 switch ($this->_assertType) {
194 case self::ASSERT_RESPONSE_CODE:
class.participant.php (https://github.com/addy689/Sockmonkey.git) PHP · 283 lines
Hash.php (https://github.com/snippet/zf2.git) PHP · 194 lines
Translate.php (https://github.com/MontmereLimited/ZendFramework-v1.git) PHP · 220 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Translate.php 23775 2011-03-01 17:25:24Z ralph $
20 */
23 * @see Zend_Loader
24 */
25 // // // // // // // // // // require_once 'Zend/Loader.php';
27 /**
28 * @see Zend_Translate_Adapter
29 */
30 // // // // // // // // // // require_once 'Zend/Translate/Adapter.php';
Matrix.php (https://github.com/markn86/moodle.git) PHP · 1202 lines
1 <?php
3 namespace PhpOffice\PhpSpreadsheet\Shared\JAMA;
5 use PhpOffice\PhpSpreadsheet\Calculation\Exception as CalculationException;
6 use PhpOffice\PhpSpreadsheet\Calculation\Functions;
7 use PhpOffice\PhpSpreadsheet\Shared\StringHelper;
52 * Polymorphic constructor.
53 *
54 * As PHP has no support for polymorphic constructors, we use tricks to make our own sort of polymorphism using func_num_args, func_get_arg, and gettype. In essence, we're just implementing a simple RTTI filter and calling the appropriate constructor.
55 */
56 public function __construct(...$args)
SubProcess.php (https://bitbucket.org/ferOnti/processmaker.git) PHP · 166 lines
ImageSize.php (https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git) PHP · 370 lines
1 <?php
2 /**
3 * Zend Framework
23 * @see Zend_Validate_Abstract
24 */
25 #require_once 'Zend/Validate/Abstract.php';
27 /**
137 $options = array('minwidth' => $options);
138 }
139 $argv = func_get_args();
140 array_shift($argv);
141 $options['minheight'] = array_shift($argv);
147 }
148 } else if (!is_array($options)) {
149 #require_once 'Zend/Validate/Exception.php';
150 throw new Zend_Validate_Exception ('Invalid options to validator provided');
151 }
ManagesFrequencies.php (https://gitlab.com/nmhieucoder/laravel_tintuc) PHP · 527 lines
TextDataTest.php (https://gitlab.com/Zinnurain/destination_finder_beta) PHP · 365 lines
1 <?php
4 require_once 'testDataFileIterator.php';
6 class TextDataTest extends PHPUnit_Framework_TestCase
9 public function setUp()
10 {
11 if (!defined('PHPEXCEL_ROOT'))
12 {
13 define('PHPEXCEL_ROOT', APPLICATION_PATH . '/');
14 }
15 require_once(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
17 PHPExcel_Calculation_Functions::setCompatibilityMode(PHPExcel_Calculation_Functions::COMPATIBILITY_EXCEL);
Boolean.php (https://github.com/bruisedlee/zf2.git) PHP · 373 lines
1 <?php
2 /**
3 * Zend Framework
43 const EMPTY_ARRAY = 32;
44 const NULL = 64;
45 const PHP = 127;
46 const FALSE_STRING = 128;
47 const YES = 256;
56 self::EMPTY_ARRAY => 'array',
57 self::NULL => 'null',
58 self::PHP => 'php',
59 self::FALSE_STRING => 'false',
60 self::YES => 'yes',
67 * @var integer
68 */
69 protected $_type = self::PHP;
71 /**
Collection.php (https://gitlab.com/ealexis.t/trends) PHP · 1170 lines
1 <?php
3 namespace Illuminate\Support;
184 public function except($keys)
185 {
186 $keys = is_array($keys) ? $keys : func_get_args();
188 return new static(Arr::except($this->items, $keys));
588 public function only($keys)
589 {
590 $keys = is_array($keys) ? $keys : func_get_args();
592 return new static(Arr::only($this->items, $keys));
ResponseHeader.php (https://github.com/Martin1982/IBMessagingWorkshopServer.git) PHP · 400 lines
124 if (!in_array($assertType, $this->_assertTypes)) {
125 // require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
126 throw new Zend_Test_PHPUnit_Constraint_Exception(sprintf('Invalid assertion type "%s" provided to %s constraint', $assertType, __CLASS__));
164 case self::ASSERT_HEADER_REGEX:
165 if (4 > $argc) {
166 // require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
167 throw new Zend_Test_PHPUnit_Constraint_Exception('Both a header name and content to match are required for ' . __FUNCTION__);
173 : $this->_headerRegex($response, $header, $match);
174 default:
175 // require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
176 throw new Zend_Test_PHPUnit_Constraint_Exception('Invalid assertion type ' . __FUNCTION__);
190 public function fail($other, $description, $not = false)
191 {
192 // require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
193 switch ($this->_assertType) {
194 case self::ASSERT_RESPONSE_CODE:
Build.php (https://bitbucket.org/d1rk/codeception.git) PHP · 179 lines
1 <?php
2 namespace Codeception\Command;
16 protected $template = <<<EOF
17 <?php
18 // This class was automatically generated by build task
19 // You can change it manually, but it will be overwritten on next build
40 */
41 public function %s(%s) {
42 \$this->scenario->%s('%s', func_get_args());
43 if (\$this->scenario->running()) {
44 \$result = \$this->scenario->runStep();
138 }
140 // append PHPDoc for abstractGuy methods
141 $className = '\Codeception\\AbstractGuy';
142 $class = new \ReflectionClass($className);
Xml.php (https://gitlab.com/devtoannh/cafe) PHP · 165 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Xml.php 24237 2011-07-13 18:22:20Z matthew $
21 */
23 /** Zend_Log_Formatter_Abstract */
24 require_once 'Zend/Log/Formatter/Abstract.php';
26 /**
30 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
31 * @license http://framework.zend.com/license/new-bsd New BSD License
32 * @version $Id: Xml.php 24237 2011-07-13 18:22:20Z matthew $
33 */
34 class Zend_Log_Formatter_Xml extends Zend_Log_Formatter_Abstract
ImageSize.php (https://github.com/quarkness/piwik.git) PHP · 364 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: ImageSize.php 23775 2011-03-01 17:25:24Z ralph $
20 */
23 * @see Zend_Validate_Abstract
24 */
25 // require_once 'Zend/Validate/Abstract.php';
27 /**
131 $options = array('minwidth' => $options);
132 }
133 $argv = func_get_args();
134 array_shift($argv);
135 $options['minheight'] = array_shift($argv);
Functions.php (https://gitlab.com/Pasantias/pasantiasASLG) PHP · 1937 lines
1 <?php
2 /*
3 * This file is part of PHPUnit.
4 *
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
6 *
7 * For the full copyright and license information, please view the LICENSE
13 * zero or more times.
14 *
15 * @return PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount
16 *
17 * @since Method available since Release 3.0.0
20 {
21 return call_user_func_array(
22 'PHPUnit_Framework_TestCase::any',
23 func_get_args()
Collection.php (https://gitlab.com/Pasantias/pasantiasASLG) PHP · 1103 lines
1 <?php
3 namespace Illuminate\Support;
173 public function except($keys)
174 {
175 $keys = is_array($keys) ? $keys : func_get_args();
177 return new static(Arr::except($this->items, $keys));
532 public function only($keys)
533 {
534 $keys = is_array($keys) ? $keys : func_get_args();
536 return new static(Arr::only($this->items, $keys));
950 $arrayableItems = array_map(function ($items) {
951 return $this->getArrayableItems($items);
952 }, func_get_args());
954 $params = array_merge([function () {
Blueprint.php (https://gitlab.com/Pasantias/pasantiasASLG) PHP · 1040 lines
Verify.php (https://gitlab.com/I-NOZex/quiz) PHP · 307 lines
Store.php (https://gitlab.com/madwanz64/laravel) PHP · 672 lines
1 <?php
3 namespace Illuminate\Session;
189 $placeholder = new stdClass;
191 return ! collect(is_array($key) ? $key : func_get_args())->contains(function ($key) use ($placeholder) {
192 return $this->get($key, $placeholder) === $placeholder;
193 });
202 public function has($key)
203 {
204 return ! collect(is_array($key) ? $key : func_get_args())->contains(function ($key) {
205 return is_null($this->get($key));
206 });
395 public function keep($keys = null)
396 {
397 $this->mergeNewFlashes($keys = is_array($keys) ? $keys : func_get_args());
399 $this->removeFromOldFlashData($keys);
Functions.php (https://gitlab.com/judielsm/Handora) PHP · 1854 lines
1 <?php
2 /*
3 * This file is part of PHPUnit.
4 *
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
6 *
7 * For the full copyright and license information, please view the LICENSE
13 * zero or more times.
14 *
15 * @return PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount
16 * @since Method available since Release 3.0.0
17 */
19 {
20 return call_user_func_array(
21 'PHPUnit_Framework_TestCase::any',
22 func_get_args()
Decorator.php (https://github.com/livinglab/openlab.git) PHP · 688 lines
1 <?php
3 /**
51 */
52 public function by( $key, $value = null ) {
53 $call_args = func_get_args();
54 call_user_func_array( [ $this->decorated, 'by' ], $call_args );
61 */
62 public function where( $key, $value = null ) {
63 $call_args = func_get_args();
64 call_user_func_array( [ $this->decorated, 'where' ], $call_args );
322 */
323 public function where_or( $callbacks ) {
324 $call_args = func_get_args();
325 call_user_func_array( [ $this->decorated, 'where_or' ], $call_args );
text.php (https://bitbucket.org/asosso/joomla31.git) PHP · 333 lines
1 <?php
2 /**
3 * @package Joomla.Platform
31 *
32 * Examples:
33 * <script>alert(Joomla.JText._('<?php echo JText::_("JDEFAULT", array("script"=>true));?>'));</script>
34 * will generate an alert message containing 'Default'
35 * <?php echo JText::_("JDEFAULT");?> it will generate a 'Default' string
101 *
102 * Examples:
103 * <?php echo JText::alt("JALL","language");?> it will generate a 'All' string in English but a "Toutes" string in French
104 * <?php echo JText::alt("JALL","module");?> it will generate a 'All' string in English but a "Tous" string in French
142 *
143 * Examples:
144 * <script>alert(Joomla.JText._('<?php echo JText::plural("COM_PLUGINS_N_ITEMS_UNPUBLISHED", 1, array("script"=>true));?>'));</script>
145 * will generate an alert message containing '1 plugin successfully disabled'
146 * <?php echo JText::plural("COM_PLUGINS_N_ITEMS_UNPUBLISHED", 1);?> it will generate a '1 plugin successfully disabled' string
Blueprint.php (https://gitlab.com/fabian.morales/marlon_becerra) PHP · 836 lines
AlchemyAPI.php (https://github.com/schultetwin/commons.git) PHP · 555 lines
1 <?php
3 require_once("AlchemyAPIParams.php");
457 private function POST()
458 { // callMethod, $callPrefix, $parameterObject
459 $callMethod = func_get_arg(0);
460 $callPrefix = func_get_arg(1);
461 $paramObj = func_get_arg(2);
463 $outputMode = $paramObj->getOutputMode();
481 private function GET()
482 { // callMethod, $callPrefix, $parameterObject
483 $callMethod = func_get_arg(0);
484 $callPrefix = func_get_arg(1);
Hash.php (https://github.com/Zefiryn/graduationprojects.git) PHP · 194 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Hash.php 23775 2011-03-01 17:25:24Z ralph $
20 */
23 * @see Zend_Validate_Abstract
24 */
25 require_once 'Zend/Validate/Abstract.php';
27 /**
71 $options = array('hash1' => $options);
72 } elseif (!is_array($options)) {
73 require_once 'Zend/Validate/Exception.php';
74 throw new Zend_Validate_Exception('Invalid options to validator provided');
75 }
url_creator.php (https://github.com/F5/zetacomponents.git) PHP · 140 lines
dynamic_table_func.no.cpp (https://github.com/kevlund/hiphop-php.git) C++ · 1156 lines
1 /*
2 +----------------------------------------------------------------------+
3 | HipHop for PHP |
4 +----------------------------------------------------------------------+
5 | Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) |
6 +----------------------------------------------------------------------+
7 | This source file is subject to version 3.01 of the PHP license, |
8 | that is bundled with this package in the file LICENSE, and is |
9 | available through the world-wide-web at the following url: |
10 | http://www.php.net/license/3_01.txt |
11 | If you did not receive a copy of the PHP license and are unable to |
12 | obtain it through the world-wide-web, please send a note to |
13 | license@php.net so we can mail you a copy immediately. |
14 +----------------------------------------------------------------------+
15 */
DataCenter.ui.php (https://github.com/ChuguluGames/mediawiki-svn.git) PHP · 1145 lines
1 <?php
2 /**
3 * UI Class for DataCenter extension
52 /**
53 * Converts a PHP value to a javascript object
54 * @param value Associative Array to convert
55 */
72 /**
73 * Converts a PHP value to a javascript array
74 * @param value Array or Scalar to convert
75 */
92 /**
93 * Converts a PHP value to a javascript value
94 * @param value Array or Scalar to convert, if value is string
95 * it will be escaped and surrounded by quotes
TextDataTest.php (https://gitlab.com/techniconline/kmc) PHP · 364 lines
1 <?php
4 require_once 'testDataFileIterator.php';
6 class TextDataTest extends PHPUnit_Framework_TestCase
9 public function setUp()
10 {
11 if (!defined('PHPEXCEL_ROOT')) {
12 define('PHPEXCEL_ROOT', APPLICATION_PATH . '/');
13 }
14 require_once(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
16 PHPExcel_Calculation_Functions::setCompatibilityMode(PHPExcel_Calculation_Functions::COMPATIBILITY_EXCEL);
YPFCommand.php (https://github.com/yonpols/ypframework.git) PHP · 144 lines
class-wp-walker.php (https://gitlab.com/darmawan.fatria/df-skp-2014) PHP · 416 lines
Kernel.php (https://gitlab.com/vincetang/mtweb) PHP · 249 lines
Logical.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 288 lines
22 * @package PHPExcel_Calculation
23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version ##VERSION##, ##DATE##
34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
36 }
107 // Loop through the arguments
108 $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
109 $argCount = -1;
110 foreach ($aArgs as $argCount => $arg) {
162 // Loop through the arguments
163 $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
164 $argCount = -1;
165 foreach ($aArgs as $argCount => $arg) {
php.cxx
(https://swig.svn.sourceforge.net/svnroot/swig)
C++ · 2785 lines
✨ Summary
This C++ code is a part of a PHP wrapper generator, specifically handling class declarations and pragmas. It generates PHP code based on input C++ classes and pragmas, including constructors, inheritance, and abstract classes. The output is a string containing the generated PHP code.
This C++ code is a part of a PHP wrapper generator, specifically handling class declarations and pragmas. It generates PHP code based on input C++ classes and pragmas, including constructors, inheritance, and abstract classes. The output is a string containing the generated PHP code.
290 pragma_phpinfo = NewStringEmpty();
291 s_phpclasses = NewString("/* PHP Proxy Classes */\n");
292 f_directors_h = NewStringEmpty();
293 f_directors = NewStringEmpty();
364 Printf(f_phpcode, " } else {\n");
365 Printf(f_phpcode, " if (!dl('%s.'.PHP_SHLIB_SUFFIX)) return;\n", module);
366 Printf(f_phpcode, " }\n");
538 * things are being called in the wrong order
539 */
540 Printf(s_init, "#define SWIG_php_minit PHP_MINIT_FUNCTION(%s)\n", module);
542 /* Emit all of the code */
644 s_fakeoowrappers = NULL;
645 }
646 Printf(f_phpcode, "%s\n?>\n", s_phpclasses);
647 Close(f_phpcode);
Standard.php (https://github.com/TheOnly92/Ikariem.git) PHP · 216 lines
Boolean.php (https://github.com/frhumanes/PLM.git) PHP · 375 lines
1 <?php
2 /**
3 * Zend Framework
23 * @see Zend_Filter_Interface
24 */
25 require_once 'Zend/Filter/Interface.php';
27 /**
40 const EMPTY_ARRAY = 32;
41 const NULL = 64;
42 const PHP = 127;
43 const FALSE_STRING = 128;
44 const YES = 256;
53 self::EMPTY_ARRAY => 'array',
54 self::NULL => 'null',
55 self::PHP => 'php',
56 self::FALSE_STRING => 'false',
57 self::YES => 'yes',
select.php (https://github.com/saxxi/timemanager.git) PHP · 444 lines
1 <?php defined('SYSPATH') or die('No direct script access.');
2 /**
3 * Database query builder for SELECT statements. See [Query Builder](/database/query/builder) for usage and examples.
7 * @author Kohana Team
8 * @copyright (c) 2008-2009 Kohana Team
9 * @license http://kohanaphp.com/license
10 */
11 class Kohana_Database_Query_Builder_Select extends Database_Query_Builder_Where {
78 public function select($columns = NULL)
79 {
80 $columns = func_get_args();
82 $this->_select = array_merge($this->_select, $columns);
107 public function from($tables)
108 {
109 $tables = func_get_args();
111 $this->_from = array_merge($this->_from, $tables);
Translate.php (https://github.com/kervin/kyzstudio.git) PHP · 180 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Translate.php 20140 2010-01-08 05:21:04Z thomas $
21 */
23 /** Zend_Locale */
24 #require_once 'Zend/Locale.php';
26 /** Zend_View_Helper_Abstract.php */
27 #require_once 'Zend/View/Helper/Abstract.php';
29 /**
Expr.php (https://github.com/jaikdean/doctrine2.git) PHP · 661 lines
1 <?php
3 declare(strict_types=1);
5 namespace Doctrine\ORM\Query;
7 use function func_get_args;
8 use function implode;
9 use function is_array;
15 /**
16 * This class is used to generate DQL expressions via a set of PHP static functions.
17 *
18 * @todo Rename: ExpressionBuilder
25 * Example:
26 *
27 * [php]
28 * // (u.type = ?1) AND (u.role = ?2)
29 * $expr->andX($expr->eq('u.type', ':1'), $expr->eq('u.role', ':2'));
AkObject.php (https://github.com/akelos/v1.git) PHP · 193 lines
1 <?php
2 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
21 /**
22 * Allows for __construct and __destruct to be used in PHP4.
23 *
24 * A hack to support __construct() on PHP 4
25 * Hint: descendant classes have no PHP4 class_name()
26 * constructors, so this one gets called first and calls the
27 * top-layer __construct() which (if present) should call
158 *
159 * @see http://paul-m-jones.com/?p=262
160 * @see http://bugs.php.net/bug.php?id=33595
161 */
162 function freeMemory()
default_tests.php (https://github.com/akelos/v1.git) PHP · 118 lines
1 <?php
2 error_reporting(E_ALL);
3 defined('DS') ? null : define('DS', DIRECTORY_SEPARATOR);
14 define('AK_APP_DIR', GEOKIT_PLUGIN_DIR.DS.'test'.DS.'fixtures'.DS.'app');
16 require_once(AK_BASE_DIR.DS.'test'.DS.'fixtures'.DS.'config'.DS.'config.php');
18 # This file may not exist. It exists if you had to create one for your
19 # plugin, as I had to for geo_kit
20 require_once(GEOKIT_PLUGIN_DIR.DS.'config'.DS.'config.php');
22 # These are the plugin scripts
23 $lib_dir = GEOKIT_PLUGIN_DIR.DS.'lib'.DS.'geo_kit'.DS;
24 require_once($lib_dir.'defaults.php');
25 #require_once($lib_dir.'mappable.php');
HproseCommon.php (https://github.com/liu21st/thinkphp.git) PHP · 816 lines
1 <?php
2 /**********************************************************\
3 | |
12 /**********************************************************\
13 * *
14 * HproseCommon.php *
15 * *
16 * hprose common library for php5. *
42 public function __construct() {
43 $args_num = func_num_args();
44 $args = func_get_args();
45 switch ($args_num) {
46 case 0:
251 $num = func_num_args();
252 if ($num == 3) {
253 $args = func_get_args();
254 $y = $args[0];
255 $m = $args[1];
MathTrigTest.php (https://gitlab.com/Zinnurain/destination_finder_beta) PHP · 560 lines
1 <?php
13 define('PHPEXCEL_ROOT', APPLICATION_PATH . '/');
14 }
15 require_once(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
17 PHPExcel_Calculation_Functions::setCompatibilityMode(PHPExcel_Calculation_Functions::COMPATIBILITY_EXCEL);
329 $args = func_get_args();
330 $expectedResult = array_pop($args);
331 PHPExcel_Calculation::setArrayReturnType(PHPExcel_Calculation::RETURN_ARRAY_AS_VALUE);
332 $result = call_user_func_array(array('PHPExcel_Calculation_MathTrig','MROUND'),$args);
333 PHPExcel_Calculation::setArrayReturnType(PHPExcel_Calculation::RETURN_ARRAY_AS_ARRAY);
334 $this->assertEquals($expectedResult, $result, NULL, 1E-12);
335 }
EngineeringTest.php (https://gitlab.com/Zinnurain/destination_finder_beta) PHP · 698 lines
1 <?php
3 // Custom assertion class for handling precision of Complex numbers
4 require_once 'custom/complexAssert.php';
6 // Data Provider handler
7 require_once 'testDataFileIterator.php';
17 define('PHPEXCEL_ROOT', APPLICATION_PATH . '/');
18 }
19 require_once(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
21 PHPExcel_Calculation_Functions::setCompatibilityMode(PHPExcel_Calculation_Functions::COMPATIBILITY_EXCEL);
DateTimeTest.php (https://gitlab.com/Zinnurain/destination_finder_beta) PHP · 466 lines
44 public function testDATEtoPHPObject()
45 {
46 PHPExcel_Calculation_Functions::setReturnDateType(PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT);
47 $result = PHPExcel_Calculation_DateTime::DATE(2012,1,31);
206 public function testTIMEtoPHP()
207 {
208 PHPExcel_Calculation_Functions::setReturnDateType(PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC);
209 $result = PHPExcel_Calculation_DateTime::TIME(7,30,20);
243 public function testTIMEVALUEtoPHP()
244 {
245 PHPExcel_Calculation_Functions::setReturnDateType(PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC);
246 $result = PHPExcel_Calculation_DateTime::TIMEVALUE('7:30:20');
405 public function testEOMONTHtoPHPObject()
406 {
407 PHPExcel_Calculation_Functions::setReturnDateType(PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT);
408 $result = PHPExcel_Calculation_DateTime::EOMONTH('2012-1-26',-1);
UnitTesterActions.php (https://gitlab.com/mallgroup/mpapi-client) PHP · 460 lines
1 <?php //[STAMP] 8710f9ee947b06d4a721a0637ea6627d
2 namespace _generated;
28 */
29 public function assertEquals($expected, $actual, $message = null) {
30 return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEquals', func_get_args()));
31 }
43 */
44 public function assertNotEquals($expected, $actual, $message = null) {
45 return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEquals', func_get_args()));
46 }
59 */
60 public function assertSame($expected, $actual, $message = null) {
61 return $this->getScenario()->runStep(new \Codeception\Step\Action('assertSame', func_get_args()));
62 }
signal_collection.php (https://github.com/kamarulismail/kamarul-playground.git) PHP · 494 lines
1 <?php
2 /**
3 * @copyright Copyright (C) 2005-2008 eZ systems as. All rights reserved.
267 // prepare the parameters
268 $parameters = array_slice( func_get_args(), 1 );
270 // check if there are any static connections
354 * to connect a slot more than once.
355 *
356 * See the PHP documentation for examples on the callback type.
357 * http://php.net/callback.
ezclusterfilehandler_abstract_test.php (https://github.com/GunioRobot/ezpublish.git) PHP · 748 lines
Expr.php (https://github.com/adrienbrault/doctrine2.git) PHP · 652 lines
1 <?php
3 declare(strict_types=1);
7 /**
8 * This class is used to generate DQL expressions via a set of PHP static functions.
9 * @todo Rename: ExpressionBuilder
10 */
16 * Example:
17 *
18 * [php]
19 * // (u.type = ?1) AND (u.role = ?2)
20 * $expr->andX($expr->eq('u.type', ':1'), $expr->eq('u.role', ':2'));
27 public function andX($x = null)
28 {
29 return new Expr\Andx(func_get_args());
30 }
Collection.php (https://gitlab.com/milton2913/myBlog) PHP · 1342 lines
1 <?php
3 namespace Illuminate\Support;
266 public function except($keys)
267 {
268 $keys = is_array($keys) ? $keys : func_get_args();
270 return new static(Arr::except($this->items, $keys));
703 }
705 $keys = is_array($keys) ? $keys : func_get_args();
707 return new static(Arr::only($this->items, $keys));
Functions.php (https://gitlab.com/mdabutaleb/bitm-laravel-1) PHP · 2048 lines
1 <?php
2 /*
3 * This file is part of PHPUnit.
4 *
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
6 *
7 * For the full copyright and license information, please view the LICENSE
13 * zero or more times.
14 *
15 * @return PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount
16 *
17 * @since Method available since Release 3.0.0
20 {
21 return call_user_func_array(
22 'PHPUnit_Framework_TestCase::any',
23 func_get_args()
Boolean.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 375 lines
1 <?php
2 /**
3 * Zend Framework
23 * @see Zend_Filter_Interface
24 */
25 #require_once 'Zend/Filter/Interface.php';
27 /**
40 const EMPTY_ARRAY = 32;
41 const NULL = 64;
42 const PHP = 127;
43 const FALSE_STRING = 128;
44 const YES = 256;
53 self::EMPTY_ARRAY => 'array',
54 self::NULL => 'null',
55 self::PHP => 'php',
56 self::FALSE_STRING => 'false',
57 self::YES => 'yes',
UnitTesterActions.php (https://gitlab.com/I-NOZex/quiz) PHP · 481 lines
1 <?php //[STAMP] 5b78a31c5f5568600590c4982f73333b
2 namespace _generated;
27 */
28 public function assertEquals($expected, $actual, $message = null) {
29 return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEquals', func_get_args()));
30 }
42 */
43 public function assertNotEquals($expected, $actual, $message = null) {
44 return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEquals', func_get_args()));
45 }
58 */
59 public function assertSame($expected, $actual, $message = null) {
60 return $this->getScenario()->runStep(new \Codeception\Step\Action('assertSame', func_get_args()));
61 }