PageRenderTime 469ms queryTime 129ms sortTime 4ms getByIdsTime 45ms findMatchingLines 143ms

100+ results results for 'php array_unique repo:itoxable/chiron-gaming' (469 ms)

Not the results you expected?
Collection.php https://gitlab.com/blingbang2016/shop | PHP | 411 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 */
                    
289
                    
290        $productsId = array_unique($productsId);
                    
291
                    
                
class-wp-theme-install-list-table.php https://gitlab.com/Gashler/dp | PHP | 394 lines
                    
133			<div class="alignleft actions">
                    
134				<?php do_action( 'install_themes_table_header' ); ?>
                    
135			</div>
                    
151				?>
                    
152				<div class="available-theme installable-theme"><?php
                    
153					$this->single_row( $theme );
                    
226		?>
                    
227		<a class="screenshot install-theme-preview" href="<?php echo esc_url( $preview_url ); ?>" title="<?php echo esc_attr( $preview_title ); ?>">
                    
228			<img src='<?php echo esc_url( $theme->screenshot_url ); ?>' width='150' />
                    
242
                    
243		<?php
                    
244		$this->install_theme_info( $theme );
                    
261					<a href="#" class="collapse-sidebar button-secondary" title="<?php esc_attr_e('Collapse Sidebar'); ?>">
                    
262						<span class="collapse-sidebar-label"><?php _e('Collapse'); ?></span>
                    
263						<span class="collapse-sidebar-arrow"></span>
                    
                
Class.php http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | PHP | 328 lines
                    
38 * @subpackage Util_Skeleton
                    
39 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
40 * @copyright  2002-2011 Sebastian Bergmann <sebastian@phpunit.de>
                    
40 * @copyright  2002-2011 Sebastian Bergmann <sebastian@phpunit.de>
                    
41 * @license    http://www.opensource.org/licenses/bsd-license.php  BSD License
                    
42 * @link       http://www.phpunit.de/
                    
45
                    
46require_once ( PHPU_BASE_PATH . '/Text/Template.php' );
                    
47
                    
52 * @subpackage Util_Skeleton
                    
53 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
54 * @copyright  2002-2011 Sebastian Bergmann <sebastian@phpunit.de>
                    
59 */
                    
60class PHPUnit_Util_Skeleton_Class extends PHPUnit_Util_Skeleton
                    
61{
                    
                
ticket_group_edit.php https://gitlab.com/alexprowars/bitrix | PHP | 299 lines
                    
1<?
                    
2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/support/prolog.php");
                    
15
                    
16$LIST_URL = '/bitrix/admin/ticket_group_list.php';
                    
17	
                    
50		$UIDS = array_map('intval', $_POST[$FMUTagName]['VALS']);
                    
51		$UIDS = array_unique($UIDS);
                    
52		$USERS = array();
                    
101			'CAN_MAIL_UPDATE_GROUP_MESSAGES' => $ar_ug['CAN_MAIL_UPDATE_GROUP_MESSAGES'],
                    
102			'USER_NAME' => '[<a title="'.GetMessage("MAIN_USER_PROFILE").'" href="user_edit.php?ID='.$ar_ug["USER_ID"].'&amp;lang='.LANG.'">'.$ar_ug["USER_ID"].'</a>] ('.$ar_ug["LOGIN"].') '.$ar_ug["FIRST_NAME"].' '.$ar_ug["LAST_NAME"],
                    
103		);
                    
120
                    
121require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php");
                    
122
                    
                
eventpergame.php https://gitlab.com/julienv/joomleague | PHP | 337 lines
                    
1<?php
                    
2/**
                    
3 * @copyright	Copyright (C) 2006-2014 joomleague.at. All rights reserved.
                    
4 * @license		GNU/GPL, see LICENSE.php
                    
5 * Joomla! is free software. This version may have been modified pursuant
                    
8 * other free or open source software licenses.
                    
9 * See COPYRIGHT.php for copyright notices and details.
                    
10 */
                    
14
                    
15require_once(JLG_PATH_ADMIN.DS.'statistics'.DS.'base.php');
                    
16
                    
78	/**
                    
79	 * (non-PHPdoc)
                    
80	 * @see administrator/components/com_joomleague/statistics/JLGStatistic#getPlayerStatsByProject($person_id, $project_id)
                    
104		$res = array();
                    
105		foreach (array_unique(array_merge(array_keys($num), array_keys($den))) as $person_id) 
                    
106		{
                    
                
meta-box-saves.inc.php https://gitlab.com/Gashler/dp | PHP | 148 lines
                    
1<?php
                    
2/**
                    
59															for ($n = 0; $n <= $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["levels"]; $n++)
                    
60																$pages[$n] = array_unique (preg_split ("/[\r\n\t\s;,]+/", $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["level" . $n . "_pages"]));
                    
61
                    
62															for ($n = 0; $n <= $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["levels"]; $n++)
                    
63																$posts[$n] = array_unique (preg_split ("/[\r\n\t\s;,]+/", $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["level" . $n . "_posts"]));
                    
64
                    
88															for ($n = 0; $n <= $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["levels"]; $n++)
                    
89																$posts[$n] = array_unique (preg_split ("/[\r\n\t\s;,]+/", $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["level" . $n . "_posts"]));
                    
90
                    
                
apc.object-cache.php https://gitlab.com/endomorphosis/falkenstein | PHP | 380 lines
                    
1<?php
                    
2/*
                    
9
                    
10Install this file to wp-content/object-cache.php
                    
11
                    
19if ( version_compare( '5.2.4', phpversion(), '>=' ) ) {
                    
20	wp_die( 'The APC object cache backend requires PHP 5.2 or higher. You are running ' . phpversion() . '. Please remove the <code>object-cache.php</code> file from your content directory.' );
                    
21}
                    
24	// Regular die, not wp_die(), because it gets sandboxed and shown in a small iframe
                    
25	die( '<strong>ERROR:</strong> This is <em>not</em> a plugin, and it should not be activated as one.<br /><br />Instead, <code>' . str_replace( $_SERVER['DOCUMENT_ROOT'], '', __FILE__ ) . '</code> must be moved to <code>' . str_replace( $_SERVER['DOCUMENT_ROOT'], '', trailingslashit( WP_CONTENT_DIR ) ) . 'object-cache.php</code>' );
                    
26} else {
                    
27
                    
28// Users with setups where multiple installs share a common wp-config.php can use this
                    
29// to guarantee uniqueness for the keys generated by this object cache
                    
160		$this->global_groups = array_merge( $this->global_groups, $groups );
                    
161		$this->global_groups = array_unique( $this->global_groups );
                    
162	}
                    
                
bookmark.php https://gitlab.com/Gashler/dp | PHP | 387 lines
                    
1<?php
                    
2/**
                    
36			if ( $_bookmark ) {
                    
37				$_bookmark->link_category = array_unique( wp_get_object_terms( $_bookmark->link_id, 'link_category', array( 'fields' => 'ids' ) ) );
                    
38				wp_cache_add( $_bookmark->link_id, $_bookmark, 'bookmark' );
                    
                
feed.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 546 lines
                    
1<?php
                    
2/**
                    
318
                    
319	$cat_names = array_unique($cat_names);
                    
320
                    
442 *
                    
443 * @link http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.3.1
                    
444 *
                    
530function fetch_feed($url) {
                    
531	require_once (ABSPATH . WPINC . '/class-feed.php');
                    
532
                    
                
shBrushPhp.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 91 lines
                    
29 */
                    
30SyntaxHighlighter.brushes.Php = function()
                    
31{
                    
40					'array_udiff_uassoc array_uintersect array_uintersect_assoc '+
                    
41					'array_uintersect_uassoc array_unique array_unshift array_values array_walk '+
                    
42					'array_walk_recursive atan atan2 atanh base64_decode base64_encode base_convert '+
                    
86
                    
87	this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags);
                    
88};
                    
90SyntaxHighlighter.brushes.Php.prototype	= new SyntaxHighlighter.Highlighter();
                    
91SyntaxHighlighter.brushes.Php.aliases	= ['php'];
                    
92
                    
                
class-wc-query.php https://gitlab.com/hop23typhu/list-theme | PHP | 496 lines
                    
1<?php
                    
2/**
                    
241		// Get a list of post id's which match the current filters set (in the layered nav and price filter)
                    
242		$post__in = array_unique( apply_filters( 'loop_shop_post_in', array() ) );
                    
243
                    
                
perfmon_index_list.php https://gitlab.com/alexprowars/bitrix | PHP | 426 lines
                    
5define("PERFMON_STOP", true);
                    
6require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
7/** @global CMain $APPLICATION */
                    
10Loader::includeModule('perfmon');
                    
11require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/perfmon/prolog.php");
                    
12
                    
105						{
                    
106							foreach (array_unique($arMissedKeys) as $suggest)
                    
107							{
                    
267
                    
268	$row->AddViewField("SQL_COUNT", '<a href="perfmon_sql_list.php?lang='.LANGUAGE_ID.'&amp;set_filter=Y&amp;find_suggest_id='.$f_ID.'">'.$f_SQL_COUNT.'</a>');
                    
269	$row->AddViewField("COLUMN_NAMES", str_replace(",", "<br>", $f_COLUMN_NAMES));
                    
308			"TEXT" => GetMessage("PERFMON_INDEX_DETAILS"),
                    
309			"ACTION" => $lAdmin->ActionRedirect('perfmon_index_detail.php?lang='.LANG.'&ID='.$f_ID),
                    
310		),
                    
                
CopyableBehavior.php git://github.com/croogo/croogo.git | PHP | 416 lines
                    
1<?php
                    
2
                    
23 * @copyright Jamie Nay
                    
24 * @license	http://www.opensource.org/licenses/mit-license.php The MIT License
                    
25 * @link http://github.com/jamienay/copyable_behavior
                    
149		}
                    
150		$ignore = array_unique($this->settings[$Model->alias]['ignore']);
                    
