PageRenderTime 460ms queryTime 222ms sortTime 5ms getByIdsTime 43ms findMatchingLines 62ms

100+ results results for 'php array_unique repo:locdinh/mywebsite' (460 ms)

Not the results you expected?
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{
                    
                
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) {
                    
                
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
                    
                
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
                    
                
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
                    
                
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
                    
                
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 );
                    
                
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
                    
                
RouteCollection.php https://gitlab.com/krlosnando/cenfo-crm.git | PHP | 344 lines
                    
1<?php
                    
2
                    
275
                    
276        return array_unique($resources);
                    
277    }
                    
                
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 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	}
                    
                
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		}
                    
                
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
                    
                
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    }
                    
                
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]);
                    
                
export.php http://timoseven.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>
                    
                
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    }
                    
                
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            
                    
                
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                }
                    
                
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		
                    
                
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 );
                    
                
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)'"));
                    
                
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    }
                    
                
Category.php https://bitbucket.org/sergiu-tot-fb/vendors.git | PHP | 160 lines
                    
1<?php
                    
2/**
                    
134    {
                    
135        $ids = array_unique($ids);
                    
136
                    
                
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    }
                    
                
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>
                    
                
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>'.
                    
                
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)) {
                    
                
script_combiner.php https://github.com/plastic/Cake-boilerplate.git | PHP | 325 lines
                    
1<?php 
                    
2/**
                    
8// Include the stand-alone configuration file if it exists.
                    
9if (is_file(CONFIGS . 'script_combiner.php')) {
                    
10    Configure::load('script_combiner');
                    
214        if (isset($urlMatches[1])) {
                    
215            $urlMatches = array_unique($urlMatches[1]);
                    
216        } else {
                    
                
DependencyBuilder.php https://bitbucket.org/strudlik/gitagent.git | PHP | 139 lines
                    
1<?php
                    
2
                    
115
                    
116        return array_unique($packages);
                    
117    }
                    
136
                    
137        return array_unique(array_merge($missingPackages, $missingOptionalPackages));
                    
138    }
                    
                
point.model.php http://xe-core.googlecode.com/svn/trunk/ | PHP | 196 lines
                    
1<?php
                    
2/**
                    
98		if(count($member_srls)==0) return;
                    
99		array_unique($member_srls);
                    
100
                    
193}
                    
194/* End of file point.model.php */
                    
195/* Location: ./modules/point/point.model.php */
                    
                
ClassCollectionLoader.php https://bitbucket.org/razum-io/ns-hub.git | PHP | 444 lines
                    
38    {
                    
39        // each $name can only be loaded once per PHP process
                    
40        if (isset(self::$loaded[$name])) {
                    
55
                    
56        $classes = array_unique($classes);
                    
57
                    
135            '(?:
                    
136               ^<\?php\s.declare.\(.strict_types.=.1.\).;
                    
137               | \b__halt_compiler.\(.\)
                    
179
                    
180                $c = self::fixNamespaceDeclarations('<?php '.$c);
                    
181                $c = preg_replace('/^\s*<\?php/', '', $c);
                    
259        if (PHP_VERSION_ID >= 70000) {
                    
260            // PHP 7 memory manager will not release after token_get_all(), see https://bugs.php.net/70098
                    
261            unset($tokens, $rawChunk);
                    
                
Markdown.php https://bitbucket.org/rogersantosferreira/bigfeel_web.git | PHP | 160 lines
                    
1<?php
                    
2
                    
131    {
                    
132        return array_unique(array_merge($this->componentPaths, [
                    
133            __DIR__.'/resources/views',
                    
                
Node.php https://bitbucket.org/svanda777/recodex-api-with-lti.git | PHP | 219 lines
                    
1<?php
                    
2
                    
138
                    
139    return array_unique($taskIds);
                    
140  }
                    
                
Translator.php https://bitbucket.org/fanch1/testlb.git | PHP | 141 lines
                    
1<?php
                    
2
                    
91        $locales = array_merge($this->getFallbackLocales(), array($this->getLocale()), $this->resourceLocales);
                    
92        foreach (array_unique($locales) as $locale) {
                    
93            // reset catalogue in case it's already loaded during the dump of the other locales.
                    
                
String.class.php http://iiccms.googlecode.com/svn/trunk/ | PHP | 256 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
2// +----------------------------------------------------------------------
                    
3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
                    
4// +----------------------------------------------------------------------
                    
4// +----------------------------------------------------------------------
                    
5// | Copyright (c) 2009 http://thinkphp.cn All rights reserved.
                    
6// +----------------------------------------------------------------------
                    
188			}
                    
189			$unqiue = array_unique($rand);
                    
190			if(count($unqiue)==count($rand)) {
                    
196			}
                    
197			$rand = array_slice(array_unique ($rand),0,$number);
                    
198			return $rand;
                    
                
Process.php https://gitlab.com/bbakalov/young_soldier | 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-2015 X.commerce, 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]);
                    
                
ImportFichierCliqueurs.php https://bitbucket.org/hfab/webservice.git | PHP | 139 lines
                    
1<?php
                    
2
                    
118        // avoir si ca marche
                    
119        // $dataset = array_unique($dataset);
                    
120
                    
                
add.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 366 lines
                    
1<?php
                    
2
                    
89                $links = array_map( "trim", $links );
                    
90                $links = array_unique( $links );
                    
91                
                    
116    {
                    
117        $array['linkdirect'] = array_unique( $array['linkdirect'] );
                    
118    }
                    
219            nv_insert_logs( NV_LANG_DATA, $module_name, 'log_add', " ", $admin_info['userid'] );
                    
220            Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name );
                    
221            exit();
                    
246{
                    
247    Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=cat&add=1" );
                    
248    exit();
                    
280{
                    
281    require_once ( NV_ROOTDIR . '/' . NV_EDITORSDIR . '/' . NV_EDITOR . '/nv.php' );
                    
282}
                    
                
User.php https://gitlab.com/longphu/drupal8.git | PHP | 556 lines
                    
1<?php
                    
2
                    
231    $roles[] = $rid;
                    
232    $this->set('roles', array_unique($roles));
                    
233  }
                    
                
shBrushPhp.js https://github.com/robhurring/snippets.git | 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', 'phps'];
                    
92
                    
                
db.class.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 438 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
2// +----------------------------------------------------------------------
                    
3// | ?????????? (Build on ThinkPHP)
                    
4// +----------------------------------------------------------------------
                    
259			}
                    
260			$item_list = array_unique($item_list);
                    
261			$item_list_tmp = '';
                    
                
Type.hx git://github.com/MarcWeber/haxe-compiler-experiments.git | Haxe | 266 lines
                    
120			}
                    
121			__php__("php_Boot::$skip_constructor = false");
                    
122			return i;
                    
164		");
                    
165		return untyped __php__("new _hx_array(array_values(array_unique($r)))");
                    
166	}
                    
185		");
                    
186		return untyped __php__("new _hx_array(array_unique($r))");
                    
187	}
                    
226				if(getEnum(untyped __php__("$a->params[$i]")) != null) {
                    
227					if(!untyped enumEq(__php__("$a->params[$i]"),__php__("$b->params[$i]")))
                    
228						return false;
                    
229				} else {
                    
230					if(!untyped __call__("_hx_equal", __php__("$a->params[$i]"),__php__("$b->params[$i]")))
                    
231						return false;
                    
                
PhpMatcherDumper.php https://github.com/spring/spring-website.git | PHP | 378 lines
                    
17/**
                    
18 * PhpMatcherDumper creates a PHP class able to match URLs for a given set of routes.
                    
19 *
                    
23 */
                    
24class PhpMatcherDumper extends MatcherDumper
                    
25{
                    
26    /**
                    
27     * Dumps a set of routes to a PHP class.
                    
28     *
                    
35     *
                    
36     * @return string A PHP class representing the matcher class
                    
37     */
                    
82     *
                    
83     * @return string Match method as PHP code
                    
84     */
                    
                
API.php https://bitbucket.org/lewisdorigo/firefish.git | PHP | 313 lines
                    
1<?php namespace Dorigo\FireFish;
                    
2
                    
141        }
                    
142        array_unique($ids);
                    
143
                    
303        } else if($expiry < 0) {
                    
304            $expiry = PHP_INT_MAX;
                    
305        }
                    
                
AkLocaleManager.php http://akelosframework.googlecode.com/svn/trunk/ | PHP | 389 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
                    
22
                    
23require_once(AK_LIB_DIR.DS.'AkObject.php');
                    
24
                    
50            while (false !== ($entry = $d->read())) {
                    
51                if (preg_match('/\\.php$/', $entry)){
                    
52                    $locale = str_replace('.php','',$entry);
                    
96        }
                    
97        return array_unique($browser_languages);
                    
98    }
                    
155        $used_entries = AkLocaleManager::getUsedLanguageEntries();
                    
156        require(AK_CONFIG_DIR.DS.'locales'.DS.AK_FRAMEWORK_LANGUAGE.'.php');
                    
157        $core_dictionary = $dictionary;
                    
164                    $controller = $k;
                    
165                    $module_lang_file = AK_APP_DIR.DS.'locales'.DS.$controller.DS.AK_FRAMEWORK_LANGUAGE.'.php';
                    
166                    if(is_file($module_lang_file)){
                    
                
inventory_restock.php http://tracmor.googlecode.com/svn/trunk/ | PHP | 182 lines
                    
1<?php
                    
2require_once('../includes/prepend.inc.php');
                    
6  // authenticate error
                    
7	QApplication::Redirect('./index.php');
                    
8}
                    
21	*/
                    
22	$arrInventoryCodeQuantity = array_unique(explode('#',$_POST['result']));
                    
23	
                    
135			
                    
136			$strWarning .= "Your transaction has successfully completed<br /><a href='index.php'>Main Menu</a> | <a href='inventory_menu.php'>Inventory Menu</a><br />";
                    
137			//Remove that flag when transaction is compelete or exists some errors
                    
158
                    
159require_once('./includes/header.inc.php');
                    
160?>
                    
161
                    
162  <div id="warning"><?php echo $strWarning; ?></div>
                    
163<?php
                    
                
useredit.php https://gitlab.com/BGCX067/ezcommunity2-svn-to-git | PHP | 422 lines
                    
1<?php
                    
2// 
                    
2// 
                    
3// $Id: useredit.php,v 1.34 2001/10/05 09:42:43 bf Exp $
                    
4//
                    
25
                    
26include_once( "classes/INIFile.php" );
                    
27include_once( "classes/eztemplate.php" );
                    
27include_once( "classes/eztemplate.php" );
                    
28include_once( "classes/ezhttptool.php" );
                    
29
                    
32
                    
33$error = new INIFIle( "ezuser/admin/intl/" . $Language . "/useredit.php.ini", false );
                    
34
                    
34
                    
35include_once( "ezmail/classes/ezmail.php" );
                    
36include_once( "classes/ezlog.php" );
                    
                
uploaddkp.php http://wowroster-addons.googlecode.com/svn/trunk/ | PHP | 441 lines
                    
21require('../config/site.php');
                    
22require('config/adminClass.php');
                    
23$ndkp = new nurfedAdmin;
                    
127	$unknown_player = array_unique($unknown_player);
                    
128	$unknown_item   = array_unique($unknown_item);
                    
129	$meta_attend    = array_unique($meta_attend);
                    
168				<div id='rightcontent'>
                    
169				<?php include('../includes/newsitems.php'); ?>
                    
170				<div class="break"></div>
                    
170				<div class="break"></div>
                    
171				<?php include('../includes/moreNDKP.php'); ?>
                    
172				</div>
                    
319	print '<br /><i>This record has already been added</i> ';
                    
320	print ' [<a href="edit-timeClock.php?id=' . $record . '">edit</a>]';
                    
321}
                    
                
RouteCollection.php https://bitbucket.org/jorgedavidolmedo/backup_bancard.git | PHP | 324 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://cakephp.org CakePHP(tm) Project
                    
