100+ results for 'php array_reverse'

Not the results you expected?

Local.php (https://gitlab.com/vincetang/mtweb) PHP · 401 lines

1 <?php

2

3 namespace League\Flysystem\Adapter;

320

321 $contents = $this->listContents($dirname, true);

322 $contents = array_reverse($contents);

323

324 foreach ($contents as $file) {

AssertionsTest.class.php (https://github.com/treuter/xp-framework.git) PHP · 617 lines

1 <?php

2 /* This class is part of the XP framework

3 *

163 public function hashesOrderNotRelevant() {

164 $hash= array('&' => '&amp;', '"' => '&quot;');

165 $this->assertEquals($hash, array_reverse($hash, TRUE), xp::stringOf($hash));

166 }

167

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 */

21

23 * @see Zend_Locale

24 */

25 // // // // // // // // require_once 'Zend/Locale.php';

26

27 /**

28 * @see Zend_Locale_Math

29 */

30 // // // // // // // // require_once 'Zend/Locale/Math.php';

31

32 /**

Arr.php (https://gitlab.com/dzakiafif/cokelatklasik) PHP · 419 lines

1 <?php

2

3 namespace Illuminate\Support;

169 public static function last($array, callable $callback, $default = null)

170 {

171 return static::first(array_reverse($array), $callback, $default);

172 }

173

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 */

21

23 * @see Zend_Locale

24 */

25 // require_once 'Zend/Locale.php';

26

27 /**

28 * @see Zend_Locale_Math

29 */

30 // require_once 'Zend/Locale/Math.php';

31

32 /**

App.php (https://github.com/bobthecow/genghis.git) PHP · 210 lines

1 <?php

2

3 class Genghis_App

81 $filename = basename($_SERVER['SCRIPT_FILENAME']);

82

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];

89

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

1 <?php

2 /**

3 * Zend Framework

290 $active = $parent;

291 }

292 $model['pages'] = array_reverse($model['pages']);

293 }

294

Collection.php (https://gitlab.com/koodersmiikka/operaatio-terveys) PHP · 717 lines

1 <?php namespace Illuminate\Support;

2

3 use Closure;

373 public function reverse()

374 {

375 return new static(array_reverse($this->items));

376 }

377

StandardRules.php (https://github.com/joomla/joomla-cms.git) PHP · 275 lines

1 <?php

2

3 /**

220

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;

224

245 $found2 = false;

246

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;

2

3 use Illuminate\Filesystem\Filesystem;

186 $this->notes = [];

187

188 $migrations = array_reverse($this->repository->getRan());

189

190 if (count($migrations) == 0)

242 public function getMigrationFiles($path)

243 {

244 $files = $this->files->glob($path.'/*_*.php');

245

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));

254

255 }, $files);

program.php (https://bitbucket.org/crevillo/enetcall.git) PHP · 298 lines

1 <?php

2 /**

3 * File containing the ezcTemplateProgramSourceToTstParser class

181 }

182

183 $parents = array_reverse( $parents );

184 $treeText = "The current nesting structure:\n" . join( "\n", $parents );

185

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 */

21

23 * @see Zend_Locale

24 */

25 //*** require_once 'Zend/Locale.php';

26

27 /**

28 * @see Zend_Locale_Math

29 */

30 //*** require_once 'Zend/Locale/Math.php';

31

32 /**

Module.php (https://bitbucket.org/mrblackus/micro-muffin.git) PHP · 383 lines

1 <?php

2

3 /*

30

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 }

52

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' );

6

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&nbsp;<?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&nbsp;<?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&nbsp;<?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&nbsp;<?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

1 <?php

2

3 namespace Illuminate\Support;

183 }

184

185 return static::first(array_reverse($array), $callback, $default);

186 }

187

Pipeline.php (https://gitlab.com/ealexis.t/trends) PHP · 170 lines

1 <?php

2

3 namespace Illuminate\Pipeline;

97 $firstSlice = $this->getInitialSlice($destination);

98

99 $pipes = array_reverse($this->pipes);

100

101 return call_user_func(

Abstract.php (https://github.com/jorgenils/zend-framework.git) PHP · 357 lines

1 <?php

2 /**

3 * Zend Framework

20 */

21

22 require_once 'Zend/Locale.php';

23 require_once 'Zend/Locale/Math.php';

24 require_once 'Zend/Locale/Format.php';

25

26 /**

85

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$

37

38 //Create the link

39 $link = 'index.php?option=com_weblinks&view=weblink&id='. $id;

40 if ($catid > 1) {

41 $categories = JCategories::getInstance('Weblinks');

43

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

2

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 }

203

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 */

21

23 * @see Zend_Locale

24 */

25 require_once 'Zend/Locale.php';

26

27 /**

28 * @see Zend_Locale_Math

29 */

30 require_once 'Zend/Locale/Math.php';

31

32 /**

Set.php (https://github.com/eexit/Smak.git) PHP · 362 lines

1 <?php

2

3 namespace Smak\Portfolio\tests\units;

8 use tests\units\Smak\Portfolio\Fs;

9

10 require_once __DIR__ . '/../../../../vendor/autoload.php';

11

12 class Set extends Fs\FsAdapter

275 }

276

277 $this->array(array_reverse($expected))->isEqualTo($results);

278 }

279

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

2

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 }

222

database.php (https://github.com/dionyziz/blogcube.git) PHP · 258 lines

1 <?php

2 /*

3 Module: Database stabilization

4 File: /modules/stabilize/database.php

5 Developers: dionyziz, feedWARd

6 */

166 }

167 }

168 $l = array_reverse($l);

169 return $l;

170 }

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 */