151		foreach ($ignore as $path) {
                    
                
cache.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 503 lines
                    
1<?php
                    
2/**
                    
281		$this->global_groups = array_merge($this->global_groups, $groups);
                    
282		$this->global_groups = array_unique($this->global_groups);
                    
283	}
                    
411	 * The $expire parameter is not used, because the cache will automatically
                    
412	 * expire for each time a page is accessed and PHP finishes. The method is
                    
413	 * more for cache plugins which use files.
                    
465	/**
                    
466	 * PHP4 constructor; Calls PHP 5 style constructor
                    
467	 *
                    
476	/**
                    
477	 * Sets up object properties; PHP 5 style constructor
                    
478	 *
                    
483		/**
                    
484		 * @todo This should be moved to the PHP4 style constructor, PHP5
                    
485		 * already calls __destruct()
                    
                
load-scripts.php https://gitlab.com/Gashler/dp | PHP | 162 lines
                    
1<?php
                    
2
                    
121$load = preg_replace( '/[^a-z0-9,_-]+/i', '', $load );
                    
122$load = array_unique( explode( ',', $load ) );
                    
123
                    
126
                    
127require(ABSPATH . WPINC . '/script-loader.php');
                    
128require(ABSPATH . WPINC . '/version.php');
                    
                
Configuration.php https://gitlab.com/freebird/WebApp | PHP | 202 lines
                    
1<?php
                    
2
                    
56                ->then(function ($v) {
                    
57                    $v['form_themes'] = array_values(array_unique(array_merge($v['form']['resources'], $v['form_themes'])));
                    
58
                    
                
script.php https://gitlab.com/alexprowars/bitrix | PHP | 338 lines
                    
1<?php
                    
2
                    
38
                    
39		$documentIds = array_unique($documentIds);
                    
40
                    
                
Translator.php https://gitlab.com/PragmaticLinux/Laravel | PHP | 472 lines
                    
1<?php
                    
2
                    
360        $this->assertValidLocale($locale);
                    
361        $cache = new ConfigCache($this->cacheDir.'/catalogue.'.$locale.'.php', $this->debug);
                    
362        if (!$cache->isFresh()) {
                    
388            $content = sprintf(<<<EOF
                    
389<?php
                    
390
                    
455
                    
456        return array_unique($locales);
                    
457    }
                    
                
Generator.php https://gitlab.com/daigiangaitu91/yii2 | PHP | 223 lines
                    
1<?php
                    
2/**
                    
98        return [
                    
99            'controller.php',
                    
100            'view.php',
                    
159            $this->getControllerFile(),
                    
160            $this->render('controller.php')
                    
161        );
                    
165                $this->getViewFile($action),
                    
166                $this->render('view.php', ['action' => $action])
                    
167            );
                    
178    {
                    
179        $actions = array_unique(preg_split('/[\s,]+/', $this->actions, -1, PREG_SPLIT_NO_EMPTY));
                    
180        sort($actions);
                    
189    {
                    
190        return Yii::getAlias('@' . str_replace('\\', '/', $this->controllerClass)) . '.php';
                    
191    }
                    
                
Util.php https://gitlab.com/jeann2015/secret | PHP | 291 lines
                    
1<?php
                    
2
                    
188
                    
189        $directories = array_diff(array_unique($directories), array_unique($listedDirectories));
                    
190
                    
                
bookmark.php git://github.com/wordpress/wordpress.git | PHP | 327 lines
                    
1<?php
                    
2/**
                    
128	$cats = wp_get_object_terms( $link_id, 'link_category', array( 'fields' => 'ids' ) );
                    
129	return array_unique( $cats );
                    
130}
                    
264	$link_categories = array_map( 'intval', $link_categories );
                    
265	$link_categories = array_unique( $link_categories );
                    
266
                    
311	global $pagenow;
                    
312	if ( 'link-manager.php' != $pagenow && 'link-add.php' != $pagenow && 'link.php' != $pagenow ) {
                    
313		return;
                    
320	if ( $really_can_manage_links && current_user_can( 'install_plugins' ) ) {
                    
321		$link = network_admin_url( 'plugin-install.php?tab=search&amp;s=Link+Manager' );
                    
322		/* translators: %s: URL to install the Link Manager plugin. */
                    
                
pipelines_ecrire.php https://bitbucket.org/re_al_/real.test.spip.git | PHP | 273 lines
                    
1<?php
                    
2
                    
51		));
                    
52	foreach (array_unique($jquery_plugins) as $script) {
                    
53		if ($script = find_in_path(supprimer_timestamp($script))) {
                    
122 * Branchement automatise de affiche_gauche, affiche_droite, affiche_milieu
                    
123 * pour assurer la compat avec les versions precedentes des exec en php
                    
124 * Branche de affiche_objet
                    
                
select.php https://gitlab.com/trenkwill/thema-design | PHP | 232 lines
                    
187	<tr>
                    
188	<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-name' ); ?>"><?php echo esc_html( __( 'Name', 'contact-form-7' ) ); ?></label></th>
                    
189	<td><input type="text" name="name" class="tg-name oneline" id="<?php echo esc_attr( $args['content'] . '-name' ); ?>" /></td>
                    
197		<textarea name="values" class="values" id="<?php echo esc_attr( $args['content'] . '-values' ); ?>"></textarea>
                    
198		<label for="<?php echo esc_attr( $args['content'] . '-values' ); ?>"><span class="description"><?php echo esc_html( __( "One option per line.", 'contact-form-7' ) ); ?></span></label><br />
                    
199		<label><input type="checkbox" name="multiple" class="option" /> <?php echo esc_html( __( 'Allow multiple selections', 'contact-form-7' ) ); ?></label><br />
                    
205	<tr>
                    
206	<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-id' ); ?>"><?php echo esc_html( __( 'Id attribute', 'contact-form-7' ) ); ?></label></th>
                    
207	<td><input type="text" name="id" class="idvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-id' ); ?>" /></td>
                    
210	<tr>
                    
211	<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-class' ); ?>"><?php echo esc_html( __( 'Class attribute', 'contact-form-7' ) ); ?></label></th>
                    
212	<td><input type="text" name="class" class="classvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-class' ); ?>" /></td>
                    
228
                    
229	<p class="description mail-tag"><label for="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>"><?php echo sprintf( esc_html( __( "To use the value input through this field in a mail field, you need to insert the corresponding mail-tag (%s) into the field on the Mail tab.", 'contact-form-7' ) ), '<strong><span class="mail-tag"></span></strong>' ); ?><input type="text" class="mail-tag code hidden" readonly="readonly" id="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>" /></label></p>
                    
230</div>
                    
                
class.I18Nlocale.inc.php http://flaimo-php.googlecode.com/svn/trunk/ | PHP | 341 lines
                    
1<?php
                    
2/**
                    
4*/
                    
5require_once 'class.I18Nbase.inc.php';
                    
6
                    
9* @author Michael Wimmer <flaimo@gmail.com>
                    
10* @category flaimo-php
                    
11* @example  ../www_root/i18n_example_script.php  i18n example script
                    
12* @license GNU General Public License v3
                    
13* @link http://code.google.com/p/flaimo-php/
                    
14* @package i18n
                    
166		if (is_array($this->languages)) {
                    
167			$this->languages = array_unique($this->languages);
                    
168		} // end if
                    
170		if (is_array($this->countries)) {
                    
171			$this->countries = array_unique($this->countries);
                    
172		} // end if
                    
                
Job.php https://gitlab.com/blingbang2016/shop | PHP | 358 lines
                    
1<?php
                    
2
                    
33        // Remove empties and de-dupe
                    
34        $codes = array_unique(array_filter($codes));
                    
35
                    
                
class-wp-taxonomy.php https://bitbucket.org/djmdigital/total-auto-care-wordpress.git | PHP | 450 lines
                    
1<?php
                    
2/**
                    
346
                    
347		$args['object_type'] = array_unique( (array) $object_type );
                    
348
                    
                
functions.php https://gitlab.com/Suhailgit/Project | PHP | 579 lines
                    
1<?php
                    
2
                    
309	preg_match_all( $pattern, $content, $usernames );
                    
310	$usernames = array_unique( array_filter( $usernames[1] ) );
                    
311
                    
                
reports.php https://bitbucket.org/rrobeson/ats_inventory_management_system.git | PHP | 322 lines
                    
1<?php
                    
2
                    
133
                    
134        $faculty_ids = array_unique($faculty_ids);
                    
135
                    
                
file.php https://gitlab.com/joelopezcuenca/proyectocoin | PHP | 393 lines
                    
252	<tr>
                    
253	<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-name' ); ?>"><?php echo esc_html( __( 'Name', 'contact-form-7' ) ); ?></label></th>
                    
254	<td><input type="text" name="name" class="tg-name oneline" id="<?php echo esc_attr( $args['content'] . '-name' ); ?>" /></td>
                    
262	<tr>
                    
263	<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-filetypes' ); ?>"><?php echo esc_html( __( 'Acceptable file types', 'contact-form-7' ) ); ?></label></th>
                    
264	<td><input type="text" name="filetypes" class="filetype oneline option" id="<?php echo esc_attr( $args['content'] . '-filetypes' ); ?>" /></td>
                    
267	<tr>
                    
268	<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-id' ); ?>"><?php echo esc_html( __( 'Id attribute', 'contact-form-7' ) ); ?></label></th>
                    
269	<td><input type="text" name="id" class="idvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-id' ); ?>" /></td>
                    
272	<tr>
                    
273	<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-class' ); ?>"><?php echo esc_html( __( 'Class attribute', 'contact-form-7' ) ); ?></label></th>
                    
274	<td><input type="text" name="class" class="classvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-class' ); ?>" /></td>
                    
290
                    
291	<p class="description mail-tag"><label for="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>"><?php echo sprintf( esc_html( __( "To attach the file uploaded through this field to mail, you need to insert the corresponding mail-tag (%s) into the File Attachments field on the Mail tab.", 'contact-form-7' ) ), '<strong><span class="mail-tag"></span></strong>' ); ?><input type="text" class="mail-tag code hidden" readonly="readonly" id="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>" /></label></p>
                    
292</div>
                    
                
pts_result_file_analyzer.php git://pkgs.fedoraproject.org/phoronix-test-suite | PHP | 375 lines
                    
1<?php
                    
2
                    
44		$hw = $result_file->get_system_hardware();
                    
45		$hw_unique = array_unique($hw);
                    
46		$sw = $result_file->get_system_software();
                    
46		$sw = $result_file->get_system_software();
                    
47		$sw_unique = array_unique($sw);
                    
48		$desc = false;
                    
                
class-sitemap-image-parser.php https://bitbucket.org/wedodigital/wedo-sitemaps.git | PHP | 500 lines
                    
1<?php
                    
2/**
                    
241		if ( PHP_VERSION_ID >= 50209 ) {
                    
242			// phpcs:ignore PHPCompatibility.PHP.NewFunctionParameters.array_unique_sort_flagsFound -- Wrapped in version check.
                    
243			return array_unique( $attachments, SORT_REGULAR );
                    
                
class.plugin-base.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 171 lines
                    
1<?php
                    
2require( ABSPATH . WPINC . '/pluggable.php' );
                    
131	    $options = $this->options;
                    
132	    include_once($this->plugin_path.'/views/settings.php');
                    
133    }
                    
168    	foreach( $a2 as $a)array_push($a1, $a);
                    
169    	return array_unique($a1);
                    
170    }    
                    
                
api-term.php https://bitbucket.org/sebastianpisula/wordpress-starter.git | PHP | 498 lines
                    
1<?php
                    
2
                    
70	// remove duplicates
                    
71	$taxonomies = array_unique($taxonomies);
                    
72	
                    
                
__compare.php https://gitlab.com/BGCX261/zimmerli-svn-to-git.git | PHP | 310 lines
                    
1<?php
                    
2	abstract class __emarket_compare {
                    
95			$elements = getSession("compare_list");
                    
96			$elements = array_unique($elements);
                    
97			return $elements;
                    
                
helper.php git://github.com/joomla/joomla-platform.git | PHP | 416 lines
                    
1<?php
                    
2/**
                    
210		// Remove duplicates before processing (because the black list uses both sets of arrays).
                    
211		$blackListTags			= array_unique($blackListTags);
                    
212		$blackListAttributes	= array_unique($blackListAttributes);
                    
212		$blackListAttributes	= array_unique($blackListAttributes);
                    
213		$customListTags			= array_unique($customListTags);
                    
214		$customListAttributes	= array_unique($customListAttributes);
                    
214		$customListAttributes	= array_unique($customListAttributes);
                    
215		$whiteListTags			= array_unique($whiteListTags);
                    
216		$whiteListAttributes	= array_unique($whiteListAttributes);
                    
319
                    
320		$path = JPATH_COMPONENT . '/' . $file . '.php';
                    
321
                    
                
Memory.php https://gitlab.com/daigiangaitu91/magento | PHP | 160 lines
                    
1<?php
                    
2/**
                    
5 * Uses OS tools to provide accurate information about factual memory consumption.
                    
6 * The PHP standard functions may return incorrect information because the process itself may have leaks.
                    
7 *
                    
41     * memory_get_usage() cannot be used because of the bug
                    
42     * @link https://bugs.php.net/bug.php?id=62467
                    
43     *
                    
114        $pow = $unitSymbol ? strpos(self::MEMORY_UNITS, $unitSymbol) : 0;
                    
115        $is32Bit = PHP_INT_SIZE == 4;
                    
116        if ($is32Bit && $pow >= 4) {
                    
141        preg_match_all('/(\D+)/', $number, $matches);
                    
142        if (count(array_unique($matches[0])) > 1) {
                    
143            throw new \InvalidArgumentException(
                    
152     *
                    
153     * @link http://php.net/manual/en/function.php-uname.php
                    
154     * @return boolean
                    
                
Type.php https://gitlab.com/fogteen/gasaon | PHP | 303 lines
                    
39 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
40 * @copyright  2001-2014 Sebastian Bergmann <sebastian@phpunit.de>
                    
41 * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License
                    
41 * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License
                    
42 * @link       http://www.phpunit.de/
                    
43 * @since      File available since Release 3.0.0
                    
50 * @subpackage Util
                    
51 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
52 * @copyright  2001-2014 Sebastian Bergmann <sebastian@phpunit.de>
                    
53 * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License
                    
54 * @link       http://www.phpunit.de/
                    
55 * @since      Class available since Release 3.0.0
                    
159            // There seems to be no other way to check arrays for recursion
                    
160            // http://www.php.net/manual/en/language.types.array.php#73936
                    
161            preg_match_all('/\n            \[(\w+)\] => Array\s+\*RECURSION\*/', print_r($value, TRUE), $matches);
                    
                
RouteCollection.php https://gitlab.com/krlosnando/cenfo-crm.git | PHP | 344 lines
                    
1<?php
                    
2
                    
275
                    
276        return array_unique($resources);
                    
277    }
                    
                
file.php https://gitlab.com/endomorphosis/falkenstein | PHP | 342 lines
                    
1<?php
                    
2/**
                    
209
                    
210		'upload_failed_php_error' => array(
                    
211			'description' => __( "Uploading a file fails for PHP error", 'contact-form-7' ),
                    
234<table>
                    
235<tr><td><input type="checkbox" name="required" />&nbsp;<?php echo esc_html( __( 'Required field?', 'contact-form-7' ) ); ?></td></tr>
                    
236<tr><td><?php echo esc_html( __( 'Name', 'contact-form-7' ) ); ?><br /><input type="text" name="name" class="tg-name oneline" /></td><td></td></tr>
                    
240<tr>
                    
241<td><code>id</code> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
                    
242<input type="text" name="id" class="idvalue oneline option" /></td>
                    
248<tr>
                    
249<td><?php echo esc_html( __( "File size limit", 'contact-form-7' ) ); ?> (<?php echo esc_html( __( 'bytes', 'contact-form-7' ) ); ?>) (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
                    
250<input type="text" name="limit" class="filesize oneline option" /></td>
                    
251
                    
252<td><?php echo esc_html( __( "Acceptable file types", 'contact-form-7' ) ); ?> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
                    
253<input type="text" name="filetypes" class="filetype oneline option" /></td>
                    
                
Select.php git://github.com/kohana/database.git | PHP | 447 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 */
                    
353			// Select all columns
                    
354			$query .= implode(', ', array_unique(array_map($quote_column, $this->_select)));
                    
355		}
                    