12 * @since         3.0.0
                    
12 * @since         3.0.0
                    
13 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
14 */
                    
315        if ($merge) {
                    
316            $extensions = array_unique(array_merge(
                    
317                $this->_extensions,
                    
                
BannersController.php https://bitbucket.org/ALandazabal/software-seminario.git | PHP | 322 lines
                    
1<?php
                    
2
                    
6	 * @var string the default layout for the views. Defaults to '//layouts/column2', meaning
                    
7	 * using two-column layout. See 'protected/views/layouts/column2.php'.
                    
8	 */
                    
39		$controllers=explode(',',$model->permiso);
                    
40		$unico=array_unique($controllers);
                    
41		$cont_act=array();
                    
                
FunctionCommentThrowTagSniff.php git://github.com/squizlabs/PHP_CodeSniffer.git | PHP | 215 lines
                    
14 * @license   http://matrix.squiz.net/developer/tools/php_cs/licence 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();
                    
                
ctl.messenger.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 333 lines
                    
1<?php
                    
2define('MANUAL_SEND','MANUAL_SEND');
                    
43        
                    
44        $this->begin('index.php?ctl=member/messenger&act=outbox&p[0]='.$sender);
                    
45        $mdl = $this->system->loadModel('resources/message');
                    
55        if($ret){
                    
56            $this->splash('success','index.php?ctl=member/messenger&act=index');
                    
57        }else{
                    
57        }else{
                    
58            $this->splash('failed','index.php?ctl=member/messenger&act=index');
                    
59        }
                    
64        if ($messenger->saveActions($_POST['actdo'])) {
                    
65            $this->splash('success', 'index.php?ctl=member/messenger&act=index');
                    
66        }else{
                    
66        }else{
                    
67            $this->splash('failed','index.php?ctl=member/messenger&act=index');
                    
68        }
                    
                
Report.class.php http://praticarh.googlecode.com/svn/trunk/ | PHP | 371 lines
                    
1<?php 
                    
2
                    
2
                    
3include_once ROOT.'config/config.inc.php';
                    
4include_once ROOT.'lib/LoginSystem/Visit.class.php';
                    
4include_once ROOT.'lib/LoginSystem/Visit.class.php';
                    
5include_once ROOT.'lib/LoginSystem/User.class.php';
                    
6include_once ROOT.'lib/CandidatoProcessoSeletivo.class.php';
                    
7
                    
8include_once ROOT.'plugins/getLastDayOfMonth.function.php';
                    
9include_once ROOT.'plugins/getDateInterval.function.php';
                    
351					
                    
352				$this->months = array_unique($this->months);
                    
353				$this->years = array_unique($this->years);
                    
                
repository_shared_content_objects_browser_table_cell_renderer.class.php https://bitbucket.org/chamilo/chamilo-repository-dev/ | PHP | 186 lines
                    
1<?php
                    
2namespace repository;
                    
20/**
                    
21 * $Id: repository_shared_content_objects_browser_table_cell_renderer.class.php 204 2009-11-13 12:51:30Z kariboe $
                    
22 * @package repository.lib.repository_manager.component.browser.shared_content_objects_browser
                    
23 */
                    
24require_once dirname(__FILE__) . '/repository_shared_content_objects_browser_table_column_model.class.php';
                    
25require_once dirname(__FILE__) . '/../../../../content_object_table/default_shared_content_objects_table_cell_renderer.class.php';
                    
158        
                    
159        $shared_users = array_unique($target_entities[UserEntity :: ENTITY_TYPE]);
                    
160        $shared_groups = array_unique($target_entities[PlatformGroupEntity :: ENTITY_TYPE]);
                    
                
EnumerationTest.php git://github.com/yandod/candycane.git | PHP | 179 lines
                    
1<?php
                    
2App::uses('Enumeration', 'Model');
                    
68        $extractData = Set::extract("{n}.Enumeration.opt", $data);
                    
69        $this->assertEqual(1, count(array_unique($extractData)));
                    
70
                    
76        $extractData = Set::extract("{n}.Enumeration.opt", $data);
                    
77        $this->assertEqual(1, count(array_unique($extractData)));
                    
78
                    
84        $extractData = Set::extract("{n}.Enumeration.opt", $data);
                    
85        $this->assertEqual(1, count(array_unique($extractData)));
                    
86    }
                    
                
Container.php git://github.com/eryx/php-framework-benchmark.git | PHP | 459 lines
                    
1<?php
                    
2
                    
281
                    
282        return array_unique(array_merge($ids, array_keys($this->services)));
                    
283    }
                    
                
featured-content.php git://github.com/wordpress/wordpress.git | PHP | 518 lines
                    
1<?php
                    
2/**
                    
240			$featured = array_merge( (array) $post__not_in, $featured );
                    
241			$featured = array_unique( $featured );
                    
242		}
                    
384					__( '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' ),
                    
385					esc_url( add_query_arg( 'tag', _x( 'featured', 'featured content default tag slug', 'twentyfourteen' ), admin_url( 'edit.php' ) ) ),
                    
386					admin_url( 'edit.php?show_sticky=1' )
                    
                
ForbiddenFunctionsSniff.php git://github.com/jonswar/perl-code-tidyall.git | PHP | 239 lines
                    
12
                    
13namespace PHP_CodeSniffer\Standards\Generic\Sniffs\PHP;
                    
14
                    
111     *
                    
112     * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
                    
113     * @param int                         $stackPtr  The position of the current token in
                    
119    {
                    
120        $tokens = $phpcsFile->getTokens();
                    
121
                    
141        if ($tokens[$prevToken]['code'] === T_NS_SEPARATOR) {
                    
142            $prevToken = $phpcsFile->findPrevious(T_WHITESPACE, ($prevToken - 1), null, true);
                    
143            if ($tokens[$prevToken]['code'] === T_STRING) {
                    
197     *
                    
198     * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
                    
199     * @param int                         $stackPtr  The position of the forbidden function
                    
                
CommentViewBuilder.php https://bitbucket.org/aswinvk28/smartpan-stock-drupal.git | PHP | 347 lines
                    
1<?php
                    
2
                    
99    }
                    
100    $this->entityManager->getStorageController('user')->loadMultiple(array_unique($uids));
                    
101
                    
                
exclude_pages.php https://github.com/firebelly/Radio-Arte-Wordpress.git | PHP | 325 lines
                    
1<?php
                    
2/*
                    
44	// SWTODO: Actually, you can create a page with an address of wp-admin (which is then inaccessible), I consider this a bug in WordPress (which I may file a report for, and patch, another time).
                    
45	if ( strpos( $_SERVER[ 'PHP_SELF' ], 'wp-admin' ) !== false ) return $pages;
                    
46	$excluded_ids = ep_get_excluded_ids();
                    
61	// Ensure the array only has unique values
                    
62	$delete_ids = array_unique( $excluded_ids );
                    
63	
                    
99{
                    
100	// PHP 5 would be much nicer here, we could use foreach by reference, ah well.
                    
101	$length = count($pages);
                    
176		// De-dupe the array, in case it was there already
                    
177		$excluded_ids = array_unique( $excluded_ids );
                    
178	}
                    
218		echo __('An ancestor of this page is excluded, so this page is too. ');
                    
219		echo '<a href="page.php?action=edit&amp;post='.$nearest_excluded_ancestor.'"';
                    
220		echo ' title="'.__('edit the excluded ancestor').'">'.__('Edit ancestor').'</a>.</div>';
                    
                
WordsFinder.php https://bitbucket.org/leminhtamboy/wisi.git | PHP | 345 lines
                    
1<?php
                    
2/**
                    
164        $words = array_merge($this->_words, $words);
                    
165        $this->_words = array_unique($words);
                    
166        return $this;
                    
214            }
                    
215            $this->_whitelist[$newPath] = array_unique($newWords);
                    
216        }
                    
255     * @return array
                    
256     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
257     */
                    
                
admin-db.php http://core.svn.wordpress.org/ | PHP | 526 lines
                    
1<?php
                    
2
                    
441
                    
442	return array_unique($result);
                    
443}
                    
450
                    
451	$link_categories = array_unique($link_categories);
                    
452
                    
461	} else {
                    
462		$old_categories = array_unique($old_categories);
                    
463	}
                    
492	// Update category counts.
                    
493	$all_affected_cats = array_unique(array_merge($link_categories, $old_categories));
                    
