100+ results for 'php array_pop'
Not the results you expected?
Profiler.inc.php (https://gitlab.com/nacridan/Nacridan) PHP · 244 lines
logging.lib.php (https://github.com/jijkoun/ssscrape.git) PHP · 429 lines
FlattenException.php (https://gitlab.com/puntodos/ean-landings) PHP · 297 lines
1 <?php
3 /*
16 /**
17 * FlattenException wraps a PHP Exception to be able to serialize it.
18 *
19 * Basically, this class removes all objects from the trace.
57 /**
58 * FlattenException wraps a PHP Exception to be able to serialize it.
59 *
60 * Basically, this class removes all objects from the trace.
240 if (isset($entry['class'])) {
241 $parts = explode('\\', $entry['class']);
242 $class = array_pop($parts);
243 $namespace = implode('\\', $parts);
244 }
FunctionDeclarationArgumentSpacingSniff.php (https://github.com/ravivare/moodle-local_codechecker.git) PHP · 254 lines
13 * @version CVS: $Id: FunctionDeclarationArgumentSpacingSniff.php 301632 2010-07-28 01:57:56Z squiz $
14 * @link http://pear.php.net/package/PHP_CodeSniffer
15 */
27 * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence
28 * @version Release: 1.3.0
29 * @link http://pear.php.net/package/PHP_CodeSniffer
30 */
31 class Squiz_Sniffs_Functions_FunctionDeclarationArgumentSpacingSniff implements PHP_CodeSniffer_Sniff
48 * Processes this test, when one of its tokens is encountered.
49 *
50 * @param PHP_CodeSniffer_File $phpcsFile The file being scanned.
51 * @param int $stackPtr The position of the current token in the
52 * stack passed in $tokens.
54 * @return void
55 */
56 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
57 {
58 $tokens = $phpcsFile->getTokens();
index.php (https://github.com/jarednipper/HSU-common-code.git) PHP · 144 lines
1 <?php
3 // This file is part of Moodle - http://moodle.org/
19 require_once dirname(__FILE__) . '../../../../../../config.php';
20 require_once dirname(__FILE__) . '/../../lib.php';
21 require_once $CFG->libdir.'/gradelib.php';
22 require_once 'edit_form.php';
28 $strgrades = get_string('grades');
29 $pagename = get_string('letters', 'grades');
30 $returnurl = $CFG->wwwroot . '/plugins/gradebook/options/settings/letter/index.php?id='.$courseid.'&view=settings_letter';
31 $admin = false;
FunctionDeclarationArgumentSpacingSniff.php (https://github.com/r1zib/salesforce.git) PHP · 254 lines
13 * @version CVS: $Id: FunctionDeclarationArgumentSpacingSniff.php 301632 2010-07-28 01:57:56Z squiz $
14 * @link http://pear.php.net/package/PHP_CodeSniffer
15 */
27 * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence
28 * @version Release: 1.3.0RC1
29 * @link http://pear.php.net/package/PHP_CodeSniffer
30 */
31 class Squiz_Sniffs_Functions_FunctionDeclarationArgumentSpacingSniff implements PHP_CodeSniffer_Sniff
48 * Processes this test, when one of its tokens is encountered.
49 *
50 * @param PHP_CodeSniffer_File $phpcsFile The file being scanned.
51 * @param int $stackPtr The position of the current token in the
52 * stack passed in $tokens.
54 * @return void
55 */
56 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
57 {
58 $tokens = $phpcsFile->getTokens();
ModulesTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 217 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: ModulesTest.php 24593 2012-01-05 20:35:02Z matthew $
21 */
23 if (!defined('PHPUnit_MAIN_METHOD')) {
24 define('PHPUnit_MAIN_METHOD', 'Zend_Application_Resource_ModulesTest::main');
28 * Zend_Loader_Autoloader
29 */
30 require_once 'Zend/Loader/Autoloader.php';
32 /**
ParameterBag.php (https://github.com/gimler/symfony.git) PHP · 289 lines
1 <?php
3 /*
85 if (!\count($alternatives) && false !== strpos($name, '.')) {
86 $namePartsLength = array_map('strlen', explode('.', $name));
87 $key = substr($name, 0, -1 * (1 + array_pop($namePartsLength)));
88 while (\count($namePartsLength)) {
89 if ($this->has($key)) {
94 }
96 $key = substr($key, 0, -1 * (1 + array_pop($namePartsLength)));
97 }
98 }
iCalendar.php (https://gitlab.com/rsilveira1987/Expresso) PHP · 137 lines
RealPath.php (https://github.com/ftaiolivista/Zend-Framework-Namespaced-.git) PHP · 139 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: RealPath.php 20096 2010-01-06 02:05:09Z bkarwin $
20 */
28 * @see Zend_Filter_Interface
29 */
30 require_once 'Zend/Filter/Interface.php';
32 /**
109 $drive = '';
110 if (substr(PHP_OS, 0, 3) == 'WIN') {
111 $path = preg_replace('/[\\\\\/]/', DIRECTORY_SEPARATOR, $path);
112 if (preg_match('/([a-zA-Z]\:)(.*)/', $path, $matches)) {
package.module.nextgen_pagination.php (https://github.com/livinglab/openlab.git) PHP · 118 lines
1 <?php
2 /**
3 * Contains function(s) to generate a basic pagination widget
55 if (count($before) > 3) {
56 $before = array_merge($this->array_take_from_start(1, $before), ["<span class='ellipsis'>...</span>"], $this->array_take_from_end(2, $before));
57 array_pop($before);
58 }
59 $pages = array_merge($before, $after);
related.php (https://github.com/zakgrant/forkcms.git) PHP · 178 lines
page_header-e809137f870f30161e6c75721e460392.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 219 lines
1 <?php
2 // URI: extension/ezwebin/design/ezwebin/templates/page_header.tpl
3 // Filename: extension/ezwebin/design/ezwebin/templates/page_header.tpl
13 $eZTemplateCompilerCodeDate = 1074699607;
14 if ( !defined( 'EZ_TEMPLATE_COMPILER_COMMON_CODE' ) )
15 include_once( 'var/ezwebin_site/cache/template/compiled/common.php' );
17 $text .= ' <div id="header-position">
30 $resourceFound = false;
31 if ( file_exists( 'var/ezwebin_site/cache/template/compiled/page_header_languages-c56d493901f6b53a6e0a8805f8b886de.php' ) )
32 {
33 $resourceFound = true;
36 $tpl->createLocalVariablesList();
37 $tpl->appendTemplateFetch( 'extension/ezwebin/design/ezwebin/templates/page_header_languages.tpl' );
38 include( '' . 'var/ezwebin_site/cache/template/compiled/page_header_languages-c56d493901f6b53a6e0a8805f8b886de.php' );
39 $tpl->unsetLocalVariables();
40 $tpl->destroyLocalVariablesList();
page_header-12742f03532fb7400bc184d2c09a02a7.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 219 lines
1 <?php
2 // URI: extension/ezwebin/design/ezwebin/templates/page_header.tpl
3 // Filename: extension/ezwebin/design/ezwebin/templates/page_header.tpl
13 $eZTemplateCompilerCodeDate = 1074699607;
14 if ( !defined( 'EZ_TEMPLATE_COMPILER_COMMON_CODE' ) )
15 include_once( 'var/ezwebin_site/cache/template/compiled/common.php' );
17 $text .= ' <div id="header-position">
30 $resourceFound = false;
31 if ( file_exists( 'var/ezwebin_site/cache/template/compiled/page_header_languages-c5dc1772a2d92b2df9825dbc4bcb4f84.php' ) )
32 {
33 $resourceFound = true;
36 $tpl->createLocalVariablesList();
37 $tpl->appendTemplateFetch( 'extension/ezwebin/design/ezwebin/templates/page_header_languages.tpl' );
38 include( '' . 'var/ezwebin_site/cache/template/compiled/page_header_languages-c5dc1772a2d92b2df9825dbc4bcb4f84.php' );
39 $tpl->unsetLocalVariables();
40 $tpl->destroyLocalVariablesList();
I18n.php (https://github.com/cyclonephp/cyclone.git) PHP · 128 lines
1 <?php
3 namespace cyclone;
4 /**
5 * Internationalization (i18n) class. Provides language loading and translation
6 * methods without dependancies on [gettext](http://php.net/gettext).
7 *
8 * Typically this class would never be used directly, but used via the __()
15 * echo __('Hello, :user', array(':user' => $username));
16 *
17 * [!!] The __() function is declared in `SYSPATH/base.php`.
18 *
19 * @package cyclone
21 * @author Kohana Team
22 * @copyright (c) 2008-2009 Kohana Team
23 * @license http://kohanaphp.com/license
24 */
25 class I18n
RemoteAddress.php (https://gitlab.com/jalon/doadoronline) PHP · 172 lines
SetParser.php (https://github.com/JeCat/framework.git) PHP · 144 lines
1 <?php
2 ////////////////////////////////////////////////////////////////////////////////////////////////////////////
3 // 这个文件是 JeCat PHP框架的一部分,该项目和此文件 均遵循 GNU 自由软件协议
6 //
7 //
8 // JeCat PHP框架 的正式全名是:Jellicle Cat PHP Framework。
9 // “Jellicle Cat”出自 Andrew Lloyd Webber的音乐剧《猫》(《Prologue:Jellicle Songs for Jellicle Cats》)。
10 // JeCat 是一个开源项目,它像音乐剧中的猫一样自由,你可以毫无顾忌地使用JCAT PHP框架。JCAT 由中国团队开发维护。
71 $sClm = $arrColumnToken['column'] ;
72 }
73 array_pop($aParseState->arrTree) ;
74 $aParseState->arrTree[$sClm] =& $arrAssignmentToken ;
index.php (https://bitbucket.org/ciceidev/cicei_moodle_conditional_activities.git) PHP · 144 lines
1 <?php // $Id$
2 // Displays different views of the logs.
4 require_once('../../../config.php');
5 require_once('../../lib.php');
6 require_once('lib.php');
7 require_once($CFG->libdir.'/adminlib.php');
39 }
40 } else {
41 $course_stub = array_pop(get_records_select('mnet_log', " hostid='$hostid' AND course='$id' ", '', '*', '', '1'));
42 $course->id = $id;
43 $course->shortname = $course_stub->coursename;
NodeType.php (https://gitlab.com/geeta7/drupal) PHP · 127 lines
ForumHolderTest.php (https://github.com/tdf/silverstripe-forum.git) PHP · 159 lines
ROC.php (https://github.com/bluelovers/Scophp.git) PHP · 192 lines
Post.php (https://github.com/milesj/forum.git) PHP · 397 lines
1 <?php
2 /**
3 * @copyright 2006-2013, Miles Johnson - http://milesj.me
4 * @license https://github.com/milesj/admin/blob/master/license.md
5 * @link http://milesj.me/code/cakephp/admin
6 */
152 public function checkFlooding($interval) {
153 if ($posts = $this->Session->read('Forum.posts')) {
154 $timeLeft = time() - array_pop($posts);
156 if ($timeLeft <= $interval) {
Stopwatch.php (https://gitlab.com/Snizer/PI-DEV-TUNISIAMALL3A6-WEB) PHP · 332 lines
FilesHandler.inc.php (https://github.com/mcrider/pkpUpgradeTestSuite.git) PHP · 172 lines
1 <?php
3 /**
4 * @file FilesHandler.inc.php
5 *
6 * Copyright (c) 2003-2009 John Willinsky
13 */
15 // $Id: FilesHandler.inc.php,v 1.21 2009/05/12 15:59:30 asmecher Exp $
17 import('pages.manager.ManagerHandler');
144 $pathArray = array_filter($args, array('FilesHandler', 'fileNameFilter'));
145 $currentDir = join($pathArray, '/');
146 array_pop($pathArray);
147 $parentDir = join($pathArray, '/');
148 }
Layout.php (https://bitbucket.org/dnejedly/eaparts.git) PHP · 126 lines
1 <?php
2 /**
3 * Magento
8 * that is bundled with this package in the file LICENSE.txt.
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
12 * obtain it through the world-wide-web, please send an email
22 * @package Mage_Page
23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25 */
108 }
110 $currentHandle = array_pop($appliedHandles);
112 $layoutCode = array_search($currentHandle, $pageLayoutHandles, true);
database.php (https://github.com/jou/ymc-components.git) PHP · 483 lines
smarty_internal_compile_private_block_plugin.php (https://gitlab.com/LeoOliva/phpFileManager) PHP · 89 lines
1 <?php
2 /**
3 * Smarty Internal Plugin Compile Block Plugin
32 * @param array $parameter array with compilation parameter
33 * @param string $tag name of block plugin
34 * @param string $function PHP function name
35 *
36 * @return string compiled code
61 $compiler->nocache = $compiler->nocache | $compiler->tag_nocache;
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 {
65 // must endblock be nocache?
80 'value' => 'ob_get_clean()')) . ';';
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 .
84 " } array_pop(\$_smarty_tpl->smarty->_cache['tag_stack']);?>";
CalculatorService.php (https://gitlab.com/emmaelboristayot/sidexa) PHP · 121 lines
1 <?php
3 namespace App\Service;
48 if (')' == $char) {
49 while (!empty($operStack)) {
50 $oper = array_pop($operStack);
51 if ('(' == $oper) {
52 break;
59 } else {
60 while (!empty($operStack) && '(' != $char) {
61 $oper = array_pop($operStack);
62 if ($operPriority[$char] > $operPriority[$oper]) {
63 $operStack[] = $oper;
82 }
83 if (!empty($operStack)) {
84 while ($oper = array_pop($operStack)) {
85 if ('(' == $oper) {
86 throw new AriphmeticException('Unexpected "("', 4);
ShowProcessor.php (https://gitlab.com/brunorafael/enosis) PHP · 166 lines
1 <?php
2 /**
3 * ShowProcessor.php
31 */
33 require_once(dirname(__FILE__) . '/../utils/PHPSQLParserConstants.php');
34 require_once(dirname(__FILE__) . '/../utils/ExpressionType.php');
35 require_once(dirname(__FILE__) . '/LimitProcessor.php');
36 require_once(dirname(__FILE__) . '/AbstractProcessor.php');
116 break;
117 case 'LIMIT':
118 $limit = array_pop($resultList);
119 $limit['sub_tree'] = $this->limitProcessor->process(array_slice($tokens, $k));
120 $resultList[] = $limit;
ObjectDecorator.php (https://github.com/yuchimiri/symfony.git) PHP · 119 lines
ModulesTest.php (https://github.com/christophervalles/Zend-Framework-Skeleton.git) PHP · 217 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: ModulesTest.php 24227 2011-07-12 19:41:46Z matthew $
21 */
23 if (!defined('PHPUnit_MAIN_METHOD')) {
24 define('PHPUnit_MAIN_METHOD', 'Zend_Application_Resource_ModulesTest::main');
28 * Zend_Loader_Autoloader
29 */
30 require_once 'Zend/Loader/Autoloader.php';
32 /**
Abstract.php (https://github.com/expressdecor/Expressdecor.git) PHP · 355 lines
class-wp-customize-setting.php (https://gitlab.com/Gashler/dp) PHP · 439 lines
%%B2^B29^B29CC4AC%%submissionsInEditing.tpl.php (https://github.com/mcrider/pkpUpgradeTestSuite.git) PHP · 72 lines
1 <?php /* Smarty version 2.6.10, created on 2005-09-21 12:20:20
2 compiled from sectionEditor/submissionsInEditing.tpl */ ?>
3 <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
4 smarty_core_load_plugins(array('plugins' => array(array('function', 'translate', 'sectionEditor/submissionsInEditing.tpl', 15, false),array('function', 'page_info', 'sectionEditor/submissionsInEditing.tpl', 54, false),array('function', 'page_links', 'sectionEditor/submissionsInEditing.tpl', 55, false),array('block', 'iterate', 'sectionEditor/submissionsInEditing.tpl', 26, false),array('modifier', 'date_format', 'sectionEditor/submissionsInEditing.tpl', 33, false),array('modifier', 'escape', 'sectionEditor/submissionsInEditing.tpl', 34, false),array('modifier', 'truncate', 'sectionEditor/submissionsInEditing.tpl', 35, false),array('modifier', 'default', 'sectionEditor/submissionsInEditing.tpl', 37, false),)), $this); ?>
32 <?php $this->assign('articleId', $this->_tpl_vars['submission']->getArticleId()); ?>
33 <tr valign="top">
34 <td><?php echo $this->_tpl_vars['submission']->getArticleId(); ?>
35 </td>
36 <td><?php echo ((is_array($_tmp=$this->_tpl_vars['submission']->getDateSubmitted())) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['dateFormatTrunc']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['dateFormatTrunc'])); ?>
52 </tr>
53 <tr>
54 <td colspan="8" class="<?php if ($this->_tpl_vars['submissions']->eof()): ?>end<?php endif; ?>separator"> </td>
55 </tr>
56 <?php $_block_content = ob_get_contents(); ob_end_clean(); echo $this->_plugins['block']['iterate'][0][0]->smartyIterate($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat=false); } array_pop($this->_tag_stack); if ($this->_tpl_vars['submissions']->wasEmpty()): ?>
syncObjectGet.php (https://github.com/ciniki/core.git) PHP · 252 lines
Validator.php (https://bitbucket.org/rezanachmad/php-selenium-training.git) PHP · 206 lines
1 <?php
3 /**
38 $this->interchange = $interchange;
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
42 foreach ($interchange->directives as $i => $directive) {
63 ->assertNotEmpty()
64 ->assertIsString(); // implicit assertIsString handled by InterchangeBuilder
65 array_pop($this->context);
66 }
103 $this->validateDirectiveAliases($d);
105 array_pop($this->context);
106 }
smarty_internal_compile_include.php (https://github.com/raphaelbastide/berta.git) PHP · 155 lines
1 <?php
3 /**
51 $compiler->template->properties['function'] = array_merge($compiler->template->properties['function'], $tpl->properties['function']);
52 // merge filedependency by evaluating header code
53 preg_match_all("/(<\?php \/\*%%SmartyHeaderCode:{$tpl->properties['nocache_hash']}%%\*\/(.+?)\/\*\/%%SmartyHeaderCode%%\*\/\?>\n)/s", $compiled_tpl, $result);
54 $saved_has_nocache_code = $compiler->template->has_nocache_code;
55 $saved_nocache_hash = $compiler->template->properties['nocache_hash'];
59 $compiler->template->has_nocache_code = $saved_has_nocache_code;
60 // remove header code
61 $compiled_tpl = preg_replace("/(<\?php \/\*%%SmartyHeaderCode:{$tpl->properties['nocache_hash']}%%\*\/(.+?)\/\*\/%%SmartyHeaderCode%%\*\/\?>\n)/s", '', $compiled_tpl);
62 if ($tpl->has_nocache_code) {
63 // replace nocache_hash
143 $_output .= "<?php /* End of included template \"" . $tpl->getTemplateFilepath() . "\" */ ?>\n";
144 $_output .= "<?php \$_smarty_tpl = array_pop(\$_tpl_stack);?>";
145 } else {
146 $_output .= " echo \$_template->getRenderedTemplate();?>";
Parser.php (https://github.com/sbourget/moodle.git) PHP · 317 lines
FunctionDeclarationArgumentSpacingSniff.php (https://github.com/timglabisch/pimcore.git) PHP · 300 lines
26 * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
27 * @version Release: 1.4.3
28 * @link http://pear.php.net/package/PHP_CodeSniffer
29 */
30 class Squiz_Sniffs_Functions_FunctionDeclarationArgumentSpacingSniff implements PHP_CodeSniffer_Sniff
85 * Processes the contents of a single set of brackets.
86 *
87 * @param PHP_CodeSniffer_File $phpcsFile The file being scanned.
88 * @param int $openBracket The position of the open bracket
89 * in the stack passed in $tokens.
91 * @return void
92 */
93 public function processBracket(PHP_CodeSniffer_File $phpcsFile, $openBracket)
94 {
95 $tokens = $phpcsFile->getTokens();
DeleteComment.php (https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests) PHP · 355 lines
1 <?php
3 /**
4 * Admin ajax functions to be tested
5 */
6 require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' );
8 /**
70 $_POST['_per_page'] = 100;
71 $_POST['_page'] = 1;
72 $_POST['_url'] = admin_url( 'edit-comments.php' );
74 // Make the request
127 $_POST['_per_page'] = 100;
128 $_POST['_page'] = 1;
129 $_POST['_url'] = admin_url( 'edit-comments.php' );
131 // Make the request
functions.php (https://github.com/crazybilly/magazine-blog-theme.git) PHP · 184 lines
amazon_pay.php (https://gitlab.com/dadangnh/sb1-bon) PHP · 235 lines
1 <?php
2 class ControllerExtensionModuleAmazonPay extends Controller {
3 public function index() {
86 if ($this->config->get('amazon_login_pay_checkout') == 'guest') {
87 $full_name = explode(' ', $user->name);
88 $last_name = array_pop($full_name);
89 $first_name = implode(' ', $full_name);
90 $this->session->data['account'] = 'guest';
141 $full_name = explode(' ', $user->name);
142 $last_name = array_pop($full_name);
143 $first_name = implode(' ', $full_name);
FunctionDeclarationArgumentSpacingSniff.php (https://bitbucket.org/lordgnu/php_codesniffer.git) PHP · 300 lines
26 * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
27 * @version Release: @package_version@
28 * @link http://pear.php.net/package/PHP_CodeSniffer
29 */
30 class Squiz_Sniffs_Functions_FunctionDeclarationArgumentSpacingSniff implements PHP_CodeSniffer_Sniff
85 * Processes the contents of a single set of brackets.
86 *
87 * @param PHP_CodeSniffer_File $phpcsFile The file being scanned.
88 * @param int $openBracket The position of the open bracket
89 * in the stack passed in $tokens.
91 * @return void
92 */
93 public function processBracket(PHP_CodeSniffer_File $phpcsFile, $openBracket)
94 {
95 $tokens = $phpcsFile->getTokens();
FragmentCache.php (https://gitlab.com/I-NOZex/quiz) PHP · 193 lines
1 <?php
2 /**
3 * @link http://www.yiiframework.com/
42 * For example,
43 *
44 * ```php
45 * [
46 * 'class' => 'yii\caching\DbDependency',
59 * according to the current application language:
60 *
61 * ```php
62 * [
63 * Yii::$app->language,
105 echo $content;
106 } elseif ($this->cache instanceof Cache) {
107 array_pop($this->getView()->cacheStack);
109 $content = ob_get_clean();
date.php (https://gitlab.com/Blueprint-Marketing/interoccupy.net) PHP · 401 lines
sqlAdmin_fonctions.php (https://bitbucket.org/pombredanne/spip-zone-treemap.git) PHP · 237 lines
1 <?php
2 $GLOBALS['sqla_version'] = '0.3.5';
28 function sqla_liste_connexions(){
29 include_spip('inc/flock');
30 $files = preg_files(_DIR_CONNECT, '.*\.php');
31 $liste = array();
32 foreach ($files as $f){
33 $f = str_replace(_DIR_CONNECT,'',$f);
34 $f = str_replace('.php','',$f);
35 $liste[] = $f;
36 }
52 if ($histo['fonction']) array_unshift($historique, $histo);
53 if (count($historique)>5) array_pop($historique);
55 global $sqla_data;
Collection.php (https://gitlab.com/daniruizcamacho/pfcascensores) PHP · 705 lines
DoctrineCrudGenerator.php (https://github.com/israelnoguera/parejas.git) PHP · 290 lines
1 <?php
3 /*
112 case 'yml':
113 case 'xml':
114 case 'php':
115 case 'annotation':
116 $this->format = $format;
128 private function generateConfiguration()
129 {
130 if (!in_array($this->format, array('yml', 'xml', 'php'))) {
131 return;
132 }
158 $parts = explode('\\', $this->entity);
159 $entityClass = array_pop($parts);
160 $entityNamespace = implode('\\', $parts);
AssetBuildTask.php (https://github.com/renan/asset_compress.git) PHP · 291 lines
FileFilter.php (https://github.com/zakgrant/forkcms.git) PHP · 467 lines
Category.php (https://bitbucket.org/kdms/sh-magento.git) PHP · 148 lines
Renderer.php (https://gitlab.com/Georgiy.Zhegusov/museum_documents) PHP · 273 lines
1 <?php
2 /*
3 * This file is part of the PHP_CodeCoverage package.
4 *
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
6 *
7 * For the full copyright and license information, please view the LICENSE
13 /**
14 * Base class for PHP_CodeCoverage_Report_Node renderers.
15 *
16 * @since Class available since Release 1.1.0
17 */
18 abstract class PHP_CodeCoverage_Report_HTML_Renderer
19 {
20 /**
class.wp-dependencies.php (https://github.com/livinglab/openlab.git) PHP · 452 lines
NodeAbstractTest.php (https://gitlab.com/rocs/Streaming-Safe-for-Kids) PHP · 274 lines
1 <?php
3 namespace PhpParser;
23 }
25 class NodeAbstractTest extends \PHPUnit_Framework_TestCase
26 {
27 public function provideNodes() {
65 public function testGetDocComment(array $attributes, Node $node) {
66 $this->assertSame('/** doc comment */', $node->getDocComment()->getText());
67 array_pop($node->getAttribute('comments')); // remove doc comment
68 $this->assertNull($node->getDocComment());
69 array_pop($node->getAttribute('comments')); // remove comment
142 public function testAttributes() {
143 /** @var $node Node */
144 $node = $this->getMockForAbstractClass('PhpParser\NodeAbstract');
146 $this->assertEmpty($node->getAttributes());
Set.php (https://github.com/eexit/Smak.git) PHP · 362 lines
1 <?php
3 namespace Smak\Portfolio\tests\units;
8 use tests\units\Smak\Portfolio\Fs;
10 require_once __DIR__ . '/../../../../vendor/autoload.php';
12 class Set extends Fs\FsAdapter
152 $tree = $this->buildFs()->getTree();
153 $tree = $tree['Travels']['Chile'];
154 array_pop($tree);
155 sort($tree);
175 $tree = $this->buildFs()->getTree();
176 $tree = $tree['Travels']['Chile'];
177 array_pop($tree);
178 sort($tree);
Dispatcher.php (https://gitlab.com/MineYourMind/BoNeMEAL) PHP · 486 lines
CreationMinerais.php (https://github.com/Canop/braldahim.git) PHP · 340 lines
%%D3^D39^D39A46D0%%versions.tpl.php (https://github.com/mcrider/pkpUpgradeTestSuite.git) PHP · 85 lines
1 <?php /* Smarty version 2.6.12, created on 2006-07-17 16:34:35
2 compiled from rtadmin/versions.tpl */ ?>
3 <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
4 smarty_core_load_plugins(array('plugins' => array(array('function', 'translate', 'rtadmin/versions.tpl', 20, false),array('function', 'url', 'rtadmin/versions.tpl', 29, false),array('function', 'page_info', 'rtadmin/versions.tpl', 40, false),array('function', 'page_links', 'rtadmin/versions.tpl', 41, false),array('block', 'iterate', 'rtadmin/versions.tpl', 25, false),array('modifier', 'escape', 'rtadmin/versions.tpl', 27, false),)), $this); ?>
6 <?php $this->assign('pageTitle', "rt.versions"); $_smarty_tpl_vars = $this->_tpl_vars;
7 $this->_smarty_include(array('smarty_include_tpl_file' => "common/header.tpl", 'smarty_include_vars' => array()));
8 $this->_tpl_vars = $_smarty_tpl_vars;
37 " class="action"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "rt.admin.versions.export"), $this);?>
38 </a> | <a href="<?php echo $this->_plugins['function']['url'][0][0]->smartyUrl(array('op' => 'deleteVersion','path' => $this->_tpl_vars['version']->getVersionId()), $this);?>
39 " onclick="return confirm('<?php echo ((is_array($_tmp=$this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "rt.admin.versions.confirmDelete"), $this))) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript'));?>
41 </a></td>
42 </tr>
43 <tr><td class="<?php if ($this->_tpl_vars['versions']->eof()): ?>end<?php endif; ?>separator" colspan="3"></td></tr>
44 <?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo $this->_plugins['block']['iterate'][0][0]->smartyIterate($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
%%D3^D39^D39A46D0%%versions.tpl.php (https://github.com/mcrider/pkpUpgradeTestSuite.git) PHP · 85 lines
1 <?php /* Smarty version 2.6.12, created on 2006-02-03 13:26:41
2 compiled from rtadmin/versions.tpl */ ?>
3 <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
4 smarty_core_load_plugins(array('plugins' => array(array('function', 'translate', 'rtadmin/versions.tpl', 20, false),array('function', 'url', 'rtadmin/versions.tpl', 29, false),array('function', 'page_info', 'rtadmin/versions.tpl', 40, false),array('function', 'page_links', 'rtadmin/versions.tpl', 41, false),array('block', 'iterate', 'rtadmin/versions.tpl', 25, false),array('modifier', 'escape', 'rtadmin/versions.tpl', 27, false),)), $this); ?>
6 <?php $this->assign('pageTitle', "rt.versions"); $_smarty_tpl_vars = $this->_tpl_vars;
7 $this->_smarty_include(array('smarty_include_tpl_file' => "common/header.tpl", 'smarty_include_vars' => array()));
8 $this->_tpl_vars = $_smarty_tpl_vars;
37 " class="action"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "rt.admin.versions.export"), $this);?>
38 </a> | <a href="<?php echo $this->_plugins['function']['url'][0][0]->smartyUrl(array('op' => 'deleteVersion','path' => $this->_tpl_vars['version']->getVersionId()), $this);?>
39 " onclick="return confirm('<?php echo ((is_array($_tmp=$this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "rt.admin.versions.confirmDelete"), $this))) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript'));?>
41 </a></td>
42 </tr>
43 <tr><td class="<?php if ($this->_tpl_vars['versions']->eof()): ?>end<?php endif; ?>separator" colspan="3"></td></tr>
44 <?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo $this->_plugins['block']['iterate'][0][0]->smartyIterate($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
ReviewerSubmission.inc.php (https://github.com/mcrider/pkpUpgradeTestSuite.git) PHP · 543 lines
1 <?php
3 /**
4 * @file classes/submission/reviewer/ReviewerSubmission.inc.php
5 *
6 * Copyright (c) 2003-2009 John Willinsky
166 function getMostRecentDecision() {
167 $decisions = $this->getDecisions();
168 $decision = array_pop($decisions);
169 if (!empty($decision)) {
170 $latestDecision = array_pop($decision);
Blueprints.php (https://gitlab.com/asun89/socianovation-web) PHP · 400 lines
1 <?php
2 namespace RocketTheme\Toolbox\Blueprints;
298 // Add rule.
299 $path = explode('.', $key);
300 array_pop($path);
301 $parent = '';
302 foreach ($path as $part) {
349 }
350 $parts = explode($separator, $path);
351 $item = array_pop($parts);
353 $nested = $this->nested;
371 {
372 $parts = explode('.', $path);
373 $item = array_pop($parts);
375 $nested = &$this->nested;
get_zip_code.php (https://github.com/MichaelMackus/tropo-webapi-php.git) PHP · 142 lines
1 <?php
3 // Include Tropo classes.
4 require('tropo.class.php');
6 // Include Limonade framework.
7 require('path/to/limonade/lib/limonade.php');
9 // The URL to the Google weather service. Renders as XML doc.
39 // Get weather information for the zip code the caller entered.
40 $weather_info = getWeather($zip);
41 $city = array_pop($weather_info);
43 // Begin telling the user the weather for the city their zip code is in.
Generator.php (https://github.com/andersao/l5-repository.git) PHP · 368 lines
1 <?php
3 namespace Prettus\Repository\Generators;
124 public function getPath()
125 {
126 return $this->getBasePath() . '/' . $this->getName() . '.php';
127 }
254 {
255 $segments = $this->getSegments();
256 array_pop($segments);
257 $rootNamespace = $this->getRootNamespace();
258 if ($rootNamespace == false) {
helper.php (https://github.com/draganz/Kunena-2.0.git) PHP · 235 lines
ErrorHandler.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 300 lines
1 <?php
2 /**
3 * Zend Framework
22 /** Zend_Controller_Plugin_Abstract */
23 require_once 'Zend/Controller/Plugin/Abstract.php';
25 /**
33 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
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 */
37 class Zend_Controller_Plugin_ErrorHandler extends Zend_Controller_Plugin_Abstract
247 // Exception thrown by error handler; tell the front controller to throw it
248 $frontController->throwExceptions(true);
249 throw array_pop($exceptions);
250 }
251 }
ErrorHandler.php (https://github.com/StefanRHRO/SCRM.git) PHP · 300 lines
1 <?php
2 /**
3 * Zend Framework
22 /** Zend_Controller_Plugin_Abstract */
23 require_once 'Zend/Controller/Plugin/Abstract.php';
25 /**
33 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
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 */
37 class Zend_Controller_Plugin_ErrorHandler extends Zend_Controller_Plugin_Abstract
247 // Exception thrown by error handler; tell the front controller to throw it
248 $frontController->throwExceptions(true);
249 throw array_pop($exceptions);
250 }
251 }
convertImageProductionTest.php (https://github.com/richhl/kalturaCE.git) PHP · 110 lines
1 <?php
3 require_once 'convertImageTester.php';
4 require_once 'bootstrap.php';
6 /**
62 for ($j = 0; $j < 8 ; $j++)
63 array_shift($tmp);
64 array_pop($tmp);
65 $j = 0;
66 while($j < count($tmp)) {
82 if ($status === false)
83 echo 'unable to convert [' . $tester->getSourceFile() . '] with parameterrs: ' .
84 print_r($tester->getParams()) . PHP_EOL;
85 // assert(true === $status);
FormMacros.php (https://gitlab.com/adam.kvita/MI-VMM-SIFT) PHP · 256 lines
130 * {input ...}
131 */
132 public function macroInput(MacroNode $node, PhpWriter $writer)
133 {
134 if ($node->modifiers) {
167 if ($tagName === 'form') {
168 $node->openingCode = $writer->write(
169 '<?php $form = $_form = $this->global->formsStack[] = '
170 . ($name[0] === '$' ? 'is_object(%0.word) ? %0.word : ' : '')
171 . '$this->global->uiControl[%0.word]; ?>',
204 $tagName = strtolower($node->htmlNode->name);
205 if ($tagName === 'form') {
206 $node->innerContent .= '<?php echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd(array_pop($this->global->formsStack), FALSE); ?>';
207 } elseif ($tagName === 'label') {
208 if ($node->htmlNode->empty) {
History.php (https://bitbucket.org/cidious/raise.org.git) PHP · 213 lines
Ordered.php (https://gitlab.com/crazybutterfly815/magento2) PHP · 153 lines
1 <?php
2 /**
3 * Copyright © 2016 Magento. All rights reserved.
10 *
11 * @author Magento Core Team <core@magentocommerce.com>
12 * @SuppressWarnings(PHPMD.DepthOfInheritance)
13 */
14 class Ordered extends \Magento\Backend\Block\Dashboard\Grid
62 if ($this->getParam('website')) {
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 {
69 $storeId = (int)$this->getParam('store');
Chain.php (https://gitlab.com/ebrjose/comcebu) PHP · 412 lines
1 <?php
3 namespace WPForms\Helpers;
34 * @method Chain array_merge(array $var)
35 * @method Chain array_pad()
36 * @method Chain array_pop()
37 * @method Chain array_product()
38 * @method Chain array_rand()
245 public function pop() {
247 $this->value = array_pop( $this->value );
249 return $this;
317 'array_merge',
318 'array_pad',
319 'array_pop',
320 'array_product',
321 'array_rand',
MatrixFactory.php (https://github.com/markrogoyski/math-php.git) PHP · 588 lines
smarty_internal_compile_private_registered_block.php (https://bitbucket.org/orchdork10159/dnsman.ly.git) PHP · 86 lines
1 <?php
2 /**
3 * Smarty Internal Plugin Compile Registered Block
54 // compile code
55 if (!is_array($function)) {
56 $output = "<?php \$_smarty_tpl->smarty->_tag_stack[] = array('{$tag}', {$_params}); \$_block_repeat=true; {$function}({$_params}, null, \$_smarty_tpl, \$_block_repeat);while (\$_block_repeat) { ob_start();?>";
57 } else if (is_object($function[0])) {
58 $output = "<?php \$_smarty_tpl->smarty->_tag_stack[] = array('{$tag}', {$_params}); \$_block_repeat=true; \$_smarty_tpl->smarty->registered_plugins['block']['{$tag}'][0][0]->{$function[1]}({$_params}, null, \$_smarty_tpl, \$_block_repeat);while (\$_block_repeat) { ob_start();?>";
73 // compile code
74 if (!is_array($function)) {
75 $output = "<?php \$_block_content = ob_get_clean(); \$_block_repeat=false; echo {$function}({$_params}, \$_block_content, \$_smarty_tpl, \$_block_repeat); } array_pop(\$_smarty_tpl->smarty->_tag_stack);?>";
76 } else if (is_object($function[0])) {
77 $output = "<?php \$_block_content = ob_get_clean(); \$_block_repeat=false; echo \$_smarty_tpl->smarty->registered_plugins['block']['{$base_tag}'][0][0]->{$function[1]}({$_params}, \$_block_content, \$_smarty_tpl, \$_block_repeat); } array_pop(\$_smarty_tpl->smarty->_tag_stack);?>";
78 } else {
79 $output = "<?php \$_block_content = ob_get_clean(); \$_block_repeat=false; echo {$function[0]}::{$function[1]}({$_params}, \$_block_content, \$_smarty_tpl, \$_block_repeat); } array_pop(\$_smarty_tpl->smarty->_tag_stack);?>";
80 }
81 }
if.php (https://github.com/kazy111/g_feeder.git) PHP · 180 lines
1 <?php
3 /**
4 * Conditional block, the syntax is very similar to the php one, allowing () || && and
5 * other php operators. Additional operators and their equivalent php syntax are as follow :
6 *
7 * eq -> ==
114 break;
115 case 'even':
116 $a = array_pop($p);
117 if (isset($params[$k+$ptr+1]) && strtolower(trim($params[$k+$ptr+1], '"\'')) === 'by') {
118 $b = $params[$k+$ptr+2];
168 $params = $compiler->getCompiledParams($params);
170 $pre = Dwoo_Compiler::PHP_OPEN.'if ('.implode(' ', self::replaceKeywords($params['*'], $compiler)).") {\n".Dwoo_Compiler::PHP_CLOSE;
172 $post = Dwoo_Compiler::PHP_OPEN."\n}".Dwoo_Compiler::PHP_CLOSE;
File_Importer_Venues.php (https://github.com/livinglab/openlab.git) PHP · 251 lines
SetCookie.php (https://github.com/bruisedlee/zf2.git) PHP · 399 lines
ArrayList.class.php (https://github.com/qhwang0427/backend_php.git) PHP · 351 lines
1 <?php
2 // +----------------------------------------------------------------------
3 // | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
4 // +----------------------------------------------------------------------
5 // | Copyright (c) 2009 http://thinkphp.cn All rights reserved.
6 // +----------------------------------------------------------------------
7 // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
90 public function pop()
91 {
92 return array_pop($this->_elements);
93 }
array.idl.php (https://github.com/diegoIta/hiphop-php.git) PHP · 376 lines
UpdateHelper.php (https://gitlab.com/madebycloud/derekman) PHP · 326 lines
ErrorHandler.php (https://bitbucket.org/haichau59/manga.git) PHP · 300 lines
1 <?php
2 /**
3 * Zend Framework
22 /** Zend_Controller_Plugin_Abstract */
23 //require_once 'Zend/Controller/Plugin/Abstract.php';
25 /**
33 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
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 */
37 class Zend_Controller_Plugin_ErrorHandler extends Zend_Controller_Plugin_Abstract
247 // Exception thrown by error handler; tell the front controller to throw it
248 $frontController->throwExceptions(true);
249 throw array_pop($exceptions);
250 }
251 }
externallib.php (https://bitbucket.org/kudutest/moodlegit.git) PHP · 261 lines
1 <?php
2 // This file is part of Moodle - http://moodle.org/
3 //
27 defined('MOODLE_INTERNAL') || die;
29 require_once("$CFG->libdir/externallib.php");
31 /**
54 // There is only one string parameter.
55 if (count($stringparams) == 1) {
56 $stringparam = array_pop($stringparams);
57 if (isset($stringparam['name'])) {
58 $strparams->{$stringparam['name']} = $stringparam['value'];
PostgresGrammar.php (https://gitlab.com/biggercode/database) PHP · 304 lines
ErrorHandler.php (https://github.com/oveach/tuto-zf-doctrine2.git) PHP · 300 lines
1 <?php
2 /**
3 * Zend Framework
22 /** Zend_Controller_Plugin_Abstract */
23 require_once 'Zend/Controller/Plugin/Abstract.php';
25 /**
33 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
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 */
37 class Zend_Controller_Plugin_ErrorHandler extends Zend_Controller_Plugin_Abstract
247 // Exception thrown by error handler; tell the front controller to throw it
248 $frontController->throwExceptions(true);
249 throw array_pop($exceptions);
250 }
251 }
AlterTable.php (https://gitlab.com/jalon/doadoronline) PHP · 268 lines
Maildir.php (https://github.com/rgranadino/magento-mirror.git) PHP · 265 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Maildir.php 20096 2010-01-06 02:05:09Z bkarwin $
21 */
25 * @see Zend_Mail_Storage_Folder
26 */
27 #require_once 'Zend/Mail/Storage/Folder.php';
29 /**
30 * @see Zend_Mail_Storage_Folder_Interface
31 */
32 #require_once 'Zend/Mail/Storage/Folder/Interface.php';
34 /**
smarty_internal_compile_private_registered_block.php (https://github.com/rodneyrehm/php-template-engines.git) PHP · 126 lines
103 // old style with params array
104 if (!is_array($function)) {
105 $output = "<?php \$_block_content = ob_get_clean(); \$_block_repeat=false;" . $mod_pre . " echo {$function}({$par_string['par']}, \$_block_content, {$par_string['obj']}, \$_block_repeat);" . $mod_post . " } array_pop(\$_smarty_tpl->smarty->_tag_stack);?>";
106 } else if (is_object($function[0])) {
107 $output = "<?php \$_block_content = ob_get_clean(); \$_block_repeat=false;" . $mod_pre . " echo \$_smarty_tpl->smarty->registered_plugins['block']['{$base_tag}'][0][0]->{$function[1]}({$par_string['par']}, \$_block_content, {$par_string['obj']}, \$_block_repeat); " . $mod_post . "} array_pop(\$_smarty_tpl->smarty->_tag_stack);?>";
113 $par_string = str_replace('__content__', '$_block_content', $par_string);
114 if (!is_array($function)) {
115 $output = "<?php \$_block_content = ob_get_clean(); \$_block_repeat=false;" . $mod_pre . " echo {$function}({$par_string});" . $mod_post . " } array_pop(\$_smarty_tpl->smarty->_tag_stack);?>";
116 } else if (is_object($function[0])) {
117 $output = "<?php \$_block_content = ob_get_clean(); \$_block_repeat=false;" . $mod_pre . " echo \$_smarty_tpl->smarty->registered_plugins['block']['{$base_tag}'][0][0]->{$function[1]}({$par_string}); " . $mod_post . "} array_pop(\$_smarty_tpl->smarty->_tag_stack);?>";
118 } else {
119 $output = "<?php \$_block_content = ob_get_clean(); \$_block_repeat=false;" . $mod_pre . " echo {$function[0]}::{$function[1]}({$par_string}); " . $mod_post . "} array_pop(\$_smarty_tpl->smarty->_tag_stack);?>";
120 }
121 }
NodeTraverser.php (https://gitlab.com/jjpa2018/dashboard) PHP · 291 lines
Engine.php (https://github.com/ad2joe/php-framework-benchmarks.git) PHP · 298 lines
1 <?php
3 namespace Symfony\Components\Templating;
5 use Symfony\Components\Templating\Loader\LoaderInterface;
6 use Symfony\Components\Templating\Renderer\PhpRenderer;
7 use Symfony\Components\Templating\Renderer\RendererInterface;
8 use Symfony\Components\Templating\Helper\HelperInterface;
56 if (!isset($this->renderers['php'])) {
57 $this->renderers['php'] = new PhpRenderer();
58 }
69 * By default, this engine knows how to parse templates with one or two segments:
70 *
71 * * index: The template logical name is index and the renderer is php
72 * * index:twig: The template logical name is index and the renderer is twig
73 *
popup_sub_siteaccess_menus-9fbb87e1df86d9d03f18e0263f7c2ae8.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 504 lines
1 <?php
2 // URI: design/admin2/templates/popupmenu/popup_sub_siteaccess_menus.tpl
3 // Filename: design/admin2/templates/popupmenu/popup_sub_siteaccess_menus.tpl
13 $eZTemplateCompilerCodeDate = 1074699607;
14 if ( !defined( 'EZ_TEMPLATE_COMPILER_COMMON_CODE' ) )
15 include_once( 'var/ezwebin_site/cache/template/compiled/common.php' );
17 // def $siteAccessList
191 unset( $vars[$currentNamespace]['link'] );
192 $text .= ' ';
193 list( $variableValue, $loopItem, $loopKeys, $loopCount, $currentIndex, $index ) = array_pop( $sectionStack );
194 ++$currentIndex;
340 unset( $vars[$currentNamespace]['link'] );
341 $text .= ' ';
342 list( $variableValue, $loopItem, $loopKeys, $loopCount, $currentIndex, $index ) = array_pop( $sectionStack );
343 ++$currentIndex;
SafeUrl.class.php (https://github.com/timemachine3030/safe-url.git) PHP · 147 lines
1 <?php
3 /**
54 /**
55 * A table of UTF-8 characters and what to make them.
56 * @link http://www.php.net/manual/en/function.strtr.php#90925
57 * @var array
58 */
132 */
133 $words = explode($s, $text);
134 $temp = implode($s, array_diff($words, array(array_pop($words))));
135 if ($temp != '') {
136 $text = $temp;
CakeValidationSetTest.php (https://github.com/kunit/cakephp.git) PHP · 339 lines
1 <?php
2 /**
3 * CakeValidationSetTest file
5 * PHP 5
6 *
7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
9 *
13 *
14 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
15 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
16 * @package Cake.Test.Case.Model.Validator
17 * @since CakePHP(tm) v 2.2.0
18 * @license http://www.opensource.org/licenses/mit-license.php MIT License
19 */
SymbolTable.php (https://github.com/timglabisch/pimcore.git) PHP · 152 lines
1 <?php
2 /**
3 * This file is part of PHP_Depend.
4 *
5 * PHP Version 5
6 *
7 * Copyright (c) 2008-2012, Manuel Pichler <mapi@pdepend.org>.
37 * POSSIBILITY OF SUCH DAMAGE.
38 *
39 * @category PHP
40 * @package PHP_Depend
42 * @author Manuel Pichler <mapi@pdepend.org>
43 * @copyright 2008-2012 Manuel Pichler. All rights reserved.
44 * @license http://www.opensource.org/licenses/bsd-license.php BSD License
45 * @version SVN: $Id$
46 * @link http://www.pdepend.org/
Totals.php (https://github.com/OpenMage/magento-lts.git) PHP · 316 lines
1 <?php
2 /**
3 * Magento
8 * that is bundled with this package in the file LICENSE.txt.
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
12 * obtain it through the world-wide-web, please send an email
22 * @package Mage_Sales
23 * @copyright Copyright (c) 2006-2020 Magento, Inc. (http://www.magento.com)
24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25 */
26 class Mage_Sales_Block_Order_Totals extends Mage_Core_Block_Template
180 }
181 if (!$added) {
182 $last = array_pop($totals);
183 $totals[$total->getCode()] = $total;
184 $totals[$last->getCode()] = $last;
Structure.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 227 lines
Model.php (https://github.com/GeekZooTeam/Geek-Zoo-PHP-Library.git) PHP · 402 lines
1 <?php
3 /*
5 *
6 * @copyright (c) 2010 Geek-Zoo Projects More info http://www.geek-zoo.com
7 * @license http://opensource.org/licenses/gpl-2.0.php The GNU General Public License
8 * @author xuanyan <xuanyan@geek-zoo.com>
9 *
151 $select_param = array();
152 while ($c) {
153 $select_param[] = array_pop($params);
154 $c--;
155 }
add_cvs.php (https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git) PHP · 153 lines
5 // +------------------------------------------------------------------------+
6 // | Copyright (c) 2000-2003 Joshua Eichorn, Gregory Beaver |
7 // | Email jeichorn@phpdoc.org, cellog@phpdoc.org |
8 // | Web http://www.phpdoc.org |
9 // | Mirror http://phpdocu.sourceforge.net/ |
10 // | PEAR http://pear.php.net/package/PhpDocumentor |
11 // +------------------------------------------------------------------------+
12 // | This source file is subject to version 3.00 of the PHP License, |
29 */
30 /**#@+
31 * phpDocumentor include files. If you don't have phpDocumentor, go get it!
32 * Your php life will be changed forever
33 */
34 $dir = realpath(dirname(__FILE__).'/..');
35 require_once("$dir/phpDocumentor/common.inc.php");
36 require_once("$dir/phpDocumentor/Io.inc");
events_test.php (https://github.com/markn86/moodle.git) PHP · 178 lines
1 <?php
2 // This file is part of Moodle - http://moodle.org/
3 //
65 note_delete($this->eventnote);
66 $events = $sink->get_events();
67 $event = array_pop($events); // Delete note event.
68 $sink->close();
80 // Test legacy data.
81 $logurl = new \moodle_url('index.php',
82 array('course' => $this->eventnote->courseid, 'user' => $this->eventnote->userid));
83 $logurl->set_anchor('note-' . $this->eventnote->id);
98 note_save($note);
99 $events = $sink->get_events();
100 $event = array_pop($events); // Delete note event.
101 $sink->close();
ResolveNamedArgumentsPass.php (https://github.com/pulzarraider/symfony.git) PHP · 112 lines
Transaction.php (https://github.com/ecoleman/composer.git) PHP · 243 lines
CakeValidationSetTest.php (https://gitlab.com/shubam39/CakeTooDoo) PHP · 337 lines
1 <?php
2 /**
3 * CakeValidationSetTest file
4 *
5 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
7 *
11 *
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
15 * @since CakePHP(tm) v 2.2.0
16 * @license http://www.opensource.org/licenses/mit-license.php MIT License
17 */
FunctionDeclarationArgumentSpacingSniff.php (https://github.com/proofek/SQLI_CodeSniffer.git) PHP · 211 lines
46 * Processes this test, when one of its tokens is encountered
47 *
48 * @param PHP_CodeSniffer_File $phpcsFile The file being scanned
49 * @param integer $stackPtr The position of the current token in the stack passed in $tokens
50 * @return void
51 */
52 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
53 {
54 $tokens = $phpcsFile->getTokens();
125 $comma = $phpcsFile->findPrevious(T_COMMA, ($nextParam - 1));
126 $nextToken = $phpcsFile->findNext(T_WHITESPACE, ($comma + 1), null, true);
127 if ($phpcsFile->isReference($nextToken) === true) {
164 // Before we throw an error, make sure there is no type hint
165 $bracket = $phpcsFile->findPrevious(T_OPEN_PARENTHESIS, ($nextParam - 1));
166 $nextToken = $phpcsFile->findNext(T_WHITESPACE, ($bracket + 1), null, true);
DimComment.php (https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests) PHP · 238 lines
1 <?php
3 /**
4 * Admin ajax functions to be tested
5 */
6 require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' );
8 /**
65 $_POST['_per_page'] = 100;
66 $_POST['_page'] = 1;
67 $_POST['_url'] = admin_url( 'edit-comments.php' );
69 // Save the comment status
125 $_POST['_per_page'] = 100;
126 $_POST['_page'] = 1;
127 $_POST['_url'] = admin_url( 'edit-comments.php' );
129 // Make the request