359			// Set tables to select from
                    
360			$query .= ' FROM '.implode(', ', array_unique(array_map($quote_table, $this->_from)));
                    
361		}
                    
                
Cache.php https://gitlab.com/JrLucena/moodle | PHP | 491 lines
                    
1<?php
                    
2/**
                    
194        $this->_loadSliceMap($mailbox, $uidvalid);
                    
195        return array_unique(array_merge(
                    
196            array_keys($this->_slicemap[$mailbox]['s']),
                    
288
                    
289        foreach (array_unique($deleted) as $slice) {
                    
290            /* Get rid of slice if less than 10% of capacity. */
                    
377        if (!empty($uids)) {
                    
378            foreach (array_unique(array_intersect_key($this->_slicemap[$mailbox]['s'], array_flip($uids))) as $slice) {
                    
379                $this->_loadSlice($mailbox, $slice);
                    
                
export.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 410 lines
                    
303<channel>
                    
304	<title><?php bloginfo_rss( 'name' ); ?></title>
                    
305	<link><?php bloginfo_rss( 'url' ) ?></link>
                    
313	<?php if ( $cats ) : foreach ( $cats as $c ) : ?>
                    
314	<wp:category><wp:category_nicename><?php echo $c->slug; ?></wp:category_nicename><wp:category_parent><?php echo $c->parent ? $cats[$c->parent]->name : ''; ?></wp:category_parent><?php wxr_cat_name( $c ); ?><?php wxr_category_description( $c ); ?></wp:category>
                    
315	<?php endforeach; endif; ?>
                    
316	<?php if ( $tags ) : foreach ( $tags as $t ) : ?>
                    
317	<wp:tag><wp:tag_slug><?php echo $t->slug; ?></wp:tag_slug><?php wxr_tag_name( $t ); ?><?php wxr_tag_description( $t ); ?></wp:tag>
                    
318	<?php endforeach; endif; ?>
                    
319	<?php if ( $terms ) : foreach ( $terms as $t ) : ?>
                    
320	<wp:term><wp:term_taxonomy><?php echo $t->taxonomy; ?></wp:term_taxonomy><wp:term_slug><?php echo $t->slug; ?></wp:term_slug><wp:term_parent><?php echo $t->parent ? $custom_taxonomies[$t->parent]->name : ''; ?></wp:term_parent><?php wxr_term_name( $t ); ?><?php wxr_term_description( $t ); ?></wp:term>
                    
321	<?php endforeach; endif; ?>
                    
354		<wp:post_id><?php echo $post->ID; ?></wp:post_id>
                    
355		<wp:post_date><?php echo $post->post_date; ?></wp:post_date>
                    
356		<wp:post_date_gmt><?php echo $post->post_date_gmt; ?></wp:post_date_gmt>
                    
                
Generator.php https://gitlab.com/daigiangaitu91/magento | PHP | 342 lines
                    
1<?php
                    
2/**
                    
73    /**
                    
74     * Construct, configure, and return a PHP class file code generation object
                    
75     *
                    
92
                    
93        $fetched = array_unique(array_merge($definitions->getClasses(), $im->getAliases()));
                    
94
                    
266
                    
267        // Create PHP file code generation object
                    
268        $classFile = new FileGenerator();
                    
312    /**
                    
313     * Create a PhpMethod code generation object named after a given alias
                    
314     *
                    
                
helpers.php https://gitlab.com/PragmaticLinux/Laravel | PHP | 783 lines
                    
1<?php
                    
2
                    
357
                    
358		return array_unique($results);
                    
359	}
                    
                
FunctionCommentThrowTagSniff.php https://gitlab.com/fogteen/gasaon | PHP | 215 lines
                    
14 * @license   https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
                    
15 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
16 */
                    
34 * @version   Release: @package_version@
                    
35 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
36 */
                    
53     *
                    
54     * @param PHP_CodeSniffer_File $phpcsFile The file where this token was found.
                    
55     * @param int                  $stackPtr  The position where the token was found.
                    
59     */
                    
60    protected function processTokenWithinScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $currScope)
                    
61    {
                    
93        try {
                    
94            $this->commentParser = new PHP_CodeSniffer_CommentParser_FunctionCommentParser($comment, $phpcsFile);
                    
95            $this->commentParser->parse();
                    
                
Gcm.php https://gitlab.com/neera.pokhrel.c3/BackendNayapatrika | PHP | 308 lines
                    
1<?php
                    
2/**
                    
6 * info: https://github.com/antongorodezkiy/codeigniter-gcm/
                    
7 * Description: PHP Codeigniter Google Cloud Messaging Library
                    
8 * License: BSD
                    
165	{
                    
166		$this->payload['registration_ids'] = array_unique($this->payload['registration_ids']);
                    
167		sort($this->payload['registration_ids']);
                    
                
user.php https://gitlab.com/alexprowars/bitrix | PHP | 150 lines
                    
1<?php
                    
2namespace Bitrix\Bizproc\Service;
                    
110
                    
111		return array_unique($heads);
                    
112	}
                    
                
cache.php http://core.svn.wordpress.org/ | PHP | 374 lines
                    
1<?php
                    
2function wp_cache_add($key, $data, $flag = '', $expire = 0) {
                    
49
                    
50define('CACHE_SERIAL_HEADER', "<?php\n//");
                    
51define('CACHE_SERIAL_FOOTER', "\n?".">");
                    
128
                    
129		$cache_file = $this->cache_dir.$this->get_group_dir($group)."/".md5($id.DB_PASSWORD).'.php';
                    
130		if (!file_exists($cache_file)) {
                    
206
                    
207			if (!file_exists($this->cache_dir.$make_dir."index.php")) {
                    
208				@ touch($this->cache_dir.$make_dir."index.php");
                    
279
                    
280		if (!file_exists($this->cache_dir."index.php")) {
                    
281			@ touch($this->cache_dir."index.php");
                    
293
                    
294			$ids = array_unique($ids);
                    
295			foreach ($ids as $id) {
                    
                
AssetControlExtension.php git://github.com/silverstripe/sapphire.git | PHP | 300 lines
                    
1<?php
                    
2
                    
229		// De-dupe
                    
230		return array_map("unserialize", array_unique(array_map("serialize", $files)));
                    
231	}
                    
                
bookmark.php https://gitlab.com/rio.munas/gddc | PHP | 415 lines
                    
1<?php
                    
2/**
                    
37			if ( $_bookmark ) {
                    
38				$_bookmark->link_category = array_unique( wp_get_object_terms( $_bookmark->link_id, 'link_category', array( 'fields' => 'ids' ) ) );
                    
39				wp_cache_add( $_bookmark->link_id, $_bookmark, 'bookmark' );
                    
199			wp_cache_set( 'get_bookmarks', $cache, 'bookmark' );
                    
200			/** This filter is documented in wp-includes/bookmark.php */
                    
201			return apply_filters( 'get_bookmarks', array(), $r );
                    
290
                    
291	/** This filter is documented in wp-includes/bookmark.php */
                    
292	return apply_filters( 'get_bookmarks', $results, $r );
                    
380	if ( 'edit' == $context ) {
                    
381		/** This filter is documented in wp-includes/post.php */
                    
382		$value = apply_filters( "edit_$field", $value, $bookmark_id );
                    
389	} elseif ( 'db' == $context ) {
                    
390		/** This filter is documented in wp-includes/post.php */
                    
391		$value = apply_filters( "pre_$field", $value );
                    
                
migration.php git://github.com/jrbasso/migrations.git | PHP | 444 lines
                    
1<?php
                    
2/**
                    
8 * @since         v 0.1
                    
9 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
10 */
                    
76			$varName = Inflector::camelize($use);
                    
77			if (!PHP5) {
                    
78				$this->{$varName} =& ClassRegistry::init(array('class' => $use, 'alias' => $use, 'ds' => $shell->connection));
                    
107		}
                    
108		return array_unique(array_merge($uses, $this->uses));
                    
109	}
                    
                
select.php git://github.com/fuel/core.git | PHP | 524 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Fuel is a fast, lightweight, community driven PHP 5.4+ framework.
                    
4 *
                    
10 * @copyright  2008 - 2009 Kohana Team
                    
11 * @link       https://fuelphp.com
                    
12 */
                    
447			// Select all columns
                    
448			$query .= implode(', ', array_unique(array_map($quote_ident, $this->_select)));
                    
449		}
                    
453			// Set tables to select from
                    
454			$query .= ' FROM '.implode(', ', array_unique(array_map($quote_table, $this->_from)));
                    
455		}
                    
                
storestocksale.php https://gitlab.com/alexprowars/bitrix | PHP | 292 lines
                    
1<?php
                    
2
                    
214
                    
215		return array_unique($combineColumnElements);
                    
216	}
                    
                
Source.php https://gitlab.com/Gashler/dp | PHP | 611 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * A PHP-Based RSS and Atom Feed Framework.
                    
6 * Takes the hard work out of managing a complete RSS/Atom solution.
                    
41 * @link http://simplepie.org/ SimplePie
                    
42 * @license http://www.opensource.org/licenses/bsd-license.php BSD License
                    
43 */
                    
201		{
                    
202			return array_unique($categories);
                    
203		}
                    