494	foreach ( $all_affected_cats as $cat_id ) {
                    
                
control.php http://goodgirl.googlecode.com/svn/ | PHP | 351 lines
                    
1<?php                                                      /* `,
                    
2                                                           ,\, #
                    
29
                    
30        cache::remove('sql/schema/'.$this->table.'.php');
                    
31        return self::query($query)->exec();
                    
75            if (self::_is_HABTM($k)){
                    
76                $v = array_unique($v);
                    
77                sort($v);
                    
198
                    
199        if ($multiple = array_unique($this->multiple)){
            $class->select[] = $this->primary_key.' as __';
                    
200
                    
                
Attribute.php https://bitbucket.org/sergiu-tot-fb/vendors.git | PHP | 420 lines
                    
1<?php
                    
2/**
                    
24 */
                    
25#require_once 'Zend/Ldap/Converter.php';
                    
26
                    
27/** @see Zend_Crypt_Math */
                    
28require_once 'Zend/Crypt/Math.php';
                    
29
                    
151        if (!isset($data[$attribName])) return;
                    
152        $data[$attribName] = array_values(array_unique($data[$attribName]));
                    
153    }
                    
217    /**
                    
218     * Converts a PHP data type into its LDAP representation
                    
219     *
                    
221     * @param          mixed $value
                    
222     * @return         string|null - null if the PHP data type cannot be converted.
                    
223     */
                    
                
BlocksTable.php git://github.com/QuickAppsCMS/QuickApps-CMS.git | PHP | 374 lines
                    
1<?php
                    
2/**
                    
117
                    
118        $notIn = array_unique($ids);
                    
119        $notIn = empty($notIn) ? ['0'] : $notIn;
                    
203                'rule' => function ($value, $context) {
                    
204                    return in_array($value, ['except', 'only', 'php']);
                    
205                },
                    
208            ->allowEmpty('pages')
                    
209            ->add('pages', 'validPHP', [
                    
210                'rule' => function ($value, $context) {
                    
210                'rule' => function ($value, $context) {
                    
211                    if (!empty($context['data']['visibility']) && $context['data']['visibility'] === 'php') {
                    
212                        return strpos($value, '<?php') !== false && strpos($value, '?>') !== false;
                    
216                },
                    
217                'message' => __d('block', 'Invalid PHP code, make sure that tags "<?php" & "?>" are present.')
                    
218            ])
                    
                
DataProvider.php https://bitbucket.org/tsn-AlekseyD/tsn-module.git | PHP | 127 lines
                    
1<?php
                    
2/**
                    
116    {
                    
117        return array_unique($this->_relatedCollection->getProductIds());
                    
118    }
                    
                
suspend.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 324 lines
                    
1<?php
                    
2
                    
13{
                    
14	Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name );
                    
15	die();
                    
21{
                    
22	Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name );
                    
23	die();
                    
29{
                    
30	Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name );
                    
31	die();
                    
37{
                    
38	Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name );
                    
39	die();
                    
175			}
                    
176			Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=suspend&id=" . $id );
                    
177		}
                    
                
FieldDefinitionIntegrityTest.php git://github.com/drupal/drupal.git | PHP | 212 lines
                    
1<?php
                    
2
                    
208
                    
209    return array_unique(NestedArray::mergeDeep(array_keys($modules), $dependencies));
                    
210  }
                    
                
shBrushPhp.js git://github.com/daylightstudio/FUEL-CMS.git | JavaScript | 92 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
                    
                
Lint_function.php git://github.com/robotis/PHPLinter.git | PHP | 90 lines
                    
1<?php
                    
2/**
                    
5----------------------------------------------------------------------+
                    
6*  @file 			Lint_function.php
                    
7*  @author 			J?hann T. Mar?usson <jtm@robot.is>
                    
8*  @since 		    Oct 29, 2011
                    
9*  @package 		PHPLinter
                    
10*  @copyright     
                    
10*  @copyright     
                    
11*    phplinter is free software: you can redistribute it and/or modify
                    
12*    it under the terms of the GNU General Public License as published by
                    
24*/
                    
25namespace PHPLinter;
                    
26class Lint_function extends BaseLint implements ILint {
                    
73		}
                    
74		$locals = array_unique($_locals);
                    
75		$compares = array(
                    
                
bookmark.php https://github.com/marshall/webkit_titanium.git | PHP | 346 lines
                    
1<?php
                    
2/**
                    
23	$link = $wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->links WHERE link_id = %d LIMIT 1", $bookmark_id));
                    
24	$link->link_category = array_unique( wp_get_object_terms($link->link_id, 'link_category', 'fields=ids') );
                    
25
                    
                
FileLayout.php https://gitlab.com/iromanos/joomad-gradle | PHP | 678 lines
                    
1<?php
                    
2/**
                    
279		{
                    
280			$includePaths = array_unique(array_merge($paths, $includePaths));
                    
281		}
                    
437
                    
438		$this->setSuffixes(array_unique($suffixes));
                    
439
                    
596
                    
597		// Search for suffixed versions. Example: tags.j31.php
                    
598		if ($suffixes)
                    
603			{
                    
604				$rawPath  = str_replace('.', '/', $this->layoutId) . '.' . $suffix . '.php';
                    
605				$this->addDebugMessage('<strong>Searching layout for:</strong> ' . $rawPath);
                    
618		// Standard version
                    
619		$rawPath  = str_replace('.', '/', $this->layoutId) . '.php';
                    
620		$this->addDebugMessage('<strong>Searching layout for:</strong> ' . $rawPath);
                    
                
ClassCollectionLoader.php https://bitbucket.org/Atymoshenko/vws-on-symfony-3.git | PHP | 444 lines
                    
38    {
                    
39        // each $name can only be loaded once per PHP process
                    
40        if (isset(self::$loaded[$name])) {
                    
55
                    
56        $classes = array_unique($classes);
                    
57
                    
135            '(?:
                    
136               ^<\?php\s.declare.\(.strict_types.=.1.\).;
                    
137               | \b__halt_compiler.\(.\)
                    
179
                    
180                $c = self::fixNamespaceDeclarations('<?php '.$c);
                    
181                $c = preg_replace('/^\s*<\?php/', '', $c);
                    
259        if (\PHP_VERSION_ID >= 70000) {
                    
260            // PHP 7 memory manager will not release after token_get_all(), see https://bugs.php.net/70098
                    
261            unset($tokens, $rawChunk);
                    
                
MasterServer.php git://github.com/koraktor/steam-condenser-php.git | PHP | 204 lines
                    
1<?php
                    
2/**
                    
7 *
                    
8 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
                    
9 */
                    
191
                    
192        return array_unique($serverArray, SORT_REGULAR);
                    
193    }
                    
                
url_matcher1.php git://github.com/symfony/symfony.git | PHP | 313 lines
                    
1<?php
                    
2
                    
309
                    
310        throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
                    
311    }
                    
                
DoctrineExtensionTest.php git://github.com/fabpot/symfony.git | PHP | 270 lines
                    
1<?php
                    
2
                    
13
                    
14use PHPUnit\Framework\TestCase;
                    
15use Symfony\Component\DependencyInjection\ContainerBuilder;
                    
210
                    
211        foreach (array_unique($expectedCalls) as $call) {
                    
212            $this->assertContains($call, $actualCalls);
                    
                
ErrorCoverage.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 186 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP Version 5.3.2
                    
6 *
                    
38 *
                    
39 * @category   PHP_CodeBrowser
                    
40 * @package    PHP_CodeBrowser
                    
44 * @copyright  2007-2010 Mayflower GmbH
                    
45 * @license    http://www.opensource.org/licenses/bsd-license.php  BSD License
                    
46 * @version    SVN: $Id$
                    
46 * @version    SVN: $Id$
                    
47 * @link       http://www.phpunit.de/
                    
48 * @since      File available since  0.1.0
                    
53 *
                    
54 * @category   PHP_CodeBrowser
                    
55 * @package    PHP_CodeBrowser
                    
                
UrlMatcher.php git://github.com/symfony/symfony.git | PHP | 279 lines
                    
1<?php
                    
2
                    
95
                    
96        throw 0 < \count($this->allow) ? new MethodNotAllowedException(array_unique($this->allow)) : new ResourceNotFoundException(sprintf('No routes found for "%s".', $pathinfo));
                    
97    }
                    
205     * in matchers that do not have access to the matched Route instance
                    
206     * (like the PHP and Apache matcher dumpers).
                    
207     *
                    
                
AssetCollectionTest.php git://github.com/eryx/php-framework-benchmark.git | PHP | 262 lines
                    
1<?php
                    
2
                    
17
                    
18class AssetCollectionTest extends \PHPUnit_Framework_TestCase
                    
19{
                    
240
                    
241        $this->assertEquals(2, count(array_unique($urls)), 'iterator prevents basename collisions');
                    
242    }
                    
                
OpenLdap.php https://gitlab.com/israel.correa/Expresso.git | PHP | 175 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26require_once 'Zend/Ldap/Node/Schema/Item.php';
                    
27/**
                    
29 */
                    
30require_once 'Zend/Ldap/Node/Schema/ObjectClass/Interface.php';
                    
31
                    
117        }
                    
118        $must = array_unique($must);
                    
119        $may = array_unique($may);
                    
                
system.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 302 lines
                    
1<?php
                    
2
                    
