PageRenderTime 263ms queryTime 28ms sortTime 8ms getByIdsTime 84ms findMatchingLines 89ms

100+ results results for 'php ksort repo:eyeswebcrea/espace-couture-sittler.fr' (263 ms)

Not the results you expected?
Controller.php https://github.com/quarkness/piwik.git | PHP | 321 lines
                    
1<?php
                    
2/**
                    
66		
                    
67		ksort($usersAccessByWebsite);
                    
68		
                    
                
settings.php https://github.com/mgsisk/webcomic.git | PHP | 459 lines
                    
1<?php
                    
2/**
                    
106		function() {
                    
107			require __DIR__ . '/settings-inc-page.php';
                    
108		}
                    
131			$args = [
                    
132				'file'      => __DIR__ . '/settings-inc-section.php',
                    
133				'option'    => webcomic( 'option.components' ),
                    
162		'webcomic_general', [
                    
163			'file'      => __DIR__ . '/settings-inc-field-uninstall.php',
                    
164			'option'    => webcomic( 'option.uninstall' ),
                    
187		'webcomic_general', [
                    
188			'file'      => __DIR__ . '/settings-inc-field-debug.php',
                    
189			'option'    => webcomic( 'option.debug' ),
                    
226			'callback' => function() {
                    
227				require __DIR__ . '/settings-inc-help-overview.php';
                    
228			},
                    
                
Service.php https://gitlab.com/koodersmiikka/operaatio-terveys | PHP | 453 lines
                    
1<?php
                    
2/**
                    
18 *
                    
19 * @todo       Revised method regex to allow NS; however, should SMD be revised to strip PHP NS instead when attaching functions?
                    
20 */
                    
153        if (!preg_match($this->nameRegex, $name)) {
                    
154            throw new InvalidArgumentException("Invalid name '{$name} provided for service; must follow PHP method naming conventions");
                    
155        }
                    