284		{
                    
285			return array_unique($authors);
                    
286		}
                    
355		{
                    
356			return array_unique($contributors);
                    
357		}
                    
                
feed.php https://gitlab.com/Gashler/dp | PHP | 552 lines
                    
1<?php
                    
2/**
                    
320
                    
321	$cat_names = array_unique($cat_names);
                    
322
                    
444 *
                    
445 * @link http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.3.1
                    
446 *
                    
529function fetch_feed( $url ) {
                    
530	require_once ( ABSPATH . WPINC . '/class-feed.php' );
                    
531
                    
                
utils-gets.inc.php https://gitlab.com/Gashler/dp | PHP | 361 lines
                    
1<?php
                    
2/**
                    
44
                    
45						return (!empty ($category_ids) && is_array ($category_ids)) ? array_unique ($category_ids) : array ();
                    
46					}
                    
61
                    
62						return (!empty ($child_category_ids) && is_array ($child_category_ids)) ? array_unique ($child_category_ids) : array ();
                    
63					}
                    
76
                    
77						return (!empty ($tag_ids) && is_array ($tag_ids)) ? array_unique ($tag_ids) : array ();
                    
78					}
                    
103							}
                    
104						return (!empty ($tag_ids) && is_array ($tag_ids)) ? array_unique ($tag_ids) : array ();
                    
105					}
                    
122
                    
123						return (!empty ($post_ids) && is_array ($post_ids)) ? array_unique ($post_ids) : array ();
                    
124					}
                    
                
paypal-notify-in-web-accept-sp.inc.php https://gitlab.com/Gashler/dp | PHP | 258 lines
                    
1<?php
                    
2/**
                    
71															$_sp_reference = array ("time" => time (), "ids" => $paypal["sp_ids"], "hours" => $paypal["hours"], "url" => $sp_access_url);
                    
72															$sp_references = c_ws_plugin__s2member_utils_arrays::array_unique (array_merge ($sp_references, $_sp_reference));
                    
73															update_user_option ($user_id, "s2member_sp_references", $sp_references);
                    
                
misc.php https://gitlab.com/Gashler/dp | PHP | 667 lines
                    
1<?php
                    
2/**
                    
159
                    
160	// Using win_is_writable() instead of is_writable() because of a bug in Windows PHP
                    
161	if ( iis7_supports_permalinks() && ( ( ! file_exists($web_config_file) && win_is_writable($home_path) && $wp_rewrite->using_mod_rewrite_permalinks() ) || win_is_writable($web_config_file) ) ) {
                    
184		$oldfiles = array_reverse( $oldfiles );
                    
185		$oldfiles = array_unique( $oldfiles );
                    
186		if ( 5 < count( $oldfiles ))
                    
297
                    
298	$functions = array_unique( $functions );
                    
299	sort( $functions );
                    
300	$ignore_functions = apply_filters( 'documentation_ignore_functions', $ignore_functions );
                    
301	$ignore_functions = array_unique( $ignore_functions );
                    
302
                    
538foreach ( $_wp_admin_css_colors as $color => $color_info ): ?>
                    
539<div class="color-option"><input name="admin_color" id="admin_color_<?php echo esc_attr( $color ); ?>" type="radio" value="<?php echo esc_attr( $color ); ?>" class="tog" <?php checked($color, $current_color); ?> />
                    
540	<table class="color-palette">
                    
                
class-wp-comments-list-table.php https://gitlab.com/Gashler/dp | PHP | 561 lines
                    
1<?php
                    
2/**
                    
217				<option value=""><?php _e( 'Show all comment types' ); ?></option>
                    
218<?php
                    
219				$comment_types = apply_filters( 'admin_comment_types_dropdown', array(
                    
227			</select>
                    
228<?php
                    
229			do_action( 'restrict_manage_comments' );
                    
301</table>
                    
302<?php
                    
303
                    
323		if ( $this->user_can ) { ?>
                    
324		<label class="screen-reader-text" for="cb-select-<?php echo $comment->comment_ID; ?>"><?php _e( 'Select comment' ); ?></label>
                    
325		<input id="cb-select-<?php echo $comment->comment_ID; ?>" type="checkbox" name="delete_comments[]" value="<?php echo $comment->comment_ID; ?>" />
                    
378		</div>
                    
379		<?php
                    
380		}
                    
                
nextmatch.php https://gitlab.com/julienv/joomleague | PHP | 602 lines
                    
1<?php
                    
2/**
                    
3 * @copyright	Copyright (C) 2006-2014 joomleague.at. All rights reserved.
                    
4 * @license		GNU/GPL,see LICENSE.php
                    
5 * Joomla! is free software. This version may have been modified pursuant
                    
8 * other free or open source software licenses.
                    
9 * See COPYRIGHT.php for copyright notices and details.
                    
10 */
                    
16
                    
17require_once( JPATH_COMPONENT.DS . 'helpers' . DS . 'ranking.php' );
                    
18require_once( JLG_PATH_SITE . DS . 'models' . DS . 'project.php' );
                    
454		}
                    
455		$listProjectTeamId = implode( ",", array_unique( $projectTeamIds ) );
                    
456
                    
                
percentage.php https://gitlab.com/julienv/joomleague | PHP | 472 lines
                    
1<?php
                    
2/**
                    
3 * @copyright	Copyright (C) 2006-2014 joomleague.at. All rights reserved.
                    
4 * @license		GNU/GPL, see LICENSE.php
                    
5 * Joomla! is free software. This version may have been modified pursuant
                    
8 * other free or open source software licenses.
                    
9 * See COPYRIGHT.php for copyright notices and details.
                    
10 */
                    
14
                    
15require_once(JLG_PATH_ADMIN.DS.'statistics'.DS.'base.php');
                    
16
                    
134		$res = array();
                    
135		foreach (array_unique(array_merge(array_keys($num), array_keys($den))) as $match_id) 
                    
