PageRenderTime 675ms queryTime 126ms sortTime 8ms getByIdsTime 113ms findMatchingLines 186ms

100+ results results for 'php array_pop repo:sahilbabu/phpb2b' (675 ms)

Not the results you expected?
Url.php https://gitlab.com/x33n/respond | PHP | 548 lines
                    
1<?php
                    
2
                    
295            if ($segment == '..') {
                    
296                array_pop($results);
                    
297            } elseif ($segment != '.' && $segment != '') {
                    
                
AbstractFactory.php https://gitlab.com/yousafsyed/easternglamor | PHP | 342 lines
                    
1<?php
                    
2/**
                    
53    {
                    
54        $this->factoryContent = "<?php\n\n";
                    
55        $this->factoryContent .= "namespace Magento\Mtf\\{$type}; \n\n";
                    
93
                    
94        $file = MTF_BP . "/generated/Magento/Mtf/{$type}/{$type}FactoryDeprecated.php";
                    
95        if (false === file_put_contents($file, $this->factoryContent)) {
                    
139     * @return array
                    
140     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
141     */
                    
151
                    
152        while ($fallback = array_pop($fallbacks)) {
                    
153            $path = isset($fallback['path']) ? $fallback['path'] : '';
                    
171                        ),
                    
172                        '/.php$/i'
                    
173                    );
                    
                
DOMLex.php https://gitlab.com/I-NOZex/quiz | PHP | 279 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * Parser that uses PHP 5's DOM extension (part of the core).
                    
5 *
                    
5 *
                    
6 * In PHP 5, the DOM XML extension was revamped into DOM and added to the core.
                    
7 * It gives us a forgiving HTML parser, which we use to transform the HTML
                    
9 * documents, it performs twenty times faster than
                    
10 * HTMLPurifier_Lexer_DirectLex,and is the default choice for PHP 5.
                    
11 *
                    
15 *
                    
16 * @note PHP's DOM extension does not actually parse any entities, we use
                    
17 *       our own function to do that.
                    