300    {
                    
301        ksort($params);
                    
302        foreach ($params as $options) {
                    
349        }
                    
350        ksort($params);
                    
351        return $params;
                    
                
class.ScalrAPICore.php https://github.com/kennethjiang/Wolke.git | PHP | 361 lines
                    
1<?php
                    
2
                    
37		
                    
38		protected function insensitiveUksort($a,$b) { 
                    
39		    return strtolower($a)>strtolower($b); 
                    
99			
                    
100			uksort($request, array($this, 'insensitiveUksort'));
                    
101				
                    
145			
                    
146			ksort($request);
                    
147				
                    
                
UnitTestCase.php https://gitlab.com/mohamed_hussein/prodt | PHP | 282 lines
                    
1<?php
                    
2
                    
11use Drupal\Core\StringTranslation\PluralTranslatableMarkup;
                    
12use Drupal\Tests\Traits\PhpUnitWarnings;
                    
13use Drupal\TestTools\TestVarDumper;
                    
13use Drupal\TestTools\TestVarDumper;
                    
14use PHPUnit\Framework\TestCase;
                    
15use Symfony\Component\VarDumper\VarDumper;
                    
15use Symfony\Component\VarDumper\VarDumper;
                    
16use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait;
                    
17
                    
27
                    
28  use PhpUnitWarnings;
                    
29  use PhpUnitCompatibilityTrait;
                    
116    @trigger_error(__METHOD__ . "() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. Use ::assertEquals(), ::assertEqualsCanonicalizing(), or ::assertSame() instead. See https://www.drupal.org/node/3136304", E_USER_DEPRECATED);
                    
117    ksort($expected);
                    
118    ksort($actual);
                    
                
SimpleHeaderSet.php https://bitbucket.org/helfreire/tccsite.git | PHP | 387 lines
                    
1<?php
                    
2
                    
219        if ($this->_canSort()) {
                    
220            uksort($headers, array($this, '_sortHeaders'));
                    
221        }
                    
304        if ($this->_canSort()) {
                    
305            uksort($headers, array($this, '_sortHeaders'));
                    
306        }
                    
350
                    
351    /** uksort() algorithm for Header ordering */
                    
352    private function _sortHeaders($a, $b)
                    
                
FieldHandlerInterface.php https://gitlab.com/mohamed_hussein/prodt | PHP | 270 lines
                    
1<?php
                    
2
                    
18   */
                    
19  public function clickSort($order);
                    
20
                    
27   */
                    
28  public function clickSortable();
                    
29
                    
                
users.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 181 lines
                    
1<?php // $Id: users.php,v 1.26.2.18 2010/04/10 15:11:49 iarenaza Exp $
                    
2
                    
24    $temp->add(new admin_setting_configtext('alternateloginurl', get_string('alternateloginurl', 'auth'),
                    
25                                            get_string('alternatelogin', 'auth', htmlspecialchars($CFG->wwwroot.'/login/index.php')), ''));
                    
26    $temp->add(new admin_setting_configtext('forgottenpasswordurl', get_string('forgottenpasswordurl', 'auth'),
                    
46        }
                    
47        ksort($authbyname);
                    
48
                    
49        foreach ($authbyname as $strauthname=>$authname) {
                    
50            if (file_exists($CFG->dirroot.'/auth/'.$authname.'/settings.php')) {
                    
51                // do not show disabled auths in tree, keep only settings link on manage page
                    
53                if ($ADMIN->fulltree) {
                    
54                    include($CFG->dirroot.'/auth/'.$authname.'/settings.php');
                    
55                }
                    
59            } else {
                    
60                $ADMIN->add('authsettings', new admin_externalpage('authsetting'.$authname, $strauthname, "$CFG->wwwroot/$CFG->admin/auth_config.php?auth=$authname", 'moodle/site:config', !in_array($authname, $authsenabled)));
                    
61            }
                    
                
questiontype.php https://github.com/pauln/moodle.git | PHP | 301 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
28
                    
29require_once($CFG->dirroot . '/question/type/calculated/questiontype.php');
                    
30
                    
182            $i = 1;
                    
183            ksort($question->definition);
                    
184            foreach ($question->definition as $key => $defid) {
                    
                
collator_test.php https://github.com/pauln/moodle.git | PHP | 333 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
20 * @package    core
                    
21 * @category   phpunit
                    
22 * @copyright  2011 Sam Hemelryk
                    
31 * @package    core
                    
32 * @category   phpunit
                    
33 * @copyright  2011 Sam Hemelryk
                    
59        } else {
                    
60            $this->error = 'Collation aware sorting not supported, PHP extension "intl" is not available.';
                    
61        }
                    
261    /**
                    
262     * Tests the static ksort method.
                    
263     */
                    
263     */
                    
264    public function test_ksort() {
                    
265        $arr = array('b' => 'ab', 1 => 'aa', 0 => 'cc');
                    
                
DocumentWriter.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 231 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: DocumentWriter.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
23/** Zend_Search_Lucene_Index_SegmentWriter */
                    
24require_once 'Zend/Search/Lucene/Index/SegmentWriter.php';
                    
25
                    
75        /** Zend_Search_Lucene_Search_Similarity */
                    
76        require_once 'Zend/Search/Lucene/Search/Similarity.php';
                    
77
                    
88                 */
                    
89                require_once 'Zend/Search/Lucene/Exception.php';
                    
90                throw new Zend_Search_Lucene_Exception( 'Store term vector functionality is not supported yet.' );
                    
95                    /** Zend_Search_Lucene_Analysis_Analyzer */
                    
96                    require_once 'Zend/Search/Lucene/Analysis/Analyzer.php';
                    
97
                    
                
Cost_Utils.php https://gitlab.com/kath.de/cibedo_cibedo.de | PHP | 481 lines
                    
1<?php
                    
2/**
                    
357		// Filter keeping the Keys
                    
358		ksort( $ocost );
                    
359
                    
                
Links.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 271 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
117        if (intval($position) > 0) {
                    
118            ksort($this->_links);
                    
119        }
                    
                
SimpleHeaderSet.php https://github.com/exponentcms/exponent-cms.git | PHP | 399 lines
                    
1<?php
                    
2
                    
233        if ($this->canSort()) {
                    
234            uksort($headers, [$this, 'sortHeaders']);
                    
235        }
                    
304        if ($this->canSort()) {
                    
305            uksort($headers, [$this, 'sortHeaders']);
                    
306        }
                    
348
                    
349    /** uksort() algorithm for Header ordering */
                    
350    private function sortHeaders($a, $b)
                    
                
class.jetpack-modules-list-table.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 305 lines
                    
1<?php
                    
2
                    
3if ( ! class_exists( 'WP_List_Table' ) )
                    
4	require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php';
                    
5
                    
74						<# if ( item.activated && 'vaultpress' !== item.module ) { #>
                    
75							<span class='delete'><a href="<?php echo admin_url( 'admin.php' ); ?>?page=jetpack&#038;action=deactivate&#038;module={{{ item.module }}}&#038;_wpnonce={{{ item.deactivate_nonce }}}"><?php _e( 'Deactivate', 'jetpack' ); ?></a></span>
                    
76						<# } else if ( item.available ) { #>
                    
76						<# } else if ( item.available ) { #>
                    
77							<span class='activate'><a href="<?php echo admin_url( 'admin.php' ); ?>?page=jetpack&#038;action=activate&#038;module={{{ item.module }}}&#038;_wpnonce={{{ item.activate_nonce }}}"><?php _e( 'Activate', 'jetpack' ); ?></a></span>
                    
78						<# } #>
                    
86				<tr class="no-modules-found">
                    
87					<td colspan="2"><?php esc_html_e( 'No Modules Found' , 'jetpack' ); ?></td>
                    
88				</tr>
                    
215			<div class="module-image">
                    
216				<p><span class="module-image-badge"><?php echo $badge_text; ?></span><span class="module-image-free" style="display: none"><?php echo $free_text; ?></span></p>
                    
217			</div>
                    
                
Item.php https://gitlab.com/ricardosanchez/prueba | PHP | 398 lines
                    
1<?php
                    
2/**
                    
239                        // Alphabetical ordering.
                    
240                        ksort($children, SORT_NATURAL);
                    
241                        break;
                    
                
Service.php https://bitbucket.org/netglue/zf-1.12-release.git | PHP | 473 lines
                    
1<?php
                    
2/**
                    
23 */
                    
24require_once 'Zend/Json/Server/Smd.php';
                    
25
                    
132        if (null == $this->getName()) {
                    
133            require_once 'Zend/Json/Server/Exception.php';
                    
134            throw new Zend_Json_Server_Exception('SMD service description requires a name; none provided');
                    
169        if (!preg_match($this->_nameRegex, $name)) {
                    
170            require_once 'Zend/Json/Server/Exception.php';
                    
171            throw new Zend_Json_Server_Exception(sprintf('Invalid name "%s" provided for service; must follow PHP method naming conventions', $name));
                    
197        if (!in_array($transport, $this->_transportTypes)) {
                    
198            require_once 'Zend/Json/Server/Exception.php';
                    
199            throw new Zend_Json_Server_Exception(sprintf('Invalid transport "%s"; please select one of (%s)', $transport, implode(', ', $this->_transportTypes)));
                    
246        if (!in_array($envelopeType, $this->_envelopeTypes)) {
                    
247            require_once 'Zend/Json/Server/Exception.php';
                    
248            throw new Zend_Json_Server_Exception(sprintf('Invalid envelope type "%s"; please specify one of (%s)', $envelopeType, implode(', ', $this->_envelopeTypes)));
                    
                
array.idl.php https://github.com/diegoIta/hiphop-php.git | PHP | 376 lines
                    
1<?php
                    
2
                    
2
                    
3include_once 'base.php';
                    
4
                    
342
                    
343f('ksort', Boolean,
                    
344  array('array' => VariantMap | Reference,
                    
358
                    
359f('uksort', Boolean,
                    
360  array('array' => VariantMap | Reference,
                    
                
CategoryRepositoryTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 277 lines
                    
1<?php
                    
2/**
                    
21    /**
                    
22     * @magentoApiDataFixture Magento/Catalog/_files/category_backend.php
                    
23     */
                    
44        unset($result['created_at'], $result['updated_at'], $result['children'], $result['custom_attributes']);
                    
45        ksort($expected);
                    
46        ksort($result);
                    
81     *
                    
82     * @magentoApiDataFixture Magento/Catalog/Model/Category/_files/service_category_create.php
                    
83     */
                    
100    /**
                    
101     * @magentoApiDataFixture Magento/Catalog/_files/category.php
                    
102     */
                    
153    /**
                    
154     * @magentoApiDataFixture Magento/Catalog/_files/category.php
                    
155     */
                    
                
Abstract.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 524 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
338        }
                    
339        ksort($data);
                    
340        return $data;
                    
                
class.AmazonSQS.php https://github.com/kennethjiang/Wolke.git | PHP | 223 lines
                    
1<?php
                    
2
                    
75
                    
76			ksort($args);
                    
77			
                    
                
settings.php https://bitbucket.org/ngmares/moodle.git | PHP | 218 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
28
                    
29require_once($CFG->dirroot . '/mod/quiz/lib.php');
                    
30require_once($CFG->dirroot . '/mod/quiz/settingslib.php');
                    
33// we use a simpler overall menu structure.
                    
34$reports = get_plugin_list_with_file('quiz', 'settings.php', false);
                    
35$reportsbyname = array();
                    
39}
                    
40ksort($reportsbyname);
                    
41
                    
204
                    
205    // Add the report pages for the settings.php files in sub directories of mod/quiz/report.
                    
206    foreach ($reportsbyname as $strreportname => $report) {
                    
211        if ($ADMIN->fulltree) {
                    
212            include($CFG->dirroot . "/mod/quiz/report/$reportname/settings.php");
                    
213        }
                    
                
kodoc.php https://github.com/dyron/userguide-de.git | PHP | 357 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
8 * @copyright  (c) 2008-2009 Kohana Team
                    
9 * @license    http://kohanaphp.com/license
                    
10 */
                    
68
                    
69		ksort($classes);
                    
70
                    
108		// Sort the packages
                    
109		ksort($menu);
                    
110
                    
216
                    
217		// Remove the phpdoc open/close tags and split
                    
218		$comment = array_slice(explode("\n", $comment), 1, -1);
                    
                
Repository.php https://gitlab.com/rsilveira1987/Expresso | PHP | 300 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Repository.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php';
                    
27
                    
98                if (!$provider instanceof Zend_Tool_Framework_Provider_Interface) {
                    
99                    require_once 'Zend/Tool/Framework/Manifest/Exception.php';
                    
100                    throw new Zend_Tool_Framework_Manifest_Exception(
                    
128        $this->_manifests[$index] = $manifest;
                    
129        ksort($this->_manifests);
                    
130        
                    
271                $metadataString = '    ' . $metadata->__toString() . PHP_EOL;
                    
272                //$metadataString = str_replace(PHP_EOL, PHP_EOL . '    ', $metadataString);
                    
273                $string .= $metadataString;
                    
                
aweber_collection.php https://gitlab.com/iamgraeme/royalmile | PHP | 297 lines
                    
1<?php
                    
2class AWeberCollection extends AWeberResponse implements ArrayAccess, Iterator, Countable {
                    
121            );
                    
122            ksort($params);
                    
123        } else {
                    
241     * Allows this object to be accessed via bracket notation (ie $obj[$x])
                    
242     * http://php.net/manual/en/class.arrayaccess.php
                    
243     */
                    
263     * Provides iterator functionality.
                    
264     * http://php.net/manual/en/class.iterator.php
                    
265     */
                    
290     * Allows PHP's count() and sizeOf() functions to act on this object
                    
291     * http://www.php.net/manual/en/class.countable.php
                    
292     */
                    
                
layout.class.php https://gitlab.com/dali99/shimmie2-Material-Theme | PHP | 267 lines
                    
1<?php
                    
2/**
                    
15
                    
16Files: default.php, style.css
                    
17
                    
55		$header_html = "";
                    
56		ksort($page->html_headers);
                    
57		foreach($page->html_headers as $line) {
                    
127		$qp = explode("/", ltrim(_get_query(), "/"));
                    
128		// php sucks
                    
129		switch($qp[0]) {
                    
                
Service.php https://github.com/jpratt/cal.git | PHP | 473 lines
                    
1<?php
                    
2/**
                    
23 */
                    
24#require_once 'Zend/Json/Server/Smd.php';
                    
25
                    
30 * @subpackage Server
                    
31 * @version    $Id: Service.php 12510 2008-11-10 16:29:34Z matthew $
                    
32 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
                    
132        if (null == $this->getName()) {
                    
133            #require_once 'Zend/Json/Server/Exception.php';
                    
134            throw new Zend_Json_Server_Exception('SMD service description requires a name; none provided');
                    
169        if (!preg_match($this->_nameRegex, $name)) {
                    
170            #require_once 'Zend/Json/Server/Exception.php';
                    
171            throw new Zend_Json_Server_Exception(sprintf('Invalid name "%s" provided for service; must follow PHP method naming conventions', $name));
                    
197        if (!in_array($transport, $this->_transportTypes)) {
                    
198            #require_once 'Zend/Json/Server/Exception.php';
                    
199            throw new Zend_Json_Server_Exception(sprintf('Invalid transport "%s"; please select one of (%s)', $transport, implode(', ', $this->_transportTypes)));
                    
                
class.cli.php https://gitlab.com/billyprice1/osTicket | PHP | 309 lines
                    
1<?php
                    
2
                    
129            $opt = new Option($opt);
                    
130        $this->stdout = new OutputStream('php://output');
                    
131        $this->stderr = new OutputStream('php://stderr');
                    
146
                    
147        ksort($this->options);
                    
148        if ($this->options) {
                    
                
Collection.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 177 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
161
                    
162        Mage::helper('core/string')->ksortMultibyte($sort);
                    
163        $options = array();
                    
                
CommandParser.php https://github.com/NickBelhomme/Game.git | PHP | 256 lines
                    
1<?php
                    
2namespace Game;
                    
125        $completeInventoryList = $this->getItemListFromInventory($this->tile->getInventory()) + $this->getItemListFromInventory($this->personalInventory);
                    
126        ksort($completeInventoryList);
                    
127        $completeInventoryList = array_reverse($completeInventoryList);
                    
                
test_ext_mailparse.cpp https://github.com/diegoIta/hiphop-php.git | C++ | 412 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
49bool TestExtMailparse::test_mail() {
                    
50  //VCB("<?php ");
                    
51  return Count(true);
                    
                
TypedArrayUtils.js https://github.com/supereggbert/three.js.git | JavaScript | 596 lines
                    
3/**
                    
4 * In-place quicksort for typed arrays (e.g. for Float32Array)
                    
5 * provides fast sorting
                    
7 *
                    
8 * Complexity: http://bigocheatsheet.com/ see Quicksort
                    
9 *
                    
15
                    
16TypedArrayUtils.quicksortIP = function ( arr, eleSize, orderElement ) {
                    
17
                    
161 *
                    
162 * @license MIT License <http://www.opensource.org/licenses/mit-license.php>
                    
163 *
                    
163 *
                    
164 * Requires typed array quicksort
                    
165 *
                    
                
ConditionalStyles.php https://github.com/mackensen/moodle.git | PHP | 149 lines
                    
1<?php
                    
2
                    
2
                    
3namespace PhpOffice\PhpSpreadsheet\Reader\Xlsx;
                    
4
                    
4
                    
5use PhpOffice\PhpSpreadsheet\Style\Conditional;
                    
6use PhpOffice\PhpSpreadsheet\Style\ConditionalFormatting\ConditionalDataBar;
                    
6use PhpOffice\PhpSpreadsheet\Style\ConditionalFormatting\ConditionalDataBar;
                    
7use PhpOffice\PhpSpreadsheet\Style\ConditionalFormatting\ConditionalFormattingRuleExtension;
                    
8use PhpOffice\PhpSpreadsheet\Style\ConditionalFormatting\ConditionalFormatValueObject;
                    
8use PhpOffice\PhpSpreadsheet\Style\ConditionalFormatting\ConditionalFormatValueObject;
                    
9use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet;
                    
10use SimpleXMLElement;
                    
54        foreach ($conditionals as $ref => $cfRules) {
                    
55            ksort($cfRules);
                    
56            $conditionalStyles = $this->readStyleRules($cfRules, $xmlExtLst);
                    
                
view.html.php https://github.com/xillibit/Kunena-forum.git | PHP | 189 lines
                    
1<?php
                    
2/**
                    
144		$constants  = $reflection->getConstants();
                    
145		ksort($constants);
                    
146
                    
                
ProcessedCodeCoverageData.php https://gitlab.com/jjpa2018/dashboard | PHP | 267 lines
                    
1<?php declare(strict_types=1);
                    
2/*
                    
2/*
                    
3 * This file is part of phpunit/php-code-coverage.
                    
4 *
                    
4 *
                    
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
                    
6 *
                    
17use function is_array;
                    
18use function ksort;
                    
19use SebastianBergmann\CodeCoverage\Driver\Driver;
                    
21/**
                    
22 * @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
                    
23 */
                    
99    {
                    
100        ksort($this->lineCoverage);
                    
101
                    
                
Service.php https://github.com/tuteke/isaved.git | PHP | 473 lines
                    
1<?php
                    
2/**
                    
23 */
                    
24#require_once 'Zend/Json/Server/Smd.php';
                    
25
                    
30 * @subpackage Server
                    
31 * @version    $Id: Service.php 16214 2009-06-21 19:34:03Z thomas $
                    
32 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
                    
132        if (null == $this->getName()) {
                    
133            #require_once 'Zend/Json/Server/Exception.php';
                    
134            throw new Zend_Json_Server_Exception('SMD service description requires a name; none provided');
                    
169        if (!preg_match($this->_nameRegex, $name)) {
                    
170            #require_once 'Zend/Json/Server/Exception.php';
                    
171            throw new Zend_Json_Server_Exception(sprintf('Invalid name "%s" provided for service; must follow PHP method naming conventions', $name));
                    
197        if (!in_array($transport, $this->_transportTypes)) {
                    
198            #require_once 'Zend/Json/Server/Exception.php';
                    
199            throw new Zend_Json_Server_Exception(sprintf('Invalid transport "%s"; please select one of (%s)', $transport, implode(', ', $this->_transportTypes)));
                    
                
file.php https://github.com/whiletrue/fluxcms.git | PHP | 112 lines
                    
1<?php
                    
2class bx_plugins_gallery_file {
                    
25        }
                    
26        ksort($files);
                    
27        foreach ($files as $file) {
                    
                
signature_v4json.class.php https://bitbucket.org/cesarmedrano/cesarmedrano.git | PHP | 349 lines
                    
1<?php
                    
2/*
                    
26 * @copyright See the included NOTICE.md file for more information.
                    
27 * @link http://aws.amazon.com/php/ PHP Developer Center
                    
28 */
                    
94		// Do a case-sensitive, natural order sort on the array keys.
                    
95		uksort($this->query, 'strcmp');
                    
96
                    
152		// Sort headers
                    
153		uksort($this->headers, 'strnatcasecmp');
                    
154
                    
                
cron.php https://gitlab.com/mattswann/launch-housing | PHP | 157 lines
                    
3internal CRON jobs automatically if they are removed.<br><br>
                    
4<?php
                    
5$cron = get_option('cron');
                    
76
                    
77include( '_cron.php' );
                    
78
                    
113}
                    
114ksort( $pretty_intervals );
                    
115pb_backupbuddy::$ui->list_table(
                    
136	<center>
                    
137		<a href="<?php echo pb_backupbuddy::page_url(); ?>&tab=3&show_cron_array=true#pb_backupbuddy_getting_started_tab_tools" style="text-decoration: none;">
                    
138			<?php _e('Display CRON Debugging Array', 'it-l10n-backupbuddy' ); ?>
                    
141	</p>
                    
142	<?php
                    
143} else {
                    
                
themes.php https://github.com/shlomsky/lim.git | PHP | 285 lines
                    
52if ( is_multisite() && current_user_can('edit_themes') ) {
                    
53	?><div id="message0" class="updated"><p><?php printf( __('Administrator: new themes must be activated in the <a href="%s">Network Themes</a> screen before they appear here.'), admin_url( 'ms-themes.php') ); ?></p></div><?php
                    
54}
                    
60		if ( isset($wp_registered_sidebars) && count( (array) $wp_registered_sidebars ) && current_user_can('edit_theme_options') ) { ?>
                    
61<div id="message2" class="updated"><p><?php printf( __('New theme activated. This theme supports widgets, please visit the <a href="%s">widgets settings</a> screen to configure them.'), admin_url( 'widgets.php' ) ); ?></p></div><?php
                    
62		} else { ?>
                    
98<?php screen_icon(); ?>
                    
99<h2><a href="themes.php" class="nav-tab nav-tab-active"><?php echo esc_html( $title ); ?></a><?php if ( current_user_can('install_themes') ) { ?><a href="theme-install.php" class="nav-tab"><?php echo esc_html_x('Install Themes', 'theme'); ?></a><?php } ?></h2>
                    
100
                    
252
                    
253<h2><?php _e('Broken Themes'); ?> <?php if ( is_multisite() ) _e( '(Site admin only)' ); ?></h2>
                    
254<p><?php _e('The following themes are installed but incomplete. Themes must have a stylesheet and a template.'); ?></p>
                    
284
                    
285<?php require('./admin-footer.php'); ?>
                    
286
                    
                
plugin.php https://bitbucket.org/joelkriteman/argento.git | PHP | 473 lines
                    
250		}
                    
251		ksort($core); ksort($optional);	// Sort components by ID.
                    
252		$components = array_merge($core, $optional);
                    
378			if ( ! function_exists('get_plugin_data') ) {
                    
379				require_once ( ABSPATH . 'wp-admin/includes/plugin.php' );
                    
380			}
                    
417		<dl>
                    
418			<dt><?php _e('Activate Components', 'akfw'); ?></dt>
                    
419			<dd>
                    
419			<dd>
                    
420				<?php wp_nonce_field('ak-component-activation', '_aknonce', false); ?>
                    
421				<table width="100%" class="form-table">
                    
426						<td>
                    
427							<input type="radio" name="components[<?php echo $c['Component']; ?>]" value="1" <?php checked(1, $c['active']); ?> /> <?php _e('Yes', 'akfw'); ?> &nbsp;&nbsp;
                    
428							<input type="radio" name="components[<?php echo $c['Component']; ?>]" value="0" <?php checked(0, $c['active']); ?> /> <?php _e('No', 'akfw'); ?> &nbsp;&nbsp;
                    
                
display-coupons.php https://github.com/evadne/wp-e-commerce.git | PHP | 451 lines
                    
28			//sort both arrays to make sure that if they contain the same stuff, that they will compare to be the same, may not need to do this, but what the heck
                    
29			ksort($check_values); ksort($coupon_data);
                    
30						
                    
84
                    
85  <a href='' onclick='return show_status_box("add_coupon_box","add_coupon_box_link");' class='add_item_link' id='add_coupon_box_link'><img src='<?php echo WPSC_URL; ?>/images/package_add.png' alt='<?php echo TXT_WPSC_ADD; ?>' title='<?php echo TXT_WPSC_ADD; ?>' />&nbsp;<span><?php echo TXT_WPSC_ADD_COUPON;?></span></a>
                    
86  
                    
357        ?>
                    
358        <input type='radio' value='1' name='wpsc_also_bought' id='wpsc_also_bought1' <?php echo $wpsc_also_bought1; ?> /> <label for='wpsc_also_bought1'><?php echo TXT_WPSC_YES;?></label> &nbsp;
                    
359        <input type='radio' value='0' name='wpsc_also_bought' id='wpsc_also_bought2' <?php echo $wpsc_also_bought2; ?> /> <label for='wpsc_also_bought2'><?php echo TXT_WPSC_NO;?></label>
                    
423		<td>
                    
424			<?php echo get_option('siteurl')."/index.php?rss=true&amp;action=product_list" ?>
                    
425		</td>
                    
437				$itemsFeedURL = "http://www.google.com/base/feeds/items";
                    
438				$next_url  = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']."?page=".WPSC_DIR_NAME."/display-items.php";
                    
439				$redirect_url = 'https://www.google.com/accounts/AuthSubRequest?session=1';
                    
                
Repository.php https://github.com/sidealice/zf2.git | PHP | 319 lines
                    
1<?php
                    
2/**
                    
144        $this->_manifests[$index] = $manifest;
                    
145        ksort($this->_manifests);
                    
146
                    
287        foreach ($metadatasByType as $type => $metadatas) {
                    
288            $string .= $type . PHP_EOL;
                    
289            foreach ($metadatas as $metadata) {
                    
290                $metadataString = '    ' . $metadata->__toString() . PHP_EOL;
                    
291                //$metadataString = str_replace(PHP_EOL, PHP_EOL . '    ', $metadataString);
                    
292                $string .= $metadataString;
                    
                
Repository.php https://github.com/tanduy/zf.git | PHP | 313 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php';
                    
27
                    
104                if (!$provider instanceof Zend_Tool_Framework_Provider_Interface) {
                    
105                    require_once 'Zend/Tool/Framework/Manifest/Exception.php';
                    
106                    throw new Zend_Tool_Framework_Manifest_Exception(
                    
134        $this->_manifests[$index] = $manifest;
                    
135        ksort($this->_manifests);
                    
136
                    
181                        if (!class_exists('Zend_Tool_Framework_Metadata_Dynamic')) {
                    
182                            require_once 'Zend/Tool/Framework/Metadata/Dynamic.php';
                    
183                        }
                    
284                $metadataString = '    ' . $metadata->__toString() . PHP_EOL;
                    
285                //$metadataString = str_replace(PHP_EOL, PHP_EOL . '    ', $metadataString);
                    
286                $string .= $metadataString;
                    
                
Command.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 390 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
228        }
                    
229        ksort(self::$_commandsAll);
                    
230        return self::$_commandsAll;
                    
275    {
                    
276        $pathCommands = dirname(__FILE__).DIRECTORY_SEPARATOR.basename(__FILE__, ".php");
                    
277        $f = new DirectoryIterator($pathCommands);
                    
281            }
                    
282            $pattern = preg_match("/(.*)_Header\.php/imsu", $file->getFilename(), $matches);
                    
283            if(! $pattern) {
                    
                
DefaultIterator.php https://github.com/MontmereLimited/zf2.git | PHP | 310 lines
                    
1<?php
                    
2/**
                    
230        }
                    
231        ksort($entry, SORT_LOCALE_STRING);
                    
232        return $entry;
                    
                
PhpReferenceCompatibility.php https://gitlab.com/x33n/ImpressPages | PHP | 433 lines
                    
1<?php
                    
2/**
                    
21 * This ArrayObject is a rewrite of the implementation to fix
                    
22 * issues with php's implementation of ArrayObject where you
                    
23 * are unable to unset multi-dimensional arrays because you
                    
25 */
                    
26abstract class PhpReferenceCompatibility implements IteratorAggregate, ArrayAccess, Serializable, Countable
                    
27{
                    
251     */
                    
252    public function ksort()
                    
253    {
                    
253    {
                    
254        ksort($this->storage);
                    
255    }
                    
395     */
                    
396    public function uksort($function)
                    
397    {
                    
                
Links.php https://github.com/cosmocommerce/magento-mirror.git | PHP | 271 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
117        if (intval($position) > 0) {
                    
118            ksort($this->_links);
                    
119        }
                    
                
APCCacheMode.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 299 lines
                    
1<?php
                    
2
                    
184
                    
185		$sortdir ? krsort( $list ) : ksort( $list );
                    
186
                    
                
CacheBase.php https://gitlab.com/ilyales/vigma | PHP | 368 lines
                    
3/**
                    
4 * PHPExcel_CachedObjectStorage_CacheBase
                    
5 *
                    
21 *
                    
22 * @category   PHPExcel
                    
23 * @package    PHPExcel_CachedObjectStorage
                    
23 * @package    PHPExcel_CachedObjectStorage
                    
24 * @copyright  Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
25 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt    LGPL
                    
81     *
                    
82     * @return    PHPExcel_Worksheet
                    
83     */
                    
311     *
                    
312     * @param    PHPExcel_Worksheet    $parent        The new worksheet
                    
313     * @return    void
                    
                
view.php https://github.com/Socrattes2099/ezpublish.git | PHP | 255 lines
                    
1<?php
                    
2//
                    
99            // Without reference there will be a inconsistency with GLOBAL instance and stored ini file.
                    
100            $iniTemp = eZINI::create( $settingFile . '.append.php', $path, null, null, null, true );
                    
101            $iniTemp->removeSetting( $block, $setting );
                    
212    }
                    
213    ksort( $settings );
                    
214    $tpl->setVariable( 'settings', $settings );
                    
234    $iniFiles = array_merge( $iniFiles, eZDir::recursiveFindRelative( $iniPath, '', '.ini' ) );
                    
235    $iniFiles = array_merge( $iniFiles, eZDir::recursiveFindRelative( $iniPath, '', '.ini.append.php' ) );
                    
236}
                    
239$iniFiles = preg_replace('%.*/%', '', $iniFiles );
                    
240// remove *.ini[.append.php] from file name
                    
241$iniFiles = preg_replace('%\.ini.*%', '.ini', $iniFiles );
                    
                
Repository.php https://github.com/lanmediaservice/lms-tplib.git | PHP | 300 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Repository.php 16971 2009-07-22 18:05:45Z mikaelkael $
                    
21 */
                    
25 */
                    
26//*** require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php';
                    
27
                    
98                if (!$provider instanceof Zend_Tool_Framework_Provider_Interface) {
                    
99                    //*** require_once 'Zend/Tool/Framework/Manifest/Exception.php';
                    
100                    throw new Zend_Tool_Framework_Manifest_Exception(
                    
128        $this->_manifests[$index] = $manifest;
                    
129        ksort($this->_manifests);
                    
130        
                    
271                $metadataString = '    ' . $metadata->__toString() . PHP_EOL;
                    
272                //$metadataString = str_replace(PHP_EOL, PHP_EOL . '    ', $metadataString);
                    
273                $string .= $metadataString;
                    
                
DefaultListenerTest.php https://github.com/Proudio-Interactive/pdepend.git | PHP | 317 lines
                    
69 */
                    
70class PHP_Depend_Visitor_DefaultListenerTest extends PHP_Depend_AbstractTest
                    
71{
                    
124    {
                    
125        include_once 'PHP/Depend/Code/Class.php';
                    
126
                    
167    {
                    
168        include_once 'PHP/Depend/Code/Interface.php';
                    
169
                    
210    {
                    
211        include_once 'PHP/Depend/Code/Function.php';
                    
212
                    
256    {
                    
257        include_once 'PHP/Depend/Code/Method.php';
                    
258
                    
                
String.php https://github.com/rgranadino/magento-mirror.git | PHP | 302 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
288     */
                    
289    public function ksortMultibyte(array &$sort)
                    
290    {
                    
295        setlocale(LC_COLLATE, Mage::app()->getLocale()->getLocaleCode() . '.UTF8');
                    
296        ksort($sort, SORT_LOCALE_STRING);
                    
297        setlocale(LC_COLLATE, $oldLocale);
                    
                
Deferred.php https://bitbucket.org/tobmaster/carica-io.git | PHP | 369 lines
                    
1<?php
                    
2
                    
342                  if (--$counter == 0) {
                    
343                    ksort($resolveArguments);
                    
344                    call_user_func_array(array($master, 'resolve'), $resolveArguments);
                    
355            if (--$counter == 0) {
                    
356              ksort($resolveArguments);
                    
357              call_user_func_array(array($master, 'resolve'), $resolveArguments);
                    
                
PledgeSelection.php https://gitlab.com/bossagna/meik | PHP | 167 lines
                    
1<?php
                    
2
                    
46
                    
47    ksort($reward_options);
                    
48    $sorted_reward_options = array();
                    
                
view.php https://github.com/Yannix/ezpublish.git | PHP | 240 lines
                    
1<?php
                    
2/**
                    
77            // Without reference there will be a inconsistency with GLOBAL instance and stored ini file.
                    
78            $iniTemp = eZINI::create( $settingFile . '.append.php', $path, null, null, null );
                    
79            $iniTemp->removeSetting( $block, $setting );
                    
197    }
                    
198    ksort( $settings );
                    
199    $tpl->setVariable( 'settings', $settings );
                    
219    $iniFiles = array_merge( $iniFiles, eZDir::recursiveFindRelative( $iniPath, '', '.ini' ) );
                    
220    $iniFiles = array_merge( $iniFiles, eZDir::recursiveFindRelative( $iniPath, '', '.ini.append.php' ) );
                    
221}
                    
224$iniFiles = preg_replace('%.*/%', '', $iniFiles );
                    
225// remove *.ini[.append.php] from file name
                    
226$iniFiles = preg_replace('%\.ini.*%', '.ini', $iniFiles );
                    
                
Collection.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 292 lines
                    
1<?php
                    
2/**
                    
15 * Class Collection
                    
16 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
17 */
                    
76     * @param \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource
                    
77     * @SuppressWarnings(PHPMD.ExcessiveParameterList)
                    
78     */
                    
230        }
                    
231        $this->_arrayUtils->ksortMultibyte($sort, $this->_localeResolver->getLocale());
                    
232        foreach (array_reverse($this->_foregroundCountries) as $foregroundCountry) {
                    
                
classWriter.php https://github.com/nickdunn/phpdoctor.git | PHP | 343 lines
                    
1<?php
                    
2
                    
9		$rootDoc =& $this->_doclet->rootDoc();
                    
10		$phpdoctor =& $this->_doclet->phpdoctor();
                    
11		$packages =& $rootDoc->packages();
                    
12		
                    
13        ksort($packages);
                    
14
                    
21			if ($classes) {
                    
22                ksort($classes);
                    
23				foreach ($classes as $name => $class) {
                    
85					$constants =& $class->constants();
                    
86                    ksort($constants);
                    
87					$fields =& $class->fields();
                    
87					$fields =& $class->fields();
                    
88                    ksort($fields);
                    
89					$methods =& $class->methods();
                    
                
Admin.php https://github.com/intraweb-modules13/IWstats.git | PHP | 225 lines
                    
1<?php
                    
2
                    
132
                    
133        ksort($recordsArray);
                    
134
                    
                
DB2Statement.php https://gitlab.com/aleksbenmaza/PPE_NEW | PHP | 344 lines
                    
1<?php
                    
2/*
                    
160        if ($params === null) {
                    
161            ksort($this->_bindParam);
                    
162            $params = array_values($this->_bindParam);
                    
                
ElementFactory.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 436 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: ElementFactory.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
20 */
                    
23/** Zend_Pdf_ElementFactory_Interface */
                    
24// require_once 'Zend/Pdf/ElementFactory/Interface.php';
                    
25
                    
126    {
                    
127        // require_once 'Zend/Pdf/ElementFactory/Proxy.php';
                    
128        return new Zend_Pdf_ElementFactory_Proxy(new Zend_Pdf_ElementFactory($objCount));
                    
272        if (($shift = $this->calculateShift($factory)) == -1) {
                    
273            // require_once 'Zend/Pdf/Exception.php';
                    
274            throw new Zend_Pdf_Exception('Wrong object context');
                    
288        if ($obj->getFactory() !== $this) {
                    
289            // require_once 'Zend/Pdf/Exception.php';
                    
290            throw new Zend_Pdf_Exception('Object is not generated by this factory');
                    
                
SegmentMerger.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 270 lines
                    
1<?php
                    
2/**
                    
22/** Zend_Search_Lucene_Index_SegmentInfo */
                    
23#require_once 'Zend/Search/Lucene/Index/SegmentInfo.php';
                    
24
                    
25/** Zend_Search_Lucene_Index_SegmentWriter_StreamWriter */
                    
26#require_once 'Zend/Search/Lucene/Index/SegmentWriter/StreamWriter.php';
                    
27
                    
28/** Zend_Search_Lucene_Index_SegmentInfoPriorityQueue */
                    
29#require_once 'Zend/Search/Lucene/Index/SegmentInfoPriorityQueue.php';
                    
30
                    
114        if ($this->_mergeDone) {
                    
115            #require_once 'Zend/Search/Lucene/Exception.php';
                    
116            throw new Zend_Search_Lucene_Exception('Merge is already done.');
                    
119        if (count($this->_segmentInfos) < 1) {
                    
120            #require_once 'Zend/Search/Lucene/Exception.php';
                    
121            throw new Zend_Search_Lucene_Exception('Wrong number of segments to be merged ('
                    
                
class-wp-embed.php https://bitbucket.org/stephenharris/stephenharris.git | PHP | 386 lines
                    
1<?php
                    
2/**
                    
88	jQuery(document).ready(function($){
                    
89		$.get("<?php echo admin_url( 'admin-ajax.php?action=oembed-cache&post=' . $post->ID, 'relative' ); ?>");
                    
90	});
                    
91</script>
                    
92<?php
                    
93	}
                    
166		// Look for known internal handlers
                    
167		ksort( $this->handlers );
                    
168		foreach ( $this->handlers as $priority => $handlers ) {
                    
267			if ( $html ) {
                    
268				/** This filter is documented in wp-includes/class-wp-embed.php */
                    
269				return apply_filters( 'embed_oembed_html', $html, $url, $attr, $post_ID );
                    
                
LockerTest.php https://gitlab.com/imamul68e/137619_PHP31 | PHP | 284 lines
                    
1<?php
                    
2
                    
17
                    
18class LockerTest extends \PHPUnit_Framework_TestCase
                    
19{
                    
279
                    
280        ksort($data);
                    
281
                    
                
String.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 306 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
290     */
                    
291    public function ksortMultibyte(array &$sort)
                    
292    {
                    
299        setlocale(LC_COLLATE,  $localeCode . '.UTF8', 'C.UTF-8', 'en_US.utf8');
                    
300        ksort($sort, SORT_LOCALE_STRING);
                    
301        setlocale(LC_COLLATE, $oldLocale);
                    
                
client_mailchimp_export.php https://gitlab.com/nexxuz/phpBMS | PHP | 292 lines
                    
50
                    
51            parent::phpbmsReport($db, $reportUUID, $tabledefUUID);
                    
52
                    
86
                    
87            ksort($this->selectcolumns);
                    
88            $this->selectcolumns = array_reverse($this->selectcolumns);
                    
159		foreach($this->$what as $value){
                    
160			?><option value="<?php echo $i+1; ?>"><?php echo $value["name"];?></option>
                    
161			<?php
                    
172        $pageTitle="Invoice Total";
                    
173        $phpbms->showMenu = false;
                    
174        $phpbms->cssIncludes[] = "pages/totalreports.css";
                    
182            <h1>Invoice Total Options</h1>
                    
183            <form id="GroupForm" action="<?php echo htmlentities($_SERVER["PHP_SELF"])?>" method="post" name="GroupForm">
                    
184
                    
                
result.php https://bitbucket.org/moodle/moodle.git | PHP | 300 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
248        }
                    
249        ksort($result);
                    
250        return $result;
                    
                
AbstractHeader.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 230 lines
                    
1<?php
                    
2/**
                    
90		$this->addIfHigherOrder($path, $path, $order, $this->script_files);
                    
91		ksort($this->script_files);
                    
92	}
                    
98			$this->addIfHigherOrder($text, $md5, $order, $this->inline_scripts);
                    
99			ksort($this->inline_scripts);
                    
100		}
                    
130		$this->addIfHigherOrder($path, $path, $order, $this->style_files);
                    
131		ksort($this->style_files);
                    
132	}
                    
138			$this->addIfHigherOrder($text, $md5, $order, $this->inline_styles);
                    
139			ksort($this->inline_styles);
                    
140		}
                    
148			$this->addIfHigherOrder($js, $md5, $order, $this->domready_scripts);
                    
149			ksort($this->domready_scripts);
                    
150		}
                    
                
arr.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 228 lines
                    
1<?php
                    
2/*
                    
72	//Based on recursive array search function from:
                    
73	//http://www.php.net/manual/en/function.array-search.php#91365
                    
74	function search_recursive($needle, $haystack) {
                    
95	
                    
96	function vksort(&$arr, $valuekey) {
                    
97		$valuekey = sustr::preg_filter('A-Za-z0-9 ', $valuekey);
                    
196	
                    
197	//Function based on http://php.net/manual/en/function.array-unique.php#82508
                    
198	function in_array_i($str, $a) {
                    
205
                    
206	//Function based on http://php.net/manual/en/function.array-unique.php#82508
                    
207	function array_unique_i($a) {
                    
                
functions.wp-cron.php https://bitbucket.org/codemen_iftekhar/codemen.git | PHP | 402 lines
                    
1<?php
                    
2// Last sync [WP12462]
                    
32	$crons[$timestamp][$hook][$key] = array( 'schedule' => false, 'args' => $args );
                    
33	uksort( $crons, "strnatcasecmp" );
                    
34	_set_cron_array( $crons );
                    
61	$crons[$timestamp][$hook][$key] = array( 'schedule' => $recurrence, 'args' => $args, 'interval' => $schedules[$recurrence]['interval'] );
                    
62	uksort( $crons, "strnatcasecmp" );
                    
63	_set_cron_array( $crons );
                    
226
                    
227		@include_once(ABSPATH . 'wp-cron.php');
                    
228		return;
                    
                
Encoder.php https://github.com/Exercise/zf2.git | PHP | 309 lines
                    
1<?php
                    
2/**
                    
265            if (isset($this->_options['wrap']) && strlen($attribute) > $this->_options['wrap']) {
                    
266                $attribute = trim(chunk_split($attribute, $this->_options['wrap'], PHP_EOL . ' '));
                    
267            }
                    
267            }
                    
268            $output .= $attribute . PHP_EOL;
                    
269        }
                    
269        }
                    
270        return trim($output, PHP_EOL);
                    
271    }
                    
286                && array_key_exists('objectclass', $attributes)) {
                    
287            $string .= sprintf('version: %d', $this->_options['version']) . PHP_EOL;
                    
288            $this->_versionWritten = true;
                    
291        if (isset($this->_options['sort']) && $this->_options['sort'] === true) {
                    
292            ksort($attributes, SORT_STRING);
                    
293            if (array_key_exists('objectclass', $attributes)) {
                    
                
Xlsx.php https://github.com/gryzz/crystal_magento.git | PHP | 262 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Xlsx.php 19035 2009-11-19 14:34:11Z alexander $
                    
21 */
                    
24/** Zend_Search_Lucene_Document_OpenXml */
                    
25#require_once 'Zend/Search/Lucene/Document/OpenXml.php';
                    
26
                    
96        if ($relationsXml === false) {
                    
97            #require_once 'Zend/Search/Lucene/Exception.php';
                    
98            throw new Zend_Search_Lucene_Exception('Invalid archive or corrupted .xlsx file.');
                    
134        // Sort worksheets
                    
135        ksort($worksheets);
                    
136
                    
                
Export.class.php https://github.com/bgerp/bgerp.git | PHP | 289 lines
                    
1<?php
                    
2
                    
147        if (!empty($exportFormats)) {
                    
148            ksort($exportFormats);
                    
149        }
                    
                
index.php https://github.com/andalit/torrents.git | PHP | 428 lines
                    
1<?php
                    
2
                    
2
                    
3require('./pagestart.php');
                    
4
                    
14	{
                    
15		if( preg_match("/^admin_.*?\.php$/", $file) )
                    
16		{
                    
29
                    
30		"U_FORUM_INDEX" => append_sid("../index.php"),
                    
31		"U_ADMIN_INDEX" => append_sid("index.php?pane=right"))
                    
33
                    
34	ksort($module);
                    
35
                    
43
                    
44		ksort($action_array);
                    
45
                    
                
OAuthUtil.php https://gitlab.com/Blueprint-Marketing/php-maxcdn | PHP | 154 lines
                    
1<?php
                    
2namespace MaxCDN\OAuth;
                    
132        // Ref: Spec: 9.1.1 (1)
                    
133        uksort($params, 'strcmp');
                    
134
                    
                
SegmentMerger.php https://github.com/sitengine/sitengine.git | PHP | 270 lines
                    
1<?php
                    
2/**
                    
22/** Zend_Search_Lucene_Index_SegmentInfo */
                    
23require_once 'Zend/Search/Lucene/Index/SegmentInfo.php';
                    
24
                    
25/** Zend_Search_Lucene_Index_SegmentWriter_StreamWriter */
                    
26require_once 'Zend/Search/Lucene/Index/SegmentWriter/StreamWriter.php';
                    
27
                    
28/** Zend_Search_Lucene_Index_SegmentInfoPriorityQueue */
                    
29require_once 'Zend/Search/Lucene/Index/SegmentInfoPriorityQueue.php';
                    
30
                    
114        if ($this->_mergeDone) {
                    
115            require_once 'Zend/Search/Lucene/Exception.php';
                    
116            throw new Zend_Search_Lucene_Exception('Merge is already done.');
                    
119        if (count($this->_segmentInfos) < 1) {
                    
120            require_once 'Zend/Search/Lucene/Exception.php';
                    
121            throw new Zend_Search_Lucene_Exception('Wrong number of segments to be merged ('
                    
                
authorisation.php http://airscore.googlecode.com/svn/trunk/ | PHP | 253 lines
                    
1<?php
                    
2define('BINDIR', '%CGIBIN%');
                    
39    echo "You are unauthorised to perform that action ($what $usePk $comPk).<br>";
                    
40    //redirect('unauthorised.php');
                    
41    return 0;
                    
75    {
                    
76        redirect("better_browsers.php");
                    
77        exit;
                    
84        echo "<b><i>Authorisation Failed</i></b>";
                    
85        redirect("login.php?message=Authorisation%20Failed:$magic");
                    
86        exit;
                    
121        {
                    
122        echo "<li><a href=\"competition.php?comPk=$comPk\">Admin</a></li>";
                    
123        }
                    
125        {
                    
126            echo "<li><a href=\"comp_admin.php\">Admin</a></li>";
                    
127        }
                    
                
Poll.php https://github.com/subdesign/codeigniter-subpoll.git | PHP | 260 lines
                    
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
93			$votes = unserialize($row->votes);
                    
94			(is_array($votes)) ? ksort($votes) : '';
                    
95			$question = $row->question;
                    
                
DbDependent.php https://github.com/codeactual/hashmark.git | PHP | 197 lines
                    
1<?php
                    
2// vim: fenc=utf-8:ft=php:ai:si:ts=4:sw=4:et:
                    
8 * @copyright   Copyright (c) 2008-2011 David Smith
                    
9 * @license     http://www.opensource.org/licenses/mit-license.php MIT License
                    
10 * @package     Hashmark
                    
14
                    
15require_once dirname(__FILE__) . '/../DbHelper.php';
                    
16
                    
59        if ($this->_type) {
                    
60            $templateFile = HASHMARK_ROOT_DIR . "/Sql/{$this->_base}/{$this->_type}.php";
                    
61        } else {
                    
61        } else {
                    
62            $templateFile = HASHMARK_ROOT_DIR . "/Sql/{$this->_base}.php";
                    
63        }
                    
154        // Ex. prevent macro :name from being being expanded before :nameSuffix.
                    
155        uksort($map, array('Hashmark_Util', 'sortByStrlenReverse'));
                    
156
                    
                
Request.php https://bitbucket.org/manvscode/kohana-flickr.git | PHP | 329 lines
                    
1<?php
                    
2
                    
5 * @author  Andrew Morton <drewish@katherinehouse.com>
                    
6 * @license http://opensource.org/licenses/lgpl-license.php
                    
7 *          GNU Lesser General Public License, Version 2.1
                    
13 */
                    
14require_once 'Phlickr/Api.php';
                    
15
                    
21 * <code>
                    
22 * <?php
                    
23 * include_once 'Phlickr/Api.php';
                    
133     *          to complete.
                    
134     * @uses    set_time_limit() to ensure that PHP's script timer is five
                    
135     *          seconds longer than the sum of $timeout and TIMEOUT_CONNECTION.
                    
156        curl_setopt($ch, CURLOPT_TIMEOUT,$timeout);
                    
157        // set the PHP script's timeout to be greater than CURL's
                    
158        set_time_limit(self::TIMEOUT_CONNECTION + $timeout + 5);
                    
                
CldrData.php https://gitlab.com/koodersmiikka/operaatio-terveys | PHP | 320 lines
                    
1<?php
                    
2namespace Gettext\Languages;
                    
123            }
                    
124            ksort($data['languages'], SORT_STRING);
                    
125            ksort($data['territories'], SORT_STRING);
                    
125            ksort($data['territories'], SORT_STRING);
                    
126            ksort($data['plurals'], SORT_STRING);
                    
127            ksort($data['scripts'], SORT_STRING);
                    
127            ksort($data['scripts'], SORT_STRING);
                    
128            ksort($data['standAloneScripts'], SORT_STRING);
                    
129            ksort($data['supersededLanguages'], SORT_STRING);
                    
                
class.csstidy_print.php https://github.com/masuman/elgg-1.git | PHP | 350 lines
                    
1<?php
                    
2/**
                    
23 *
                    
24 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
25 * @package csstidy
                    
246        $this->tokens = array();
                    
247        ksort($this->css);
                    
248        
                    
250        {
                    
251            if ($this->parser->get_cfg('sort_selectors')) ksort($val);
                    
252            if ($medium != DEFAULT_AT) {
                    
257            {
                    
258                if ($this->parser->get_cfg('sort_properties')) ksort($vali);
                    
259                $this->parser->_add_token(SEL_START, $selector, true);
                    
                
AutoconfigGenerator.php https://github.com/ICanBoogie/ICanBoogie.git | PHP | 520 lines
                    
1<?php
                    
2
                    
28use function implode;
                    
29use function ksort;
                    
30use function realpath;
                    
392		return <<<EOT
                    
393<?php
                    
394
                    
449		$synthesized = $config[Autoconfig::CONFIG_CONSTRUCTOR];
                    
450		ksort($synthesized);
                    
451
                    
                
Collection.php https://github.com/cosmocommerce/magento-mirror.git | PHP | 177 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
161
                    
162        Mage::helper('core/string')->ksortMultibyte($sort);
                    
163        $options = array();
                    
                
popup_util.php https://github.com/CircleCode/dynacase-core.git | PHP | 345 lines
                    
1<?php
                    
2/*
                    
10 * @author Anakeen
                    
11 * @version $Id: popup_util.php,v 1.15 2005/10/07 14:07:53 eric Exp $
                    
12 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License
                    
18
                    
19include_once ("FDL/Class.Doc.php");
                    
20
                    
254                
                    
255                uksort($v, 'vcompare');
                    
256                
                    
312            while (list($k, $v) = each($v2)) {
                    
313                uksort($v, 'vcompare');
                    
314                
                    
                
kodoc.php https://gitlab.com/ken3/bluSky | PHP | 357 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
8 * @copyright  (c) 2008-2012 Kohana Team
                    
9 * @license    http://kohanaphp.com/license
                    
10 */
                    
68
                    
69		ksort($classes);
                    
70
                    
108		// Sort the packages
                    
109		ksort($menu);
                    
110
                    
216
                    
217		// Remove the phpdoc open/close tags and split
                    
218		$comment = array_slice(explode("\n", $comment), 1, -1);
                    
                
Text.php https://gitlab.com/techniconline/kmc | PHP | 246 lines
                    
17 */
                    
18class PHP_CodeCoverage_Report_Text
                    
19{
                    
48    {
                    
49        $output = PHP_EOL . PHP_EOL;
                    
50        $report = $coverage->getReport();
                    
81            '  Classes: %6s (%d/%d)',
                    
82            PHP_CodeCoverage_Util::percent(
                    
83                $report->getNumTestedClassesAndTraits(),
                    
134        if ($this->showOnlySummary) {
                    
135            return $output . PHP_EOL;
                    
136        }
                    
200
                    
201                $output .= PHP_EOL . $fullQualifiedPath . PHP_EOL
                    
202                    . '  ' . $methodColor . 'Methods: ' . $this->printCoverageCounts($classInfo['methodsCovered'], $classInfo['methodCount'], 2) . $resetColor . ' '
                    
                
ErrorCollector.php https://github.com/zcopley/gallery3-contrib.git | PHP | 209 lines
                    
1<?php defined("SYSPATH") or die("No direct script access.");
                    
2
                    
36     * Sends an error message to the collector for later use
                    
37     * @param $severity int Error severity, PHP error style (don't use E_USER_)
                    
38     * @param $msg string Error message text
                    
98            }
                    
99            // These ksorts may present a performance problem
                    
100            ksort($this->lines[$line], SORT_NUMERIC);
                    
107        }
                    
108        ksort($this->lines, SORT_NUMERIC);
                    
109
                    
                
Links.php https://bitbucket.org/kdms/sh-magento.git | PHP | 241 lines
                    
1<?php
                    
2/**
                    
102        if (intval($position) > 0) {
                    
103             ksort($this->_links);
                    
104        }
                    
                
Default.php https://github.com/kervin/kyzstudio.git | PHP | 310 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Default.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
20 */
                    
87             */
                    
88            #require_once 'Zend/Ldap/Exception.php';
                    
89            throw new Zend_Ldap_Exception($this->_ldap, 'counting entries');
                    
226        }
                    
227        ksort($entry, SORT_LOCALE_STRING);
                    
228        return $entry;
                    
245                /** @see Zend_Ldap_Exception */
                    
246                #require_once 'Zend/Ldap/Exception.php';
                    
247                throw new Zend_Ldap_Exception($this->_ldap, 'getting dn');
                    
265            /** @see Zend_Ldap_Exception */
                    
266            #require_once 'Zend/Ldap/Exception.php';
                    
267            if ($this->_current === false) {
                    
                
SimpleHeaderSet.php https://bitbucket.org/antonyravel/cape-resorts.git | PHP | 394 lines
                    
1<?php
                    
2
                    
299    {
                    
300      uksort($headers, array($this, '_sortHeaders'));
                    
301    }
                    
351  
                    
352  /** uksort() algorithm for Header ordering */
                    
353  private function _sortHeaders($a, $b)
                    
                
cron.php https://github.com/mchow01/Security.git | PHP | 469 lines
                    
1<?php
                    
2/**
                    
45	$crons[$event->timestamp][$event->hook][$key] = array( 'schedule' => $event->schedule, 'args' => $event->args );
                    
46	uksort( $crons, "strnatcasecmp" );
                    
47	_set_cron_array( $crons );
                    
77	$event = (object) array( 'hook' => $hook, 'timestamp' => $timestamp, 'schedule' => $recurrence, 'args' => $args, 'interval' => $schedules[$recurrence]['interval'] );
                    
78	/** This filter is documented in wp-includes/cron.php */
                    
79	$event = apply_filters( 'schedule_event', $event );
                    
87	$crons[$event->timestamp][$event->hook][$key] = array( 'schedule' => $event->schedule, 'args' => $event->args, 'interval' => $event->interval );
                    
88	uksort( $crons, "strnatcasecmp" );
                    
89	_set_cron_array( $crons );
                    
263
                    
264		WP_DEBUG ? include_once( ABSPATH . 'wp-cron.php' ) : @include_once( ABSPATH . 'wp-cron.php' );
                    
265		return;
                    
290	$cron_request = apply_filters( 'cron_request', array(
                    
291		'url'  => add_query_arg( 'doing_wp_cron', $doing_wp_cron, site_url( 'wp-cron.php' ) ),
                    
292		'key'  => $doing_wp_cron,
                    
                
preferences.php https://gitlab.com/Conors99/ppm-1.8 | PHP | 191 lines
                    
1<?php
                    
2/**
                    
16
                    
17$page->add_breadcrumb_item($lang->preferences_and_personal_notes, "index.php?module=home-preferences");
                    
18
                    
22{
                    
23	$page->add_breadcrumb_item($lang->recovery_codes, "index.php?module=home-preferences&action=recovery_codes");
                    
24
                    
46{
                    
47	require_once MYBB_ROOT."inc/3rdparty/2fa/GoogleAuthenticator.php";
                    
48	$auth = new PHPGangsta_GoogleAuthenticator;
                    
94		flash_message($lang->success_preferences_updated, 'success');
                    
95		admin_redirect("index.php?module=home-preferences");
                    
96	}
                    
101		'title' => $lang->preferences_and_personal_notes,
                    
102		'link' => "index.php?module=home-preferences",
                    
103		'description' => $lang->prefs_and_personal_notes_description
                    
                
Default.php https://bitbucket.org/babanesma/mysimpleadmin.git | PHP | 310 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Default.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 */
                    
87             */
                    
88            require_once 'Zend/Ldap/Exception.php';
                    
89            throw new Zend_Ldap_Exception($this->_ldap, 'counting entries');
                    
226        }
                    
227        ksort($entry, SORT_LOCALE_STRING);
                    
228        return $entry;
                    
245                /** @see Zend_Ldap_Exception */
                    
246                require_once 'Zend/Ldap/Exception.php';
                    
247                throw new Zend_Ldap_Exception($this->_ldap, 'getting dn');
                    
265            /** @see Zend_Ldap_Exception */
                    
266            require_once 'Zend/Ldap/Exception.php';
                    
267            if ($this->_current === false) {
                    
                
Default.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 310 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Default.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
20 */
                    
87             */
                    
88            require_once 'Zend/Ldap/Exception.php';
                    
89            throw new Zend_Ldap_Exception($this->_ldap, 'counting entries');
                    
226        }
                    
227        ksort($entry, SORT_LOCALE_STRING);
                    
228        return $entry;
                    
245                /** @see Zend_Ldap_Exception */
                    
246                require_once 'Zend/Ldap/Exception.php';
                    
247                throw new Zend_Ldap_Exception($this->_ldap, 'getting dn');
                    
265            /** @see Zend_Ldap_Exception */
                    
266            require_once 'Zend/Ldap/Exception.php';
                    
267            if ($this->_current === false) {
                    
                
uc_product.api.php https://bitbucket.org/SkyBars/newplanet.git | PHP | 195 lines
                    
1<?php
                    
2
                    
36    }
                    
37    ksort($combination);
                    
38
                    
                
Xlsx.php https://gitlab.com/yousafsyed/easternglamor | PHP | 266 lines
                    
1<?php
                    
2/**
                    
24/** Zend_Search_Lucene_Document_OpenXml */
                    
25#require_once 'Zend/Search/Lucene/Document/OpenXml.php';
                    
26
                    
27/** Zend_Xml_Security */
                    
28#require_once 'Zend/Xml/Security.php';
                    
29
                    
85        if (!class_exists('ZipArchive', false)) {
                    
86            #require_once 'Zend/Search/Lucene/Exception.php';
                    
87            throw new Zend_Search_Lucene_Exception('MS Office documents processing functionality requires Zip extension to be loaded');
                    
102        if ($relationsXml === false) {
                    
103            #require_once 'Zend/Search/Lucene/Exception.php';
                    
104            throw new Zend_Search_Lucene_Exception('Invalid archive or corrupted .xlsx file.');
                    
140        // Sort worksheets
                    
141        ksort($worksheets);
                    
142
                    
                
S3Signature.php https://github.com/mhoofman/wordpress-heroku.git | PHP | 266 lines
                    
1<?php
                    
2/**
                    
179
                    
180        ksort($headers);
                    
181
                    
                
AviaryFX.php https://github.com/aviaryapi/AviaryFxPhp.git | PHP | 344 lines
                    
1<?php
                    
2
                    
3	/**
                    
4	 * AviaryFX PHP SDK
                    
5	 * 
                    
15		const HARDWARE_VERSION = "1.0";
                    
16	 	const SOFTWARE_VERSION = "PHP";
                    
17		const APP_VERSION = "1.0";
                    
233			$paramString = '';
                    
234			ksort($paramsToHash);
                    
235			foreach($paramsToHash as $keys => $values) {
                    
268		/**
                    
269		 * Converts a SimpleXMLObject into an array. http://php.net/manual/en/book.simplexml.php
                    
270		 * 
                    
                
SiteController.php https://bitbucket.org/shel3over/scoreboard.git | PHP | 182 lines
                    
1<?php
                    
2
                    
148            $value = $value+$date;
                    
149            ksort($value);
                    
150            //full the gaps
                    
                
 

Source

Language