41{
                    
42	if( file_exists( NV_ROOTDIR . "/language/" . $lang_i . "/global.php" ) )
                    
43	{
                    
131	}
                    
132	$array_config_global['my_domains'] = array_unique( $array_config_global['my_domains'] );
                    
133	$array_config_global['my_domains'] = implode( ",", $array_config_global['my_domains'] );
                    
179
                    
180	Header( 'Location: ' . NV_BASE_ADMINURL . 'index.php?' . NV_NAME_VARIABLE . '=' . $module_name . '&' . NV_OP_VARIABLE . '=' . $op . '&rand=' . nv_genpass() );
                    
181	exit();
                    
259{
                    
260	$xtpl->assign( 'CONFIG_LANG_GEO', NV_BASE_ADMINURL . 'index.php?' . NV_NAME_VARIABLE . '=language&op&' . NV_OP_VARIABLE . '=countries' );
                    
261	$xtpl->assign( 'CHECKED_LANG_GEO', ( $array_config_global['lang_geo'] == 1 ) ? ' checked ' : '' );
                    
297
                    
298include ( NV_ROOTDIR . "/includes/header.php" );
                    
299echo nv_admin_theme( $content );
                    
                
ControlPanel.php https://bitbucket.org/saltwaterdev/offshorefinancial.com.git | PHP | 611 lines
                    
86		$orderings   = array_values($orderingPerId);
                    
87		$orderings   = array_unique($orderings);
                    
88		$minOrdering = reset($orderings);
                    
386
                    
387		require_once JPATH_ADMINISTRATOR . '/components/com_admintools/engine/Autoloader.php';
                    
388
                    
522	/**
                    
523	 * Is the main.php file renamed?
                    
524	 *
                    
536	/**
                    
537	 * Rename the disabled main.php file back to its proper, main.php, name.
                    
538	 *
                    
542	 */
                    
543	public function reenableMainPhp()
                    
544	{
                    
                
mdl.status.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 191 lines
                    
1<?php
                    
2class mdl_status extends modelFactory {
                    
93        }
                    
94        $filter['goods_id'] = array_unique($filter['goods_id']);
                    
95        if(empty($filter['goods_id'])) $filter['goods_id'][] = -1;
                    
                
select.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 445 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 */
                    
351			// Select all columns
                    
352			$query .= implode(', ', array_unique(array_map($quote_column, $this->_select)));
                    
353		}
                    
357			// Set tables to select from
                    
358			$query .= ' FROM '.implode(', ', array_unique(array_map($quote_table, $this->_from)));
                    
359		}
                    
                
tiny_mce_gzip.php git://github.com/silverstripe/sapphire.git | PHP | 388 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * tinymce.gzip.php
                    
4 *
                    
15// require composers autoloader
                    
16if(file_exists($basePath . '/vendor/autoload.php')) {
                    
17	require_once $basePath . '/vendor/autoload.php';
                    
54 * Example of direct usage:
                    
55 * require_once("../js/tinymce/tinymce.gzip.php");
                    
56 *
                    
58 * TinyMCE_Compressor::renderTag(array(
                    
59 *    "url" => "../js/tinymce/tinymce.gzip.php",
                    
60 *    "plugins" => "pagebreak,style",
                    
119
                    
120		$plugins = array_unique(preg_split('/,/', $this->settings["plugins"], -1, PREG_SPLIT_NO_EMPTY));
                    
121
                    
                
shBrushPhp.js https://bitbucket.org/dbreslau/syntaxhighlighter | JavaScript | 61 lines
                    
1SyntaxHighlighter.registerBrush("Php", ['php'], function()
                    
2{
                    
11					'array_udiff_uassoc array_uintersect array_uintersect_assoc '+
                    
12					'array_uintersect_uassoc array_unique array_unshift array_values array_walk '+
                    
13					'array_walk_recursive atan atan2 atanh base64_decode base64_encode base_convert '+
                    
57
                    
58	this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags);
                    
59});
                    
                
view.text.php https://gitlab.com/hscomp2002/edmansport | PHP | 321 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3* @version		$Id: view.text.php 168 2013-11-12 16:14:31Z michel $
                    
4* @package		Jacc
                    
116			}
                    
117			$this->listfieldlist = array_unique($this->listfieldlist);
                    
118		}
                    
228		$file = str_replace("##time##", $time, $file);
                    
229		$file = str_replace("##codestart##", '<?php', $file);
                    
230		$file = str_replace("##codeend##", '?>', $file);
                    
271		//Force the download
                    
272		header("Content-Disposition: attachment; filename=\"".strtolower(JRequest::getVar('name')).".php\"");
                    
273		header("Content-Transfer-Encoding: binary");
                    
                
sfServiceContainerBuilder.class.php https://github.com/openpne/OpenPNE3.git | PHP | 338 lines
                    
1<?php
                    
2
                    
16 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
17 * @version    SVN: $Id: sfServiceContainerBuilder.php 269 2009-03-26 20:39:16Z fabien $
                    
18 */
                    
104  {
                    
105    return array_unique(array_merge(array_keys($this->getServiceDefinitions()), array_keys($this->aliases), parent::getServiceIds()));
                    
106  }
                    
                
events.inc.php git://pkgs.fedoraproject.org/zabbix | PHP | 372 lines
                    
1<?php
                    
2/*
                    
20?>
                    
21<?php
                    
22function event_source2str($sourceid) {
                    
60	if (!empty($elements['hosts_groups'])) {
                    
61		$options['groupids'] = array_unique($elements['hosts_groups']);
                    
62	}
                    
63	if (!empty($elements['hosts'])) {
                    
64		$options['hostids'] = array_unique($elements['hosts']);
                    
65	}
                    
66	if (!empty($elements['triggers'])) {
                    
67		$options['triggerids'] = array_unique($elements['triggers']);
                    
68	}
                    
183				zbx_date2str(_('d M Y H:i:s'), $event['clock']),
                    
184				'tr_events.php?triggerid='.$event['objectid'].'&eventid='.$event['eventid'],
                    
185				'action'
                    
                
class.conversationmodel.php https://github.com/ghoppe/Garden.git | PHP | 336 lines
                    
1<?php if (!defined('APPLICATION')) exit();
                    
2/*
                    
138         // Also make sure there are no duplicates in the recipient list
                    
139         $RecipientUserIDs = array_unique($RecipientUserIDs);
                    
140         sort($RecipientUserIDs);
                    
308         // Update the Contributors field on the conversation
                    
309         $Contributors = array_unique(array_merge($AddedUserIDs, $OldContributorUserIDs));
                    
310         sort($Contributors);
                    
                
FieldDataConverter.php https://bitbucket.org/sergiu-tot-fb/vendors.git | PHP | 144 lines
                    
1<?php
                    
2/**
                    
95            $rows = $connection->fetchPairs($selectByRange);
                    
96            $uniqueFieldDataArray = array_unique($rows);
                    
97            foreach ($uniqueFieldDataArray as $uniqueFieldData) {
                    
133            $batchSize = (int) $this->envBatchSize;
                    
134            if (bccomp($this->envBatchSize, PHP_INT_MAX, 0) === 1 || $batchSize < 1) {
                    
135                throw new \InvalidArgumentException(
                    
136                    'Invalid value for environment variable ' . self::BATCH_SIZE_VARIABLE_NAME . '. '
                    
137                    . 'Should be integer, >= 1 and < value of PHP_INT_MAX'
                    
138                );
                    
                
Twig.php https://bitbucket.org/av_2018/av.git | PHP | 238 lines
                    
1<?php
                    
2/**
                    
12
                    
13require_once APPPATH . 'third_party/Twig/lib/Twig/Autoloader.php';
                    
14Twig_Autoloader::register();
                    
55			$this->functions_asis = 
                    
56				array_unique(
                    
57					array_merge($this->functions_asis, $params['functions'])
                    
62			$this->functions_safe = 
                    
63				array_unique(
                    
64					array_merge($this->functions_safe, $params['functions_safe'])
                    
                
Job.php https://code.google.com/p/monkeys-job/ | PHP | 288 lines
                    
1<?php
                    
2
                    
182	{
                    
183		$this->tags=JTag::array2string(array_unique(JTag::string2array($this->tags)));
                    
184	}
                    
                
FunctionCommentThrowTagSniff.php git://github.com/jonswar/perl-code-tidyall.git | PHP | 233 lines
                    
13use PHP_CodeSniffer\Files\File;
                    
14use PHP_CodeSniffer\Util\Tokens;
                    
15
                    
34     *
                    
35     * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
                    
36     * @param int                         $stackPtr  The position of the current token
                    
66        do {
                    
67            $currPos = $phpcsFile->findNext([T_THROW, T_ANON_CLASS, T_CLOSURE], ($currPos + 1), $stackPtrEnd);
                    
68            if ($currPos === false) {
                    
92
                    
93            $nextToken = $phpcsFile->findNext(T_WHITESPACE, ($currPos + 1), null, true);
                    
94            if ($tokens[$nextToken]['code'] === T_NEW
                    
114                if ($currException !== false) {
                    
115                    $endException = $phpcsFile->findNext(
                    
116                        [
                    
                
all_hotels.php https://bitbucket.org/ocaziituristice/ocaziituristice.ro.git | PHP | 189 lines
                    
1<?php
                    
2$xml = simplexml_load_file($sUrl);
                    
129//echo '<pre>';print_r($hoteluri['hotel']);echo '</pre>';
                    
130//$hoteluri['hotel']['nume'] = array_unique($hoteluri['hotel']['nume']);
                    
131
                    
182
                    
183echo '<script>alert("Hotelurile au fost updatate cu succes."); document.location.href="/adm/import_nova.php";</script>';
                    
184
                    
185} else {
                    
186	echo '<script>alert("EROARE!!! Va rugam incercati din nou mai tarziu!"); document.location.href="/adm/import_nova.php";</script>';
                    
187}
                    
                
environment_7.inc git://pkgs.fedoraproject.org/drupal6-drush | Pascal | 180 lines
                    
1<?php
                    
2// $Id: environment_7.inc,v 1.16 2010/10/15 09:04:37 jonhattan Exp $
                    
76
                    
77  return array_unique($dependents);
                    
78}
                    
                
Plugin.php git://github.com/josegonzalez/git-php.git | PHP | 393 lines
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
                    
11 * @link          https://cakephp.org CakePHP(tm) Project
                    
12 * @since         2.0.0
                    
12 * @since         2.0.0
                    
13 * @license       https://opensource.org/licenses/mit-license.php MIT License
                    
14 */
                    
64     *
                    
65     * Will load the bootstrap.php and routes.php files.
                    
66     *
                    
68     *
                    
69     * Will load routes.php file but not bootstrap.php
                    
70     *
                    
                
form-tags-manager.php https://bitbucket.org/RickCalder/mcc.git | PHP | 333 lines
                    
1<?php
                    
2
                    
68
                    
69		$tags = array_filter( array_unique( (array) $tag ) );
                    
70
                    
                
LayoutPluginManager.php https://bitbucket.org/diegoe87/challenge-dc.git | PHP | 220 lines
                    
1<?php
                    
2
                    
166    // Fetch all categories from definitions and remove duplicates.
                    
167    $categories = array_unique(array_values(array_map(function (LayoutDefinition $definition) {
                    
168      return $definition->getCategory();
                    
182    // Suppress errors because PHPUnit will indirectly modify the contents,
                    
183    // triggering https://bugs.php.net/bug.php?id=50688.
                    
184    @uasort($definitions, function (LayoutDefinition $a, LayoutDefinition $b) {
                    
                
db_mysql_error.inc.php https://github.com/AlexChien/EY_BBS.git | PHP | 115 lines
                    
1<?php
                    
2
                    
6
                    
7	$Id: db_mysql_error.inc.php 17439 2008-12-22 04:27:17Z monkey $
                    
8*/
                    
58	$errmsg .= "<b>Time</b>: ".gmdate("Y-n-j g:ia", $timestamp + ($GLOBALS['timeoffset'] * 3600))."\n";
                    
59	$errmsg .= "<b>Script</b>: ".$GLOBALS['PHP_SELF']."\n\n";
                    
60	if($sql) {
                    
85			@flock($fp, 2);
                    
86			foreach(array_unique($errlog) as $dateline => $errno) {
                    
87				@fwrite($fp, "$dateline\t$errno");
                    
90			if(function_exists('errorlog')) {
                    
91				errorlog('MySQL', basename($GLOBALS['_SERVER']['PHP_SELF'])." : $dberror - ".cutstr($sql, 120), 0);
                    
92			}
                    
                
fllat.php https://bitbucket.org/mdahlke/visual-countdown.git | PHP | 545 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * Fllat: A flat file database system. Driven by PHP.
                    
5 * Stores data in JSON. SQL based data fetching.
                    
6 *
                    
7 * PHP version 5.4
                    
8 *
                    
15
                    
16require "vendor/prequel.php";
                    
17
                    
388		return array_map(
                    
389			"unserialize", array_unique(
                    
390				array_map(
                    
456				$_result = array_map(
                    
457					"unserialize", array_unique(
                    
458						array_map(
                    
                
select.php https://bitbucket.org/ChendeyY/docklandsmedia.git | 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>
                    
                
category.php https://bitbucket.org/zirrow/ecoelka.com.git | PHP | 412 lines
                    
1<?php
                    
2class ControllerProductCategory extends Controller {
                    
294
                    
295			$limits = array_unique(array($this->config->get('theme_' . $this->config->get('config_theme') . '_product_limit'), 25, 50, 75, 100));
                    
296
                    
                
class-wp-theme-install-list-table.php https://bitbucket.org/SanchitSahu03/hyslifecare.git | PHP | 472 lines
                    
1<?php
                    
2/**
                    
70
                    
71		/** This filter is documented in wp-admin/theme-install.php */
                    
72		$tabs = apply_filters( 'install_themes_tabs', $tabs );
                    
174			$class = ( $action === $tab ) ? ' class="current"' : '';
                    
175			$href = self_admin_url('theme-install.php?tab=' . $action);
                    
176			$display_tabs['theme-install-'.$action] = "<a href='$href'$class>$text</a>";
                    
189			<div class="alignleft actions">
                    
190				<?php
                    
191				/**
                    
303		?>
                    
304		<a class="screenshot install-theme-preview" href="<?php echo esc_url( $preview_url ); ?>" title="<?php echo esc_attr( $preview_title ); ?>">
                    
305			<img src="<?php echo esc_url( $theme->screenshot_url ); ?>" width="150" alt="" />
                    
319
                    
320		<?php
                    
321		$this->install_theme_info( $theme );
                    
                
InfiniTreeBehaviorTest.php git://github.com/infinitas/infinitas.git | PHP | 578 lines
                    
1<?php
                    
2if (!class_exists('ScopedNumberTree')) {
                    
62		$results = $this->ScopedNumberTree->find('all');
                    
63		$parent = array_unique(Set::extract($results, '/ScopedNumberTree/parent_id'));
                    
64		$lft = current(array_unique(Set::extract($results, '/ScopedNumberTree/lft')));
                    
64		$lft = current(array_unique(Set::extract($results, '/ScopedNumberTree/lft')));
                    
65		$rght = current(array_unique(Set::extract($results, '/ScopedNumberTree/rght')));
                    
66
                    
74		$results = $this->ScopedNumberTree->find('all');
                    
75		$parent = array_unique(Set::extract($results, '/ScopedNumberTree/parent_id'));
                    
76		$lft = array_unique(Set::extract($results, '/ScopedNumberTree/lft'));
                    
76		$lft = array_unique(Set::extract($results, '/ScopedNumberTree/lft'));
                    
77		$rght = array_unique(Set::extract($results, '/ScopedNumberTree/rght'));
                    
78
                    
                
LargePermission.php git://github.com/thorsten/phpMyFAQ.git | PHP | 885 lines
                    
1<?php
                    
2
                    
9 *
                    
10 * @package   phpMyFAQ
                    
11 * @author    Lars Tiedemann <php@larstiedemann.de>
                    
11 * @author    Lars Tiedemann <php@larstiedemann.de>
                    
12 * @author    Thorsten Rinne <thorsten@phpmyfaq.de>
                    
13 * @copyright 2005-2021 phpMyFAQ Team
                    
14 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
                    
15 * @link      https://www.phpmyfaq.de
                    
16 * @since     2005-09-17
                    
18
                    
19namespace phpMyFAQ\Permission;
                    
20
                    
20
                    
21use phpMyFAQ\Configuration;
                    
22use phpMyFAQ\Database;
                    
                
Tags.php git://github.com/thorsten/phpMyFAQ.git | PHP | 571 lines
                    
1<?php
                    
2
                    
9 *
                    
10 * @package   phpMyFAQ
                    
11 * @author    Thorsten Rinne <thorsten@phpmyfaq.de>
                    
13 * @author    Georgi Korchev <korchev@yahoo.com>
                    
14 * @copyright 2006-2021 phpMyFAQ Team
                    
15 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
                    
15 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
                    
16 * @link      https://www.phpmyfaq.de
                    
17 * @since     2006-08-10
                    
19
                    
20namespace phpMyFAQ;
                    
21
                    
21
                    
22use phpMyFAQ\Entity\TagEntity as EntityTags;
                    
23
                    
                
Privileges.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 3898 lines
                    
1<?php
                    
2/**
                    
7
                    
8namespace PhpMyAdmin\Server;
                    
9
                    
10use mysqli_stmt;
                    
11use PhpMyAdmin\DatabaseInterface;
                    
12use PhpMyAdmin\Html\Generator;
                    
12use PhpMyAdmin\Html\Generator;
                    
13use PhpMyAdmin\Html\MySQLDocumentation;
                    
14use PhpMyAdmin\Message;
                    
14use PhpMyAdmin\Message;
                    
15use PhpMyAdmin\Query\Compatibility;
                    
16use PhpMyAdmin\Relation;
                    
16use PhpMyAdmin\Relation;
                    
17use PhpMyAdmin\RelationCleanup;
                    
18use PhpMyAdmin\ResponseRenderer;
                    
                
Util.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 2753 lines
                    
1<?php
                    
2
                    
4
                    
5namespace PhpMyAdmin;
                    
6
                    
6
                    
7use PhpMyAdmin\Html\Generator;
                    
8use PhpMyAdmin\Html\MySQLDocumentation;
                    
8use PhpMyAdmin\Html\MySQLDocumentation;
                    
9use PhpMyAdmin\Query\Utilities;
                    
10use PhpMyAdmin\SqlParser\Components\Expression;
                    
10use PhpMyAdmin\SqlParser\Components\Expression;
                    
11use PhpMyAdmin\SqlParser\Context;
                    
12use PhpMyAdmin\SqlParser\Token;
                    
12use PhpMyAdmin\SqlParser\Token;
                    
13use PhpMyAdmin\Utils\SessionCache;
                    
14use phpseclib3\Crypt\Random;
                    
                
Normalization.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 1147 lines
                    
1<?php
                    
2
                    
4
                    
5namespace PhpMyAdmin;
                    
6
                    
6
                    
7use PhpMyAdmin\Charsets\Charset;
                    
8use PhpMyAdmin\Charsets\Collation;
                    
8use PhpMyAdmin\Charsets\Collation;
                    
9use PhpMyAdmin\Html\Generator;
                    
10use PhpMyAdmin\Query\Compatibility;
                    
15use function array_pop;
                    
16use function array_unique;
                    
17use function count;
                    
                
CentralColumns.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 1203 lines
                    
1<?php
                    
2/**
                    
6
                    
7namespace PhpMyAdmin;
                    
8
                    
8
                    
9use PhpMyAdmin\Charsets\Charset;
                    
10use PhpMyAdmin\Charsets\Collation;
                    
10use PhpMyAdmin\Charsets\Collation;
                    
11use PhpMyAdmin\Html\Generator;
                    
12use function array_unique;
                    
24/**
                    
25 * PhpMyAdmin\CentralColumns class
                    
26 */
                    
382        if (! empty($existingCols)) {
                    
383            $existingCols = implode(',', array_unique($existingCols));
                    
384            $message = Message::notice(
                    
                
wikimarkup.php git://pkgs.fedoraproject.org/moodle | PHP | 434 lines
                    
1<?php
                    
2
                    
68        if (!$this->printable) {
                    
69            $this->returnvalues['repeated_sections'] = array_unique($this->returnvalues['repeated_sections']);
                    
70        }
                    
183        if (!$this->pretty_print && $level == 1) {
                    
184            $text .= parser_utils::h('a', $this->section_edit_text, array('href' => "edit.php?pageid={$this->wiki_page_id}&section=" . urlencode($text), 'class' => 'wiki_edit_section'));
                    
185        }
                    
                
dmDoctrineTable.php https://github.com/leszek/diem.git | PHP | 606 lines
                    
1<?php
                    
2
                    
296    
                    
297    return array_unique(array_filter($columns));
                    
298  }
                    
                
Security.php http://kumbia-enterprise.googlecode.com/svn/trunk/ | PHP | 227 lines
                    
1<?php
                    
2
                    
19 * @license 	New BSD License
                    
20 * @version 	$Id: Security.php 136 2010-04-12 14:48:51Z gutierrezandresfelipe $
                    
21 */
                    
219		$eachchar = str_split($password);
                    
220    	if(count(array_unique($eachchar))<5){
                    
221			++$failTests;
                    
                
HTA-GetFillData_OLD.php https://bitbucket.org/awylie199/s5t.git | PHP | 270 lines
                    
1<?php 
                    
2date_default_timezone_set('UTC');
                    
5
                    
6require ("Constants.php");
                    
7
                    
162			foreach ($DaysTradedArray as $array) {
                    
163				$array['Products'] = array_unique($array['Products']);
                    
164			}
                    
                
SpecialListgrouprights.php https://bitbucket.org/andersus/querytalogo.git | PHP | 298 lines
                    
1<?php
                    
2/**
                    
63		$groupsRemoveFromSelf = $config->get( 'GroupsRemoveFromSelf' );
                    
64		$allGroups = array_unique( array_merge(
                    
65			array_keys( $groupPermissions ),
                    
273			} elseif ( is_array( $changeGroup ) ) {
                    
274				$changeGroup = array_intersect( array_values( array_unique( $changeGroup ) ), $allGroups );
                    
275				if ( count( $changeGroup ) ) {
                    
                
class-wc-report-sales-by-category.php https://bitbucket.org/rhiana/calebs.git | PHP | 438 lines
                    
208			<div>
                    
209				<select multiple="multiple" data-placeholder="<?php esc_attr_e( 'Select categories&hellip;', 'woocommerce' ); ?>" class="wc-enhanced-select" id="show_categories" name="show_categories[]" style="width: 205px;">
                    
210					<?php
                    
217
                    
218						include_once( WC()->plugin_path() . '/includes/walkers/class-product-cat-dropdown-walker.php' );
                    
219
                    
230				<input type="hidden" name="tab" value="<?php echo ( ! empty( $_GET['tab'] ) ) ? esc_attr( $_GET['tab'] ) : ''; ?>" />
                    
231				<input type="hidden" name="report" value="<?php echo ( ! empty( $_GET['report'] ) ) ? esc_attr( $_GET['report'] ) : ''; ?>" />
                    
232			</div>
                    
261			href="#"
                    
262			download="report-<?php echo esc_attr( $current_range ); ?>-<?php echo date_i18n( 'Y-m-d', current_time( 'timestamp' ) ); ?>.csv"
                    
263			class="export_csv"
                    
401									tickLength: 1,
                    
402									minTickSize: [1, "<?php echo $this->chart_groupby; ?>"],
                    
403									tickSize: [1, "<?php echo $this->chart_groupby; ?>"],
                    
                
ApcuBackend.php git://github.com/drupal/drupal.git | PHP | 273 lines
                    
1<?php
                    
2
                    
7/**
                    
8 * Stores cache items in the Alternative PHP Cache User Cache (APCu).
                    
9 */
                    
166    assert(Inspector::assertAllStrings($tags), 'Cache tags must be strings.');
                    
167    $tags = array_unique($tags);
                    
168    $cache = new \stdClass();
                    
                
Optimizer.php https://bitbucket.org/mmahdy/opencart-modules-app.git | 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());
                    
                
Reader.php https://bitbucket.org/richinvarghese/justin.git | PHP | 350 lines
                    
1<?php
                    
2/**
                    
5* @license http://opensource.org/licenses/MIT
                    
6* @link https://github.com/thephpleague/csv/
                    
7* @version 8.0.0
                    
216    /**
                    
217     * Return the key/pairs as a PHP generator
                    
218     *
                    
303    {
                    
304        if (empty($keys) || $keys !== array_unique(array_filter($keys, [$this, 'isValidKey']))) {
                    
305            throw new InvalidArgumentException('Use a flat array with unique string values');
                    
                
Type.class.php https://code.google.com/p/haquery/ | PHP | 516 lines
                    
1<?php
                    
2
                    
163		try {
                    
164			php_Boot::$skip_constructor = true;
                    
165			$rfl = $cl->__rfl__();
                    
178			}
                    
179			php_Boot::$skip_constructor = false;
                    
180			{
                    
192				$GLOBALS['%s']->push($GLOBALS['%e'][0]);
                    
193				php_Boot::$skip_constructor = false;
                    
194				throw new HException("Unable to instantiate " . Std::string($cl));
                    
269		{
                    
270			$?tmp = new _hx_array(array_values(array_unique($r)));
                    
271			$GLOBALS['%s']->pop();
                    
300		{
                    
301			$?tmp = new _hx_array(array_unique($r));
                    
302			$GLOBALS['%s']->pop();
                    
                
goods.import_goodsline.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 115 lines
                    
1<?php
                    
2function goods_import_goodsline(&$aData , &$object){
                    
45            $images = explode('#',$aData['image_file']);
                    
46            $images = array_unique($images);
                    
47        }else{
                    
                
hookmanager.class.php git://github.com/Dolibarr/dolibarr.git | PHP | 346 lines
                    
1<?php
                    
2/* Copyright (C) 2010-2016 Laurent Destailleur  <eldy@users.sourceforge.net>
                    
20/**
                    
21 *	\file       htdocs/core/class/hookmanager.class.php
                    
22 *	\ingroup    core
                    
75	 *  When initHooks function is called, with initHooks(list_of_contexts), an array $this->hooks is defined with instance of controler
                    
76	 *  class found into file /mymodule/class/actions_mymodule.class.php (if module has declared the context as a managed context).
                    
77	 *  Then when a hook executeHooks('aMethod'...) is called, the method aMethod found into class will be executed.
                    
95
                    
96		$this->contextarray = array_unique(array_merge($arraycontext, $this->contextarray)); // All contexts are concatenated
                    
97
                    
115						$path = '/'.$module.'/class/';
                    
116						$actionfile = 'actions_'.$module.'.class.php';
                    
117
                    
                
reflection_php5.php https://github.com/klando/pgpiwik.git | PHP | 366 lines
                    
1<?php
                    
2/**
                    
27	 *    Checks that a class has been declared. Versions
                    
28	 *    before PHP5.0.2 need a check that it's not really
                    
29	 *    an interface.
                    
41	/**
                    
42	 *    Needed to kill the autoload feature in PHP5
                    
43	 *    for classes created dynamically.
                    
61	/**
                    
62	 *    Needed to kill the autoload feature in PHP5
                    
63	 *    for classes created dynamically.
                    
71	/**
                    
72	 *    Needed to select the autoload feature in PHP5
                    
73	 *    for classes created dynamically.
                    
94	function getMethods() {
                    
95		return array_unique(get_class_methods($this->_interface));
                    
96	}
                    
                
string.class.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 234 lines
                    
1<?php
                    
2
                    
166			}
                    
167			$unqiue = array_unique($rand);
                    
168			if(count($unqiue)==count($rand)) {
                    
174			}
                    
175			$rand = array_slice(array_unique ($rand),0,$number);
                    
176			return $rand;
                    
                
LMethod.php git://github.com/robotis/PHPLinter.git | PHP | 123 lines
                    
1<?php
                    
2/**
                    
5----------------------------------------------------------------------+
                    
6*  @file 			Lint_method.php
                    
7*  @author 			Jóhann T. Maríusson <jtm@robot.is>
                    
8*  @since 		    Oct 29, 2011
                    
9*  @package 		PHPLinter
                    
10*  @copyright     
                    
10*  @copyright     
                    
11*    phplinter is free software: you can redistribute it and/or modify
                    
12*    it under the terms of the GNU General Public License as published by
                    
24*/
                    
25namespace phplinter\Lint;
                    
26class LMethod extends BaseLint implements ILint {
                    
84		}
                    
85		$locals = array_unique($_locals);
                    
86		$compares = array(
                    
                
SolverProblemsException.php git://github.com/composer/composer.git | PHP | 117 lines
                    
1<?php
                    
2
                    
52        $text = "\n";
                    
53        foreach (array_unique($problems) as $problem) {
                    
54            $text .= "  Problem ".($i++).$problem;
                    
69        if (strpos($text, 'found composer-plugin-api[2.0.0] but it does not match') && strpos($text, '- ocramius/package-versions')) {
                    
70            $text .= "\n<warning>ocramius/package-versions only provides support for Composer 2 in 1.8+, which requires PHP 7.4.</warning>\nIf you can not upgrade PHP you can require <info>composer/package-versions-deprecated</info> to resolve this with PHP 7.0+.\n";
                    
71        }
                    
73        // TODO remove before 2.0 final
                    
74        if (!class_exists('PHPUnit\Framework\TestCase', false)) {
                    
75            if (strpos($text, 'found composer-plugin-api[2.0.0] but it does not match')) {
                    
75            if (strpos($text, 'found composer-plugin-api[2.0.0] but it does not match')) {
                    
76                $text .= "\nYou are using a snapshot build of Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report an issue to them to ask them to support Composer 2. To work around this you can run Composer with --ignore-platform-reqs, but this will also ignore your PHP version and may result in bigger problems down the line.";
                    
77            } else {
                    
99        $text .= implode("\n    - ", $paths);
                    
100        $text .= "\n  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.";
                    
101
                    
                
extrafields.php http://getk2.googlecode.com/svn/trunk/ | PHP | 314 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: extrafields.php 1531 2012-03-26 09:54:29Z lefteris.kavadas $
                    
4 * @package		K2
                    
117		$cache->clean();
                    
118		$mainframe->redirect('index.php?option=com_k2&view=extrafields');
                    
119	}
                    
131		$cache->clean();
                    
132		$mainframe->redirect('index.php?option=com_k2&view=extrafields');
                    
133	}
                    
156		if(!$params->get('disableCompactOrdering')){
                    
157			$groupings = array_unique($groupings);
                    
158			foreach ($groupings as $group) {
                    
164		$msg = JText::_('K2_NEW_ORDERING_SAVED');
                    
165		$mainframe->redirect('index.php?option=com_k2&view=extrafields', $msg);
                    
166	}
                    
                
access.php https://bitbucket.org/joomla/joomla-platform/ | PHP | 377 lines
                    
1<?php
                    
2/**
                    
245				else {
                    
246					$result = array_unique($result);
                    
247				}
                    
                
PagesController.php https://bitbucket.org/vutmat281191/topluxury_shop.git | PHP | 191 lines
                    
1<?php
                    
2
                    
39			$arr_cart = explode(",", $list_cart);
                    
40			$arr_cart = array_unique($arr_cart);
                    
41			$arr_cart = array_filter($arr_cart);
                    
78		$arr_viewed = explode(",", $_COOKIE["list-in-cart"]);
                    
79		$arr_viewed = array_unique($arr_viewed);
                    
80		$arr_viewed = array_filter($arr_viewed);
                    
101			$arr_viewed = explode(",", $list_viewed);
                    
102			$arr_viewed = array_unique($arr_viewed);
                    
103			$arr_viewed = array_filter($arr_viewed);
                    
150	  	// dd($list_cate);exit();
                    
151	  	$list_cate = array_unique($list_cate);
                    
152	  	$list_cate = array_filter($list_cate);
                    
                
field.drush.inc git://github.com/jyr/MNPP.git | Pascal | 360 lines
                    
1<?php
                    
2
                    
106    }
                    
107    return array('values' => array_unique($bundles));
                    
108  }
                    
                
PHPLocTask.php https://gitlab.com/the_sociophobic/test | PHP | 266 lines
                    
25/**
                    
26 * Runs phploc a tool for quickly measuring the size of PHP projects.
                    
27 *
                    
104        if (!class_exists('\SebastianBergmann\PHPLOC\Analyser')) {
                    
105            if (!@include_once('SebastianBergmann/PHPLOC/autoload.php')) {
                    
106                if (!@include_once('PHPLOC/Analyser.php')) {
                    
107                    throw new BuildException(
                    
108                        'PHPLocTask depends on PHPLoc being installed and on include_path.',
                    
109                        $this->getLocation()
                    
202            if ($this->oldVersion) {
                    
203                require_once 'PHPLOC/TextUI/ResultPrinter/Text.php';
                    
204                $reportClass = 'PHPLOC_TextUI_ResultPrinter_Text';
                    
260    protected function getCountForFiles(array $files) {
                    
261        $analyserClass = ($this->oldVersion ? 'PHPLOC_Analyser' : '\\SebastianBergmann\\PHPLOC\\Analyser');
                    
262        $analyser = new $analyserClass();
                    
                
ValidateMigrationStateTestTrait.php git://github.com/drupal/drupal.git | PHP | 154 lines
                    
1<?php
                    
2
                    
115    sort($declared[MigrationState::NOT_FINISHED]);
                    
116    $declared_unique[MigrationState::FINISHED] = array_unique($declared[MigrationState::FINISHED]);
                    
117    $declared_unique[MigrationState::NOT_FINISHED] = array_unique($declared[MigrationState::NOT_FINISHED]);
                    
118    sort($discovered);
                    
119    $discovered_unique = array_unique($discovered);
                    
120
                    
                
Type.php git://github.com/eryx/php-framework-benchmark.git | PHP | 303 lines
                    
39 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
40 * @copyright  2001-2012 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-2012 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);
                    
                
Ordered.php https://bitbucket.org/ttphong2612/billigastamplar-new.se.git | PHP | 240 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 */
                    
148                    }
                    
149                    $configArray[$code]['before'] = array_unique(array_merge(
                    
150                        $configArray[$code]['before'], $configArray[$beforeCode]['before']
                    
154                    );
                    
155                    $configArray[$beforeCode]['after'] = array_unique($configArray[$beforeCode]['after']);
                    
156                }
                    
160                    }
                    
161                    $configArray[$code]['after'] = array_unique(array_merge(
                    
162                        $configArray[$code]['after'], $configArray[$afterCode]['after']
                    
                
class-wp-themes-list-table.php https://bitbucket.org/frogdog/noveosdx.git | PHP | 321 lines
                    
99			if ( current_user_can( 'install_themes' ) && current_user_can( 'manage_network_themes' ) ) {
                    
100				printf( __( 'You only have one theme enabled for this site right now. Visit the Network Admin to <a href="%1$s">enable</a> or <a href="%2$s">install</a> more themes.' ), network_admin_url( 'site-themes.php?id=' . $blog_id ), network_admin_url( 'theme-install.php' ) );
                    
101
                    
110			if ( current_user_can( 'install_themes' ) ) {
                    
111				printf( __( '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.' ), admin_url( 'theme-install.php' ) );
                    
112
                    
143		<div id="availablethemes">
                    
144			<?php $this->display_rows_or_placeholder(); ?>
                    
145		</div>
                    
214				<?php if ( $screenshot = $theme->get_screenshot() ) : ?>
                    
215					<img src="<?php echo esc_url( $screenshot ); ?>" alt="" />
                    
216				<?php endif; ?>
                    
238			<div class="themedetaildiv hide-if-js">
                    
239				<p><strong><?php _e( 'Version:' ); ?></strong> <?php echo $version; ?></p>
                    
240				<p><?php echo $theme->display( 'Description' ); ?></p>
                    
                
helper.php https://bitbucket.org/programmerlab/ourteam.co.in.git | PHP | 481 lines
                    
1<?php
                    
2/**
                    
12$com_path = JPATH_SITE . '/components/com_content/';
                    
13require_once $com_path . 'helpers/route.php';
                    
14
                    
158
                    
159				$catids = array_unique(array_merge($catids, $additional_catids));
                    
160			}
                    
239				$menu      = $app->getMenu();
                    
240				$menuitems = $menu->getItems('link', 'index.php?option=com_users&view=login');
                    
241
                    
251
                    
252				$item->link = JRoute::_('index.php?option=com_users&view=login&Itemid=' . $Itemid);
                    
253			}
                    
                
helping_hands.php https://bitbucket.org/djmdigital/total-auto-care-wordpress.git | PHP | 229 lines
                    
1<?php
                    
2/**
                    
77 * Simple helper to debug to the console of the browser.
                    
78 * Set WP_DEBUG_DISPLAY in your wp-config.php to true for view debug messages inside the console.
                    
79 *
                    
117
                    
118  return array_unique( array_map( 'unserialize', array_diff_assoc( array_map( 'serialize', $array), array_map( 'serialize', array_unique( $array, SORT_REGULAR ) ) ) ), SORT_REGULAR );
                    
119}
                    
184
                    
185	// URI without query parameter, like WP core edit.php.
                    
186	if ( ! isset( $uri['query'] ) && strpos( $uri['path'], $slug ) !== false ) {
                    
                
ActionConfigPass.php https://bitbucket.org/sicomore/next-op-exercise.git | PHP | 358 lines
                    
1<?php
                    
2
                    
54            $actionsDisabledByEntity = isset($entityConfig['disabled_actions']) ? $entityConfig['disabled_actions'] : array();
                    
55            $disabledActions = array_unique(array_merge($actionsDisabledByBackend, $actionsDisabledByEntity));
                    
56
                    
233                    // 'name' value is used as the class method name or the Symfony route name
                    
234                    // check that its value complies with the PHP method name rules
                    
235                    if (!$this->isValidMethodName($actionName)) {
                    
315    /**
                    
316     * Checks whether the given string is valid as a PHP method name.
                    
317     *
                    
                
String.class.php http://thinkphp.googlecode.com/svn/trunk/ | PHP | 252 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
2// +----------------------------------------------------------------------
                    
3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
                    
4// +----------------------------------------------------------------------
                    
4// +----------------------------------------------------------------------
                    
5// | Copyright (c) 2009 http://thinkphp.cn All rights reserved.
                    
6// +----------------------------------------------------------------------
                    
10// +----------------------------------------------------------------------
                    
11// $Id: String.class.php 2601 2012-01-15 04:59:14Z liu21st $
                    
12
                    
186			}
                    
187			$unqiue = array_unique($rand);
                    
188			if(count($unqiue)==count($rand)) {
                    
194			}
                    
195			$rand = array_slice(array_unique ($rand),0,$number);
                    
196			return $rand;
                    
                
HomeController.php https://bitbucket.org/coredeveloper2013/navipi-test.git | PHP | 533 lines
                    
1<?php
                    
2
                    
72        }
                    
73        $frnd_users = array_unique($frnd_users);
                    
74        //
                    
                
access.php git://github.com/joomla/joomla-platform.git | PHP | 538 lines
                    
1<?php
                    
2/**
                    
345				{
                    
346					$result = array_unique($result);
                    
347				}
                    
                
Container.php https://gitlab.com/kazlik/obrazkuj | PHP | 498 lines
                    
1<?php
                    
2
                    
160		}
                    
161		return array_unique($errors);
                    
162	}
                    
                
ProductDataMapper.php https://bitbucket.org/sergiu-tot-fb/vendors.git | PHP | 353 lines
                    
1<?php
                    
2/**
                    
346        }
                    
347        $selectedValues = array_unique($selectedValues);
                    
348        if (!empty($selectedValues)) {
                    
                
GroupManager.php git://github.com/Codeception/Codeception.git | PHP | 169 lines
                    
1<?php
                    
2namespace Codeception\Lib;
                    
134
                    
135    public function groupsForTest(\PHPUnit\Framework\Test $test)
                    
136    {
                    
144            if (isset($info['class'])) {
                    
145                $groups = array_merge($groups, \PHPUnit\Util\Test::getGroups($info['class'], $info['name']));
                    
146            }
                    
148        }
                    
149        if ($test instanceof \PHPUnit\Framework\TestCase) {
                    
150            $groups = array_merge($groups, \PHPUnit\Util\Test::getGroups(get_class($test), $test->getName(false)));
                    
166        }
                    
167        return array_unique($groups);
                    
168    }
                    
                
manageFolderEditSubmit.php https://gitlab.com/Rodrigj98/phpipam.git | PHP | 143 lines
                    
1<?php
                    
2
                    
7/* required functions */
                    
8require_once('../../functions/functions.php');
                    
9
                    
100	getAllSlaves($_POST['subnetId'], false);
                    
101	$removeSlaves = array_unique($removeSlaves);
                    
102	# check if folder?
                    
134    	/* @mail functions ------------------- */
                    
135		include_once('../../functions/functions-mail.php');
                    
136		sendObjectUpdateMails("folder", $_POST['action'], $old, $new);
                    
                
Process.php https://bitbucket.org/premcgvak/scarlet-changes.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-2014 X.commerce, 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]);
                    
                
Optimizer.php git://github.com/savetheinternet/Tinyboard.git | PHP | 246 lines
                    
1<?php
                    
2
                    
57
                    
58        if (!version_compare(phpversion(), '5.4.0RC1', '>=') && self::OPTIMIZE_VAR_ACCESS === (self::OPTIMIZE_VAR_ACCESS & $this->optimizers) && !$env->isStrictVariables() && !$env->hasExtension('sandbox')) {
                    
59            if ($this->inABody) {
                    
97                    $nodes = array();
                    
98                    foreach (array_unique($prependedNodes) as $name) {
                    
99                        $nodes[] = new Twig_Node_SetTemp($name, $node->getLine());
                    
                
phmagick.php http://bedita.googlecode.com/svn/trunk/ | PHP | 341 lines
                    
1<?php
                    
2/*
                    
51        if(is_null($this->escapeChars) ){
                    
52            $this->escapeChars = !( strtolower ( substr( php_uname('s'), 0, 3))  == "win" ) ;
                    
53        }
                    
119            case phMagickHistory::returnCsv:
                    
120                return explode(',', array_unique($this->history));
                    
121                break;
                    
124            case phMagickHistory::returnArray :
                    
125                return array_unique($this->history) ;
                    
126                break;
                    
163        $base = dirname(__FILE__) . '/plugins';
                    
164        $plugins = glob($base . '/*.php');
                    
165        foreach($plugins as $plugin){
                    
166            include_once $plugin ;
                    
167            $name = basename($plugin, '.php');
                    
168            $className = 'phMagick_'.$name ;
                    
                
write.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 284 lines
                    
1<?php
                    
2
                    
57        {
                    
58            $include_lang = NV_ROOTDIR . "/modules/" . $module . "/language/admin_" . $dirlang . ".php";
                    
59        }
                    
61        {
                    
62            $include_lang = NV_ROOTDIR . "/modules/" . $module . "/language/" . $dirlang . ".php";
                    
63        }
                    
65        {
                    
66            $include_lang = NV_ROOTDIR . "/language/" . $dirlang . "/admin_" . $module . ".php";
                    
67        }
                    
69        {
                    
70            $include_lang = NV_ROOTDIR . "/language/" . $dirlang . "/" . $module . ".php";
                    
71        }
                    
73        {
                    
74            $include_lang = NV_ROOTDIR . "/language/" . $dirlang . "/" . $module . ".php";
                    
75        }
                    
                
system.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 277 lines
                    
1<?php
                    
2
                    
30{
                    
31    if ( file_exists( NV_ROOTDIR . "/language/" . $lang_i . "/global.php" ) )
                    
32    {
                    
100    }
                    
101    $my_domains = array_unique( $my_domains );
                    
102    $array_config_global['my_domains'] = implode( ",", $my_domains );
                    
144    {
                    
145        Header( 'Location: ' . NV_BASE_ADMINURL . 'index.php?' . NV_NAME_VARIABLE . '=' . $module_name . '&' . NV_OP_VARIABLE . '=' . $op . '&rand=' . nv_genpass() );
                    
146        exit();
                    
272
                    
273include ( NV_ROOTDIR . "/includes/header.php" );
                    
274echo nv_admin_theme( $content );
                    
274echo nv_admin_theme( $content );
                    
275include ( NV_ROOTDIR . "/includes/footer.php" );
                    
276
                    
                
BakAction.class.php http://nblog-thinkphp.googlecode.com/svn/trunk/ | PHP | 409 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
12// +----------------------------------------------------------------------
                    
13// | $Id: BakAction.class.php 109 2011-05-06 08:21:00Z nicholasinlove1986@gmail.com $
                    
14// +----------------------------------------------------------------------
                    
215				if ($m_file) {
                    
216					$m_file = array_unique ($m_file);
                    
217		
                    
                
cache.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 504 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()
                    
                
MPSUM_Admin_Plugins.php https://bitbucket.org/suroj/nepalayatravels.git | PHP | 251 lines
                    
1<?php
                    
2/**
                    
191		//Update option
                    
192		$plugin_options = array_values( array_unique( $plugin_options ) );
                    
193		$plugin_automatic_options = array_values( array_unique( $plugin_automatic_options ) );
                    
223			?>
                    
224			<div class="updated"><p><strong><?php echo esc_html( $message ); ?></strong></p></div>
                    
225			<?php
                    
228		?>
                    
229        <form action="<?php echo esc_url( add_query_arg( array() ) ); ?>" method="post">
                    
230	    <?php
                    
236		?>
                    
237        <h3><?php esc_html_e( 'Plugin Update Options', 'stops-core-theme-and-plugin-updates' ); ?></h3>
                    
238        <?php
                    
248        </form>
                    
249    <?php
                    
250	} //end tab_output_plugins
                    
                
AnnotationDriver.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 370 lines
                    
1<?php
                    
2/*
                    
25
                    
26require __DIR__ . '/DoctrineAnnotations.php';
                    
27
                    
30 *
                    
31 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
32 * @link        www.doctrine-project.org
                    
57     */
                    
58    private $fileExtension = '.php';
                    
59
                    
86    {
                    
87        $this->paths = array_unique(array_merge($this->paths, $paths));
                    
88    }
                    
                
BelongsTo.php https://bitbucket.org/alan_cordova/api-sb-map.git | PHP | 328 lines
                    
1<?php
                    
2
                    
180
                    
181        return array_values(array_unique($keys));
                    
182    }
                    
                
class-wcs-retry-manager.php https://bitbucket.org/tristangemus/tribe-demo.git | PHP | 390 lines
                    
1<?php
                    
2/**
                    
10 */
                    
11require_once( 'payment-retry/class-wcs-retry-admin.php' );
                    
12
                    
76			$statuses[] = $last_retry->get_rule()->get_status_to_apply( 'order' );
                    
77			$statuses   = array_unique( $statuses );
                    
78		}
                    
99
                    
100		require_once( 'abstracts/abstract-wcs-retry-store.php' );
                    
101
                    
101
                    
102		require_once( 'payment-retry/class-wcs-retry.php' );
                    
103
                    
103
                    
104		require_once( 'payment-retry/class-wcs-retry-rule.php' );
                    
105
                    
                
plugins.controller.php https://github.com/bk-amahi/esoTalk.git | PHP | 143 lines
                    
1<?php
                    
2// Copyright 2009 Simon Zerner, Toby Zerner
                    
10	
                    
11var $view = "plugins.view.php";
                    
12var $plugins = array();
                    
26	    while (false !== ($file = readdir($handle))) {
                    
27	        if ($file[0] != "." and is_dir("plugins/$file") and file_exists("plugins/$file/plugin.php") and (include_once "plugins/$file/plugin.php") and class_exists($file)) {
                    
28				$plugin = new $file;
                    
77{
                    
78	$loadedPlugins = array_unique($loadedPlugins);
                    
79	
                    
80	// Prepare the content
                    
81	$content = "<?php\n\$config[\"loadedPlugins\"] = array(";
                    
82	foreach ($loadedPlugins as $v) {
                    
87	// Write the file.
                    
88	if (!writeFile("config/plugins.php", $content)) {
                    
89		$this->esoTalk->message("notWritable", false, "config/plugins.php");
                    
                
SugarFieldRelatecollection.php https://bitbucket.org/hatim_alam/sugar-8.git | PHP | 269 lines
                    
1<?php
                    
2/*
                    
210        if (!empty($properties['collection_fields']) && is_array($properties['collection_fields'])) {
                    
211            $fields = array_unique(array_merge(self::$baseFields, $properties['collection_fields']));
                    
212        }
                    
                
MinApp.php https://bitbucket.org/fastestsolution/dev_concitatech_cz.git | PHP | 236 lines
                    
1<?php
                    
2/**
                    
6
                    
7require_once 'Minify/Controller/Base.php';
                    
8
                    
9/**
                    
10 * Controller class for requests to /min/index.php
                    
11 * 
                    
44            $keys = explode(',', $_GET['g']);
                    
45            if ($keys != array_unique($keys)) {
                    
46                $this->log("Duplicate group key found.");
                    
120            $files = explode(',', $_GET['f']);
                    
121            if ($files != array_unique($files)) {
                    
122                $this->log("Duplicate files were specified");
                    
                
main.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 226 lines
                    
1<?php
                    
2
                    
71
                    
72	$email_list = array_unique( $email_list );
                    
73
                    
183
                    
184			$url = NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA;
                    
185			$contents .= call_user_func( "sendcontact", $url );
                    
186		
                    
187			include ( NV_ROOTDIR . "/includes/header.php" );
                    
188			echo nv_site_theme( $contents );
                    
188			echo nv_site_theme( $contents );
                    
189			include ( NV_ROOTDIR . "/includes/footer.php" );
                    
190			exit();
                    
218$checkss = md5( $client_info['session_id'] . $global_config['sitekey'] );
                    
219$base_url = NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&amp;" . NV_NAME_VARIABLE . "=" . $module_name;
                    
220$contents = call_user_func( "main_theme", $array_content, $array_rows, $base_url, $checkss );
                    
                
portfolio-grid.php https://bitbucket.org/dripolab/diprolab.git | PHP | 102 lines
                    
22	<?php if ( !empty($portfolio_filters) ) { foreach ( $portfolio_filters as $slug=>$name ) { ?>
                    
23	<a href="#<?php echo $slug;?>" class="" data-filter=".<?php echo $slug;?>"><?php echo $name;?></a>
                    
24	<?php } } ?>
                    
29  <!-- Portfolio Grid -->
                    
30  <div id="<?php echo $holder_id ?>" class="gallery-isotope grid-<?php echo $columns;?> <?php echo $gutter;?> clearfix <?php echo $custom_css_class;?>">
                    
31	<!-- the loop -->
                    
63			<div class="thumb <?php echo ( $show_gradient_effect_on_image == 'true' ) ? 'gradient-effect' : '';?>">
                    
64				<img src="<?php echo $resized_image['url'];?>" alt="<?php the_title();?>" width="<?php echo $image_dimension['width'];?>">
                    
65			</div>
                    
84					<div class="styled-icons icon-sm icon-dark icon-circled icon-theme-colored">
                    
85						<a title="<?php the_title();?>" href="<?php the_permalink();?>"><i class="fa fa-link"></i></a>
                    
86					</div>
                    
89			<?php endif; ?>
                    
90			<a title="<?php the_title();?>" href="<?php the_permalink();?>" class="hover-link"></a>
                    
91		</div>
                    
                
CcShell.php https://gitlab.com/participatorio/estacaojuventude_php-angular.git | PHP | 389 lines
                    
1<?php
                    
2App::uses('AppShell', 'Console/Command');
                    
6if (!defined('LF')) {
                    
7	define('LF', PHP_EOL); // Use PHP to detect default linebreak
                    
8}
                    
11 * Code Completion Shell
                    
12 * Workes perfectly with PHPDesigner - but should also work with most other IDEs out of the box
                    
13 *
                    
330
                    
331		$content = '<?php exit();' . PHP_EOL . PHP_EOL;
                    
332		$content .= 'class CodeCompletion {' . PHP_EOL;
                    
332		$content .= 'class CodeCompletion {' . PHP_EOL;
                    
333		$content .= '}' . PHP_EOL . PHP_EOL;
                    
334		$content .= '//Printed: ' . date('d.m.Y, H:i:s') . PHP_EOL;
                    
379
                    
380		// no test/tmp files etc (helper.test.php or helper.OLD.php)
                    
381		foreach ($files as $key => $file) {
                    
                
ezurltype.php https://github.com/nfrp/ezpublish.git | PHP | 374 lines
                    
1<?php
                    
2/**
                    
11/*!
                    
12  \class eZURLType ezurltype.php
                    
13  \ingroup eZDatatype
                    
102        }
                    
103        $urls = array_unique( $urls );
                    
104
                    
                
 

Source

Language