113            if ($level && isset($closingNodes[$level])) {
                    
114                while ($node = array_pop($closingNodes[$level])) {
                    
115                    $this->createEndNode($node, $tokens);
                    
                
PwForumService.php https://gitlab.com/wuhang2003/phpwind | PHP | 279 lines
                    
1<?php
                    
2defined('WEKIT_VERSION') || exit('Forbidden');
                    
11 * @author Jianmin Chen <sky_hold@163.com>
                    
12 * @license http://www.phpwind.com
                    
13 * @version $Id: PwForumService.php 24758 2013-02-20 06:55:42Z jieyin $
                    
198		$array = explode(',', $forum['fup']);
                    
199		return array_pop($array);
                    
200	}
                    
                
FlattenException.php https://gitlab.com/puntodos/ean-landings | PHP | 297 lines
                    
1<?php
                    
2
                    
16/**
                    
17 * FlattenException wraps a PHP Exception to be able to serialize it.
                    
18 *
                    
57/**
                    
58 * FlattenException wraps a PHP Exception to be able to serialize it.
                    
59 *
                    
241                $parts = explode('\\', $entry['class']);
                    
242                $class = array_pop($parts);
                    
243                $namespace = implode('\\', $parts);
                    
279                $result[$key] = array('resource', get_resource_type($value));
                    
280            } elseif ($value instanceof \__PHP_Incomplete_Class) {
                    
281                // Special case of object, is_object will return false
                    
290
                    
291    private function getClassNameFromIncomplete(\__PHP_Incomplete_Class $value)
                    
292    {
                    
                
Captcha.php https://gitlab.com/blingbang2016/shop | PHP | 302 lines
                    
1<?php
                    
2/**
                    
23/** @see Zend_Form_Element_Xhtml */
                    
24#require_once 'Zend/Form/Element/Xhtml.php';
                    
25
                    
26/** @see Zend_Captcha_Adapter */
                    
27#require_once 'Zend/Captcha/Adapter.php';
                    
28
                    
206            if (!isset($this->_loaders[$type])) {
                    
207                #require_once 'Zend/Loader/PluginLoader.php';
                    
208                $this->_loaders[$type] = new Zend_Loader_PluginLoader(
                    
291        array_unshift($segments, $root);
                    
292        array_pop($segments);
                    
293        $newContext = $context;
                    
                
Profiler.inc.php https://gitlab.com/nacridan/Nacridan | PHP | 244 lines
                    
1<?php
                    
2
                    
107            $this->running[$name] += $this->elapsedTime($name);
                    
108        $this->cur_timer = array_pop($this->stack);
                    
109        $this->__resumeTimer($this->cur_timer);
                    
                
ShowProcessor.php https://gitlab.com/staging06/myproject | PHP | 166 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * ShowProcessor.php
                    
4 *
                    
32
                    
33require_once(dirname(__FILE__) . '/../utils/PHPSQLParserConstants.php');
                    
34require_once(dirname(__FILE__) . '/../utils/ExpressionType.php');
                    
34require_once(dirname(__FILE__) . '/../utils/ExpressionType.php');
                    
35require_once(dirname(__FILE__) . '/LimitProcessor.php');
                    
36require_once(dirname(__FILE__) . '/AbstractProcessor.php');
                    
117                case 'LIMIT':
                    
118                    $limit = array_pop($resultList);
                    
119                    $limit['sub_tree'] = $this->limitProcessor->process(array_slice($tokens, $k));
                    
138                case 'FUNCTION':
                    
139                    if (PHPSQLParserConstants::isAggregateFunction($upper)) {
                    
140                        $expr_type = ExpressionType::AGGREGATE_FUNCTION;
                    
                
Router.php https://gitlab.com/digitalpoetry/catt-old | PHP | 293 lines
                    
1<?php
                    
2/**
                    
96     * This function matches any routes that may exist in
                    
97     * the config/routes.php file against the URI to
                    
98     * determine if the class/method need to be remapped.
                    
114            foreach ($this->config->item('modules_locations') as $location) {
                    
115                if (is_file($file = $location . $module . '/config/routes.php')) {
                    
116                    include ($file);
                    
150
                    
151            if ( ! file_exists(APPPATH.'controllers/'.$test.'.php') && is_dir(APPPATH.'controllers/'.$this->directory.$s[0]))
                    
152            {
                    
155            }
                    
156            elseif (file_exists(APPPATH .'controllers/'. $test .'.php'))
                    
157            {
                    
174                $relative = str_replace(implode('/', $parts) . '/', str_repeat('../', $i), $relative, $count);
                    
175                array_pop($parts);
                    
176
                    
                
Stopwatch.php https://gitlab.com/Snizer/PI-DEV-TUNISIAMALL3A6-WEB | PHP | 332 lines
                    
1<?php
                    
2
                    
74
                    
75        $this->sections[$id] = array_pop($this->activeSections)->setId($id);
                    
76        $this->stop('__section__.child');
                    
                
NodeType.php https://gitlab.com/geeta7/drupal | PHP | 127 lines
                    
1<?php
                    
2
                    
100      $bundles = $this->configuration['bundles'];
                    
101      $last = array_pop($bundles);
                    
102      $bundles = implode(', ', $bundles);
                    
                
Dispatcher.class.php https://gitlab.com/fangfangchen/xianpipa | PHP | 264 lines
                    
31            unset($_GET[$varPath]);
                    
32        }elseif(IS_CLI){ // CLI模式下 index.php module/controller/action/params/...
                    
33            $_SERVER['PATH_INFO'] = isset($_SERVER['argv'][1]) ? $_SERVER['argv'][1] : '';
                    
149            if(is_file(MODULE_PATH.'Conf/alias.php'))
                    
150                Think::addMap(include MODULE_PATH.'Conf/alias.php');
                    
151
                    
152            // 加载模块函数文件
                    
153            if(is_file(MODULE_PATH.'Common/function.php'))
                    
154                include MODULE_PATH.'Common/function.php';
                    
161	        if($urlMode == URL_COMPAT ){// 兼容模式判断
                    
162	            define('PHP_FILE',_PHP_FILE_.'?'.$varPath.'=');
                    
163	        }elseif($urlMode == URL_REWRITE ) {
                    
168	        }else {
                    
169	            define('PHP_FILE',_PHP_FILE_);
                    
170	        }
                    
                
class-wp-customize-setting.php https://gitlab.com/Blueprint-Marketing/WordPress-1 | PHP | 439 lines
                    
1<?php
                    
2/**
                    
289
                    
290		$last = array_pop( $keys );
                    
291		$node = &$root;
                    
                
atomlib.php https://gitlab.com/webkod3r/tripolis | PHP | 363 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Atom Syndication Format PHP Library
                    
4 *
                    
5 * @package AtomLib
                    
6 * @link http://code.google.com/p/phpatomlib/
                    
7 *
                    
84
                    
85    var $FILE = "php://input";
                    
86
                    
90	/**
                    
91	 * PHP5 constructor.
                    
92	 */
                    
101	/**
                    
102	 * PHP4 constructor.
                    
103	 */
                    
                
BaseTest.php git://github.com/manuelpichler/staticReflection.git | PHP | 347 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP Version 5
                    
6 *
                    
38 *
                    
39 * @category  PHP
                    
40 * @package   pdepend\reflection
                    
42 * @copyright 2009-2011 Manuel Pichler. All rights reserved.
                    
43 * @license   http://www.opensource.org/licenses/bsd-license.php  BSD License
                    
44 * @version   SVN: $Id$
                    
52 *
                    
53 * @category  PHP
                    
54 * @package   pdepend\reflection
                    
56 * @copyright 2009-2011 Manuel Pichler. All rights reserved.
                    
57 * @license   http://www.opensource.org/licenses/bsd-license.php  BSD License
                    
58 * @version   Release: @package_version@
                    
                
class-wp-filesystem-base.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 333 lines
                    
1<?php
                    
2/**
                    
195		$folder_parts = explode('/', $folder);
                    
196		$last_index = array_pop( array_keys( $folder_parts ) );
                    
197		$last_path = $folder_parts[ $last_index ];
                    
236	 *
                    
237	 * From the PHP documentation page for fileperms()
                    
238	 *
                    
238	 *
                    
239	 * @link http://docs.php.net/fileperms
                    
240	 * @since 2.5
                    
291	 * Converts '-rw-r--r--' to 0644
                    
292	 * From "info at rvgate dot nl"'s comment on the PHP documentation for chmod()
                    
293 	 *
                    
293 	 *
                    
294	 * @link http://docs.php.net/manual/en/function.chmod.php#49614
                    
295	 * @since 2.5
                    
                
DeleteComment.php https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests | PHP | 355 lines
                    
1<?php
                    
2
                    
5 */
                    
6require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' );
                    
7
                    
71		$_POST['_page']       = 1;
                    
72		$_POST['_url']        = admin_url( 'edit-comments.php' );
                    
73
                    
128		$_POST['_page']       = 1;
                    
129		$_POST['_url']        = admin_url( 'edit-comments.php' );
                    
130
                    
158		$_POST['_page']       = 1;
                    
159		$_POST['_url']        = admin_url( 'edit-comments.php' );
                    
160
                    
187		$_POST['_page']       = 1;
                    
188		$_POST['_url']        = admin_url( 'edit-comments.php' );
                    
189
                    
                
FormRenderer.php https://gitlab.com/luchoman08/personal_collection_mv | PHP | 309 lines
                    
1<?php
                    
2
                    
141        // Clear the stack
                    
142        array_pop($this->variableStack[$viewCacheKey]);
                    
143
                    
282        // Clear the stack
                    
283        array_pop($this->variableStack[$viewCacheKey]);
                    
284
                    
                
RemoteAddress.php https://gitlab.com/jalon/doadoronline | PHP | 172 lines
                    
1<?php
                    
2/**
                    
9
                    
10namespace Zend\Http\PhpEnvironment;
                    
11
                    
148        // @see http://en.wikipedia.org/wiki/X-Forwarded-For
                    
149        $ip = array_pop($ips);
                    
150        return $ip;
                    
                
date.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 401 lines
                    
1<?php
                    
2/**
                    
93			// Only a single output was requested, return it
                    
94			return array_pop($output);
                    
95		}
                    
                
update.php https://bitbucket.org/rubbystar/carimod.git | PHP | 487 lines
                    
1<?php
                    
2/**
                    
293	{
                    
294		array_pop($this->stack);
                    
295
                    
324					// Check if PHP version supported via <php_minimum> tag, assume true if tag isn't present
                    
325					if (!isset($this->currentUpdate->php_minimum) || version_compare(PHP_VERSION, $this->currentUpdate->php_minimum->_data, '>='))
                    
326					{
                    
326					{
                    
327						$phpMatch = true;
                    
328					}
                    
330					{
                    
331						$phpMatch = false;
                    
332					}
                    
341
                    
342					if ($phpMatch && $stabilityMatch)
                    
343					{
                    
                
FragmentCache.php https://gitlab.com/I-NOZex/quiz | PHP | 193 lines
                    
1<?php
                    
2/**
                    
43     *
                    
44     * ```php
                    
45     * [
                    
60     *
                    
61     * ```php
                    
62     * [
                    
106        } elseif ($this->cache instanceof Cache) {
                    
107            array_pop($this->getView()->cacheStack);
                    
108            
                    
                
TableProcessor.php https://gitlab.com/staging06/myproject | PHP | 356 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * TableProcessor.php
                    
4 *
                    
32
                    
33require_once(dirname(__FILE__) . '/AbstractProcessor.php');
                    
34require_once(dirname(__FILE__) . '/CreateDefinitionProcessor.php');
                    
34require_once(dirname(__FILE__) . '/CreateDefinitionProcessor.php');
                    
35require_once(dirname(__FILE__) . '/../utils/ExpressionType.php');
                    
36
                    
95                if ($prevCategory === 'CREATE_DEF') {
                    
96                    $last = array_pop($result['options']);
                    
97                    $last['delim'] = ',';
                    
                
RecursiveIteratorIterator.php https://gitlab.com/Blueprint-Marketing/hhvm | PHP | 403 lines
                    
1<?php
                    
2
                    
2
                    
3// This doc comment block generated by idl/sysdoc.php
                    
4/**
                    
5 * ( excerpt from
                    
6 * http://docs.hhvm.com/manual/en/class.recursiveiteratoriterator.php )
                    
7 *
                    
36
                    
37  // This doc comment block generated by idl/sysdoc.php
                    
38  /**
                    
39   * ( excerpt from
                    
40   * http://docs.hhvm.com/manual/en/recursiveiteratoriterator.construct.php )
                    
41   *
                    
78
                    
79  // This doc comment block generated by idl/sysdoc.php
                    
80  /**
                    
                
BlockCommentSniff.php https://gitlab.com/0072016/PHP_CodeSniffer | PHP | 357 lines
                    
27 * @version   Release: @package_version@
                    
28 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
29 */
                    
64     */
                    
65    public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
                    
66    {
                    
67        if ($this->_tabWidth === null) {
                    
68            $cliValues = $phpcsFile->phpcs->cli->getCommandLineValues();
                    
69            if (isset($cliValues['tabWidth']) === false || $cliValues['tabWidth'] === 0) {
                    
86        if ($tokens[$stackPtr]['code'] === T_DOC_COMMENT_OPEN_TAG) {
                    
87            $nextToken = $phpcsFile->findNext(PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr + 1), null, true);
                    
88            $ignore    = array(
                    
105
                    
106            $prevToken = $phpcsFile->findPrevious(PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr - 1), null, true);
                    
107            if ($tokens[$prevToken]['code'] === T_OPEN_TAG) {
                    
                
Renderer.php https://gitlab.com/Georgiy.Zhegusov/museum_documents | PHP | 273 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * This file is part of the PHP_CodeCoverage package.
                    
4 *
                    
4 *
                    
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
                    
6 *
                    
13/**
                    
14 * Base class for PHP_CodeCoverage_Report_Node renderers.
                    
15 *
                    
17 */
                    
18abstract class PHP_CodeCoverage_Report_HTML_Renderer
                    
19{
                    
152     * @param Text_Template                $template
                    
153     * @param PHP_CodeCoverage_Report_Node $node
                    
154     */
                    
                
CodeHelper.php https://gitlab.com/mohamedchiheb.bida/workshopFOS | PHP | 234 lines
                    
1<?php
                    
2
                    
55        $parts = explode('\\', $class);
                    
56        $short = array_pop($parts);
                    
57
                    
87                $parts = explode('\\', $item[1]);
                    
88                $short = array_pop($parts);
                    
89                $formattedValue = sprintf('<em>object</em>(<abbr title="%s">%s</abbr>)', $item[1], $short);
                    
130            // highlight_file could throw warnings
                    
131            // see https://bugs.php.net/bug.php?id=25725
                    
132            $code = @highlight_file($file, true);
                    
156    {
                    
157        if (PHP_VERSION_ID >= 50400) {
                    
158            $flags = ENT_QUOTES | ENT_SUBSTITUTE;
                    
                
smarty_internal_compile_private_block_plugin.php https://gitlab.com/milutinke97/Controlify | PHP | 89 lines
                    
1<?php
                    
2/**
                    
33     * @param  string                               $tag       name of block plugin
                    
34     * @param  string                               $function  PHP function name
                    
35     *
                    
62            // compile code
                    
63            $output = "<?php \$_smarty_tpl->smarty->_cache['tag_stack'][] = array('{$tag}', {$_params}); \$_block_repeat=true; echo {$function}({$_params}, null, \$_smarty_tpl, \$_block_repeat);while (\$_block_repeat) { ob_start();?>";
                    
64        } else {
                    
81            }
                    
82            $output = "<?php \$_block_content = ob_get_clean(); \$_block_repeat=false;" . $mod_pre .
                    
83                " echo {$function}({$_params}, \$_block_content, \$_smarty_tpl, \$_block_repeat); " . $mod_post .
                    
83                " echo {$function}({$_params}, \$_block_content, \$_smarty_tpl, \$_block_repeat); " . $mod_post .
                    
84                " } array_pop(\$_smarty_tpl->smarty->_cache['tag_stack']);?>";
                    
85        }
                    
                
helpers.php https://gitlab.com/VTTE/sitios-vtte | PHP | 312 lines
                    
1<?php
                    
2use GutenPress\Forms;
                    
23			if (!empty($url)) {
                    
24				$id=array_pop(explode('/',$url));
                    
25				$iframe='<iframe src="http://player.vimeo.com/video/'.$id.'" width="'.$width.'" height="'.$height.'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';
                    
76
                    
77				$id=array_pop(explode('/',$url));
                    
78				$request = new WP_Http;
                    
78				$request = new WP_Http;
                    
79				$result = $request->request( 'http://vimeo.com/api/v2/video/'.$id.'.php' , $args );
                    
80				//$iframe='<iframe src="http://player.vimeo.com/video/'.$id.'?title=0&amp;byline=0&amp;portrait=0" width="'.$width.'" height="'.$height.'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';
                    
180		$out = explode(" ",$out);
                    
181		array_pop( $out );
                    
182		$out = implode(" ",$out);
                    
227/*
                    
228	Super PHP Plugin to add Full SVG Media support to WordPress
                    
229	Author URI: http://www.lewiscowles.co.uk/
                    
                
Dispatcher.php https://gitlab.com/kimting254/wbms | PHP | 486 lines
                    
1<?php namespace Illuminate\Events;
                    
2
                    
224			{
                    
225				array_pop($this->firing);
                    
226
                    
237
                    
238		array_pop($this->firing);
                    
239
                    
                
webdav_settings.php https://gitlab.com/alexprowars/bitrix | PHP | 427 lines
                    
22				$dirs = explode("/", $dir);
                    
23				array_pop($dirs);
                    
24				$file = trim(implode("/", $dirs)."/lang/".$arLanguage["LID"]."/include/webdav_settings.php");
                    
168
                    
169require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");
                    
170require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/interface/admin_lib.php");
                    
173$dirs = explode("/", $dir);
                    
174array_pop($dirs);
                    
175$file = trim(implode("/", $dirs)."/lang/".LANGUAGE_ID."/include/webdav_settings.php");
                    
269
                    
270	include($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/components/bitrix/webdav.iblock.rights/action.php");
                    
271
                    
374		<td width="50%" align="right" valign="top">
                    
375			<a href="/bitrix/admin/userfield_edit.php?ID=<?=$field["ID"]?>&back_url=<?=htmlspecialcharsbx($backUrl)?>"><?=htmlspecialcharsbx($name)?></a>:
                    
376		</td>
                    
                
Resource.php https://gitlab.com/Ltaimao/wecenter | PHP | 472 lines
                    
1<?php
                    
2/**
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24//require_once 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
73        if (!is_array($options)) {
                    
74            //require_once 'Zend/Loader/Exception.php';
                    
75            throw new Zend_Loader_Exception('Options must be passed to resource loader constructor');
                    
83        ) {
                    
84            //require_once 'Zend/Loader/Exception.php';
                    
85            throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization');
                    
90        }
                    
91        //require_once 'Zend/Loader/Autoloader.php';
                    
92        Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);
                    
119            if (!$this->hasResourceType($type)) {
                    
120                //require_once 'Zend/Loader/Exception.php';
                    
121                throw new Zend_Loader_Exception("Invalid resource type $type; cannot load resource");
                    
                
QueryParserContext.php https://gitlab.com/thuan9x/zend | PHP | 401 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: QueryParserContext.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
23/** Zend_Search_Lucene_Search_QueryToken */
                    
24require_once 'Zend/Search/Lucene/Search/QueryToken.php';
                    
25
                    
143        if ($this->_mode === self::GM_BOOLEAN) {
                    
144            require_once 'Zend/Search/Lucene/Search/QueryParserException.php';
                    
145            throw new Zend_Search_Lucene_Search_QueryParserException('It\'s not allowed to mix boolean and signs styles in the same subquery.');
                    
154        } else {
                    
155            require_once 'Zend/Search/Lucene/Exception.php';
                    
156            throw new Zend_Search_Lucene_Exception('Unrecognized sign type.');
                    
187        if ($this->_nextEntryField !== null  ||  $this->_nextEntrySign !== null) {
                    
188            require_once 'Zend/Search/Lucene/Search/QueryParserException.php';
                    
189            throw new Zend_Search_Lucene_Search_QueryParserException('\'~\' modifier must follow word or phrase.');
                    
                
Validator.php https://gitlab.com/dwi.nurhadi17/uns-log | PHP | 206 lines
                    
1<?php
                    
2
                    
39        $this->aliases = array();
                    
40        // PHP is a bit lax with integer <=> string conversions in
                    
41        // arrays, so we don't use the identical !== comparison
                    
64            ->assertIsString(); // implicit assertIsString handled by InterchangeBuilder
                    
65        array_pop($this->context);
                    
66    }
                    
104
                    
105        array_pop($this->context);
                    
106    }
                    
123        }
                    
124        array_pop($this->context);
                    
125    }
                    
151        }
                    
152        array_pop($this->context);
                    
153    }
                    
                
ProductCustomOptionRepositoryTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 373 lines
                    
1<?php
                    
2/**
                    
35    /**
                    
36     * @magentoApiDataFixture Magento/Catalog/_files/product_with_options.php
                    
37     * @magentoAppIsolation enabled
                    
45        $customOptions = $product->getOptions();
                    
46        $optionId = array_pop($customOptions)->getId();
                    
47        $serviceInfo = [
                    
66    /**
                    
67     * @magentoApiDataFixture Magento/Catalog/_files/product_with_options.php
                    
68     * @magentoAppIsolation enabled
                    
92        unset($option['option_id']);
                    
93        $excepted = include '_files/product_options.php';
                    
94        $this->assertEquals($excepted[0], $option);
                    
97    /**
                    
98     * @magentoApiDataFixture Magento/Catalog/_files/product_with_options.php
                    
99     * @magentoAppIsolation enabled
                    
                
schema.php https://gitlab.com/alexprowars/bitrix | PHP | 414 lines
                    
1<?php
                    
2namespace Bitrix\Perfmon\Sql;
                    
8\Bitrix\Main\Loader::includeModule('perfmon');
                    
9$dir = new \Bitrix\Main\IO\Directory("/opt/php03.cp1251.www/mercurial/bitrix/modules");
                    
10foreach ($dir->getChildren()  as $child)
                    
101			{
                    
102				array_pop($result[$index]);
                    
103				$index++;
                    
                
testcase.php https://gitlab.com/wuhang2003/core | PHP | 479 lines
                    
1<?php
                    
2/**
                    
35
                    
36abstract class TestCase extends \PHPUnit_Framework_TestCase {
                    
37	/** @var \OC\Command\QueueBus */
                    
182			if (!empty($parameters)) {
                    
183				$property->setValue($object, array_pop($parameters));
                    
184			}
                    
208		if (!self::$wasDatabaseAllowed && self::$realDatabase !== null) {
                    
209			// in case an error is thrown in a test, PHPUnit jumps straight to tearDownAfterClass,
                    
210			// so we need the database again
                    
425
                    
426		require_once __DIR__.'/../../lib/private/template/functions.php';
                    
427
                    
429		$theme = new OC_Defaults();
                    
430		/** @var IL10N | \PHPUnit_Framework_MockObject_MockObject $l10n */
                    
431		$l10n = $this->getMockBuilder('\OCP\IL10N')
                    
                
Table.php https://gitlab.com/Marwamimo/Crowdrise_Web | PHP | 409 lines
                    
1<?php
                    
2
                    
177        $keys = array_keys($this->rows);
                    
178        $rowKey = array_pop($keys);
                    
179
                    
                
Collection.php https://gitlab.com/biggercode/Eloquent-Outside-of-Laravel | PHP | 705 lines
                    
1<?php namespace Illuminate\Support;
                    
2
                    
293	{
                    
294		return array_pop($this->items);
                    
295	}
                    
                
rights_editor.class.php https://bitbucket.org/chamilo/chamilo-app-weblcms-dev/ | PHP | 317 lines
                    
1<?php
                    
2
                    
24/**
                    
25 * $Id: reporting_viewer.class.php 216 2009-11-13 14:08:06Z kariboe $
                    
26 * @package application.lib.weblcms.tool.component
                    
167        //remove last separator, or '<br/>' if no objects were found
                    
168        array_pop($info);
                    
169        
                    
                
PartialHelper.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 390 lines
                    
1<?php
                    
2
                    
16 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
17 * @version    SVN: $Id: PartialHelper.php 10227 2008-07-11 19:36:32Z fabien $
                    
18 */
                    
160 * The partial name is composed as follows: 'mymodule/mypartial'.
                    
161 * The partial file name is _mypartial.php and is looked for in modules/mymodule/templates/.
                    
162 * If the partial name doesn't include a module name,
                    
274
                    
275  $name = array_pop($slot_names);
                    
276
                    
                
Injector.php https://gitlab.com/Griffolion/Game-Embargo-Tracker | PHP | 281 lines
                    
1<?php
                    
2
                    
149        if (!empty($this->currentNesting)) {
                    
150            $parent_token = array_pop($this->currentNesting);
                    
151            $this->currentNesting[] = $parent_token;
                    
                
ErrorHandler.php https://gitlab.com/gregtyka/SiberianCMS | PHP | 300 lines
                    
1<?php
                    
2/**
                    
22/** Zend_Controller_Plugin_Abstract */
                    
23require_once 'Zend/Controller/Plugin/Abstract.php';
                    
24
                    
34 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
35 * @version    $Id: ErrorHandler.php 24593 2012-01-05 20:35:02Z matthew $
                    
36 */
                    
248                $frontController->throwExceptions(true);
                    
249                throw array_pop($exceptions);
                    
250            }
                    
                
FixtureManager.php https://gitlab.com/vannh/portal_training | PHP | 372 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 */
                    
144            $path = explode('/', $pathName);
                    
145            $name = array_pop($path);
                    
146            $additionalPath = implode('\\', $path);
                    
                
smarty_internal_compilebase.php https://gitlab.com/adamlwalker/generatedata | PHP | 176 lines
                    
1<?php
                    
2/**
                    
153            // get stacked info
                    
154            list($_openTag, $_data) = array_pop($compiler->_tag_stack);
                    
155            // open tag must match with the expected ones
                    
                
Run.php https://gitlab.com/lighty/whoops | PHP | 397 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Whoops - php errors for cool kids
                    
4 * @author Filipe Dobreira <http://github.com/filp>
                    
69    {
                    
70        return array_pop($this->handlerStack);
                    
71    }
                    
110            // Workaround PHP bug 42098
                    
111            // https://bugs.php.net/bug.php?id=42098
                    
112            class_exists("\\Whoops\\Exception\\ErrorException");
                    
295    /**
                    
296     * Converts generic PHP errors to \ErrorException
                    
297     * instances, before passing them off to be handled.
                    
382                // First argument must be a real header.
                    
383                // If it is empty, PHP will ignore the third argument.
                    
384                // If it is invalid, such as a single space, Apache will handle it well,
                    
                
Structure.php https://gitlab.com/yousafsyed/easternglamor | PHP | 227 lines
                    
1<?php
                    
2/**
                    
164        }
                    
165        $elementId = array_pop($pathParts);
                    
166        return ['id' => $elementId, 'path' => implode('/', $pathParts), '_elementType' => $elementType];
                    
                
ErrorHandler.php https://gitlab.com/devtoannh/cafe | PHP | 300 lines
                    
1<?php
                    
2/**
                    
22/** Zend_Controller_Plugin_Abstract */
                    
23require_once 'Zend/Controller/Plugin/Abstract.php';
                    
24
                    
34 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
35 * @version    $Id: ErrorHandler.php 24241 2011-07-14 08:09:41Z bate $
                    
36 */
                    
248                $frontController->throwExceptions(true);
                    
249                throw array_pop($exceptions);
                    
250            }
                    
                
CakeValidationSetTest.php https://gitlab.com/shubam39/CakeTooDoo | PHP | 337 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
                    
6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
12 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @link          http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
                    
14 * @package       Cake.Test.Case.Model.Validator
                    
14 * @package       Cake.Test.Case.Model.Validator
                    
15 * @since         CakePHP(tm) v 2.2.0
                    
16 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
165		$this->assertEquals(array('validEmail'), array_keys($result));
                    
166		$this->assertTrue(array_pop($result) instanceof CakeValidationRule);
                    
167
                    
176		$this->assertEquals(array('validEmail', 'notEmpty'), array_keys($result));
                    
177		$this->assertTrue(array_pop($result) instanceof CakeValidationRule);
                    
178		$this->assertTrue(array_pop($result) instanceof CakeValidationRule);
                    
                
TextDataTest.php https://gitlab.com/Iftekhar_ramim/AtomicProjects_127301_B21 | PHP | 365 lines
                    
1<?php
                    
2
                    
3
                    
4require_once 'testDataFileIterator.php';
                    
5
                    
5
                    
6class TextDataTest extends PHPUnit_Framework_TestCase
                    
7{
                    
10    {
                    
11        if (!defined('PHPEXCEL_ROOT'))
                    
12        {
                    
14        }
                    
15        require_once(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
16
                    
16
                    
17        PHPExcel_Calculation_Functions::setCompatibilityMode(PHPExcel_Calculation_Functions::COMPATIBILITY_EXCEL);
                    
18	}
                    
                
DocBlockScanner.php https://gitlab.com/yousafsyed/easternglamor | PHP | 326 lines
                    
1<?php
                    
2/**
                    
321
                    
322        array_pop($tokens);
                    
323
                    
                
PostgresGrammar.php https://gitlab.com/biggercode/database | PHP | 304 lines
                    
1<?php
                    
2
                    
282
                    
283        $attribute = array_pop($wrappedPath);
                    
284
                    
                
SetCookie.php https://gitlab.com/gregtyka/SiberianCMS | PHP | 546 lines
                    
1<?php
                    
2
                    
26 */
                    
27require_once "Zend/Http/Header/Exception/InvalidArgumentException.php";
                    
28
                    
31 */
                    
32require_once "Zend/Http/Header/Exception/RuntimeException.php";
                    
33
                    
34/**
                    
35 * Zend_Http_Client is an implementation of an HTTP client in PHP. The client
                    
36 * supports basic features like sending different HTTP requests and handling
                    
164        }
                    
165        return count($headers) == 1 ? array_pop($headers) : $headers;
                    
166    }
                    
                
class-wp-terms-list-table.php https://gitlab.com/gregtyka/WordPress-stable | PHP | 380 lines
                    
310		if ( $count )
                    
311			$count = "<a href='link-manager.php?cat_id=$tag->term_id'>$count</a>";
                    
312		return $count;
                    
347				</label>
                    
348	<?php } ?>
                    
349			</div></fieldset>
                    
349			</div></fieldset>
                    
350	<?php
                    
351
                    
365		<p class="inline-edit-save submit">
                    
366			<a accesskey="c" href="#inline-edit" title="<?php esc_attr_e( 'Cancel' ); ?>" class="cancel button-secondary alignleft"><?php _e( 'Cancel' ); ?></a>
                    
367			<?php $update_text = $tax->labels->update_item; ?>
                    
367			<?php $update_text = $tax->labels->update_item; ?>
                    
368			<a accesskey="s" href="#inline-edit" title="<?php echo esc_attr( $update_text ); ?>" class="save button-primary alignright"><?php echo $update_text; ?></a>
                    
369			<img class="waiting" style="display:none;" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />
                    
                
FlattenException.php https://github.com/symfony/symfony.git | PHP | 427 lines
                    
1<?php
                    
2
                    
18/**
                    
19 * FlattenException wraps a PHP Error or Exception to be able to serialize it.
                    
20 *
                    
228        if (false !== strpos($message, "@anonymous\0")) {
                    
229            $message = preg_replace_callback('/[a-zA-Z_\x7f-\xff][\\\\a-zA-Z0-9_\x7f-\xff]*+@anonymous\x00.*?\.php(?:0x?|:[0-9]++\$)[0-9a-fA-F]++/', function ($m) {
                    
230                return class_exists($m[0], false) ? (get_parent_class($m[0]) ?: key(class_implements($m[0])) ?: 'class').'@anonymous' : $m[0];
                    
323                $parts = explode('\\', $entry['class']);
                    
324                $class = array_pop($parts);
                    
325                $namespace = implode('\\', $parts);
                    
349            }
                    
350            if ($value instanceof \__PHP_Incomplete_Class) {
                    
351                $result[$key] = ['incomplete-object', $this->getClassNameFromIncomplete($value)];
                    
377
                    
378    private function getClassNameFromIncomplete(\__PHP_Incomplete_Class $value): string
                    
379    {
                    
                
Message.php https://gitlab.com/wuhang2003/typecho | PHP | 167 lines
                    
1<?php
                    
2/*
                    
5   Site:   http://scripts.incutio.com/xmlrpc/
                    
6   Manual: http://scripts.incutio.com/xmlrpc/manual.php
                    
7   Made available under the Artistic License: http://www.opensource.org/licenses/artistic-license.php
                    
129            case 'struct':
                    
130                $value = array_pop($this->_arraystructs);
                    
131                array_pop($this->_arraystructstypes);
                    
134            case 'member':
                    
135                array_pop($this->_currentStructName);
                    
136                break;
                    
                
Parser.php https://gitlab.com/matijabelec/bigpandadev | PHP | 399 lines
                    
1<?php
                    
2
                    
120        // restore previous stack so previous parse() call can resume working
                    
121        foreach (array_pop($this->stack) as $key => $val) {
                    
122            $this->$key = $val;
                    
226    {
                    
227        array_pop($this->blockStack);
                    
228    }
                    
                
seo_pro.php https://gitlab.com/AndreyLes/top-tap | PHP | 434 lines
                    
1<?php
                    
2class ControllerCommonSeoPro extends Controller {
                    
33			$parts = explode('/', trim(utf8_strtolower($route), '/'));
                    
34			list($last_part) = explode('.', array_pop($parts));
                    
35			array_push($parts, $last_part);
                    
201
                    
202		$link .= 'index.php?route=' . $route;
                    
203
                    
                
Captcha.php https://gitlab.com/gregtyka/SiberianCMS | PHP | 302 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Captcha.php 24848 2012-05-31 19:28:48Z rob $
                    
21 */
                    
23/** @see Zend_Form_Element_Xhtml */
                    
24require_once 'Zend/Form/Element/Xhtml.php';
                    
25
                    
26/** @see Zend_Captcha_Adapter */
                    
27require_once 'Zend/Captcha/Adapter.php';
                    
28
                    
206            if (!isset($this->_loaders[$type])) {
                    
207                require_once 'Zend/Loader/PluginLoader.php';
                    
208                $this->_loaders[$type] = new Zend_Loader_PluginLoader(
                    
291        array_unshift($segments, $root);
                    
292        array_pop($segments);
                    
293        $newContext = $context;
                    
                
CakeValidationSetTest.php https://gitlab.com/nghiep5890/bakery | PHP | 337 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
                    
6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
12 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @link          http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
                    
14 * @package       Cake.Test.Case.Model.Validator
                    
14 * @package       Cake.Test.Case.Model.Validator
                    
15 * @since         CakePHP(tm) v 2.2.0
                    
16 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
165		$this->assertEquals(array('validEmail'), array_keys($result));
                    
166		$this->assertTrue(array_pop($result) instanceof CakeValidationRule);
                    
167
                    
176		$this->assertEquals(array('validEmail', 'notBlank'), array_keys($result));
                    
177		$this->assertTrue(array_pop($result) instanceof CakeValidationRule);
                    
178		$this->assertTrue(array_pop($result) instanceof CakeValidationRule);
                    
                
hacklib_vectorLike.php https://gitlab.com/Blueprint-Marketing/hhvm | PHP | 214 lines
                    
1<?php
                    
2/**
                    
12namespace HH {
                    
13  require_once(__DIR__.SEP.'..'.SEP.'hacklib_iterator.php');
                    
14  require_once(__DIR__.SEP.'hacklib_constVectorLike.php');
                    
14  require_once(__DIR__.SEP.'hacklib_constVectorLike.php');
                    
15  require_once(__DIR__.SEP.'hacklib_commonMutableContainerMethods.php');
                    
16
                    
122      $this->hacklib_expireAllIterators();
                    
123      return array_pop($this->container);
                    
124   }
                    
                
CleanerHelper.php git://github.com/CakeDC/comments.git | PHP | 444 lines
                    
1<?php
                    
2/**
                    
8 * @copyright Copyright 2009 - 2013, Cake Development Corporation (http://cakedc.com)
                    
9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
10 */
                    
257				$attributeSubSetTmp = array_reverse($attributeSubSetTmp);
                    
258				array_pop($attributeSubSetTmp);
                    
259				$attributeSubSetTmp = array_reverse($attributeSubSetTmp);
                    
                
Burgomaster.php https://gitlab.com/github-cloud-corp/aws-sdk-php | PHP | 394 lines
                    
1<?php
                    
2
                    
97            $this->debug('Completed');
                    
98            array_pop($this->sections);
                    
99        }
                    
156     * @param array     $extensions File extensions to copy from the $sourceDir.
                    
157     *                              Defaults to "php" files only (e.g., ['php']).
                    
158     * @param Iterator|null  $files Files to copy from the source directory, each
                    
165        $destDir,
                    
166        $extensions = array('php'),
                    
167        Iterator $files = null
                    
229     * Creates a class-map autoloader to the staging directory in a file
                    
230     * named autoloader.php
                    
231     *
                    
236     */
                    
237    function createAutoloader($files = array(), $filename = 'autoloader.php') {
                    
238        $sourceDir = realpath($this->stageDir);
                    
                
AlterTable.php https://gitlab.com/jalon/doadoronline | PHP | 268 lines
                    
1<?php
                    
2/**
                    
203        // remove last ,\n
                    
204        array_pop($sqls);
                    
205
                    
                
MemcachedStore.php https://gitlab.com/x33n/ampache | PHP | 207 lines
                    
1<?php
                    
2
                    
6 *
                    
7 * PHP versions 4 and 5
                    
8 *
                    
20 */
                    
21require_once 'Auth/OpenID/Interface.php';
                    
22
                    
114        sort($keys);
                    
115        $lastKey = $serverAssociations[array_pop($keys)];
                    
116        
                    
                
Upload.php https://gitlab.com/wuhang2003/typecho | PHP | 432 lines
                    
1<?php
                    
2if (!defined('__TYPECHO_ROOT_DIR__')) exit;
                    
295        if (!empty($_FILES)) {
                    
296            $file = array_pop($_FILES);
                    
297            if (0 == $file['error'] && is_uploaded_file($file['tmp_name'])) {
                    
360        if (!empty($_FILES)) {
                    
361            $file = array_pop($_FILES);
                    
362            if (0 == $file['error'] && is_uploaded_file($file['tmp_name'])) {
                    
                
ContainableBehavior.php https://gitlab.com/digaotinfo/abear.com.br | PHP | 428 lines
                    
1<?php
                    
2/**
                    
6 *
                    
7 * PHP 5
                    
8 *
                    
8 *
                    
9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
10 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @link          http://cakephp.org CakePHP(tm) Project
                    
17 * @package       Cake.Model.Behavior
                    
17 * @package       Cake.Model.Behavior
                    
18 * @since         CakePHP(tm) v 1.2.0.5669
                    
19 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
27 * @package       Cake.Model.Behavior
                    
28 * @link http://book.cakephp.org/2.0/en/core-libraries/behaviors/containable.html
                    
29 */
                    
                
NodeTraverser.php https://gitlab.com/ealexis.t/trends | PHP | 162 lines
                    
1<?php
                    
2
                    
2
                    
3namespace PhpParser;
                    
4
                    
154        if (!empty($doNodes)) {
                    
155            while (list($i, $replace) = array_pop($doNodes)) {
                    
156                array_splice($nodes, $i, 1, $replace);
                    
                
class-zip.php https://gitlab.com/endomorphosis/falkenstein | PHP | 306 lines
                    
1<?php
                    
2
                    
110				if (is_array($write) && in_array($pipes[0], $write) && is_array($files) && count($files)>0) {
                    
111					$file = array_pop($files);
                    
112					// Send the list of files on stdin
                    
217	public function open($path, $flags = 0) {
                    
218		if(!class_exists('PclZip')) include_once(ABSPATH.'/wp-admin/includes/class-pclzip.php');
                    
219		if(!class_exists('PclZip')) {
                    
                
Html.php git://github.com/robotis/PHPLinter.git | PHP | 311 lines
                    
4*  @desc			HTML Reporter
                    
5*  @file 			Html.php
                    
6*  @author 			Jóhann T. Maríusson <jtm@robot.is>
                    
9*  @copyright
                    
10*    phplinter is free software: you can redistribute it and/or modify
                    
11*    it under the terms of the GNU General Public License as published by
                    
23*/
                    
24namespace phplinter\Report;
                    
25class Html extends Base {
                    
68			if(!$this->dry_run)
                    
69				\phplinter\Path::del_recursive($output_dir);
                    
70		}
                    
114			$url['phplinter___url'] = strtr($rfile, './', '__').'.html';
                    
115			$url['phplinter___sort'] = strtolower($url['phplinter___url']);
                    
116			$this->parts($pp, $url, $urls);
                    
                
ViewStorageTest.php https://gitlab.com/geeta7/drupal | PHP | 360 lines
                    
1<?php
                    
2
                    
140    // Remove display from list.
                    
141    array_pop($properties);
                    
142
                    
                
Ordered.php https://gitlab.com/svillegas/magento2 | PHP | 153 lines
                    
1<?php
                    
2/**
                    
11 * @author      Magento Core Team <core@magentocommerce.com>
                    
12 * @SuppressWarnings(PHPMD.DepthOfInheritance)
                    
13 */
                    
63            $storeIds = $this->_storeManager->getWebsite($this->getParam('website'))->getStoreIds();
                    
64            $storeId = array_pop($storeIds);
                    
65        } elseif ($this->getParam('group')) {
                    
66            $storeIds = $this->_storeManager->getGroup($this->getParam('group'))->getStoreIds();
                    
67            $storeId = array_pop($storeIds);
                    
68        } else {
                    
                
Standards.php git://github.com/jonswar/perl-code-tidyall.git | PHP | 326 lines
                    
1<?php
                    
2/**
                    
6 * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
                    
7 * @license   https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
                    
8 */
                    
9
                    
10namespace PHP_CodeSniffer\Util;
                    
11
                    
11
                    
12use PHP_CodeSniffer\Config;
                    
13
                    
66     * @param string  $standardsDir   A specific directory to look for standards
                    
67     *                                in. If not specified, PHP_CodeSniffer will
                    
68     *                                look in its default locations.
                    
155     * @param string  $standardsDir   A specific directory to look for standards
                    
156     *                                in. If not specified, PHP_CodeSniffer will
                    
157     *                                look in its default locations.
                    
                
ErrorHandler.php https://gitlab.com/grayhamster/open-social-media-monitoring | PHP | 300 lines
                    
1<?php
                    
2/**
                    
22/** Zend_Controller_Plugin_Abstract */
                    
23require_once 'Zend/Controller/Plugin/Abstract.php';
                    
24
                    
34 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
35 * @version    $Id: ErrorHandler.php 24594 2012-01-05 21:27:01Z matthew $
                    
36 */
                    
248                $frontController->throwExceptions(true);
                    
249                throw array_pop($exceptions);
                    
250            }
                    
                
XmlToAppData.php https://gitlab.com/ahsanhamid/mereawaz | PHP | 409 lines
                    
1<?php
                    
2
                    
3/*
                    
4 *  $Id: XmlToAppData.php 1262 2009-10-26 20:54:39Z francois $
                    
5 *
                    
19 * and is licensed under the LGPL. For more information please see
                    
20 * <http://propel.phpdb.org>.
                    
21 */
                    
22
                    
23include_once 'propel/engine/database/model/AppData.php';
                    
24
                    
25// Phing dependencies
                    
26require_once 'phing/parser/AbstractHandler.php';
                    
27include_once 'phing/system/io/FileReader.php';
                    
30 * A class that is used to parse an input xml schema file and creates an AppData
                    
31 * PHP object.
                    
32 *
                    
                
QueryParserContext.php https://gitlab.com/axeltizon/magentoV1.9-demopoweraccess | PHP | 401 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: QueryParserContext.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
23/** Zend_Search_Lucene_Search_QueryToken */
                    
24#require_once 'Zend/Search/Lucene/Search/QueryToken.php';
                    
25
                    
143        if ($this->_mode === self::GM_BOOLEAN) {
                    
144            #require_once 'Zend/Search/Lucene/Search/QueryParserException.php';
                    
145            throw new Zend_Search_Lucene_Search_QueryParserException('It\'s not allowed to mix boolean and signs styles in the same subquery.');
                    
154        } else {
                    
155            #require_once 'Zend/Search/Lucene/Exception.php';
                    
156            throw new Zend_Search_Lucene_Exception('Unrecognized sign type.');
                    
187        if ($this->_nextEntryField !== null  ||  $this->_nextEntrySign !== null) {
                    
188            #require_once 'Zend/Search/Lucene/Search/QueryParserException.php';
                    
189            throw new Zend_Search_Lucene_Search_QueryParserException('\'~\' modifier must follow word or phrase.');
                    
                
UriResolver.php https://gitlab.com/VTTE/sitios-vtte | PHP | 190 lines
                    
1<?php
                    
2
                    
31            if ($segment === '..') {
                    
32                \array_pop($results);
                    
33            } elseif ($segment !== '.') {
                    
159        $targetSegments = \explode('/', $target->getPath());
                    
160        \array_pop($sourceSegments);
                    
161        $targetLastSegment = \array_pop($targetSegments);
                    
                
lists.js https://gitlab.com/Drulenium-test/pantheon-travis | JavaScript | 381 lines
                    
21/**
                    
22 * @fileoverview Generating PHP for list blocks.
                    
23 * @author daarond@gmail.com (Daaron Dwyer)
                    
26
                    
27goog.provide('Blockly.PHP.lists');
                    
28
                    
28
                    
29goog.require('Blockly.PHP');
                    
30
                    
31
                    
32Blockly.PHP['lists_create_empty'] = function(block) {
                    
33  // Create an empty list.
                    
33  // Create an empty list.
                    
34  return ['array()', Blockly.PHP.ORDER_ATOMIC];
                    
35};
                    
                
ActionStack.php https://gitlab.com/devtoannh/cafe | PHP | 280 lines
                    
1<?php
                    
2/**
                    
22/** Zend_Controller_Plugin_Abstract */
                    
23require_once 'Zend/Controller/Plugin/Abstract.php';
                    
24
                    
25/** Zend_Registry */
                    
26require_once 'Zend/Registry.php';
                    
27
                    
36 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
37 * @version    $Id: ActionStack.php 23775 2011-03-01 17:25:24Z ralph $
                    
38 */
                    
207
                    
208        $next = array_pop($stack);
                    
209        $this->_saveStack($stack);
                    
211        if (!$next instanceof Zend_Controller_Request_Abstract) {
                    
212            require_once 'Zend/Controller/Exception.php';
                    
213            throw new Zend_Controller_Exception('ArrayStack should only contain request objects');
                    
                
CellTest.php https://gitlab.com/Iftekhar_ramim/AtomicProjects_127301_B21 | PHP | 295 lines
                    
1<?php
                    
2
                    
3
                    
4require_once 'testDataFileIterator.php';
                    
5
                    
11        if (!defined('PHPEXCEL_ROOT')) {
                    
12            define('PHPEXCEL_ROOT', APPLICATION_PATH . '/');
                    
13        }
                    
13        }
                    
14        require_once(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
15	}
                    
22		$args = func_get_args();
                    
23		$expectedResult = array_pop($args);
                    
24		$result = call_user_func_array(array('PHPExcel_Cell','columnIndexFromString'),$args);
                    
130		$args = func_get_args();
                    
131		$expectedResult = array_pop($args);
                    
132		$result = call_user_func_array(array('PHPExcel_Cell','absoluteCoordinate'),$args);
                    
                
Folder.php https://gitlab.com/akbaryu/project_magang_blog_grav | PHP | 346 lines
                    
1<?php
                    
2/**
                    
84
                    
85        array_pop($baseParts);
                    
86        $lastPart = array_pop($pathParts);
                    
                
class-avada-blog.php https://gitlab.com/webkod3r/tripolis | PHP | 236 lines
                    
1<?php
                    
2
                    
91    	if ( $excerpt_length < count( $content ) ) {
                    
92    		array_pop( $content );
                    
93    	}
                    
172
                    
173                    array_pop( $content );
                    
174                    $content = implode( ' ',$content );
                    
235
                    
236// Omit closing PHP tag to avoid "Headers already sent" issues.
                    
237
                    
                
sfValidatorFromDescription.class.php https://gitlab.com/ahsanhamid/mereawaz | PHP | 387 lines
                    
1<?php
                    
2
                    
16 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
17 * @version    SVN: $Id: sfValidatorFromDescription.class.php 28700 2010-03-23 11:57:16Z fabien $
                    
18 */
                    
36  /**
                    
37   * Returns a PHP representation for the validator.
                    
38   *
                    
38   *
                    
39   * This PHP representation can be evaled to return the object validator.
                    
40   *
                    
42   *
                    
43   * @return string The PHP representation for the validator
                    
44   */
                    
44   */
                    
45  public function asPhp()
                    
46  {
                    
                
template.php https://gitlab.com/endomorphosis/superchooseday | PHP | 288 lines
                    
1<?php // $Id: template.php,v 1.8 2009/05/04 21:34:31 jmburnz Exp $
                    
2
                    
4 * @file
                    
5 *  template.php
                    
6 */
                    
22   * The default values for the theme variables. Make sure $defaults exactly
                    
23   * matches the $defaults in the theme-settings.php file.
                    
24   */
                    
62   * The default values for the theme variables. Make sure $defaults exactly
                    
63   * matches the $defaults in the theme-settings.php file.
                    
64   */
                    
87/**
                    
88 * Override or insert PHPTemplate variables into the page templates.
                    
89 *
                    
136          if ($section == 'node') {
                    
137            array_pop($body_classes); // Remove 'section-node'
                    
138          }
                    
                
functions.php https://gitlab.com/gregtyka/lfmawordpress | PHP | 240 lines
                    
1<?php
                    
2
                    
201		$new_words_array = (array) explode( ' ', $truncate );
                    
202		array_pop( $new_words_array );
                    
203
                    
230	if ( count( $words_array ) > $num_words ) {
                    
231		array_pop( $words_array );
                    
232		$text = implode( $sep, $words_array );
                    
                
AdminAttributeGenerator.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 271 lines
                    
1<?php
                    
2
                    
3/**
                    
4  * Attribute generator tab for admin panel, AdminAttributeGenerator.php
                    
5  * @category admin
                    
8  * @copyright PrestaShop
                    
9  * @license http://www.opensource.org/licenses/osl-3.0.php Open-source licence 3.0
                    
10  * @version 1.3
                    
14@ini_set('max_execution_time', 3600);
                    
15include_once(PS_ADMIN_DIR.'/../classes/AdminTab.php');
                    
16
                    
47		$res = array();
                    
48		$first = array_pop($list);
                    
49		foreach ($first AS $attribute)
                    
                
genorder.php http://opixido-ocms.googlecode.com/svn/trunk/ | PHP | 275 lines
                    
1<?php
                    
2
                    
42            foreach ($_Gconfig['fullArbo'] as $root_table => $v) {
                    
43                $v = array_pop($v);
                    
44                $_Gconfig['fullArboRev'][$v[0]] = array($v[1], $v[2]);
                    
                
WindJson.php https://gitlab.com/wuhang2003/phpwind | PHP | 330 lines
                    
1<?php
                    
2Wind::import('WIND:utility.WindConvert');
                    
5 * 
                    
6 * 支持json转php类型,以及php类型转json.
                    
7 * @author Long.shi <long.shi@adlibaba-inc.com> 2011-10-19
                    
7 * @author Long.shi <long.shi@adlibaba-inc.com> 2011-10-19
                    
8 * @copyright ©2003-2103 phpwind.com
                    
9 * @license http://www.windframework.com
                    
9 * @license http://www.windframework.com
                    
10 * @version $Id: WindJson.php 3859 2012-12-18 09:25:51Z yishuo $
                    
11 * @package utility
                    
84	/**
                    
85	 * 将json格式转成php string类型
                    
86	 *
                    
183			} elseif (($chrs{$c} == $top['delim']) && ($top['what'] == self::JSON_IN_STR) && (($chrs{$c - 1} != "\\") || ($chrs{$c - 1} == "\\" && $chrs{$c - 2} == "\\"))) {
                    
184				array_pop($stk);
                    
185			} elseif (($chrs{$c} == '[') && in_array($top['what'], 
                    
                
FixNesting.php https://gitlab.com/Griffolion/Game-Embargo-Tracker | PHP | 181 lines
                    
1<?php
                    
2
                    
111        while (!empty($stack)) {
                    
112            list($node, $is_inline, $excludes, $ix) = array_pop($stack);
                    
113            // recursive call
                    
                
ModelBusiness.php https://gitlab.com/phalcony/phalcony-core | PHP | 266 lines
                    
1<?php
                    
2
                    
83                $sufix,
                    
84                array_pop($arr)
                    
85            );
                    
125            $arr = explode('\\', $modelClass);
                    
126            $modelAbsoluteName = array_pop($arr);
                    
127            $tableName = \Phalcon\Text::uncamelize($modelAbsoluteName);
                    
                
HipChatHandler.php https://gitlab.com/gregtyka/helloworld1234 | PHP | 299 lines
                    
1<?php
                    
2
                    
230            $messages[] = $record['message'];
                    
231            $messgeStr = implode(PHP_EOL, $messages);
                    
232            $formattedMessages[] = $this->getFormatter()->format($record);
                    
243                // Pop the last message and implode the remainging messages
                    
244                $lastMessage = array_pop($messages);
                    
245                $lastFormattedMessage = array_pop($formattedMessages);
                    
245                $lastFormattedMessage = array_pop($formattedMessages);
                    
246                $batchRecord['message'] = implode(PHP_EOL, $messages);
                    
247                $batchRecord['formatted'] = implode('', $formattedMessages);
                    
                
SC_Image.php https://gitlab.com/raku.takayama/eccube-2_13 | PHP | 242 lines
                    
1<?php
                    
2/*
                    
23
                    
24//---- アップロードファイル加工クラス(thumb.phpとセットで使用する)
                    
25class SC_Image
                    
139        // サムネイル画像ファイル名作成処理
                    
140        $tmp = array_pop(explode('/', $FromImgPath)); // /の一番最後を切り出し
                    
141        $FromFileName = array_shift(explode('.', $tmp)); // .で区切られた部分を切り出し
                    
                
fs.ajax.php https://gitlab.com/x33n/ampache | PHP | 267 lines
                    
1<?php
                    
2/* vim:set softtabstop=4 shiftwidth=4 expandtab: */
                    
26
                    
27require_once '../lib/init.php';
                    
28$rootdir = Upload::get_root();
                    
122                case 'htaccess':
                    
123                case 'php':
                    
124                    $dat['content'] = file_get_contents($dir);
                    
163        $new = explode(DIRECTORY_SEPARATOR, $dir);
                    
164        array_pop($new);
                    
165        array_push($new, $name);
                    
192        $new = explode(DIRECTORY_SEPARATOR, $dir);
                    
193        $new = array_pop($new);
                    
194        $new = $par . DIRECTORY_SEPARATOR . $new;
                    
202        $new = explode(DIRECTORY_SEPARATOR, $dir);
                    
203        $new = array_pop($new);
                    
204        $new = $par . DIRECTORY_SEPARATOR . $new;
                    
                
class.php https://gitlab.com/alexprowars/bitrix | PHP | 281 lines
                    
1<?php
                    
2use Bitrix\Main,
                    
171				{
                    
172					$defaultWorkgroup = array_pop($workgroupsList);
                    
173					$this->setFilter([
                    
                
class-terminus.php https://gitlab.com/blueprintmrk/cli | PHP | 449 lines
                    
158    if (!$configurator) {
                    
159      $configurator = new Configurator(TERMINUS_ROOT . '/php/config-spec.php');
                    
160    }
                    
189    if (defined('PHP_BINARY')) {
                    
190      $php_bin = PHP_BINARY;
                    
191    } elseif (getenv('TERMINUS_PHP_USED')) {
                    
193    } elseif (getenv('TERMINUS_PHP')) {
                    
194      $php_bin = getenv('TERMINUS_PHP');
                    
195    } else {
                    
195    } else {
                    
196      $php_bin = 'php';
                    
197    }
                    
299
                    
300    $php_bin      = '"' . self::getPhpBinary() . '"' ;
                    
301    $script_path  = '"' . $script_path . '"';
                    
                
functions.php https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests | PHP | 340 lines
                    
47	<li id="search_widget" class="widget widget_search">
                    
48<?php if ( !is_dynamic_sidebar() ) { ?><h2><?php _e('Etc', 'depo-masthead'); ?></h2><?php } ?>
                    
49<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
                    
61		<?php while (have_posts()) : the_post(); ?>
                    
62				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'depo-masthead'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2>
                    
63				<div class="entry">
                    
87function rss_widget() { ?>
                    
88	<li id="rss_link" class="widget widget_rss"><a href="<?php bloginfo('rss2_url'); ?>"><?php _e('RSS Feed', 'depo-masthead'); ?></a></li>
                    
89<?php 
                    
319				}
                    
320				wp_redirect("themes.php?page=functions.php&saved=true");
                    
321				die;
                    
333		<?php wp_nonce_field('depo-name'); ?>
                    
334		<p><label for="author-name"><?php _e('Author Box Text:', 'depo-masthead'); ?></label> <input type="text" name="author-name" value="<?php echo get_option('depo-author-name'); ?>" id="author-name" /> <small><?php _e('Leaving this field blank will insert the blog author\'s name.', 'depo-masthead'); ?></small></p>
                    
335		<p><input type="hidden" name="action" value="save" /> <input type="submit" name="submit" value="<?php echo attribute_escape(__('Submit', 'depo-masthead')); ?>" id="submit" /></p>
                    
                
Process.php https://bitbucket.org/ttphong2612/billigastamplar-new.se.git | PHP | 451 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-2018 Magento, Inc. (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
127            if (strpos(str_replace($this->_includeDir, '', $target), '-')
                    
128                || !in_array(substr($source, strlen($source)-4, 4), array('.php'))) {
                    
129                return $this;
                    
199        } else {
                    
200            if (!in_array(substr($source, strlen($source)-4, 4), array('.php'))) {
                    
201                return $this;
                    
293                ksort($popularStatClasses);
                    
294                $statClasses = array_pop($popularStatClasses);
                    
295                unset($statFiles[$code]);
                    
                
Dispatcher.php https://gitlab.com/4gdevs/online-class-record-system | PHP | 499 lines
                    
1<?php
                    
2
                    
226            if (! is_null($response) && $halt) {
                    
227                array_pop($this->firing);
                    
228
                    
241
                    
242        array_pop($this->firing);
                    
243
                    
                
phob.class.php http://phob.googlecode.com/svn/trunk/ | PHP | 540 lines
                    
1<?php
                    
2
                    
7 * @copyright   Copyright (c) 2008 - 2009, Jan Skrasek
                    
8 * @version     0.8 $Id: phob.class.php 42 2010-01-16 19:01:17Z skrasek.jan@gmail.com $
                    
9 * @link        http://phob.skrasek.com
                    
166		if (in_array($this->router['action'], array('view', 'preview')))
                    
167			$this->router['name'] = array_pop($url);
                    
168
                    
201					$upPath = $this->router['path'];
                    
202					array_pop($upPath);
                    
203					$upPath = implode('/', $upPath);
                    
                
RecentFavoriteTable.class.php https://gitlab.com/qbarbosa/klindev | PHP | 392 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
5 *
                    
6 * @package PhpMyAdmin
                    
7 */
                    
8
                    
9if (! defined('PHPMYADMIN')) {
                    
10    exit;
                    
12
                    
13require_once './libraries/Message.class.php';
                    
14
                    
20 *
                    
21 * @package PhpMyAdmin
                    
22 */
                    
94    /**
                    
95     * Returns recently used tables or favorite from phpMyAdmin database.
                    
96     *
                    
                
ProtoLexer.php git://pkgs.fedoraproject.org/php-pear-CodeGen-PECL | PHP | 305 lines
                    
1<?php
                    
2class CodeGen_PECL_Tools_ProtoLexer
                    
33    {
                    
34        $this->_yy_state = array_pop($this->_yy_stack);
                    
35    }
                    
                
Content.php https://gitlab.com/x33n/ImpressPages | PHP | 549 lines
                    
1<?php
                    
2/**
                    
275        if (!empty($pages)) {
                    
276            array_pop($pages);
                    
277            $breadcrumb = $pages;
                    
                
AphrontBaseMySQLDatabaseConnection.php git://github.com/facebook/phabricator.git | PHP | 415 lines
                    
1<?php
                    
2
                    
149      if ($this->connectionPool) {
                    
150        $this->connection = array_pop($this->connectionPool);
                    
151      } else {
                    
                
class.mime.message.php https://bitbucket.org/dotclear/dotclear/ | PHP | 467 lines
                    
1<?php
                    
2# ***** BEGIN LICENSE BLOCK *****
                    
78			$r = $this->headers[$hdr];
                    
79			return array_pop($r);
                    
80		}
                    
300				# This splits on a semi-colon, if there's no preceeding backslash
                    
301				# Now works with quoted values; had to glue the \; breaks in PHP
                    
302				# the regex is already bordering on incomprehensible
                    
                
ObjectCollection.php https://gitlab.com/digaotinfo/abear.com.br | PHP | 326 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
9 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @link          http://cakephp.org CakePHP(tm) Project
                    
11 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
24 * @package       Cake.Utility
                    
25 * @since CakePHP(tm) v 2.0
                    
26 */
                    
112			$parts = explode('.', $event->name());
                    
113			$callback = array_pop($parts);
                    
114		}
                    
                
Process.php https://gitlab.com/blingbang2016/shop | PHP | 451 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 */
                    
127            if (strpos(str_replace($this->_includeDir, '', $target), '-')
                    
128                || !in_array(substr($source, strlen($source)-4, 4), array('.php'))) {
                    
129                return $this;
                    
199        } else {
                    
200            if (!in_array(substr($source, strlen($source)-4, 4), array('.php'))) {
                    
201                return $this;
                    
293                ksort($popularStatClasses);
                    
294                $statClasses = array_pop($popularStatClasses);
                    
295                unset($statFiles[$code]);
                    
                
po.php https://gitlab.com/VTTE/sitios-vtte | PHP | 510 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * @version $Id: po.php 1158 2015-11-20 04:31:23Z dd32 $
                    
6 * @package pomo
                    
9
                    
10require_once __DIR__ . '/translations.php';
                    
11
                    
185				 */
                    
186				array_pop( $lines );
                    
187				$append = "\n";
                    
                
ProfilerListener.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 165 lines
                    
1<?php
                    
2
                    
125            // to be removed when requestStack is required
                    
126            array_pop($this->requests);
                    
127
                    
                
URINorm.php https://gitlab.com/x33n/ampache | PHP | 249 lines
                    
1<?php
                    
2
                    
11
                    
12require_once 'Auth/Yadis/Misc.php';
                    
13
                    
114            if ($result_segments) {
                    
115                array_pop($result_segments);
                    
116            }
                    
119            if ($result_segments) {
                    
120                array_pop($result_segments);
                    
121            }
                    
                
PSR0Resource.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 126 lines
                    
1<?php
                    
2
                    
3/*
                    
4 * This file is part of PhpSpec, A php toolset to drive emergent
                    
5 * design by specification.
                    
13
                    
14namespace PhpSpec\Locator\PSR0;
                    
15
                    
15
                    
16use PhpSpec\Locator\ResourceInterface;
                    
17
                    
60        if ($this->locator->isPSR4()) {
                    
61            return $this->locator->getFullSrcPath().implode(DIRECTORY_SEPARATOR, $this->parts).'.php';
                    
62        }
                    
64        $nsParts   = $this->parts;
                    
65        $classname = array_pop($nsParts);
                    
66        $parts     = array_merge($nsParts, explode('_', $classname));
                    
                
IOFactory.php https://gitlab.com/ilyales/vigma | PHP | 289 lines
                    
8    define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../');
                    
9    require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
10}
                    
32 * @package    PHPExcel
                    
33 * @copyright  Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
34 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt    LGPL
                    
47        array( 'type' => 'IWriter', 'path' => 'PHPExcel/Writer/{0}.php', 'class' => 'PHPExcel_Writer_{0}' ),
                    
48        array( 'type' => 'IReader', 'path' => 'PHPExcel/Reader/{0}.php', 'class' => 'PHPExcel_Reader_{0}' )
                    
49    );
                    
180    /**
                    
181     * Loads PHPExcel from file using automatic PHPExcel_Reader_IReader resolution
                    
182     *
                    
213    /**
                    
214     * Create PHPExcel_Reader_IReader for file using automatic PHPExcel_Reader_IReader resolution
                    
215     *
                    
                
ProjectAction.php git://github.com/jquery/testswarm.git | PHP | 267 lines
                    
1<?php
                    
2/**
                    
118				// Add user agents array of this job to the overal user agents list.
                    
119				// php array+ automatically fixes clashing keys. The values are always the same
                    
120				// so it doesn't matter whether or not it overwrites.
                    
158			if ( $numRows > $limit ) {
                    
159				array_pop( $jobRows );
                    
160			}
                    
                
EachPromiseTest.php https://gitlab.com/ealexis.t/trends | PHP | 336 lines
                    
1<?php
                    
2namespace GuzzleHttp\Promise\Tests;
                    
13 */
                    
14class EachPromiseTest extends \PHPUnit_Framework_TestCase
                    
15{
                    
247        $iter = function () use (&$values) {
                    
248            while ($value = array_pop($values)) {
                    
249                yield $value;
                    
272        $iter = function () use (&$values) {
                    
273            while ($value = array_pop($values)) {
                    
274                yield $value;
                    
287        $each->promise();
                    
288        while ($promise = array_pop($pending)) {
                    
289            $promise->resolve($i++);
                    
318                // a "Cannot resume an already running generator" fatal error.
                    
319                if ($p = array_pop($pending)) {
                    
320                    $p->wait();
                    
                
PagerTest.php https://gitlab.com/geeta7/drupal | PHP | 241 lines
                    
1<?php
                    
2
                    
141    if ($current_page != count($elements)) {
                    
142      $last = array_pop($elements);
                    
143      $next = array_pop($elements);
                    
                
 

Source

Language