100+ results for 'php array_reverse'
Not the results you expected?
Local.php (https://gitlab.com/vincetang/mtweb) PHP · 401 lines
AssertionsTest.class.php (https://github.com/treuter/xp-framework.git) PHP · 617 lines
Abstract.php (https://github.com/MontmereLimited/ZendFramework-v1.git) PHP · 418 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Abstract.php 23775 2011-03-01 17:25:24Z ralph $
20 */
23 * @see Zend_Locale
24 */
25 // // // // // // // // require_once 'Zend/Locale.php';
27 /**
28 * @see Zend_Locale_Math
29 */
30 // // // // // // // // require_once 'Zend/Locale/Math.php';
32 /**
Arr.php (https://gitlab.com/dzakiafif/cokelatklasik) PHP · 419 lines
Abstract.php (https://github.com/grandison/budo16.git) PHP · 412 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Abstract.php 16220 2009-06-21 19:49:21Z thomas $
20 */
23 * @see Zend_Locale
24 */
25 // require_once 'Zend/Locale.php';
27 /**
28 * @see Zend_Locale_Math
29 */
30 // require_once 'Zend/Locale/Math.php';
32 /**
App.php (https://github.com/bobthecow/genghis.git) PHP · 210 lines
1 <?php
3 class Genghis_App
81 $filename = basename($_SERVER['SCRIPT_FILENAME']);
83 foreach (array('SCRIPT_NAME', 'PHP_SELF', 'ORIG_SCRIPT_NAME') as $key) {
84 if (isset($_SERVER[$key]) && basename($_SERVER[$key]) == $filename) {
85 $baseUrl = $_SERVER[$key];
90 if (!isset($baseUrl)) {
91 $path = isset($_SERVER['PHP_SELF']) ? $_SERVER['PHP_SELF'] : '';
92 $file = isset($_SERVER['SCRIPT_FILENAME']) ? $_SERVER['SCRIPT_FILENAME'] : '';
93 $chunks = array_reverse(explode('/', trim($file, '/')));
146 return $_SERVER['PATH_INFO'];
147 } elseif (isset($_SERVER['REQUEST_URI'])) {
148 return parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
149 } else {
150 return '/';
Breadcrumbs.php (https://github.com/knutBachmann/zf2.git) PHP · 335 lines
Collection.php (https://gitlab.com/koodersmiikka/operaatio-terveys) PHP · 717 lines
StandardRules.php (https://github.com/joomla/joomla-cms.git) PHP · 275 lines
1 <?php
3 /**
221 // Get the path from the view of the current URL and parse it to the menu item
222 $path = array_reverse($this->router->getPath($query), true);
223 $found = false;
245 $found2 = false;
247 foreach (array_reverse($ids, true) as $id => $segment) {
248 if ($found2) {
249 $segments[] = str_replace(':', '-', $segment);
Migrator.php (https://gitlab.com/kimting254/wbms) PHP · 411 lines
1 <?php namespace Illuminate\Database\Migrations;
3 use Illuminate\Filesystem\Filesystem;
186 $this->notes = [];
188 $migrations = array_reverse($this->repository->getRan());
190 if (count($migrations) == 0)
242 public function getMigrationFiles($path)
243 {
244 $files = $this->files->glob($path.'/*_*.php');
246 // Once we have the array of files in the directory we will just remove the
251 $files = array_map(function($file)
252 {
253 return str_replace('.php', '', basename($file));
255 }, $files);
program.php (https://bitbucket.org/crevillo/enetcall.git) PHP · 298 lines
Abstract.php (https://github.com/lanmediaservice/lms-tplib.git) PHP · 412 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Abstract.php 16220 2009-06-21 19:49:21Z thomas $
20 */
23 * @see Zend_Locale
24 */
25 //*** require_once 'Zend/Locale.php';
27 /**
28 * @see Zend_Locale_Math
29 */
30 //*** require_once 'Zend/Locale/Math.php';
32 /**
Module.php (https://bitbucket.org/mrblackus/micro-muffin.git) PHP · 383 lines
1 <?php
3 /*
31 /**
32 * Compiles the node to PHP.
33 *
34 * @param Twig_Compiler A Twig_Compiler instance
48 if (!$this->getAttribute('index'))
49 {
50 $compiler->write('<?php');
51 }
131 $compiler
132 ->write("\n\n")
133 // if the filename contains */, add a blank to avoid a PHP parse error
134 ->write("/* " . str_replace('*/', '* /', $this->getAttribute('filename')) . " */\n")
135 ->write('class ' . $compiler->getEnvironment()->getTemplateClass($this->getAttribute('filename'), $this->getAttribute('index')))
index.php (https://gitlab.com/alidzapp/gamerz-file-explorer) PHP · 194 lines
4 require( 'settings.php' );
5 require( 'functions.php' );
7 ### Start Timer
113 $gmz_files = array_reverse( $gmz_files );
114 $gmz_directories = array_reverse( $gmz_directories );
115 }
116 }
123 <thead class="thead-default">
124 <tr>
125 <th style="width: 50%;" onclick="parent.location.href='<?php echo create_sort_url( 'name' ); ?>';" onmouseover="this.style.cursor = 'pointer';" title="Sort By Name">Name <?php echo create_sort_image( 'name' ); ?></th>
126 <th style="width: 10%;" onclick="parent.location.href='<?php echo create_sort_url( 'size' ); ?>';" onmouseover="this.style.cursor = 'pointer';" title="Sort By Size">Size <?php echo create_sort_image( 'size' ); ?></th>
127 <th style="width: 20%;" onclick="parent.location.href='<?php echo create_sort_url( 'type' ); ?>';" onmouseover="this.style.cursor = 'pointer';" title="Sort By Type">Type <?php echo create_sort_image( 'type' ); ?></th>
128 <th style="width: 20%;" onclick="parent.location.href='<?php echo create_sort_url( 'date' ); ?>';" onmouseover="this.style.cursor = 'pointer';" title="Sort By Date">Date <?php echo create_sort_image( 'date' ); ?></th>
129 </tr>
130 </thead>
Exception.php (https://github.com/tstarling/hiphop-php.git) PHP · 226 lines
3 // This doc comment block generated by idl/sysdoc.php
4 /**
5 * ( excerpt from http://php.net/manual/en/class.exception.php )
6 *
7 * Exception is the base class for all Exceptions.
92 // This doc comment block generated by idl/sysdoc.php
93 /**
94 * ( excerpt from http://php.net/manual/en/exception.getcode.php )
95 *
96 * Returns the Exception code.
170 // This doc comment block generated by idl/sysdoc.php
171 /**
172 * ( excerpt from http://php.net/manual/en/exception.tostring.php )
173 *
174 * Returns the string representation of the exception.
Arr.php (https://gitlab.com/Sigpot/AirSpot) PHP · 528 lines
Pipeline.php (https://gitlab.com/ealexis.t/trends) PHP · 170 lines
Abstract.php (https://github.com/jorgenils/zend-framework.git) PHP · 357 lines
1 <?php
2 /**
3 * Zend Framework
20 */
22 require_once 'Zend/Locale.php';
23 require_once 'Zend/Locale/Math.php';
24 require_once 'Zend/Locale/Format.php';
26 /**
86 if (!$this->_locale = Zend_Locale::isLocale($locale, true)) {
87 require_once 'Zend/Measure/Exception.php';
88 throw new Zend_Measure_Exception("Language ($locale) is unknown");
89 }
route.php (https://github.com/mathc/joomla-cms.git) PHP · 180 lines
1 <?php
2 /**
3 * @version $Id$
38 //Create the link
39 $link = 'index.php?option=com_weblinks&view=weblink&id='. $id;
40 if ($catid > 1) {
41 $categories = JCategories::getInstance('Weblinks');
44 if($category) {
45 $needles['category'] = array_reverse($category->getPath());
46 $needles['categories'] = $needles['category'];
47 $link .= '&catid='.$catid;
67 // Create the link.
68 if ($id) {
69 $link = 'index.php?option=com_weblinks&task=weblink.edit&w_id='. $id;
70 }
71 else {
Validator.php (https://bitbucket.org/kudutest1/moodlegit.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) {
199 */
200 protected function getFormattedContext() {
201 return implode(' in ', array_reverse($this->context));
202 }
Data.php (https://github.com/yuya-takeyama/symfony-hackathon-20110924.git) PHP · 279 lines
1 <?php
2 /*
3 * $Id: Data.php 2552 2007-09-19 19:33:00Z Jonathan.Wage $
29 * @subpackage Data
30 * @author Jonathan H. Wage <jwage@mac.com>
31 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
32 * @link www.doctrine-project.org
33 * @since 1.0
271 foreach ($connections as $connection => $models) {
272 $models = Doctrine_Manager::getInstance()->getConnection($connection)->unitOfWork->buildFlushTree($models);
273 $models = array_reverse($models);
274 foreach ($models as $model) {
275 Doctrine_Core::getTable($model)->createQuery()->delete()->execute();
Abstract.php (https://github.com/rogerwu99/GF.git) PHP · 376 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Abstract.php 12060 2008-10-21 17:23:55Z thomas $
20 */
23 * @see Zend_Locale
24 */
25 require_once 'Zend/Locale.php';
27 /**
28 * @see Zend_Locale_Math
29 */
30 require_once 'Zend/Locale/Math.php';
32 /**
Set.php (https://github.com/eexit/Smak.git) PHP · 362 lines
Data.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 279 lines
1 <?php
2 /*
3 * $Id: Data.php 48519 2012-02-03 23:18:52Z btowles $
29 * @subpackage Data
30 * @author Jonathan H. Wage <jwage@mac.com>
31 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
32 * @link www.doctrine-project.org
33 * @since 1.0
271 foreach ($connections as $connection => $models) {
272 $models = Doctrine_Manager::getInstance()->getConnection($connection)->unitOfWork->buildFlushTree($models);
273 $models = array_reverse($models);
274 foreach ($models as $model) {
275 Doctrine_Core::getTable($model)->createQuery()->delete()->execute();
Validator.php (https://github.com/ButuzGOL/Yii-blog-new.git) PHP · 223 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->namespaces as $i => $namespace) {
218 */
219 protected function getFormattedContext() {
220 return implode(' in ', array_reverse($this->context));
221 }
database.php (https://github.com/dionyziz/blogcube.git) PHP · 258 lines
options.php (https://github.com/teamplus/teamplus.git) PHP · 366 lines
1 <?php
2 /**
3 * base include file for SimpleTest
4 * @package SimpleTest
5 * @version $Id: options.php 6354 2009-04-15 02:41:21Z mvdam $
6 */
206 /**
207 * Static methods for compatibility between different
208 * PHP versions.
209 * @package SimpleTest
210 */
213 /**
214 * Identity test. Drops back to equality + types for PHP5
215 * objects as the === operator counts as the
216 * stronger reference constraint.
Arr.php (https://gitlab.com/rocs/Streaming-Safe-for-Kids) PHP · 519 lines
Arvore.php (https://gitlab.com/jalon/doadoronline) PHP · 432 lines
LocalFile.php (https://bitbucket.org/kayahr/gitten.git) PHP · 276 lines
array.idl.php (https://github.com/zsj888/hiphop-php.git) PHP · 376 lines
file.php (https://bitbucket.org/codeyash/bootstrap.git) PHP · 207 lines
1 <?php
3 namespace Fuel\Core;
64 /**
65 * Parses a string using all of the previously set variables. Allows you to
66 * use something like %APPPATH% in non-PHP files.
67 *
68 * @param string $string String to parse
81 /**
82 * Replaces FuelPHP's path constants to their string counterparts.
83 *
84 * @param array $array array to be prepped
135 }
137 return array_reverse($paths);
138 }
Abstract.php (https://bitbucket.org/Sinfin/pawtucket.git) PHP · 418 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: Abstract.php 21330 2010-03-04 22:07:38Z thomas $
20 */
23 * @see Zend_Locale
24 */
25 require_once 'Zend/Locale.php';
27 /**
28 * @see Zend_Locale_Math
29 */
30 require_once 'Zend/Locale/Math.php';
32 /**
Abstract.php (https://github.com/massiveart/ZF-ZOOLU.git) PHP · 419 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: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
20 */
23 * @see Zend_Locale
24 */
25 require_once 'Zend/Locale.php';
27 /**
28 * @see Zend_Locale_Math
29 */
30 require_once 'Zend/Locale/Math.php';
32 /**
Migrator.php (https://gitlab.com/techniconline/kmc) PHP · 400 lines
1 <?php namespace Illuminate\Database\Migrations;
3 use Illuminate\Filesystem\Filesystem;
182 $this->notes = [];
184 $migrations = array_reverse($this->repository->getRan());
186 if (count($migrations) == 0) {
235 public function getMigrationFiles($path)
236 {
237 $files = $this->files->glob($path . '/*_*.php');
239 // Once we have the array of files in the directory we will just remove the
244 $files = array_map(function ($file) {
245 return str_replace('.php', '', basename($file));
247 }, $files);
gradebook_data_generator.class.php (https://bitbucket.org/frchico/chamilo_openshift.git) PHP · 233 lines
Breadcrumbs.php (https://github.com/Unplagged/unplagged.git) PHP · 331 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: Breadcrumbs.php 23775 2011-03-01 17:25:24Z ralph $
21 */
24 * @see Zend_View_Helper_Navigation_HelperAbstract
25 */
26 require_once 'Zend/View/Helper/Navigation/HelperAbstract.php';
28 /**
261 if (empty($partial)) {
262 require_once 'Zend/View/Exception.php';
263 $e = new Zend_View_Exception(
264 'Unable to render menu: No partial view script provided'
Abstract.php (https://github.com/Doap/iCms---intelligent-Content-management-system.git) PHP · 418 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: Abstract.php 21329 2010-03-04 22:06:08Z thomas $
20 */
23 * @see Zend_Locale
24 */
25 require_once 'Zend/Locale.php';
27 /**
28 * @see Zend_Locale_Math
29 */
30 require_once 'Zend/Locale/Math.php';
32 /**
router.php (https://gitlab.com/Bartwillemsen/aurora-framework) PHP · 275 lines
1 <?php
2 namespace Aurora\Routing;
82 * Find a route by name.
83 *
84 * The returned array will be identical the array defined in the routes.php file.
85 *
86 * @param string $name
217 // the URI segments and take the first file that matches. That file
218 // should be the deepest controller matched by the URI.
219 foreach (array_reverse($segments, true) as $key => $value) {
220 $controller = implode('/', array_slice($segments, 0, $key + 1)).EXT;
MultiselectgrouplistElement.php (https://gitlab.com/LisovyiEvhenii/ismextensions) PHP · 331 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 Tests_Functional
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 */
221 *
222 * @return array
223 * @SuppressWarnings(PHPMD.NPathComplexity)
224 */
225 public function getValue()
Uri.php (https://github.com/vohnicky/treeview.git) PHP · 458 lines
1 <?php
3 /**
5 *
6 * @copyright Copyright (c) 2004, 2010 David Grudl
7 * @license http://nettephp.com/license Nette license
8 * @link http://nettephp.com
17 *
18 * <pre>
19 * http://user:password@nettephp.com:8042/en/manual.html?name=param#fragment
20 * \__/^^^\_____________________________/\_____________/^\________/^\______/
21 * | | | | |
24 *
25 * - authority: [user[:password]@]host[:port]
26 * - hostUri: http://user:password@nettephp.com:8042
27 *
28 * @copyright Copyright (c) 2004, 2010 David Grudl
mainpage.php (https://gitlab.com/x33n/platform) PHP · 283 lines
1 <?php
2 // handle template change
3 if (isset($_POST['change_template_id'])) {
171 if (is_array($elements_response['payload'])) {
172 $elements_response['payload'] = array_reverse($elements_response['payload']);
173 foreach ($elements_response['payload'] as &$element) {
174 if ($element['modification_date'] == 0) {
RouteListCommand.php (https://gitlab.com/rmoshiur81/Larave-Grading) PHP · 246 lines
Sql.php (https://github.com/ewandor/horde.git) PHP · 319 lines
list.class.php (https://bitbucket.org/orchdork10159/dnsman.ly.git) PHP · 229 lines
1 <?php
2 class hmcResourceList extends hmController {
3 protected $cache = false;
67 }
68 $trail[] = $this->hm->getTpl('widgets/crumbsli',array_merge($this->placeholders,array('ctx' => $this->context, 'title' => $this->context)));
69 $trail = implode("\n",array_reverse($trail));
70 $trail = $this->hm->getTpl('widgets/crumbsouter',array('wrapper' => $trail));
71 $this->setPlaceholder('crumbs',$trail);
Migrator.php (https://gitlab.com/judielsm/Handora) PHP · 405 lines
1 <?php
3 namespace Illuminate\Database\Migrations;
184 $this->notes = [];
186 $migrations = array_reverse($this->repository->getRan());
188 $count = count($migrations);
237 public function getMigrationFiles($path)
238 {
239 $files = $this->files->glob($path.'/*_*.php');
241 // Once we have the array of files in the directory we will just remove the
248 $files = array_map(function ($file) {
249 return str_replace('.php', '', basename($file));
251 }, $files);
acl_tests.php (https://github.com/md-tech/openemr.git) PHP · 223 lines
WebTestCase.php (https://github.com/fernanDOTdo/symfony.git) PHP · 154 lines
1 <?php
3 /*
48 /**
49 * Finds the directory where the phpunit.xml(.dist) is stored.
50 *
51 * If you run tests with the PHPUnit CLI tool, everything will work as expected.
52 * If not, override this method in your test classes.
53 *
54 * @return string The directory where phpunit.xml(.dist) is stored
55 */
56 protected function getPhpUnitXmlDir()
57 {
58 $dir = null;
59 if (!isset($_SERVER['argv']) || false === strpos($_SERVER['argv'][0], 'phpunit')) {
60 throw new \RuntimeException('You must override the WebTestCase::createKernel() method.');
61 }
Category.php (https://bitbucket.org/kdms/sh-magento.git) PHP · 148 lines
navi.inc.php (https://bitbucket.org/hironow/pukiwiki-skin-bootpuki.git) PHP · 186 lines
1 <?php
2 // PukiWiki - Yet another WikiWikiWeb clone.
3 // $Id: navi.inc.php,v 1.22 2005/04/02 06:33:39 henoheno Exp $
90 '($|\/)/', get_existpages());
91 if (PLUGIN_NAVI_EXCLUSIVE_REGEX != '') {
92 // If old PHP could use preg_grep(,,PREG_GREP_INVERT)...
93 $pages = array_diff($pages,
94 preg_grep(PLUGIN_NAVI_EXCLUSIVE_REGEX, $pages));
97 $pages = array_unique($pages);
98 natcasesort($pages);
99 if ($reverse) $pages = array_reverse($pages);
101 $prev = $home;
AbstractMap.php (https://gitlab.com/cuza/Clinic_Recods) PHP · 295 lines
language.api.php (https://bitbucket.org/vectorbase/vectorbase.git) PHP · 186 lines
Processor.php (https://gitlab.com/davidgranado/space-strategy-game) PHP · 397 lines
VersionControl.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 260 lines
12 * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
13 * @link http://pear.php.net/package/PHP_CodeSniffer
14 */
178 arsort($this->_authorCache);
180 echo PHP_EOL.'PHP CODE SNIFFER '.$this->reportName.' BLAME SUMMARY'.PHP_EOL;
181 echo str_repeat('-', $width).PHP_EOL;
225 echo 'WERE COMMITTED BY '.count($this->_authorCache).' AUTHOR(S)'.PHP_EOL;
226 echo str_repeat('-', $width).PHP_EOL.PHP_EOL;
228 if ($toScreen === true
230 && class_exists('PHP_Timer', false) === true
231 ) {
232 echo PHP_Timer::resourceUsage().PHP_EOL.PHP_EOL;
233 }
Maze.php (https://github.com/bigwhoop/Maze-Routing-Algorithm.git) PHP · 253 lines
class-wp-walker.php (https://gitlab.com/hop23typhu/bryepoxy) PHP · 425 lines
1 <?php
2 /**
3 * A class for displaying various tree-like structures.
307 if ( -1 == $max_depth ) {
308 if ( !empty($args[0]['reverse_top_level']) ) {
309 $elements = array_reverse( $elements );
310 $oldstart = $start;
311 $start = $total_top - $end;
347 if ( !empty($args[0]['reverse_top_level']) ) {
348 $top_level_elements = array_reverse( $top_level_elements );
349 $oldstart = $start;
350 $start = $total_top - $end;
353 if ( !empty($args[0]['reverse_children']) ) {
354 foreach ( $children_elements as $parent => $children )
355 $children_elements[$parent] = array_reverse( $children );
356 }
Page.php (https://gitlab.com/Japang-Jawara/jawara-penilaian) PHP · 205 lines
Chain.php (https://gitlab.com/ebrjose/comcebu) PHP · 412 lines
1 <?php
3 namespace WPForms\Helpers;
40 * @method Chain array_replace_recursive()
41 * @method Chain array_replace()
42 * @method Chain array_reverse()
43 * @method Chain array_shift()
44 * @method Chain array_slice()
323 'array_replace_recursive',
324 'array_replace',
325 'array_reverse',
326 'array_shift',
327 'array_slice',
Sql.php (https://github.com/finger2000/horde.git) PHP · 319 lines
1 <?php
2 /**
3 * Ingo_Storage_Filters_Sql is the object used to hold user-defined filtering
5 *
6 * See the enclosed file LICENSE for license information (ASL). If you
7 * did not receive this file, see http://www.horde.org/licenses/asl.php.
8 *
9 * @author Jan Schneider <jan@horde.org>
137 $this->_params['table_rules']);
139 $order = key(array_reverse($this->_filters, true)) + 1;
140 $values = array_merge(array(Ingo::getUser()),
141 $this->_ruleToBackend($rule),
http.php (https://github.com/kamarulismail/kamarul-playground.git) PHP · 269 lines
1 <?php
2 /**
3 * File containing the ezcMvcHttpRequestParser class
55 {
56 $req = $this->request;
57 if ( isset( $_SERVER['PHP_AUTH_USER'] ) && isset( $_SERVER['PHP_AUTH_PW'] ) )
58 {
59 $req->authentication = new ezcMvcRequestAuthentication( $_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'] );
179 if ( $req->protocol == 'http-put' )
180 {
181 $req->body = file_get_contents( "php://input" );
182 }
183 }
220 }
221 asort( $tmpPriorities );
222 $accept->$property = array_keys( array_reverse( $tmpPriorities ) );
223 }
224 }
Abstract.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 418 lines
AnnotationLoader.php (https://github.com/crocos/CrocosSecurityBundle.git) PHP · 240 lines
hacklib_vectorLike.php (https://gitlab.com/Blueprint-Marketing/hhvm) PHP · 214 lines
1 <?php
2 /**
3 * Copyright (c) 2014, Facebook, Inc.
12 namespace HH {
13 require_once(__DIR__.SEP.'..'.SEP.'hacklib_iterator.php');
14 require_once(__DIR__.SEP.'hacklib_constVectorLike.php');
15 require_once(__DIR__.SEP.'hacklib_commonMutableContainerMethods.php');
17 /**
171 */
172 public function reverse() {
173 $this->container = array_reverse($this->container);
174 if ($this->count() > 1) {
175 $this->hacklib_expireAllIterators();
DiffusionSymbolQuery.php (https://github.com/groupspaces/phabricator.git) PHP · 280 lines
Abstract.php (https://github.com/sbuckpesch/Facebook-Demo-App.git) PHP · 418 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: Abstract.php 21179 2010-02-23 21:59:42Z matthew $
20 */
23 * @see Zend_Locale
24 */
25 require_once 'Zend/Locale.php';
27 /**
28 * @see Zend_Locale_Math
29 */
30 require_once 'Zend/Locale/Math.php';
32 /**
options.php (https://github.com/akelos/v1.git) PHP · 366 lines
1 <?php
2 /**
3 * base include file for SimpleTest
4 * @package SimpleTest
5 * @version $Id: options.php,v 1.35 2005/02/04 03:48:52 lastcraft Exp $
6 */
206 /**
207 * Static methods for compatibility between different
208 * PHP versions.
209 * @package SimpleTest
210 */
213 /**
214 * Identity test. Drops back to equality + types for PHP5
215 * objects as the === operator counts as the
216 * stronger reference constraint.
class-wp-walker.php (https://gitlab.com/campus-academy/krowkaramel) PHP · 449 lines
1 <?php
2 /**
3 * A class for displaying various tree-like structures.
84 *
85 * @since 2.1.0
86 * @since 5.9.0 Renamed `$object` (a PHP reserved keyword) to `$data_object` for PHP 8 named parameter support.
87 * @abstract
88 *
101 *
102 * @since 2.1.0
103 * @since 5.9.0 Renamed `$object` (a PHP reserved keyword) to `$data_object` for PHP 8 named parameter support.
104 * @abstract
105 *
317 if ( -1 == $max_depth ) {
318 if ( ! empty( $args[0]['reverse_top_level'] ) ) {
319 $elements = array_reverse( $elements );
320 $oldstart = $start;
321 $start = $total_top - $end;
LocaleNegotiator.class.php (https://github.com/oanas/xp-framework.git) PHP · 158 lines
assets.php (https://gitlab.com/x33n/platform) PHP · 213 lines
1 <?php
3 $user_id = $cash_admin->effective_user_id;
82 if (is_array($releases_response['payload'])) {
83 $releases_response['payload'] = array_reverse($releases_response['payload']); // newest first
84 if (count($releases_response['payload']) == 2) {
85 $cash_admin->page_data['one_remaining'] = true;
157 /*
158 if (is_array($playlists_response['payload'])) {
159 $playlists_response['payload'] = array_reverse($playlists_response['payload']); // newest first
160 $asset_count = 0;
161 foreach ($playlists_response['payload'] as &$asset) {
182 */
183 if (is_array($files_response['payload'])) {
184 $files_response['payload'] = array_reverse($files_response['payload']); // newest first
185 foreach ($files_response['payload'] as &$asset) {
186 if ($asset['modification_date']) {
new_demo.php (https://bitbucket.org/michaelku/tumblr-note-stats-v2.git) PHP · 260 lines
1 <?php
3 /**********************************/
118 $start = $time;
120 $poster_name_array = array_reverse($poster_name_array);
121 $poster_link_array = array_reverse($poster_link_array);
122 $source_name_array = array_reverse($source_name_array);
123 $source_link_array = array_reverse($source_link_array);
124 $action_array = array_reverse($action_array);
125 $permalink_array = array_reverse($permalink_array);
126 $extra_array = array_reverse($extra_array);
128 $notes_count = count($poster_name_array);
RealIteratorTestCase.php (https://github.com/nattaphat/hgis.git) PHP · 108 lines
1 <?php
3 /*
31 'foo/',
32 'foo/bar.tmp',
33 'test.php',
34 'toto/',
35 'foo bar'
52 }
54 file_put_contents(self::toAbsolute('test.php'), str_repeat(' ', 800));
55 file_put_contents(self::toAbsolute('test.py'), str_repeat(' ', 2000));
57 touch(self::toAbsolute('foo/bar.tmp'), strtotime('2005-10-15'));
58 touch(self::toAbsolute('test.php'), strtotime('2005-10-15'));
59 }
WebTestCase.php (https://github.com/Exercise/symfony.git) PHP · 169 lines
1 <?php
3 /*
21 * @author Fabien Potencier <fabien@symfony.com>
22 */
23 abstract class WebTestCase extends \PHPUnit_Framework_TestCase
24 {
25 static protected $class;
51 /**
52 * Finds the directory where the phpunit.xml(.dist) is stored.
53 *
54 * If you run tests with the PHPUnit CLI tool, everything will work as expected.
55 * If not, override this method in your test classes.
56 *
57 * @return string The directory where phpunit.xml(.dist) is stored
58 */
59 static protected function getPhpUnitXmlDir()
Tools.php (https://gitlab.com/ebrjose/comcebu) PHP · 258 lines
1 <?php
2 namespace AIOSEO\Plugin\Common\Api;
95 }
97 require_once ABSPATH . 'wp-admin/includes/update.php';
99 // Translators: 1 - The plugin name ("All in One SEO"), 2 - The Site URL.
141 return new \WP_REST_Response( [
142 'success' => true,
143 'backups' => array_reverse( aioseo()->backup->all() )
144 ], 200 );
145 }
159 return new \WP_REST_Response( [
160 'success' => false,
161 'backups' => array_reverse( aioseo()->backup->all() )
162 ], 400 );
163 }
TaintFlowGraph.php (https://github.com/vimeo/psalm.git) PHP · 322 lines
AbstractMeasure.php (https://github.com/jtai/zf2.git) PHP · 417 lines
RouteCollection.php (https://github.com/stedekay/symfony.git) PHP · 255 lines
Abstract.php (https://github.com/qmmr/iAlbums.git) PHP · 418 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: Abstract.php 23651 2011-01-21 21:51:00Z mikaelkael $
20 */
23 * @see Zend_Locale
24 */
25 require_once 'Zend/Locale.php';
27 /**
28 * @see Zend_Locale_Math
29 */
30 require_once 'Zend/Locale/Math.php';
32 /**
MY_QueryFormHelper.php (https://github.com/AlinT/socorro.git) PHP · 144 lines
1 <?php defined('SYSPATH') or die('No direct script access.');
2 /* ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
37 * ***** END LICENSE BLOCK ***** */
39 require_once(Kohana::find_file('libraries', 'versioncompare', TRUE, 'php'));
40 require_once(Kohana::find_file('libraries', 'release', TRUE, 'php'));
71 $versions_by_product_reversed = array();
72 foreach ($versions_by_product as $product => $versions) {
73 $versions_by_product_reversed[$product] = array_reverse($versions);
74 }
127 foreach ($products2versions as $product => $versions) {
128 if (count($versions) > 0) {
129 foreach (array_reverse($versions) as $v) {
130 $release_type = $release->typeOfRelease($v);
131 if (
Feed.php (https://bitbucket.org/dnejedly/eaparts.git) PHP · 194 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_AdminNotification
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 */
96 if ($feedData) {
97 Mage::getModel('adminnotification/inbox')->parse(array_reverse($feedData));
98 }
UserManager0002Test.php (https://github.com/dextercowley/joomla-cms.git) PHP · 187 lines
1 <?php
3 require_once 'JoomlaWebdriverTestCase.php';
119 $userNamesSorted = $userNames;
120 sort($userNamesSorted, SORT_STRING);
121 $userNamesReversed = array_reverse($userNamesSorted);
123 $emails = array($this->cfg->admin_email, 'user1@test.com', 'user3@test.com', 'user2@test.com');
124 $emailsSorted = $emails;
125 sort($emailsSorted, SORT_STRING);
126 $emailsReversed = array_reverse($emailsSorted);
128 $expectedRowNumbers = array(
CakeFixtureManager.php (https://github.com/gustavor/lore.git) PHP · 253 lines
1 <?php
2 /**
3 * A factory class to manage the life cycle of test fixtures
5 * PHP 5
6 *
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
9 *
12 *
13 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
14 * @link http://cakephp.org CakePHP(tm) Project
15 * @package Cake.TestSuite.Fixture
16 * @since CakePHP(tm) v 2.0
17 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
18 */
19 PHP_CodeCoverage_Filter::getInstance()->addFileToBlacklist(__FILE__, 'DEFAULT');
router.php (https://bitbucket.org/ke2083/transfans.co.uk-website.git) PHP · 251 lines
1 <?php
2 /**
3 * @package Joomla.Site
51 else
52 {
53 JLoader::register('ContactRouterRulesLegacy', __DIR__ . '/helpers/legacyrouter.php');
54 $this->attachRule(new ContactRouterRulesLegacy($this));
55 }
70 if ($category)
71 {
72 $path = array_reverse($category->getPath(), true);
73 $path[0] = '1:root';
Abstract.php (https://github.com/durand54/sitellite.git) PHP · 360 lines
1 <?php
2 /**
3 * Zend Framework
16 * @package Zend_Measure
17 * @copyright Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)
18 * @version $Id: Abstract.php,v 1.1.1.1 2007/08/12 09:26:24 lux Exp $
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 */
23 require_once 'Zend/Locale.php';
24 require_once 'Zend/Locale/Math.php';
25 require_once 'Zend/Locale/Format.php';
PropertyResolver.php (https://gitlab.com/php.bjoernbartels.earth/phpagstract) PHP · 231 lines
query.php (https://github.com/livinglab/openlab.git) PHP · 222 lines
class-wp-dpla-query.php (https://github.com/livinglab/openlab.git) PHP · 185 lines
1 <?php
3 class WP_DPLA_Query {
153 // If the title is an array, just take the first item
154 $title = is_array( $item['sourceResource']['title'] ) ? array_pop( array_reverse( $item['sourceResource']['title'] ) ) : $item['sourceResource']['title'];
156 return array(
176 if ( ! isset( $this->_dpla ) ) {
177 $api_key = get_option( 'dpla_api_key' );
178 require_once __DIR__ . '/dpla/class-wp-dpla-dpla.php';
179 $this->_dpla = new \TFN\WP_DPLA_DPLA( $api_key );
180 }
arr.php (https://github.com/bouthors/gallery3-contrib.git) PHP · 275 lines
1 <?php defined('SYSPATH') OR die('No direct access allowed.');
2 /**
3 * Array helper class.
4 *
5 * $Id: arr.php 4680 2009-11-10 01:57:00Z isaiah $
6 *
7 * @package Core
8 * @author Kohana Team
9 * @copyright (c) 2007-2009 Kohana Team
10 * @license http://kohanaphp.com/license
11 */
12 class arr_Core {
124 /**
125 * Because PHP does not have this function.
126 *
127 * @param array array to unshift
functions.php (https://gitlab.com/cserobiul/Bitm-PHP-CRUD-Practice) PHP · 152 lines
1 <?php
4 // mPDF 6
5 // Function only available PHP >=5.5.0
6 if(!function_exists('imagepalettetotruecolor')) {
7 function imagepalettetotruecolor(&$src) {
23 // Replace a section of an array with the elements in reverse
24 function array_splice_reverse(&$arr, $offset, $length) {
25 $tmp = (array_reverse(array_slice($arr, $offset, $length)));
26 array_splice($arr, $offset, $length, $tmp);
27 }
83 // For PHP4 compatability
84 if(!function_exists('str_ireplace')) {
85 function str_ireplace($search,$replace,$subject) {
dengon.php (https://github.com/usagi-project/mynets1.git) PHP · 298 lines
1 <?php
2 /* ========================================================================
3 *
4 * @license This source file is subject to version 3.01 of the PHP license,
5 * that is available at http://www.php.net/license/3_01.txt
6 * If you did not receive a copy of the PHP license and are unable
7 * to obtain it through the world-wide-web, please send a note to
8 * license@php.net so we can mail you a copy immediately.
183 //コメントを、新しいものを上にしてページ遷移可能とする
184 $c_dengon_comment_list = array_reverse($c_dengon_comment_list);
185 foreach($c_dengon_comment_list as $key => $value) {
186 $c_member = db_common_c_member4c_member_id_LIGHT($value['c_member_id_from']);
class-lp-breadcrumb.php (https://gitlab.com/gregtyka/lfmawordpress) PHP · 354 lines
1 <?php
3 if ( !defined( 'ABSPATH' ) ) {
185 }
187 $parent_crumbs = array_reverse( $parent_crumbs );
189 foreach ( $parent_crumbs as $crumb ) {
317 private function term_ancestors( $term_id, $taxonomy ) {
318 $ancestors = get_ancestors( $term_id, $taxonomy );
319 $ancestors = array_reverse( $ancestors );
321 foreach ( $ancestors as $ancestor ) {
MetadataFactory.php (https://bitbucket.org/AdriVanHoudt/school.git) PHP · 154 lines
Feed.php (https://github.com/fastslack/joomla-cms.git) PHP · 362 lines
settings.php (https://github.com/burningTyger/os_moodle.git) PHP · 138 lines
1 <?php
3 require_once('../config.php');
4 require_once($CFG->libdir.'/adminlib.php');
6 $section = required_param('section', PARAM_SAFEDIR);
11 require_login(0, false);
12 $PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));
13 $PAGE->set_url('/admin/settings.php', array('section' => $section));
14 $PAGE->set_pagetype('admin-setting-' . $section);
15 $PAGE->set_pagelayout('admin');
75 // ---------------------------------------------------------------------------------------------------------------
77 echo '<form action="settings.php" method="post" id="adminsettings">';
78 echo '<div class="settingsform clearfix">';
79 echo html_writer::input_hidden_params($PAGE->url);
eztagstemplatefunctions.php (https://github.com/alafon/eztags.git) PHP · 164 lines
1 <?php
3 /**
53 /**
54 * Executes the PHP function for the operator cleanup and modifies $operatorValue.
55 *
56 * @param eZTemplate $tpl
107 $keywordsArray[] = ( $synonymsCount > 0 ) ? $tag->attribute( 'keyword' ) . ' (+' . $synonymsCount . ')' : $tag->attribute( 'keyword' );
109 return implode( ' / ', array_reverse( $keywordsArray ) );
110 }
128 * Shorthand method to check user access policy limitations for a given module/policy function.
129 * Returns the same array as eZUser::hasAccessTo(), with "simplifiedLimitations".
130 * 'simplifiedLimitations' array holds all the limitations names as defined in module.php.
131 * If your limitation name is not defined as a key, then your user has full access to this limitation
132 *
Arr.php (https://gitlab.com/techniconline/kmc) PHP · 385 lines
SnapshotPageProxy.php (https://github.com/youbs/SonataPageBundle.git) PHP · 632 lines
VersionControl.php (https://github.com/r1zib/salesforce.git) PHP · 214 lines
13 * @version CVS: $Id: IsCamelCapsTest.php 240585 2007-08-02 00:05:40Z squiz $
14 * @link http://pear.php.net/package/PHP_CodeSniffer
15 */
29 * @link http://pear.php.net/package/PHP_CodeSniffer
30 */
31 abstract class PHP_CodeSniffer_Reports_VersionControl implements PHP_CodeSniffer_Report
32 {
133 arsort($authors);
135 echo PHP_EOL.'PHP CODE SNIFFER '.$this->reportName.' BLAME SUMMARY'.PHP_EOL;
136 echo str_repeat('-', $width).PHP_EOL;
183 if (class_exists('PHP_Timer', false) === true) {
184 echo PHP_Timer::resourceUsage().PHP_EOL.PHP_EOL;
185 }
Map.php (https://github.com/reoring/sabel.git) PHP · 293 lines
1 <?php
3 /**
8 * @author Ebine Yutaka <ebine.yutaka@sabel.jp>
9 * @copyright 2004-2008 Mori Reo <mori.reo@sabel.jp>
10 * @license http://www.opensource.org/licenses/bsd-license.php BSD License
11 */
12 class Sabel_Util_Map extends Sabel_Object implements Iterator
169 public function reverse()
170 {
171 $this->array = array_reverse($this->array);
173 return $this;
smarty_internal_resource_extends.php (https://github.com/SquattingSasquatches/Lucidity.git) PHP · 148 lines
1 <?php
2 /**
3 * Smarty Internal Plugin Resource Extends
33 foreach ($components as $component) {
34 $s = Smarty_Resource::source(null, $source->smarty, $component);
35 if ($s->type == 'php') {
36 throw new SmartyException("Resource type {$s->type} cannot be used with the extends resource type");
37 }
82 $_rdl = preg_quote($source->smarty->right_delimiter);
83 $_ldl = preg_quote($source->smarty->left_delimiter);
84 $_components = array_reverse($source->components);
85 $_first = reset($_components);
86 $_last = end($_components);
acoes_acao_incluir_cad.php (https://github.com/gtinfo/ieducar.git) PHP · 129 lines
1 <?php
2 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3 * *
26 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
27 $desvio_diretorio = "";
28 require_once ("include/clsBase.inc.php");
29 require_once ("include/clsCadastro.inc.php");
30 require_once("include/pmiacoes/geral.inc.php");
31 require_once( "include/Geral.inc.php" );
60 if(!(int)$cod_acao_governo)
61 header("Location: acoes_acao_lst.php");
63 //Objeto Perturbao
CakeFixtureManager.php (https://gitlab.com/digaotinfo/abear.com.br) PHP · 268 lines
1 <?php
2 /**
3 * A factory class to manage the life cycle of test fixtures
5 * PHP 5
6 *
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
9 *
12 *
13 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
14 * @link http://cakephp.org CakePHP(tm) Project
15 * @package Cake.TestSuite.Fixture
16 * @since CakePHP(tm) v 2.0
17 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
18 */
Abstract.php (https://bitbucket.org/khuongduybui/openfisma.git) PHP · 418 lines
Abstract.php (https://bitbucket.org/acidel/buykoala.git) PHP · 418 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: Abstract.php 21329 2010-03-04 22:06:08Z thomas $
20 */
23 * @see Zend_Locale
24 */
25 #require_once 'Zend/Locale.php';
27 /**
28 * @see Zend_Locale_Math
29 */
30 #require_once 'Zend/Locale/Math.php';
32 /**
Breadcrumbs.php (https://github.com/richhl/kalturaCE.git) PHP · 325 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Breadcrumbs.php 16971 2009-07-22 18:05:45Z mikaelkael $
21 */
24 * @see Zend_View_Helper_Navigation_HelperAbstract
25 */
26 require_once 'Zend/View/Helper/Navigation/HelperAbstract.php';
28 /**
261 if (empty($partial)) {
262 require_once 'Zend/View/Exception.php';
263 throw new Zend_View_Exception(
264 'Unable to render menu: No partial view script provided');
route.php (https://github.com/pjwiseman/joomla-cms.git) PHP · 212 lines
1 <?php
2 /**
3 * @package Joomla.Site
41 // Create the link
42 $link = 'index.php?option=com_contact&view=contact&id=' . $id;
44 if ($catid > 1)
49 if ($category)
50 {
51 $needles['category'] = array_reverse($category->getPath());
52 $needles['categories'] = $needles['category'];
53 $link .= '&catid=' . $catid;
102 // Create the link
103 $link = 'index.php?option=com_contact&view=category&id=' . $id;
105 $catids = array_reverse($category->getPath());