7

206 /**

207 * Static methods for compatibility between different

208 * PHP versions.

209 * @package SimpleTest

210 */

212

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

1 <?php

2

3 namespace Illuminate\Support;

167 }

168

169 return static::first(array_reverse($array, true), $callback, $default);

170 }

171

Arvore.php (https://gitlab.com/jalon/doadoronline) PHP · 432 lines

1 <?php

2

3 namespace AppClass\App;

335 //$log->debug("Itens: ".serialize($this->itens));

336

337 $array = array_reverse($array);

338 $itens = array();

339

LocalFile.php (https://bitbucket.org/kayahr/gitten.git) PHP · 276 lines

1 <?php

2 /*

3 * Copyright (C) 2013 Klaus Reimer <k@ailis.de>

58 public function getUrl()

59 {

60 return PHP_BASEURL . "/" . $this->path;

61 }

62

178 $parent = $parent->getParent();

179 }

180 return array_reverse($parents);

181 }

182

array.idl.php (https://github.com/zsj888/hiphop-php.git) PHP · 376 lines

1 <?php

2

3 include_once 'base.php';

128 'initial' => array(Variant, 'null_variant')));

129

130 f('array_reverse', Variant,

131 array('array' => Variant,

132 'preserve_keys' => array(Boolean, 'false')), FunctionIsFoldable);

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

114 function array_take_from_end($number, $arr)

115 {

116 return array_reverse($this->array_take_from_start($number, array_reverse($arr)));

117 }

118 }

file.php (https://bitbucket.org/codeyash/bootstrap.git) PHP · 207 lines

1 <?php

2

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

80

81 /**

82 * Replaces FuelPHP's path constants to their string counterparts.

83 *

84 * @param array $array array to be prepped

135 }

136

137 return array_reverse($paths);

138 }

139

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 */

21

23 * @see Zend_Locale

24 */

25 require_once 'Zend/Locale.php';

26

27 /**

28 * @see Zend_Locale_Math

29 */

30 require_once 'Zend/Locale/Math.php';

31

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 */

21

23 * @see Zend_Locale

24 */

25 require_once 'Zend/Locale.php';

26

27 /**

28 * @see Zend_Locale_Math

29 */

30 require_once 'Zend/Locale/Math.php';

31

32 /**

Migrator.php (https://gitlab.com/techniconline/kmc) PHP · 400 lines

1 <?php namespace Illuminate\Database\Migrations;

2

3 use Illuminate\Filesystem\Filesystem;

182 $this->notes = [];

183

184 $migrations = array_reverse($this->repository->getRan());

185

186 if (count($migrations) == 0) {

235 public function getMigrationFiles($path)

236 {

237 $files = $this->files->glob($path . '/*_*.php');

238

239 // Once we have the array of files in the directory we will just remove the

243

244 $files = array_map(function ($file) {

245 return str_replace('.php', '', basename($file));

246

247 }, $files);

gradebook_data_generator.class.php (https://bitbucket.org/frchico/chamilo_openshift.git) PHP · 233 lines

1 <?php

2 /* For licensing terms, see /license.txt */

3 /**

82 }

83 if ($sorting & self :: GDG_SORT_DESC) {

84 $allitems = array_reverse($allitems);

85 }

86 // get selected items

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 */

22

24 * @see Zend_View_Helper_Navigation_HelperAbstract

25 */

26 require_once 'Zend/View/Helper/Navigation/HelperAbstract.php';

27

28 /**

260

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 */

21

23 * @see Zend_Locale

24 */

25 require_once 'Zend/Locale.php';

26

27 /**

28 * @see Zend_Locale_Math

29 */

30 require_once 'Zend/Locale/Math.php';

31

32 /**

router.php (https://gitlab.com/Bartwillemsen/aurora-framework) PHP · 275 lines

1 <?php

2 namespace Aurora\Routing;

3

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;

221

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 */

26

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

2

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'])) {

170

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

1 <?php

2

3 namespace Illuminate\Foundation\Console;

95

96 if ($this->option('reverse')) {

97 $results = array_reverse($results);

98 }

99

Sql.php (https://github.com/ewandor/horde.git) PHP · 319 lines

1 <?php

2 /**

3 * Ingo_Storage_Filters_Sql is the object used to hold user-defined filtering

137 $this->_params['table_rules']);

138

139 $order = key(array_reverse($this->_filters, true)) + 1;

140 $values = array_merge(array(Ingo::getUser()),

141 $this->_ruleToBackend($rule),

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

2

3 namespace Illuminate\Database\Migrations;

184 $this->notes = [];

185

186 $migrations = array_reverse($this->repository->getRan());

187

188 $count = count($migrations);

237 public function getMigrationFiles($path)

238 {

239 $files = $this->files->glob($path.'/*_*.php');

240

241 // Once we have the array of files in the directory we will just remove the

247

248 $files = array_map(function ($file) {

249 return str_replace('.php', '', basename($file));

250

251 }, $files);

acl_tests.php (https://github.com/md-tech/openemr.git) PHP · 223 lines

1 <?php

2

3 class acl_setup {

101

102 // delete AXO groups

103 foreach (array_reverse($this->axo_group) as $id) {

104 $this->gacl_api->del_group($id,TRUE,'AXO');

105 }

116

117 // delete ARO groups

118 foreach (array_reverse($this->aro_group) as $id) {

119 $this->gacl_api->del_group($id,TRUE,'ARO');

120 }

WebTestCase.php (https://github.com/fernanDOTdo/symfony.git) PHP · 154 lines

1 <?php

2

3 /*

47

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

1 <?php

2 /**

3 * MageWorx

75 }

76 array_pop($title);

77 $value = join($separator, array_reverse($title));

78 break;

79 case 'store_view_name':

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);

100

101 $prev = $home;

AbstractMap.php (https://gitlab.com/cuza/Clinic_Recods) PHP · 295 lines

1 <?php

2

3 /*

17 */

18

19 namespace PhpCollection;

20

21 use PhpOption\Some;

22 use PhpOption\None;

23

24 /**

191 {

192 $value = $initialValue;

193 foreach (array_reverse($this->elements) as $elem) {

194 $value = call_user_func($callable, $elem, $value);

195 }

page_frame_reflower.cls.php (https://gitlab.com/4gdevs/online-class-record-system) PHP · 186 lines

1 <?php

2 /**

3 * @package dompdf

106 }

107 }

108 $fixed_children = array_reverse($fixed_children);

109 }

110

language.api.php (https://bitbucket.org/vectorbase/vectorbase.git) PHP · 186 lines

1 <?php

2

3 /**

179 */

180 function hook_language_fallback_candidates_alter(array &$fallback_candidates) {

181 $fallback_candidates = array_reverse($fallback_candidates);

182 }

183

Processor.php (https://gitlab.com/davidgranado/space-strategy-game) PHP · 397 lines

1 <?php

2 class Processor

3 {

372

373 return $this->processLog;

374 // return array_reverse($this->processLog);

375

376 }

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 */

15

178 arsort($this->_authorCache);

179

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;

227

228 if ($toScreen === true

230 && class_exists('PHP_Timer', false) === true

231 ) {

232 echo PHP_Timer::resourceUsage().PHP_EOL.PHP_EOL;

233 }

234

Maze.php (https://github.com/bigwhoop/Maze-Routing-Algorithm.git) PHP · 253 lines

1 <?php

2 namespace BigWhoop\MazeRunning;

3

177 // If possbile next point is the start, we found what we're looking for

178 if ($nextPointCandidate->getType() == Point::TYPE_START) {

179 return array_reverse($route);

180 }

181

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;

346

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 }

357

Page.php (https://gitlab.com/Japang-Jawara/jawara-penilaian) PHP · 205 lines

1 <?php

2 /**

3 * @package dompdf

124 }

125 }

126 $fixed_children = array_reverse($fixed_children);

127 }

128

Chain.php (https://gitlab.com/ebrjose/comcebu) PHP · 412 lines

1 <?php

2

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']);

138

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

1 <?php

2 /**

3 * Zend Framework

23 * @see Zend_Locale

24 */

25 #require_once 'Zend/Locale.php';

26

27 /**

28 * @see Zend_Locale_Math

29 */

30 #require_once 'Zend/Locale/Math.php';

31

32 /**

33 * @see Zend_Locale_Format

34 */

35 #require_once 'Zend/Locale/Format.php';

36

37 /**

AnnotationLoader.php (https://github.com/crocos/CrocosSecurityBundle.git) PHP · 240 lines

1 <?php

2 namespace Crocos\SecurityBundle\Security;

3

88 $klasses[] = $klass;

89 }

90 $klasses = array_reverse($klasses);

91

92 $annotations = [];

hacklib_vectorLike.php (https://gitlab.com/Blueprint-Marketing/hhvm) PHP · 214 lines

1 <?php

2 /**

3 * Copyright (c) 2014, Facebook, Inc.

11

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');

16

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

1 <?php

2

3 /*

193

194 $data = isort($data, 'score');

195 $data = array_reverse($data);

196

197 $data = array_slice($data, 0, $this->limit);

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 */

21

23 * @see Zend_Locale

24 */

25 require_once 'Zend/Locale.php';

26

27 /**

28 * @see Zend_Locale_Math

29 */

30 require_once 'Zend/Locale/Math.php';

31

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 */

7

206 /**

207 * Static methods for compatibility between different

208 * PHP versions.

209 * @package SimpleTest

210 */

212

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

1 <?php

2 /* This class is part of the XP framework

3 *

137

138 asort($values, SORT_NUMERIC);

139 return array_reverse($values);

140 }

141

143 * Private helper that searches an array using strncasecmp as comparator

144 *

145 * @see php://strncasecmp

146 * @param string value

147 * @param string[] array

assets.php (https://gitlab.com/x33n/platform) PHP · 213 lines

1 <?php

2

3 $user_id = $cash_admin->effective_user_id;

81

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

2

3 /**********************************/

118 $start = $time;

119

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);

127

128 $notes_count = count($poster_name_array);

RealIteratorTestCase.php (https://github.com/nattaphat/hgis.git) PHP · 108 lines

1 <?php

2

3 /*

31 'foo/',

32 'foo/bar.tmp',

33 'test.php',

34 'toto/',

35 'foo bar'

52 }

53

54 file_put_contents(self::toAbsolute('test.php'), str_repeat(' ', 800));

55 file_put_contents(self::toAbsolute('test.py'), str_repeat(' ', 2000));

56

57 touch(self::toAbsolute('foo/bar.tmp'), strtotime('2005-10-15'));

58 touch(self::toAbsolute('test.php'), strtotime('2005-10-15'));

59 }

60

WebTestCase.php (https://github.com/Exercise/symfony.git) PHP · 169 lines

1 <?php

2

3 /*

21 * @author Fabien Potencier <fabien@symfony.com>

22 */

23 abstract class WebTestCase extends \PHPUnit_Framework_TestCase

24 {

25 static protected $class;

50

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;

3

95 }

96

97 require_once ABSPATH . 'wp-admin/includes/update.php';

98

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

1 <?php

2

3 namespace Psalm\Internal\Codebase;

16 use function strlen;

17 use function array_intersect;

18 use function array_reverse;

19

20 class TaintFlowGraph extends ControlFlowGraph

AbstractMeasure.php (https://github.com/jtai/zf2.git) PHP · 417 lines

1 <?php

2 /**

3 * Zend Framework

253 // Convert to expected value

254 if (is_array($this->_units[$type][0])) {

255 foreach (array_reverse($this->_units[$type][0]) as $key => $found) {

256 switch ($key) {

257 case "/":

RouteCollection.php (https://github.com/stedekay/symfony.git) PHP · 255 lines

1 <?php

2

3 /*

130 {

131 // get the latest defined route

132 foreach (array_reverse($this->routes) as $routes) {

133 if (!$routes instanceof RouteCollection) {

134 continue;

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 */

21

23 * @see Zend_Locale

24 */

25 require_once 'Zend/Locale.php';

26

27 /**

28 * @see Zend_Locale_Math

29 */

30 require_once 'Zend/Locale/Math.php';

31

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 ***** */

38

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 }

75

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 */

26

95

96 if ($feedData) {

97 Mage::getModel('adminnotification/inbox')->parse(array_reverse($feedData));

98 }

99

UserManager0002Test.php (https://github.com/dextercowley/joomla-cms.git) PHP · 187 lines

1 <?php

2

3 require_once 'JoomlaWebdriverTestCase.php';

119 $userNamesSorted = $userNames;

120 sort($userNamesSorted, SORT_STRING);

121 $userNamesReversed = array_reverse($userNamesSorted);

122

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);

127

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';

74

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 */

21

22

23 require_once 'Zend/Locale.php';

24 require_once 'Zend/Locale/Math.php';

25 require_once 'Zend/Locale/Format.php';

26

27

PropertyResolver.php (https://gitlab.com/php.bjoernbartels.earth/phpagstract) PHP · 231 lines

1 <?php

2 namespace PHPagstract\Page\Resolver;

3

4 use PHPagstract\Traits\ScopesTrait;

5 use PHPagstract\Traits\StreamTrait;

6 use PHPagstract\Symbol\Symbols\AbstractPropertySymbol;

7

8 /**

9 * PHPagstract generic property resolver class

10 *

11 * generic methods to resolve property references

query.php (https://github.com/livinglab/openlab.git) PHP · 222 lines

1 <?php

2

3 class P2P_Query {

162

163 case 'from':

164 $fields = array_reverse( $fields );

165 // fallthrough

166 case 'to':

class-wp-dpla-query.php (https://github.com/livinglab/openlab.git) PHP · 185 lines

1 <?php

2

3 class WP_DPLA_Query {

152

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'];

155

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 {

123

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

2

3

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 }

81

82

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.

182

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

2

3 if ( !defined( 'ABSPATH' ) ) {

185 }

186

187 $parent_crumbs = array_reverse( $parent_crumbs );

188

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 );

320

321 foreach ( $ancestors as $ancestor ) {

MetadataFactory.php (https://bitbucket.org/AdriVanHoudt/school.git) PHP · 154 lines

1 <?php

2

3 /*

128 } while (false !== $refl = $refl->getParentClass());

129

130 $classes = array_reverse($classes, false);

131

132 if (!$this->includeInterfaces) {

Feed.php (https://github.com/fastslack/joomla-cms.git) PHP · 362 lines

1 <?php

2 /**

3 * Joomla! Content Management System

355 if (is_array($this->entries) && !empty($this->entries))

356 {

357 $this->entries = array_reverse($this->entries);

358 }

359

settings.php (https://github.com/burningTyger/os_moodle.git) PHP · 138 lines

1 <?php

2

3 require_once('../config.php');

4 require_once($CFG->libdir.'/adminlib.php');

5

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 // ---------------------------------------------------------------------------------------------------------------

76

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

2

3 /**

52

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' );

108

109 return implode( ' / ', array_reverse( $keywordsArray ) );

110 }

111

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

1 <?php namespace Illuminate\Support;

2

3 use Illuminate\Support\Traits\Macroable;

162 public static function last($array, callable $callback, $default = null)

163 {

164 return static::first(array_reverse($array), $callback, $default);

165 }

166

SnapshotPageProxy.php (https://github.com/youbs/SonataPageBundle.git) PHP · 632 lines

1 <?php

2

3 namespace Sonata\PageBundle\Model;

228 }

229

230 $this->setParents(array_reverse($parents));

231 }

232

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 */

16

29 * @link http://pear.php.net/package/PHP_CodeSniffer

30 */

31 abstract class PHP_CodeSniffer_Reports_VersionControl implements PHP_CodeSniffer_Report

32 {

33

133 arsort($authors);

134

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 }

186

Map.php (https://github.com/reoring/sabel.git) PHP · 293 lines

1 <?php

2

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);

172

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" );

59

60 if(!(int)$cod_acao_governo)

61 header("Location: acoes_acao_lst.php");

62

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 */

19

Abstract.php (https://bitbucket.org/khuongduybui/openfisma.git) PHP · 418 lines

1 <?php

2 /**

3 * Zend Framework

23 * @see Zend_Locale

24 */

25 // require_once 'Zend/Locale.php';

26

27 /**

28 * @see Zend_Locale_Math

29 */

30 // require_once 'Zend/Locale/Math.php';

31

32 /**

33 * @see Zend_Locale_Format

34 */

35 // require_once 'Zend/Locale/Format.php';

36

37 /**

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 */

21

23 * @see Zend_Locale

24 */

25 #require_once 'Zend/Locale.php';

26

27 /**

28 * @see Zend_Locale_Math

29 */

30 #require_once 'Zend/Locale/Math.php';

31

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 */

22

24 * @see Zend_View_Helper_Navigation_HelperAbstract

25 */

26 require_once 'Zend/View/Helper/Navigation/HelperAbstract.php';

27

28 /**

260

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

40

41 // Create the link

42 $link = 'index.php?option=com_contact&view=contact&id=' . $id;

43

44 if ($catid > 1)

49 if ($category)

50 {

51 $needles['category'] = array_reverse($category->getPath());

52 $needles['categories'] = $needles['category'];

53 $link .= '&catid=' . $catid;

101

102 // Create the link

103 $link = 'index.php?option=com_contact&view=category&id=' . $id;

104

105 $catids = array_reverse($category->getPath());