136		{
                    
170		$res = array();
                    
171		foreach (array_unique(array_merge(array_keys($num), array_keys($den))) as $person_id) 
                    
172		{
                    
                
difference.php https://gitlab.com/julienv/joomleague | PHP | 427 lines
                    
1<?php
                    
2/**
                    
3 * @copyright	Copyright (C) 2006-2014 joomleague.at. All rights reserved.
                    
4 * @license		GNU/GPL, see LICENSE.php
                    
5 * Joomla! is free software. This version may have been modified pursuant
                    
8 * other free or open source software licenses.
                    
9 * See COPYRIGHT.php for copyright notices and details.
                    
10 */
                    
14
                    
15require_once(JLG_PATH_ADMIN.DS.'statistics'.DS.'base.php');
                    
16
                    
105		$res = array();
                    
106		foreach (array_unique(array_merge(array_keys($add), array_keys($sub))) as $match_id) 
                    
107		{
                    
138		$res = array();
                    
139		foreach (array_unique(array_merge(array_keys($add), array_keys($sub))) as $person_id) 
                    
140		{
                    
                
misc.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 615 lines
                    
1<?php
                    
2/**
                    
156
                    
157	// Using win_is_writable() instead of is_writable() because of a bug in Windows PHP
                    
158	if ( ( ! file_exists($web_config_file) && win_is_writable($home_path) && $wp_rewrite->using_mod_rewrite_permalinks() ) || win_is_writable($web_config_file) ) {
                    
183		$oldfiles = array_reverse( $oldfiles );
                    
184		$oldfiles = array_unique( $oldfiles );
                    
185		if ( 5 < count( $oldfiles ))
                    
299
                    
300	$functions = array_unique( $functions );
                    
301	sort( $functions );
                    
302	$ignore_functions = apply_filters( 'documentation_ignore_functions', $ignore_functions );
                    
303	$ignore_functions = array_unique( $ignore_functions );
                    
304
                    
387		/* First we check if the DOMDocument class exists. If it does not exist,
                    
388		 * which is the case for PHP 4.X, then we cannot easily update the xml configuration file,
                    
389		 * hence we just bail out and tell user that pretty permalinks cannot be used.
                    
                
Update.php https://gitlab.com/thoinv/forums | PHP | 373 lines
                    
1<?php
                    
2
                    
220
                    
221			$categories = array_unique($categories);
                    
222			$constraints['rescat'] = implode(' ', $categories);
                    
231		{
                    
232			$prefixes = array_unique($prefixes);
                    
233			$constraints['resprefix'] = implode(' ', $prefixes);
                    
                
config.php https://gitlab.com/alexprowars/bitrix | PHP | 518 lines
                    
1<?php declare(strict_types = 1);
                    
2
                    
44	/**
                    
45	 * Returns an array with default values of a module options (from a default_option.php file).
                    
46	 *
                    
281		{
                    
282			$languages = array_unique(array_merge(
                    
283				self::getAvailableDefaultLanguages(),
                    
428				}
                    
429				elseif (strncasecmp(PHP_OS, 'WIN', 3) === 0 && preg_match("#^[a-z]{1}:/#i", $confOption))
                    
430				{
                    
                
inventory_move.php http://tracmor.googlecode.com/svn/trunk/ | PHP | 218 lines
                    
1<?php
                    
2require_once('../includes/prepend.inc.php');
                    
6  // authenticate error
                    
7	QApplication::Redirect('./index.php');
                    
8}
                    
21	*/
                    
22	$arrInventoryCodeLocationQuantity = array_unique(explode('#',$_POST['result']));
                    
23	
                    
169			
                    
170			$strWarning .= "Your transaction has successfully completed<br /><a href='index.php'>Main Menu</a> | <a href='inventory_menu.php'>Inventory Menu</a><br />";
                    
171			//Remove that flag when transaction is compelete or exists some errors
                    
192
                    
193require_once('./includes/header.inc.php');
                    
194?>
                    
195
                    
196  <div id="warning"><?php echo $strWarning; ?></div>
                    
197<?php
                    
                
class_cache.php https://gitlab.com/elasa/vb-elasa.ir | PHP | 439 lines
                    
1<?php
                    
2/*======================================================================*\
                    
117		// Make sure this is unique
                    
118		$cachefields = array_unique($cachefields);
                    
119		
                    
                
Collection.php https://gitlab.com/daigiangaitu91/magento | PHP | 299 lines
                    
1<?php
                    
2/**
                    
12/**
                    
13 * @SuppressWarnings(PHPMD.LongVariable)
                    
14 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
62     * @param \Magento\Framework\DB\Adapter\AdapterInterface $connection
                    
63     * @SuppressWarnings(PHPMD.ExcessiveParameterList)
                    
64     */
                    
285        }
                    
286        $options = $productAttribute->getSource()->getSpecificOptions(array_unique($attributeValues));
                    
287        return $options;
                    
                
extension.php https://gitlab.com/alexprowars/bitrix | PHP | 159 lines
                    
1<?php
                    
2
                    
82	{
                    
83		$file = new File($this->path . '/extension.php');
                    
84		$result = null;
                    
141
                    
142		return array_unique($list);
                    
143	}
                    
                
Abstract.php https://gitlab.com/blingbang2016/shop | PHP | 301 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 */
                    
140    {
                    
141        $classes = array_unique(explode(' ', $this->getClass()));
                    
142        if (false !== ($key = array_search($class, $classes))) {
                    
                
component.php https://gitlab.com/alexprowars/bitrix | PHP | 289 lines
                    
38	$arParams["PATH_TO_SEARCH"] .= "&";
                    
39$arParams["DATE_TIME_FORMAT"] = trim(empty($arParams["DATE_TIME_FORMAT"]) ? $DB->DateFormatToPHP(CSite::GetDateFormat("FULL")) : $arParams["DATE_TIME_FORMAT"]);
                    
40
                    
100				}
                    
101				$arHobbyDB=array_unique($arHobbyDB);
                    
102				if(count($arHobbyDB)>0)
                    
                
PHPDriver.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 116 lines
                    
1<?php
                    
2/*
                    
24/**
                    
25 * The PHPDriver invokes a static PHP function on the document class itself passing
                    
26 * a ClassMetadata instance for you to manually populate with mapping information.
                    
27 *
                    
28 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
29 * @link        www.doctrine-project.org
                    
33 */
                    
34class PHPDriver implements Driver
                    
35{
                    
44    {
                    
45        $this->paths = array_unique(array_merge($this->paths, $paths));
                    
46    }
                    
                
Generator.php https://gitlab.com/marvin1/soundcloud | PHP | 563 lines
                    
1<?php
                    
2
                    
2
                    
3require(dirname(__FILE__) . "/Entry.php");
                    
4
                    
90    $this->options = $options;
                    
91    $this->source = str_replace(PHP_EOL, "\n", $options['source']);
                    
92    $this->entries = Entry::getEntries($this->source);
                    
146    preg_match_all('/#\{([^}]+)\}/', $string, $tokens);
                    
147    $tokens = array_unique(array_pop($tokens));
                    
148
                    
                
Generator.php https://gitlab.com/btkm/correct_fb | PHP | 1120 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * This file is part of the PHPUnit_MockObject package.
                    
4 *
                    
4 *
                    
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
                    
6 *
                    
26 */
                    
27class PHPUnit_Framework_MockObject_Generator
                    
28{
                    
129     * @throws InvalidArgumentException
                    
130     * @throws PHPUnit_Framework_Exception
                    
131     * @throws PHPUnit_Framework_MockObject_RuntimeException
                    
136        if (!is_array($type) && !is_string($type)) {
                    
137            throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'array or string');
                    
138        }
                    
                
Test.php https://gitlab.com/btkm/correct_fb | PHP | 1084 lines
                    
46     */
                    
47    public static function describe(PHPUnit_Framework_Test $test, $asString = true)
                    
48    {
                    
200
                    
201        // https://bugs.php.net/bug.php?id=63055
                    
202        $matches = array();
                    
231
                    
232        if (!empty($required['PHP']) && version_compare(PHP_VERSION, $required['PHP'], '<')) {
                    
233            $missing[] = sprintf('PHP %s (or later) is required.', $required['PHP']);
                    
236        if (!empty($required['PHPUnit'])) {
                    
237            $phpunitVersion = PHPUnit_Runner_Version::id();
                    
238            if (version_compare($phpunitVersion, $required['PHPUnit'], '<')) {
                    
238            if (version_compare($phpunitVersion, $required['PHPUnit'], '<')) {
                    
239                $missing[] = sprintf('PHPUnit %s (or later) is required.', $required['PHPUnit']);
                    
240            }
                    
                
Validator.php https://gitlab.com/btkm/correct_fb | PHP | 1719 lines
                    
1<?php
                    
2
                    
355
                    
356        $keys = array_unique($keys);
                    
357
                    
                
helpers.php https://gitlab.com/btkm/correct_fb | PHP | 885 lines
                    
1<?php
                    
2
                    
363
                    
364        return array_unique($results);
                    
365    }
                    
                
cache.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 566 lines
                    
1<?php
                    
2/**
                    
311		$this->global_groups = array_merge($this->global_groups, $groups);
                    
312		$this->global_groups = array_unique($this->global_groups);
                    
313	}
                    
489	 * The $expire parameter is not used, because the cache will automatically
                    
490	 * expire for each time a page is accessed and PHP finishes. The method is
                    
491	 * more for cache plugins which use files.
                    
                
Minify.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 1051 lines
                    
1<?php
                    
2
                    
9
                    
10require_once W3TC_LIB_W3_DIR . '/Plugin.php';
                    
11
                    
277    function get_files_js(&$buffer) {
                    
278        require_once W3TC_INC_DIR . '/functions/extract.php';
                    
279
                    
292    function get_files_css(&$buffer) {
                    
293        require_once W3TC_INC_DIR . '/functions/extract.php';
                    
294
                    
308        $files = array_filter($files, array(&$this, '_filter_files'));
                    
309        $files = array_values(array_unique($files));
                    
310        return $files;
                    
461        if (count($ignored_comments)) {
                    
462            require_once W3TC_LIB_MINIFY_DIR . '/Minify/IgnoredCommentPreserver.php';
                    
463
                    
                
ObjectCache.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 627 lines
                    
1<?php
                    
2
                    
114    /**
                    
115     * PHP5 style constructor
                    
116     */
                    
136    /**
                    
137     * PHP4 style constructor
                    
138     */
                    
338        $this->global_groups = array_merge($this->global_groups, $groups);
                    
339        $this->global_groups = array_unique($this->global_groups);
                    
340    }
                    
353        $this->nonpersistent_groups = array_merge($this->nonpersistent_groups, $groups);
                    
354        $this->nonpersistent_groups = array_unique($this->nonpersistent_groups);
                    
355    }
                    
485
                    
486            require_once W3TC_LIB_W3_DIR . '/Cache.php';
                    
487            @$cache[0] = & W3_Cache::instance($engine, $engineConfig);
                    
                
featured-content.php https://gitlab.com/endomorphosis/falkenstein | PHP | 562 lines
                    
1<?php
                    
2/**
                    
263			$featured = array_merge( (array) $post__not_in, $featured );
                    
264			$featured = array_unique( $featured );
                    
265		}
                    
408			'title'          => __( 'Featured Content', 'twentyfourteen' ),
                    
409			'description'    => sprintf( __( 'Use the <a href="%1$s">"featured" tag</a> to feature your posts. You can change this to a tag of your choice; if no posts match the tag, <a href="%2$s">sticky posts</a> will be displayed instead.', 'twentyfourteen' ), admin_url( '/edit.php?tag=featured' ), admin_url( '/edit.php?show_sticky=1' ) ),
                    
410			'priority'       => 130,
                    
                
misc.php https://gitlab.com/endomorphosis/falkenstein | PHP | 770 lines
                    
1<?php
                    
2/**
                    
192
                    
193	// Using win_is_writable() instead of is_writable() because of a bug in Windows PHP
                    
194	if ( iis7_supports_permalinks() && ( ( ! file_exists($web_config_file) && win_is_writable($home_path) && $wp_rewrite->using_mod_rewrite_permalinks() ) || win_is_writable($web_config_file) ) ) {
                    
217		$oldfiles = array_reverse( $oldfiles );
                    
218		$oldfiles = array_unique( $oldfiles );
                    
219		if ( 5 < count( $oldfiles ))
                    
330
                    
331	$functions = array_unique( $functions );
                    
332	sort( $functions );
                    
333	$ignore_functions = apply_filters( 'documentation_ignore_functions', $ignore_functions );
                    
334	$ignore_functions = array_unique( $ignore_functions );
                    
335
                    
                
editor.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 670 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3* @version		$Id: editor.php 109 2009-06-21 19:24:41Z happynoodleboy $
                    
4* @package      JCE
                    
282		$plugins = (array) $plugins;		
                    
283		$this->plugins = array_unique(array_merge($this->plugins, $plugins));
                    
284	}
                    
463		}
                    
464		$array = array_unique(array_merge($array, $keys));
                    
465	}
                    
615		foreach($plugins as $plugin) {
                    
616			$file = $path .DS. $plugin .DS. 'classes' .DS. 'config.php';
                    
617			
                    
                
featured-content.php https://gitlab.com/rio.munas/gddc | PHP | 531 lines
                    
1<?php
                    
2/**
                    
254			$featured = array_merge( (array) $post__not_in, $featured );
                    
255			$featured = array_unique( $featured );
                    
256		}
                    
404			'description'    => sprintf( __( 'Use a <a href="%1$s">tag</a> to feature your posts. If no posts match the tag, <a href="%2$s">sticky posts</a> will be displayed instead.', 'twentyfourteen' ),
                    
405				esc_url( add_query_arg( 'tag', _x( 'featured', 'featured content default tag slug', 'twentyfourteen' ), admin_url( 'edit.php' ) ) ),
                    
406				admin_url( 'edit.php?show_sticky=1' )
                    
                
contact.php https://gitlab.com/alexprowars/bitrix | PHP | 679 lines
                    
1<?php
                    
2namespace Bitrix\Socialservices;
                    
196				'=EXTERNAL_AUTH_ID' => \CSocServBitrix24Net::ID,
                    
197				'=XML_ID' => array_unique(
                    
198					array_merge(
                    
                
usertogroup.php https://gitlab.com/alexprowars/bitrix | PHP | 758 lines
                    
1<?php
                    
2
                    
241
                    
242		$deparmentIdList = array_unique($deparmentIdList);
                    
243
                    
304		}
                    
305		$oldGroupList = array_unique($oldGroupList);
                    
306		$oldGroupAutoList = array_unique($oldGroupAutoList);
                    
327		}
                    
328		$departmentList = array_unique($departmentList);
                    
329
                    
470
                    
471		$userDepartmentList = array_unique($userDepartmentList);
                    
472
                    
489
                    
490		return array_unique($result);
                    
491	}
                    
                
helper.php https://gitlab.com/alexprowars/bitrix | PHP | 1090 lines
                    
1<?php
                    
2
                    
119				ComponentHelper::processBlogPostNewMailUserDestinations($destinationList);
                    
120				$params['DEST'] = array_unique($destinationList);
                    
121			}
                    
296		{
                    
297			$inlineTagsList = array_unique(array_map('ToLower', $inlineTagsList));
                    
298
                    
                
rest.php https://gitlab.com/alexprowars/bitrix | PHP | 2049 lines
                    
1<?php
                    
2
                    
103
                    
104		return array_unique($arEventIdFullset);
                    
105	}
                    
230			));
                    
231			$obCache = new CPHPCache;
                    
232			if ($obCache->InitCache($cacheTtl, $cacheId, $cacheDir))
                    
251				));
                    
252				$obCache = new CPHPCache;
                    
253				$obCache->InitCache($cacheTtl, $cacheId, $cacheDir);
                    
412
                    
413		$postIdList = array_unique($postIdList);
                    
414		if (empty($postIdList))
                    
474				'filter' => [
                    
475					'@ID' => array_unique($attachedIdList)
                    
476				],
                    
                
seo_sitemap_edit.php https://gitlab.com/alexprowars/bitrix | PHP | 940 lines
                    
1<?
                    
2require_once($_SERVER['DOCUMENT_ROOT']."/bitrix/modules/main/include/prolog_admin_before.php");
                    
3
                    
16
                    
17Loc::loadMessages(dirname(__FILE__).'/../../main/tools.php');
                    
18Loc::loadMessages(dirname(__FILE__).'/seo_sitemap.php');
                    
26{
                    
27	require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php");
                    
28	ShowError(Loc::getMessage("SEO_ERROR_NO_MODULE"));
                    
28	ShowError(Loc::getMessage("SEO_ERROR_NO_MODULE"));
                    
29	require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_admin.php");
                    
30}
                    
46	{
                    
47		require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php");
                    
48		ShowError(Loc::getMessage("SEO_ERROR_SITEMAP_NOT_FOUND"));
                    
                
finder.php https://gitlab.com/alexprowars/bitrix | PHP | 826 lines
                    
1<?php
                    
2/**
                    
65
                    
66		return array_unique($result);
                    
67	}
                    
82
                    
83			$result = array_unique($result);
                    
84		}
                    
108
                    
109		return array_unique($result);
                    
110	}
                    
114		if(is_array($langs) && !empty($langs))
                    
115			$langs = array_unique($langs);
                    
116		else
                    
129
                    
130			$result = array_unique($result);
                    
131		}
                    
                
helper.php https://gitlab.com/alexprowars/bitrix | PHP | 792 lines
                    
19
                    
20	const IMPORT_PAGE_URL = 'sale_location_import.php';
                    
21	const REINDEX_PAGE_URL = 'sale_location_reindex.php';
                    
21	const REINDEX_PAGE_URL = 'sale_location_reindex.php';
                    
22	const MIGRATION_PAGE_URL = 'sale_location_migration.php';
                    
23
                    
188		{
                    
189			$parameters['ID'] = array_unique($parameters['ID']);
                    
190			foreach($parameters['ID'] as $id)
                    
                
delivery_paysystem.php https://gitlab.com/alexprowars/bitrix | PHP | 863 lines
                    
1<?php
                    
2namespace Bitrix\Sale\Internals;
                    
152				{
                    
153					$linkedIds = array_unique(array_merge($linkedIds, $reverseParentLinks));
                    
154				}
                    
236					$entityType,
                    
237					array_unique(array_merge($parentLinks, $linkedIds)),
                    
238					false
                    
                
event.php https://gitlab.com/alexprowars/bitrix | PHP | 721 lines
                    
1<?php
                    
2namespace Bitrix\Pull;
                    
152		{
                    
153			$destination[$eventCode]['users'] = array_unique(array_merge($destination[$eventCode]['users'], array_values($channels)));
                    
154			$destination[$eventCode]['channels'] = array_unique(array_merge($destination[$eventCode]['channels'], array_keys($channels)));
                    
158			$destination[$eventCode]['event'] = $parameters;
                    
159			$destination[$eventCode]['users'] = array_unique(array_values($channels));
                    
160			$destination[$eventCode]['channels'] = array_unique(array_keys($channels));
                    
227		{
                    
228			self::$push[$pushCode]['users'] = array_unique(array_merge(self::$push[$pushCode]['users'], array_values($users)));
                    
229		}
                    
237			self::$push[$pushCode]['hasPushCallback'] = $hasPushCallback;
                    
238			self::$push[$pushCode]['users'] = array_unique(array_values($users));
                    
239		}
                    
                
query.php https://gitlab.com/alexprowars/bitrix | PHP | 678 lines
                    
1<?php
                    
2
                    
128		{
                    
129			if (count(array_unique($match[1])) == 1)
                    
130				$sql = $match[1][0]." IN ( ".implode(", ", $match[2])." )";
                    
515	{
                    
516		$arColumns = array_unique($arColumns);
                    
517		while (mb_strlen(implode(",", $arColumns)) > 250)
                    
                
access_edit.php https://gitlab.com/alexprowars/bitrix | PHP | 520 lines
                    
1<?
                    
2require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
3require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_js.php");
                    
51
                    
52//Get only used user group from .access.php file
                    
53$arUserGroupsID = array("*");
                    
65	{
                    
66		$accessFile = "/.access.php";
                    
67		$name = "/";
                    
80		$currentPath = mb_substr($currentPath, 0, $position + 1);
                    
81		$accessFile = $currentPath.".access.php";
                    
82	}
                    
104
                    
105$arUserGroupsID = array_unique($arUserGroupsID);
                    
106
                    
                
user_edit.php https://gitlab.com/alexprowars/bitrix | PHP | 1102 lines
                    
1<?php
                    
2/**
                    
15
                    
16require_once(dirname(__FILE__)."/../include/prolog_admin_before.php");
                    
17require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/prolog.php");
                    
17require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/prolog.php");
                    
18define("HELP_FILE", "users/user_edit.php");
                    
19$strRedirect_admin = BX_ROOT."/admin/user_admin.php?lang=".LANG;
                    
19$strRedirect_admin = BX_ROOT."/admin/user_admin.php?lang=".LANG;
                    
20$strRedirect = BX_ROOT."/admin/user_edit.php?lang=".LANG;
                    
21
                    
70	}
                    
71	$arUserSubordinateGroups = array_unique($arUserSubordinateGroups);
                    
72
                    
73	if (count(array_diff($arUserGroups, $arUserSubordinateGroups)) > 0 && !$selfEdit)
                    
74		LocalRedirect(BX_ROOT."/admin/user_admin.php?lang=".LANG);
                    
75}
                    
                
user_admin.php https://gitlab.com/alexprowars/bitrix | PHP | 839 lines
                    
18
                    
19require_once(dirname(__FILE__)."/../include/prolog_admin_before.php");
                    
20require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/prolog.php");
                    
20require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/prolog.php");
                    
21define("HELP_FILE", "users/user_admin.php");
                    
22$entity_id = "USER";
                    
39//authorize as user
                    
40if($_REQUEST["action"] == "authorize" && check_bitrix_sessid() && $USER->CanDoOperation('edit_php'))
                    
41{
                    
43	$USER->Authorize(intval($_REQUEST["ID"]), false, true, null, false);
                    
44	LocalRedirect("user_admin.php?lang=".LANGUAGE_ID);
                    
45}
                    
47//logout user
                    
48if($_REQUEST["action"] == "logout_user" && check_bitrix_sessid() && $USER->CanDoOperation('edit_php'))
                    
49{
                    
                
img.php https://gitlab.com/alexprowars/bitrix | PHP | 1267 lines
                    
1<?php
                    
2/**
                    
263	$arrayY = array();
                    
264	$arrY = array_unique($arrY);
                    
265	if ($first_null=="Y")
                    
                
nodeattributes.php https://gitlab.com/alexprowars/bitrix | PHP | 660 lines
                    
1<?php
                    
2namespace Bitrix\Landing\Update\Block;
                    
205		$this->dataToUpdate = ($this->dataToUpdate !== '' ? @unserialize($this->dataToUpdate, ['allowed_classes' => false]) : array());
                    
206		$this->codesToStep = array_unique(array_keys($this->dataToUpdate['BLOCKS']));
                    
207		$this->codesToStep = array_slice($this->codesToStep, 0, self::STEP_PORTION);
                    
376//				APPLY changes
                    
377				$nodeClasses = array_unique($nodeClasses);
                    
378				if ($classesChange)
                    
485
                    
486//		if need remove PHP - we must use block content directly, not DOM parser
                    
487		if (
                    
487		if (
                    
488			$this->dataToUpdate['BLOCKS'][$code]['CLEAR_PHP'] &&
                    
489			$this->dataToUpdate['BLOCKS'][$code]['CLEAR_PHP'] == 'Y'
                    
545		{
                    
546			foreach (array_unique($this->status['SITES_TO_UPDATE']) as $siteId)
                    
547			{
                    
                
rights.php https://gitlab.com/alexprowars/bitrix | PHP | 1113 lines
                    
1<?php
                    
2namespace Bitrix\Landing;
                    
459				$operations[$row['ENTITY_ID']][] = mb_substr($row['OPERATION_NAME'], 8);
                    
460				$operations[$row['ENTITY_ID']] = array_unique($operations[$row['ENTITY_ID']]);
                    
461			}
                    
                
user.php https://gitlab.com/alexprowars/bitrix | PHP | 854 lines
                    
1<?
                    
2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/forum/classes/general/user.php");
                    
3
                    
59							$userID[] = intval($valI);
                    
60						$userID = array_unique($userID);
                    
61						if (empty($userID))
                    
                
topic.php https://gitlab.com/alexprowars/bitrix | PHP | 629 lines
                    
1<?
                    
2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/forum/classes/general/topic.php");
                    
3
                    
127		}
                    
128		$arSqlOrder = array_unique($arSqlOrder);
                    
129		DelDuplicateSort($arSqlOrder); 
                    
                
yandex_setup.php https://gitlab.com/alexprowars/bitrix | PHP | 735 lines
                    
18
                    
19IncludeModuleLangFile($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/catalog/export_setup_templ.php');
                    
20IncludeModuleLangFile(__FILE__);
                    
151	{
                    
152		$V = array_unique(array_values($V));
                    
153		$_REQUEST['V'] = $V;
                    
200		"TITLE"=>GetMessage("CATI_ADM_RETURN_TO_LIST_TITLE"),
                    
201		"LINK"=>"/bitrix/admin/cat_export_setup.php?lang=".LANGUAGE_ID,
                    
202		"ICON"=>"btn_list",
                    
250	if (!isset($SETUP_FILE_NAME))
                    
251		$SETUP_FILE_NAME = 'yandex_'.mt_rand(0, 999999).'.php';
                    
252	if (!isset($checkPermissions) || $checkPermissions != 'Y')
                    
359		),
                    
360		"ClearSelected(); changeIblockSites(0); BX('id_ifr').src='/bitrix/tools/catalog_export/yandex_util.php?IBLOCK_ID=0&'+'".bitrix_sessid_get()."';",
                    
361		"ClearSelected(); changeIblockSites(this[this.selectedIndex].value); BX('id_ifr').src='/bitrix/tools/catalog_export/yandex_util.php?IBLOCK_ID='+this[this.selectedIndex].value+'&'+'".bitrix_sessid_get()."';",
                    
                
base.php https://gitlab.com/alexprowars/bitrix | PHP | 866 lines
                    
1<?php
                    
2
                    
263		{
                    
264			$result = array_values(array_unique($result));
                    
265		}
                    
                
helper.php https://gitlab.com/alexprowars/bitrix | PHP | 1871 lines
                    
1<?php
                    
2
                    
119		{
                    
120			$users = array_unique($users);
                    
121		}
                    
                
include.php https://gitlab.com/alexprowars/bitrix | PHP | 967 lines
                    
1<?php
                    
2
                    
71
                    
72		$arTransport = array_unique($arTransport);
                    
73		usort($arTransport, "__SLTransportSort");
                    
127
                    
128		$cache = new \CPHPCache;
                    
129
                    
                
component.php https://gitlab.com/alexprowars/bitrix | PHP | 557 lines
                    
1<?php
                    
2/**
                    
77
                    
78$selectedList = array_unique($selectedList);
                    
79
                    
                
class.php https://gitlab.com/alexprowars/bitrix | PHP | 731 lines
                    
1<?php
                    
2use Bitrix\Main,
                    
180
                    
181				$ids = array_unique(array_merge($ids, $bestsellers));
                    
182			}
                    
223
                    
224			$ids = array_unique(array_merge($ids, $mostviewed));
                    
225		}
                    
239
                    
240		$ids = array_values(array_unique($ids));
                    
241
                    
                
class.php https://gitlab.com/alexprowars/bitrix | PHP | 339 lines
                    
1<?php
                    
2use Bitrix\Main,
                    
59					array('=DATE_TO' => false),
                    
60					array('>DATE_TO' => date($DB->dateFormatToPHP(\CLang::getDateFormat('FULL')), time()))
                    
61				)
                    
211
                    
212		$params['OFFER_TREE_PROPS'][$itemId] = array_unique($offersTreeProps);
                    
213		if(!empty($params['PROPERTY_VALUE'][$itemId]))
                    
216			foreach($params['PROPERTY_VALUE'][$itemId] as &$property)
                    
217				$property = array_unique($property);
                    
218		}
                    
                
Translator.php https://gitlab.com/hacongbang/pusher | PHP | 481 lines
                    
1<?php
                    
2
                    
321        $this->assertValidLocale($locale);
                    
322        $self = $this; // required for PHP 5.3 where "$this" cannot be use()d in anonymous functions. Change in Symfony 3.0.
                    
323        $cache = $this->getConfigCacheFactory()->cache($this->getCatalogueCachePath($locale),
                    
338    /**
                    
339     * This method is public because it needs to be callable from a closure in PHP 5.3. It should be made protected (or even private, if possible) in 3.0.
                    
340     *
                    
348        $content = sprintf(<<<EOF
                    
349<?php
                    
350
                    
399    {
                    
400        return $this->cacheDir.'/catalogue.'.$locale.'.'.sha1(serialize($this->fallbackLocales)).'.php';
                    
401    }
                    
449
                    
450        return array_unique($locales);
                    
451    }
                    
                
class-wcs-report-cache-manager.php https://bitbucket.org/tristangemus/tribe-demo.git | PHP | 357 lines
                    
1<?php
                    
2/**
                    
118		if ( isset( $this->update_events_and_classes[ current_filter() ] ) ) {
                    
119			$this->reports_to_update = array_unique( array_merge( $this->reports_to_update, $this->update_events_and_classes[ current_filter() ] ) );
                    
120		}
                    
148
                    
149				// PHP doesn't support a "next 4am" time format equivalent, so we need to manually handle getting 4am from earlier today (which will always happen when this is run after 4am and before midnight in the site's timezone)
                    
150				if ( $cache_update_timestamp <= gmdate( 'U' ) ) {
                    
216		// Load report class dependencies
                    
217		require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );
                    
218		require_once( WC()->plugin_path() . '/includes/admin/reports/class-wc-admin-report.php' );
                    
                
Process.php https://bitbucket.org/ttphong2612/billigastamplar-new.se.git | PHP | 451 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2018 Magento, Inc. (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
127            if (strpos(str_replace($this->_includeDir, '', $target), '-')
                    
128                || !in_array(substr($source, strlen($source)-4, 4), array('.php'))) {
                    
129                return $this;
                    
199        } else {
                    
200            if (!in_array(substr($source, strlen($source)-4, 4), array('.php'))) {
                    
201                return $this;
                    
297            $arrFiles[$code] = array_merge($arrFiles[$code], $statClasses);
                    
298            $arrFiles[$code] = array_unique($arrFiles[$code]);
                    
299            sort($arrFiles[$code]);
                    
                
extend-yoimg-settings.php https://bitbucket.org/tasshanakagawa/amplifly.git | PHP | 173 lines
                    
1<?php
                    
2if (! defined ( 'ABSPATH' )) {
                    
131		} else {
                    
132			$crop_qualities_arr = array_unique ( $crop_qualities_arr );
                    
133			rsort ( $crop_qualities_arr );
                    
                
dmHelper.php https://github.com/leszek/diem.git | PHP | 335 lines
                    
1<?php
                    
2
                    
179    {
                    
180      $tagOpt['class'] = implode(' ', array_unique($tagOpt['class']));
                    
181    }
                    
                
Optimizer.php https://gitlab.com/datobula/wp | PHP | 271 lines
                    
1<?php
                    
2
                    
58
                    
59        if (PHP_VERSION_ID < 50400 && self::OPTIMIZE_VAR_ACCESS === (self::OPTIMIZE_VAR_ACCESS & $this->optimizers) && !$env->isStrictVariables() && !$env->hasExtension('sandbox')) {
                    
60            if ($this->inABody) {
                    
98                    $nodes = array();
                    
99                    foreach (array_unique($prependedNodes) as $name) {
                    
100                        $nodes[] = new Twig_Node_SetTemp($name, $node->getLine());
                    
                
edit.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 352 lines
                    
1<?php
                    
2
                    
17{
                    
18    Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name );
                    
19    die();
                    
26{
                    
27    Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name );
                    
28    die();
                    
53{
                    
54    Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name );
                    
55    die();
                    
183                    }
                    
184                    $users = array_unique( $users );
                    
185                    sort( $users );
                    
233        {
                    
234            @require_once ( NV_ROOTDIR . "/includes/class/upload.class.php" );
                    
235            
                    
                
admin-notices.inc.php https://gitlab.com/Gashler/dp | PHP | 167 lines
                    
1<?php
                    
2/**
                    
58
                    
59								update_option ("ws_plugin__s2member_notices", c_ws_plugin__s2member_utils_arrays::array_unique ($notices));
                    
60							}
                    
                
survey_template_user.class.php https://bitbucket.org/chamilo/chamilo-survey/ | PHP | 326 lines
                    
1<?php
                    
2namespace repository\content_object\survey;
                    
86        $class = self :: type_to_class($type);
                    
87        require_once dirname(__FILE__) . '/template/' . $type . '/' . $type . '.class.php';
                    
88        return new $class($defaultProperties, $additionalProperties);
                    
281        
                    
282        $hierarchy = array_unique($hierarchy);
                    
283        
                    
299                    $merged_array = array_merge($context_ids, $attached_context_ids);
                    
300                    $parent_child_context_ids[$context_id] = array_unique($merged_array);
                    
301                
                    
304                {
                    
305                    $parent_child_context_ids[$context_id] = array_unique($context_ids);
                    
306                }
                    
                
utils-arrays.inc.php https://gitlab.com/Gashler/dp | PHP | 232 lines
                    
1<?php
                    
2/**
                    
30				/**
                    
31				* Extends ``array_unique()`` to support multi-dimensional arrays.
                    
32				*
                    
38				*/
                    
39				public static function array_unique ($array = FALSE)
                    
40					{
                    
45
                    
46						$array = array_unique ($array);
                    
47
                    
215				* @param int $flags Optional. Can be used to modify the sorting behavior.
                    
216				* 	See: {@link http://www.php.net/manual/en/function.ksort.php}
                    
217				* @return Unlike PHP's ``ksort()``, this function returns the array, and does NOT work on a reference.
                    
                
User.php https://gitlab.com/galaxy-pidev/AllForDealWeb | PHP | 595 lines
                    
1<?php
                    
2
                    
291
                    
292        return array_unique($roles);
                    
293    }
                    
                
import_NS_data_from_other_project.php http://prohits.googlecode.com/svn/trunk/ | PHP | 407 lines
                    
36$DB_index = '';
                    
37$script = "import_NS_data_from_other_project.php";
                    
38// --------------------------
                    
38// --------------------------
                    
39require("../common/site_permission.inc.php");
                    
40require("../common/common_fun.inc.php");
                    
40require("../common/common_fun.inc.php");
                    
41require("common_functions.inc.php");
                    
42require_once("../msManager/is_dir_file.inc.php");
                    
116      $merged_arr = array_merge($tmpArr, $tmpArr_2);
                    
117      $new_arr = array_unique($merged_arr);
                    
118      $new_str = implode(",",$new_arr);
                    
143function passvalue(){
                    
144  theFile = "./mng_set_non_specific.php?order_by=GeneName&filterID=12&frm_TaxID=9606&frm_NS_group_id=<?=$frm_group_name_s?>";
                    
145  opener.window.open(theFile,"_top");
                    
                
mejoramiento_adecuaciones_controller.php http://learning-circles.googlecode.com/svn/trunk/ | PHP | 226 lines
                    
1<?php
                    
2class MejoramientoAdecuacionesController extends AppController {
                    
35		
                    
36		$registros = array_unique($registros);	
                    
37		
                    
101		
                    
102		$nombre_iem2 = array_unique($nombre_iem2);		
                    
103		
                    
                
Store.php https://gitlab.com/btkm/correct_fb | PHP | 699 lines
                    
1<?php
                    
2
                    
484    {
                    
485        $values = array_unique(array_merge($this->get('flash.new', []), $keys));
                    
486
                    
                
permission.php https://gitlab.com/VoyaTrax/vtCMS2.git | PHP | 419 lines
                    
1<?php
                    
2/**
                    
6 * @license        http://www.fsf.org/copyleft/gpl.html GNU public license
                    
7 * @author         Taiwen Jiang (phppp or D.J.) <phppp@users.sourceforge.net>
                    
8 * @since          4.00
                    
13
                    
14defined('NEWBB_FUNCTIONS_INI') || include $GLOBALS['xoops']->path('modules/newbb/include/functions.ini.php');
                    
15define('NEWBB_HANDLER_PERMISSION', 1);
                    
19if (!class_exists('XoopsGroupPermHandler')) {
                    
20    require_once $GLOBALS['xoops']->path('kernel/groupperm.php');
                    
21}
                    
45        if (!isset($this->_handler[$name])) {
                    
46            require_once __DIR__ . "/permission.{$name}.php";
                    
47            $className             = 'NewbbPermission' . ucfirst($name) . 'Handler';
                    
208        $_cachedPerms = $this->loadPermData($gperm_name);
                    
209        $groups       = empty($_cachedPerms[$id]) ? array() : array_unique($_cachedPerms[$id]);
                    
210        unset($_cachedPerms);
                    
                
getcomment.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 312 lines
                    
1<?php
                    
2
                    
167            {
                    
168                $base_url = NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&amp;" . NV_NAME_VARIABLE . "=" . $module_name . "&amp;" . NV_OP_VARIABLE . "=getcomment&amp;list_comment=" . $id;
                    
169                
                    
196                            }
                    
197                            $post_name = "<a href=\"" . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=users&amp;" . NV_OP_VARIABLE . "=edit&amp;userid=" . $row['post_id'] . "\">" . $post_name . "</a>";
                    
198                        }
                    
247						'admin_reply' => $admin_reply, //
                    
248						'edit_link' => NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&amp;" . NV_OP_VARIABLE . "=comment&amp;edit=1&amp;id=" . $row['id'], //
                    
249						'del_link' => NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&amp;" . NV_OP_VARIABLE . "=comment" 
                    
255                    $in = array_keys( $users );
                    
256                    $in = array_unique( $in );
                    
257                    $in = implode( ",", $in );
                    
283                    $in = array_keys( $admins );
                    
284                    $in = array_unique( $in );
                    
285                    $in = implode( ",", $in );
                    
                
Abstract.php https://gitlab.com/blingbang2016/shop | PHP | 287 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 */
                    
83        if ($parentIds) {
                    
84            $processIds = array_unique(array_merge($processIds, $parentIds));
                    
85        }
                    
87        if ($childIds) {
                    
88            $processIds = array_unique(array_merge($processIds, $childIds));
                    
89        }
                    
                
util.php https://gitlab.com/alexprowars/bitrix | PHP | 286 lines
                    
1<?php
                    
2
                    
282
                    
283		return array_unique($result);
                    
284	}
                    
                
Translator.php https://gitlab.com/btkm/correct_fb | PHP | 441 lines
                    
1<?php
                    
2
                    
308        $content = sprintf(<<<EOF
                    
309<?php
                    
310
                    
359    {
                    
360        return $this->cacheDir.'/catalogue.'.$locale.'.'.sha1(serialize($this->fallbackLocales)).'.php';
                    
361    }
                    
409
                    
410        return array_unique($locales);
                    
411    }
                    
                
medias_fonctions.php https://bitbucket.org/re_al_/real.test.spip.git | PHP | 350 lines
                    
1<?php
                    
2
                    
56/**
                    
57 * Retourne la taille en octet d'une valeur de configuration php
                    
58 *
                    
74	}
                    
75	switch ($last) { // The 'G' modifier is available since PHP 5.1.0
                    
76		case 'g':
                    
128 * @return string
                    
129 *     Code PHP compilé de la boucle
                    
130 **/
                    
147		$f = sql_serveur('quote', $boucle->sql_serveur, true);
                    
148		$modes = addslashes(join(',', array_map($f, array_unique($modes))));
                    
149		array_unshift($boucle->where, array("'IN'", "'$id_table.mode'", "'($modes)'"));
                    
                
slides.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 410 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: slides.php 763 2012-01-04 15:07:52Z joomlaworks $
                    
4 * @package		Frontpage Slideshow
                    
218		$IDs = array_filter($IDs);
                    
219		$IDs = array_unique($IDs);
                    
220		$savepath = JPATH_SITE.DS.'media'.DS.'com_fpss';
                    
                
converter.php https://gitlab.com/alexprowars/bitrix | PHP | 223 lines
                    
1<?php
                    
2
                    
190
                    
191						$languages = array_unique(array_merge(
                    
192							$languages,
                    
                
TemplateIterator.php git://github.com/fabpot/symfony.git | PHP | 90 lines
                    
1<?php
                    
2
                    
68
                    
69        return $this->templates = new \ArrayIterator(array_unique($templates));
                    
70    }
                    
                
plupload-image.php https://gitlab.com/hop23typhu/list-theme | PHP | 195 lines
                    
1<?php
                    
2// Prevent loading this file directly
                    
153			$new = (array) $new;
                    
154			return array_unique( array_merge( $old, $new ) );
                    
155		}
                    
173				'max_file_size'			=> wp_max_upload_size() . 'b',
                    
174				'url'					=> admin_url( 'admin-ajax.php' ),
                    
175				'flash_swf_url'			=> includes_url( 'js/plupload/plupload.flash.swf' ),
                    
                
Action.php https://gitlab.com/daigiangaitu91/magento | PHP | 179 lines
                    
1<?php
                    
2/**
                    
103        $this->setData(
                    
104            ['product_ids' => array_unique($productIds), 'attributes_data' => $attrData, 'store_id' => $storeId]
                    
105        );
                    
107        if ($this->_hasIndexableAttributes($attrData)) {
                    
108            $this->_productEavIndexerProcessor->reindexList(array_unique($productIds));
                    
109        }
                    
112        if (!$categoryIndexer->isScheduled()) {
                    
113            $categoryIndexer->reindexList(array_unique($productIds));
                    
114        }
                    
122     * @return bool
                    
123     * @SuppressWarnings(PHPMD.UnusedLocalVariable)
                    
124     */
                    
170        $this->setData(
                    
171            ['product_ids' => array_unique($productIds), 'website_ids' => $websiteIds, 'action_type' => $type]
                    
172        );
                    
                
Category.php https://bitbucket.org/sergiu-tot-fb/vendors.git | PHP | 160 lines
                    
1<?php
                    
2/**
                    
134    {
                    
135        $ids = array_unique($ids);
                    
136
                    
                
pergame.php https://gitlab.com/julienv/joomleague | PHP | 332 lines
                    
1<?php
                    
2/**
                    
3 * @copyright	Copyright (C) 2006-2014 joomleague.at. All rights reserved.
                    
4 * @license		GNU/GPL, see LICENSE.php
                    
5 * Joomla! is free software. This version may have been modified pursuant
                    
8 * other free or open source software licenses.
                    
9 * See COPYRIGHT.php for copyright notices and details.
                    
10 */
                    
14
                    
15require_once(JLG_PATH_ADMIN.DS.'statistics'.DS.'base.php');
                    
16
                    
99		$res = array();
                    
100		foreach (array_unique(array_merge(array_keys($num), array_keys($den))) as $person_id) 
                    
101		{
                    
                
host_view.php git://pkgs.fedoraproject.org/ganglia | PHP | 266 lines
                    
1<?php
                    
2include_once("./global.php");
                    
41// Remove duplicates
                    
42$reports["included_reports"] = array_unique($reports["included_reports"]);
                    
43$reports["excluded_reports"] = array_unique($reports["excluded_reports"]);
                    
54  if ( ! in_array( $report_name, $reports["excluded_reports"] ) ) {
                    
55    $graph_anchor = "<a href=\"./graph_all_periods.php?$graph_args&amp;g=" . $report_name . "&amp;z=large&amp;c=$cluster_url\">";
                    
56
                    
58
                    
59    $csvBtn = "<button title=\"Export to CSV\" class=\"cupid-green\" onClick=\"javascript:location.href='./graph.php?$graph_args&amp;g={$report_name}&amp;z=large&amp;c=$cluster_url&amp;csv=1';return false;\">CSV</button>";
                    
60
                    
60
                    
61    $jsonBtn = "<button title=\"Export to JSON\" class=\"cupid-green\" onClick=\"javascript:location.href='./graph.php?$graph_args&amp;g={$report_name}&amp;z=large&amp;c=$cluster_url&amp;json=1';return false;\">JSON</button>";
                    
62
                    
77        $optional_reports .= $addMetricBtn . '&nbsp;';
                    
78      $optional_reports .= $csvBtn . '&nbsp;' . $jsonBtn . '&nbsp;' .$inspectBtn . '&nbsp;' . $showEventBtn . "<br />" . $graph_anchor . "<img id=\"" . $graphId . "\" $additional_cluster_img_html_args border=\"0\" title=\"$cluster_url\" SRC=\"./graph.php?$graph_args&amp;g=" . $report_name ."&amp;z=medium&amp;c=$cluster_url\" style=\"margin-top:5px;\" /></a></div>";
                    
79    }
                    
                
entry.php https://gitlab.com/Suhailgit/Project | PHP | 93 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * @version $Id: entry.php 1157 2015-11-20 04:30:11Z dd32 $
                    
6 * @package pomo
                    
39	 * 	- extracted_comments (string) -- comments left by developers
                    
40	 * 	- references (array) -- places in the code this strings is used, in relative_to_root_path/file.php:linenum form
                    
41	 * 	- flags (array) -- flags like php-format
                    
58	/**
                    
59	 * PHP4 constructor.
                    
60	 */
                    
84	function merge_with(&$other) {
                    
85		$this->flags = array_unique( array_merge( $this->flags, $other->flags ) );
                    
86		$this->references = array_unique( array_merge( $this->references, $other->references ) );
                    
                
shortcodes.php https://gitlab.com/hop23typhu/list-theme | PHP | 498 lines
                    
1<?php
                    
2
                    
32
                    
33		$tags = array_filter( array_unique( (array) $tag ) );
                    
34
                    
300
                    
301		$options = array_filter( array_unique( $options ) );
                    
302
                    
463		if ( $args['multiple'] ) {
                    
464			$values = array_unique( $values );
                    
465			return $values;
                    
                
class-wp-themes-list-table.php git://github.com/wordpress/wordpress.git | PHP | 361 lines
                    
1<?php
                    
2/**
                    
111					__( 'You only have one theme enabled for this site right now. Visit the Network Admin to <a href="%s">enable</a> more themes.' ),
                    
112					network_admin_url( 'site-themes.php?id=' . $blog_id )
                    
113				);
                    
122					__( 'You only have one theme installed right now. Live a little! You can choose from over 1,000 free themes in the WordPress Theme Directory at any time: just click on the <a href="%s">Install Themes</a> tab above.' ),
                    
123					admin_url( 'theme-install.php' )
                    
124				);
                    
239
                    
240			/** This filter is documented in wp-admin/includes/class-wp-ms-themes-list-table.php */
                    
241			$actions       = apply_filters( "theme_action_links_{$stylesheet}", $actions, $theme, 'all' );
                    
248			<span class="screenshot hide-if-customize">
                    
249				<?php if ( $screenshot ) : ?>
                    
250					<img src="<?php echo esc_url( $screenshot ); ?>" alt="" />
                    
278			<div class="themedetaildiv hide-if-js">
                    
279				<p><strong><?php _e( 'Version:' ); ?></strong> <?php echo $version; ?></p>
                    
280				<p><?php echo $theme->display( 'Description' ); ?></p>
                    
                
Full.php https://gitlab.com/daigiangaitu91/magento | PHP | 450 lines
                    
1<?php
                    
2/**
                    
11/**
                    
12 * @SuppressWarnings(PHPMD.TooManyFields)
                    
13 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
177     * @param \Magento\CatalogSearch\Model\Indexer\Fulltext\Action\IndexIteratorFactory $indexIteratorFactory
                    
178     * @SuppressWarnings(PHPMD.ExcessiveParameterList)
                    
179     */
                    
271     *
                    
272     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
273     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
277        if ($productIds !== null) {
                    
278            $productIds = array_unique(array_merge($productIds, $this->getProductIdsFromParents($productIds)));
                    
279        }
                    
                
bookmark.php https://gitlab.com/endomorphosis/falkenstein | PHP | 408 lines
                    
1<?php
                    
2/**
                    
36			if ( $_bookmark ) {
                    
37				$_bookmark->link_category = array_unique( wp_get_object_terms( $_bookmark->link_id, 'link_category', array( 'fields' => 'ids' ) ) );
                    
38				wp_cache_add( $_bookmark->link_id, $_bookmark, 'bookmark' );
                    
200			wp_cache_set( 'get_bookmarks', $cache, 'bookmark' );
                    
201			/** This filter is documented in wp-includes/bookmark.php */
                    
202			return apply_filters( 'get_bookmarks', array(), $r );
                    
283
                    
284	/** This filter is documented in wp-includes/bookmark.php */
                    
285	return apply_filters( 'get_bookmarks', $results, $r );
                    
373	if ( 'edit' == $context ) {
                    
374		/** This filter is documented in wp-includes/post.php */
                    
375		$value = apply_filters( "edit_$field", $value, $bookmark_id );
                    
382	} else if ( 'db' == $context ) {
                    
383		/** This filter is documented in wp-includes/post.php */
                    
384		$value = apply_filters( "pre_$field", $value );
                    
                
GridFieldDataColumns.php git://github.com/silverstripe/sapphire.git | PHP | 289 lines
                    
1<?php
                    
2/**
                    
40
                    
41		$columns = array_unique($columns);
                    
42	}
                    
103	 *
                    
104	 * Caution: Make sure to escape special php-characters like in a normal php-statement.
                    
105	 * Example:	"myFieldName" => '<a href=\"custom-admin/$ID\">$ID</a>'.
                    
                
DoctrineExtensionTest.php https://gitlab.com/TouirMohamedMarwen/Symfony2 | PHP | 284 lines
                    
1<?php
                    
2
                    
20 */
                    
21class DoctrineExtensionTest extends \PHPUnit_Framework_TestCase
                    
22{
                    
215
                    
216        foreach (array_unique($expectedCalls) as $call) {
                    
217            $this->assertContains($call, $actualCalls);
                    
                
OperatorSpacingSniff.php https://gitlab.com/fogteen/gasaon | PHP | 231 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 */
                    
25 * @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
                    
26 * @license   https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
                    
27 * @version   Release: @package_version@
                    
27 * @version   Release: @package_version@
                    
28 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
29 */
                    
68     *
                    
69     * @param PHP_CodeSniffer_File $phpcsFile The current file being checked.
                    
70     * @param int                  $stackPtr  The position of the current token in
                    
74     */
                    
75    public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
                    
76    {
                    
                
sitealias.drush.inc git://github.com/jyr/MNPP.git | Pascal | 330 lines
                    
1<?php
                    
2
                    
4 * @file
                    
5 *   Site alias commands. @see example.drushrc.php for details.
                    
6 */
                    
78  $base_path = drush_get_context('DRUSH_DRUPAL_ROOT') . '/sites';
                    
79  $files = drush_scan_directory($base_path, '/settings\.php/', array('.', '..', 'CVS', 'all'));
                    
80  foreach ($files as $filename => $info) {
                    
80  foreach ($files as $filename => $info) {
                    
81    if ($info->basename == 'settings.php') {
                    
82      $alias_record = drush_sitealias_build_record_from_settings_file($filename);
                    
194  }
                    
195  $site_specs = array_unique($site_specs);
                    
196  asort($site_specs);
                    
196  asort($site_specs);
                    
197  drush_print_pipe(array_unique($site_specs));
                    
198  if (!empty($rows)) {
                    
                
GettextExtractor.php git://github.com/karelklima/gettext-extractor.git | PHP | 361 lines
                    
1<?php
                    
2
                    
17
                    
18if (version_compare(PHP_VERSION, '5.2.2', '<'))
                    
19    exit('GettextExtractor needs PHP 5.2.2 or newer');
                    
37    protected $filters = array(
                    
38        'php' => array('PHP'),
                    
39        'phtml'	=> array('PHP', 'NetteLatte')
                    
170    {
                    
171    	$inputFiles = array_unique($inputFiles);
                    
172    	foreach ($inputFiles as $inputFile)
                    
213        if (!class_exists($filter)) {
                    
214            $filter_file = dirname(__FILE__) . '/Filters/' . $filter . ".php";
                    
215            if (!file_exists($filter_file)) {
                    
                
bookmark.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 268 lines
                    
1<?php
                    
2/**
                    
106
                    
107	return array_unique( $cats );
                    
108}
                    
230	$link_categories = array_map( 'intval', $link_categories );
                    
231	$link_categories = array_unique( $link_categories );
                    
232
                    
                
 

Source

Language