100+ results results for 'php array_unique repo:sammousa/valuematchbv-ls2' (2128 ms)
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 289 290 $productsId = array_unique($productsId); 291previewmanager.php https://gitlab.com/wuhang2003/core | PHP | 342 lines
1<?php 2/** 239 } 240 $this->defaultProviders = array_unique($this->defaultProviders); 241 return $this->defaultProviders;class-wp-theme-install-list-table.php https://gitlab.com/Gashler/dp | PHP | 394 lines
133 <div class="alignleft actions"> 134 <?php do_action( 'install_themes_table_header' ); ?> 135 </div> 151 ?> 152 <div class="available-theme installable-theme"><?php 153 $this->single_row( $theme ); 226 ?> 227 <a class="screenshot install-theme-preview" href="<?php echo esc_url( $preview_url ); ?>" title="<?php echo esc_attr( $preview_title ); ?>"> 228 <img src='<?php echo esc_url( $theme->screenshot_url ); ?>' width='150' /> 242 243 <?php 244 $this->install_theme_info( $theme ); 261 <a href="#" class="collapse-sidebar button-secondary" title="<?php esc_attr_e('Collapse Sidebar'); ?>"> 262 <span class="collapse-sidebar-label"><?php _e('Collapse'); ?></span> 263 <span class="collapse-sidebar-arrow"></span>Store.php https://gitlab.com/ntphuc/BackendFeedy | PHP | 707 lines
1<?php 2 492 { 493 $values = array_unique(array_merge($this->get('flash.new', []), $keys)); 494Class.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{CollectionConstraint.php https://gitlab.com/yousafsyed/easternglamor | PHP | 112 lines
1<?php 2 40 } 41 if (count(array_unique($unique)) != count($value)) { 42 $this->addError($path, "There are no duplicates allowed in the array", 'uniqueItems');ticket_group_edit.php https://gitlab.com/alexprowars/bitrix | PHP | 299 lines
1<? 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/support/prolog.php"); 15 16$LIST_URL = '/bitrix/admin/ticket_group_list.php'; 17 50 $UIDS = array_map('intval', $_POST[$FMUTagName]['VALS']); 51 $UIDS = array_unique($UIDS); 52 $USERS = array(); 101 'CAN_MAIL_UPDATE_GROUP_MESSAGES' => $ar_ug['CAN_MAIL_UPDATE_GROUP_MESSAGES'], 102 'USER_NAME' => '[<a title="'.GetMessage("MAIN_USER_PROFILE").'" href="user_edit.php?ID='.$ar_ug["USER_ID"].'&lang='.LANG.'">'.$ar_ug["USER_ID"].'</a>] ('.$ar_ug["LOGIN"].') '.$ar_ug["FIRST_NAME"].' '.$ar_ug["LAST_NAME"], 103 ); 120 121require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php"); 122eventpergame.php https://gitlab.com/julienv/joomleague | PHP | 337 lines
1<?php 2/** 3 * @copyright Copyright (C) 2006-2014 joomleague.at. All rights reserved. 4 * @license GNU/GPL, see LICENSE.php 5 * Joomla! is free software. This version may have been modified pursuant 8 * other free or open source software licenses. 9 * See COPYRIGHT.php for copyright notices and details. 10 */ 14 15require_once(JLG_PATH_ADMIN.DS.'statistics'.DS.'base.php'); 16 78 /** 79 * (non-PHPdoc) 80 * @see administrator/components/com_joomleague/statistics/JLGStatistic#getPlayerStatsByProject($person_id, $project_id) 104 $res = array(); 105 foreach (array_unique(array_merge(array_keys($num), array_keys($den))) as $person_id) 106 {meta-box-saves.inc.php https://gitlab.com/Gashler/dp | PHP | 148 lines
1<?php 2/** 59 for ($n = 0; $n <= $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["levels"]; $n++) 60 $pages[$n] = array_unique (preg_split ("/[\r\n\t\s;,]+/", $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["level" . $n . "_pages"])); 61 62 for ($n = 0; $n <= $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["levels"]; $n++) 63 $posts[$n] = array_unique (preg_split ("/[\r\n\t\s;,]+/", $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["level" . $n . "_posts"])); 64 88 for ($n = 0; $n <= $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["levels"]; $n++) 89 $posts[$n] = array_unique (preg_split ("/[\r\n\t\s;,]+/", $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["level" . $n . "_posts"])); 90InlineServiceDefinitionsPass.php https://gitlab.com/cuza/Clinic_Recods | PHP | 141 lines
1<?php 2 130 131 if (count(array_unique($ids)) > 1) { 132 return false;PwLikeService.php https://gitlab.com/wuhang2003/phpwind | PHP | 419 lines
1<?php 2/** 3 * @author Foxsee@aliyun.com 4 * @copyright ?2003-2103 phpwind.com 5 * @license http://www.phpwind.com 5 * @license http://www.phpwind.com 6 * @version $Id: PwLikeService.php 20027 2012-10-22 11:49:23Z gao.wanggao $ 7 * @package 127 $tagnames = array_filter(explode(' ', $tags)); 128 $tagnames = array_unique($tagnames); 129 foreach ($tagnames AS $k=>$tag) {feed.php https://gitlab.com/gregtyka/app222 | PHP | 546 lines
1<?php 2/** 319 320 $cat_names = array_unique($cat_names); 321 443 * 444 * @link http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.3.1 445 * 530function fetch_feed($url) { 531 require_once (ABSPATH . WPINC . '/class-feed.php'); 532bookmark.php https://gitlab.com/VTTE/sitios-vtte | 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&s=Link+Manager' ); 322 /* translators: %s: URL to install the Link Manager plugin. */DoctrineExtensionTest.php https://gitlab.com/TouirMohamedMarwen/Symfony2 | PHP | 284 lines
1<?php 2 20 */ 21class DoctrineExtensionTest extends \PHPUnit_Framework_TestCase 22{ 215 216 foreach (array_unique($expectedCalls) as $call) { 217 $this->assertContains($call, $actualCalls);apc.object-cache.php https://gitlab.com/endomorphosis/falkenstein | PHP | 380 lines
1<?php 2/* 9 10Install this file to wp-content/object-cache.php 11 19if ( version_compare( '5.2.4', phpversion(), '>=' ) ) { 20 wp_die( 'The APC object cache backend requires PHP 5.2 or higher. You are running ' . phpversion() . '. Please remove the <code>object-cache.php</code> file from your content directory.' ); 21} 24 // Regular die, not wp_die(), because it gets sandboxed and shown in a small iframe 25 die( '<strong>ERROR:</strong> This is <em>not</em> a plugin, and it should not be activated as one.<br /><br />Instead, <code>' . str_replace( $_SERVER['DOCUMENT_ROOT'], '', __FILE__ ) . '</code> must be moved to <code>' . str_replace( $_SERVER['DOCUMENT_ROOT'], '', trailingslashit( WP_CONTENT_DIR ) ) . 'object-cache.php</code>' ); 26} else { 27 28// Users with setups where multiple installs share a common wp-config.php can use this 29// to guarantee uniqueness for the keys generated by this object cache 160 $this->global_groups = array_merge( $this->global_groups, $groups ); 161 $this->global_groups = array_unique( $this->global_groups ); 162 }Template.php https://gitlab.com/dcnf/dcbase.org | PHP | 424 lines
1<?php 2 297 298 return array_unique($names); 299 }bookmark.php https://gitlab.com/Gashler/dp | PHP | 387 lines
1<?php 2/** 36 if ( $_bookmark ) { 37 $_bookmark->link_category = array_unique( wp_get_object_terms( $_bookmark->link_id, 'link_category', array( 'fields' => 'ids' ) ) ); 38 wp_cache_add( $_bookmark->link_id, $_bookmark, 'bookmark' );Relation.php https://gitlab.com/puntodos/ean-landings | PHP | 349 lines
1<?php 2 187 { 188 return array_unique(array_values(array_map(function ($value) use ($key) { 189 return $key ? $value->getAttribute($key) : $value->getKey();shBrushPhp.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 91 lines
29 */ 30SyntaxHighlighter.brushes.Php = function() 31{ 40 'array_udiff_uassoc array_uintersect array_uintersect_assoc '+ 41 'array_uintersect_uassoc array_unique array_unshift array_values array_walk '+ 42 'array_walk_recursive atan atan2 atanh base64_decode base64_encode base_convert '+ 86 87 this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags); 88}; 90SyntaxHighlighter.brushes.Php.prototype = new SyntaxHighlighter.Highlighter(); 91SyntaxHighlighter.brushes.Php.aliases = ['php']; 92class-wc-query.php https://gitlab.com/hop23typhu/list-theme | PHP | 496 lines
1<?php 2/** 241 // Get a list of post id's which match the current filters set (in the layered nav and price filter) 242 $post__in = array_unique( apply_filters( 'loop_shop_post_in', array() ) ); 243my-account-takeover.class.php https://gitlab.com/leobelizquierdo/cabotsubmitter-wordpress | PHP | 376 lines
1<?php if ( __FILE__ == $_SERVER['SCRIPT_FILENAME'] ) die( header( 'Location: /') ); 2 29 if (self::$options->{'qsot-infinite-login'} == 'yes') { 30 //add_action('login_init', array(__CLASS__, 'long_test_cookie'), PHP_INT_MAX); 31 add_filter('auth_cookie_expiration', array(__CLASS__, 'long_login_expire'), PHP_INT_MAX, 3); 31 add_filter('auth_cookie_expiration', array(__CLASS__, 'long_login_expire'), PHP_INT_MAX, 3); 32 add_filter('auth_cookie_expire_time', array(__CLASS__, 'long_login_expire'), PHP_INT_MAX, 4); 33 add_filter('wc_session_expiring', array(__CLASS__, 'long_login_expiring'), PHP_INT_MAX, 3); 33 add_filter('wc_session_expiring', array(__CLASS__, 'long_login_expiring'), PHP_INT_MAX, 3); 34 add_filter('wc_session_expiration', array(__CLASS__, 'long_login_expire'), PHP_INT_MAX, 3); 35 add_filter('init', array(__CLASS__, 'extend_login_expiration'), -1); 62 63 $shows = array_unique($shows); 64 ?> 65 <td> 66 <?php if (count($shows)): ?> 67 <?php echo implode('<br/>', $shows) ?>perfmon_index_list.php https://gitlab.com/alexprowars/bitrix | PHP | 426 lines
5define("PERFMON_STOP", true); 6require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 7/** @global CMain $APPLICATION */ 10Loader::includeModule('perfmon'); 11require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/perfmon/prolog.php"); 12 105 { 106 foreach (array_unique($arMissedKeys) as $suggest) 107 { 267 268 $row->AddViewField("SQL_COUNT", '<a href="perfmon_sql_list.php?lang='.LANGUAGE_ID.'&set_filter=Y&find_suggest_id='.$f_ID.'">'.$f_SQL_COUNT.'</a>'); 269 $row->AddViewField("COLUMN_NAMES", str_replace(",", "<br>", $f_COLUMN_NAMES)); 308 "TEXT" => GetMessage("PERFMON_INDEX_DETAILS"), 309 "ACTION" => $lAdmin->ActionRedirect('perfmon_index_detail.php?lang='.LANG.'&ID='.$f_ID), 310 ),TbGroupGridView.php https://gitlab.com/dwi.nurhadi17/uns-log | PHP | 375 lines
1<?php 2/** 128 //store columns for group. Set object for existing columns in grid and string for attributes 129 $groupColumns = array_unique(array_merge($this->mergeColumns, $this->extraRowColumns)); 130 foreach ($groupColumns as $key => $colName) {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) {class-wp-theme-install-list-table.php https://gitlab.com/stevie007/cinostaging | 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 );BlockHelper.php https://gitlab.com/cuza/Clinic_Recods | PHP | 480 lines
1<?php 2 67 /** 68 * This property is a state variable holdings all assets used by the block for the current PHP request 69 * It is used to correctly render the javascripts and stylesheets tags on the main layout. 199 $this->assets = array( 200 'js' => array_unique(array_merge($assets['js'], $this->assets['js'])), 201 'css' => array_unique(array_merge($assets['css'], $this->assets['css'])),Reader.php https://gitlab.com/cmtsheikeshadi/first_app_development_project | PHP | 350 lines
1<?php 2/** 5* @license http://opensource.org/licenses/MIT 6* @link https://github.com/thephpleague/csv/ 7* @version 8.1.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');cache.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 503 lines
1<?php 2/** 281 $this->global_groups = array_merge($this->global_groups, $groups); 282 $this->global_groups = array_unique($this->global_groups); 283 } 411 * The $expire parameter is not used, because the cache will automatically 412 * expire for each time a page is accessed and PHP finishes. The method is 413 * more for cache plugins which use files. 465 /** 466 * PHP4 constructor; Calls PHP 5 style constructor 467 * 476 /** 477 * Sets up object properties; PHP 5 style constructor 478 * 483 /** 484 * @todo This should be moved to the PHP4 style constructor, PHP5 485 * already calls __destruct()filterbar.php https://gitlab.com/futuredrive630/wp-event-list | PHP | 316 lines
1<?php 2if(!defined('ABSPATH')) { 5 6require_once( EL_PATH.'includes/db.php' ); 7require_once( EL_PATH.'includes/categories.php' ); 202 } 203 $events_cat_array = array_unique($events_cat_array); 204 //create filtered cat_arrayGenerator.php https://gitlab.com/PragmaticLinux/Yii | PHP | 223 lines
1<?php 2/** 98 return [ 99 'controller.php', 100 'view.php', 159 $this->getControllerFile(), 160 $this->render('controller.php') 161 ); 165 $this->getViewFile($action), 166 $this->render('view.php', ['action' => $action]) 167 ); 178 { 179 $actions = array_unique(preg_split('/[\s,]+/', $this->actions, -1, PREG_SPLIT_NO_EMPTY)); 180 sort($actions); 189 { 190 return Yii::getAlias('@' . str_replace('\\', '/', $this->controllerClass)) . '.php'; 191 }Cache.php https://gitlab.com/gregtyka/SiberianCMS | PHP | 289 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Cache.php 24853 2012-05-31 23:19:27Z adamlundrigan $ 20 */ 24 */ 25require_once 'Zend/Controller/Action/Helper/Abstract.php'; 26 29 */ 30require_once 'Zend/Controller/Action/Exception.php'; 31 34 */ 35require_once 'Zend/Cache/Manager.php'; 36 90 $controller = $this->getRequest()->getControllerName(); 91 $actions = array_unique($actions); 92 if (!isset($this->_caching[$controller])) {http.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 313 lines
1<?php 2/** 216 if ( $url && !isset( $capabilities['ssl'] ) ) { 217 $scheme = parse_url( $url, PHP_URL_SCHEME ); 218 if ( 'https' == $scheme || 'ssl' == $scheme ) { 252 // @todo preserve port? 253 $allowed_origins = array_unique( array( 254 'http://' . $admin_origin[ 'host' ],load-scripts.php https://gitlab.com/Gashler/dp | PHP | 162 lines
1<?php 2 121$load = preg_replace( '/[^a-z0-9,_-]+/i', '', $load ); 122$load = array_unique( explode( ',', $load ) ); 123 126 127require(ABSPATH . WPINC . '/script-loader.php'); 128require(ABSPATH . WPINC . '/version.php');Configuration.php https://gitlab.com/freebird/WebApp | PHP | 202 lines
1<?php 2 56 ->then(function ($v) { 57 $v['form_themes'] = array_values(array_unique(array_merge($v['form']['resources'], $v['form_themes']))); 58script.php https://gitlab.com/alexprowars/bitrix | PHP | 338 lines
1<?php 2 38 39 $documentIds = array_unique($documentIds); 40Translator.php https://gitlab.com/PragmaticLinux/Laravel | PHP | 472 lines
1<?php 2 360 $this->assertValidLocale($locale); 361 $cache = new ConfigCache($this->cacheDir.'/catalogue.'.$locale.'.php', $this->debug); 362 if (!$cache->isFresh()) { 388 $content = sprintf(<<<EOF 389<?php 390 455 456 return array_unique($locales); 457 }Util.php https://gitlab.com/jeann2015/secret | PHP | 291 lines
1<?php 2 188 189 $directories = array_diff(array_unique($directories), array_unique($listedDirectories)); 190bookmark.php https://gitlab.com/Henaway/CLFC | PHP | 305 lines
1<?php 2/** 119 120 return array_unique( $cats ); 121} 247 $link_categories = array_map( 'intval', $link_categories ); 248 $link_categories = array_unique( $link_categories ); 249 290 global $pagenow; 291 if ( 'link-manager.php' != $pagenow && 'link-add.php' != $pagenow && 'link.php' != $pagenow ) 292 return; 298 if ( $really_can_manage_links && current_user_can( 'install_plugins' ) ) { 299 $link = network_admin_url( 'plugin-install.php?tab=search&s=Link+Manager' ); 300 wp_die( sprintf( __( 'If you are looking to use the link manager, please install the <a href="%s">Link Manager</a> plugin.' ), $link ) );AdminPaymentController.php https://gitlab.com/goolic/PrestaShop | PHP | 126 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 22 * @copyright 2007-2015 PrestaShop SA 23 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 24 * International Registered Trademark & Property of PrestaShop SA 38 { 39 $this->toolbar_title = array_unique($this->breadcrumbs); 40 }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_objetPwDesignThreadDataService.php https://gitlab.com/wuhang2003/phpwind | PHP | 231 lines
1<?php 2Wind::import('SRV:design.srv.model.PwDesignModelBase'); 10 * @author $Author: gao.wanggao $ Foxsee@aliyun.com 11 * @copyright ?2003-2103 phpwind.com 12 * @license http://www.phpwind.com 12 * @license http://www.phpwind.com 13 * @version $Id: PwDesignThreadDataService.php 25436 2013-03-15 08:45:34Z gao.wanggao $ 14 * @package 18 /** 19 * (non-PHPdoc) 20 * @see src/service/design/srv/model/PwDesignModelBase::decorateAddProperty() 32 /** 33 * (non-PHPdoc) 34 * @see src/service/design/srv/model/PwDesignModelBase::decorateEditProperty() 48 /** 49 * (non-PHPdoc) 50 * @see src/service/design/srv/model/PwDesignModelBase::decorateSaveProperty()select.php https://gitlab.com/trenkwill/thema-design | PHP | 232 lines
187 <tr> 188 <th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-name' ); ?>"><?php echo esc_html( __( 'Name', 'contact-form-7' ) ); ?></label></th> 189 <td><input type="text" name="name" class="tg-name oneline" id="<?php echo esc_attr( $args['content'] . '-name' ); ?>" /></td> 197 <textarea name="values" class="values" id="<?php echo esc_attr( $args['content'] . '-values' ); ?>"></textarea> 198 <label for="<?php echo esc_attr( $args['content'] . '-values' ); ?>"><span class="description"><?php echo esc_html( __( "One option per line.", 'contact-form-7' ) ); ?></span></label><br /> 199 <label><input type="checkbox" name="multiple" class="option" /> <?php echo esc_html( __( 'Allow multiple selections', 'contact-form-7' ) ); ?></label><br /> 205 <tr> 206 <th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-id' ); ?>"><?php echo esc_html( __( 'Id attribute', 'contact-form-7' ) ); ?></label></th> 207 <td><input type="text" name="id" class="idvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-id' ); ?>" /></td> 210 <tr> 211 <th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-class' ); ?>"><?php echo esc_html( __( 'Class attribute', 'contact-form-7' ) ); ?></label></th> 212 <td><input type="text" name="class" class="classvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-class' ); ?>" /></td> 228 229 <p class="description mail-tag"><label for="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>"><?php echo sprintf( esc_html( __( "To use the value input through this field in a mail field, you need to insert the corresponding mail-tag (%s) into the field on the Mail tab.", 'contact-form-7' ) ), '<strong><span class="mail-tag"></span></strong>' ); ?><input type="text" class="mail-tag code hidden" readonly="readonly" id="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>" /></label></p> 230</div>class.I18Nlocale.inc.php http://flaimo-php.googlecode.com/svn/trunk/ | PHP | 341 lines
1<?php 2/** 4*/ 5require_once 'class.I18Nbase.inc.php'; 6 9* @author Michael Wimmer <flaimo@gmail.com> 10* @category flaimo-php 11* @example ../www_root/i18n_example_script.php i18n example script 12* @license GNU General Public License v3 13* @link http://code.google.com/p/flaimo-php/ 14* @package i18n 166 if (is_array($this->languages)) { 167 $this->languages = array_unique($this->languages); 168 } // end if 170 if (is_array($this->countries)) { 171 $this->countries = array_unique($this->countries); 172 } // end ifMessageBag.php https://gitlab.com/alamgircsejnu/AMS-Project-Laravel | PHP | 359 lines
1<?php 2 197 { 198 return array_unique($this->all($format)); 199 }timecounter.php https://gitlab.com/myurd/magmi-git | PHP | 251 lines
1<?php 2 177 array_push($this->_timingcontext, $src); 178 $this->_timingcontext = array_values(array_unique($this->_timingcontext)); 179 }ViewLookupWizardField.php https://gitlab.com/Lidbary/PHPRunner | PHP | 363 lines
1<?php 2class ViewLookupWizardField extends ViewControl 241 $lookupValues = array(); 242 $lookupArr = array_unique( $lookupArr ); 243 foreach($lookupArr as $lookupvalue)Collection.php https://gitlab.com/biggercode/Eloquent-Outside-of-Laravel | PHP | 705 lines
1<?php namespace Illuminate\Support; 2 538 { 539 return new static(array_unique($this->items)); 540 }Job.php https://gitlab.com/blingbang2016/shop | PHP | 358 lines
1<?php 2 33 // Remove empties and de-dupe 34 $codes = array_unique(array_filter($codes)); 35PushController.php https://gitlab.com/wuhang2003/phpwind | PHP | 303 lines
1<?php 2Wind::import('ADMIN:library.AdminBaseController'); 5 * @author $Author: gao.wanggao $ Foxsee@aliyun.com 6 * @copyright ©2003-2103 phpwind.com 7 * @license http://www.phpwind.com 7 * @license http://www.phpwind.com 8 * @version $Id: PushController.php 28818 2013-05-24 10:10:46Z gao.wanggao $ 9 * @package 47 } 48 array_unique($moduleids); 49 $modules = $this->_getModuleDs()->fetchModule($moduleids); 105 } 106 array_unique($uids); 107 array_unique($moduleids); 263 } 264 $moduleids = array_unique($moduleids); 265 Wind::import('SRV:design.srv.data.PwAutoData');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 ); 348functions.php https://gitlab.com/Haithamgit/Project | PHP | 579 lines
1<?php 2 309 preg_match_all( $pattern, $content, $usernames ); 310 $usernames = array_unique( array_filter( $usernames[1] ) ); 311reports.php https://bitbucket.org/rrobeson/ats_inventory_management_system.git | PHP | 322 lines
1<?php 2 133 134 $faculty_ids = array_unique($faculty_ids); 135PwDesignUserDataService.php https://gitlab.com/wuhang2003/phpwind | PHP | 311 lines
1<?php 2Wind::import('SRV:design.srv.model.PwDesignModelBase'); 12 * @author xiaoxia.xu <xiaoxia.xuxx@aliyun-inc.com> 13 * @copyright ©2003-2103 phpwind.com 14 * @license http://www.windframework.com 14 * @license http://www.windframework.com 15 * @version $Id: PwDesignUserDataService.php 24726 2013-02-18 06:15:04Z gao.wanggao $ 16 * @package src.service.design.srv.model.user 20 /** 21 * (non-PHPdoc) 22 * @see src/service/design/srv/model/PwDesignModelBase::decorateAddProperty() 30 /** 31 * (non-PHPdoc) 32 * @see src/service/design/srv/model/PwDesignModelBase::decorateEditProperty() 42 /** 43 * (non-PHPdoc) 44 * @see src/service/design/srv/model/PwDesignModelBase::decorateSaveProperty()testcase.php https://gitlab.com/wuhang2003/core | PHP | 479 lines
1<?php 2/** 35 36abstract class TestCase extends \PHPUnit_Framework_TestCase { 37 /** @var \OC\Command\QueueBus */ 94 } 95 $traits = array_unique($traits); 96 return array_filter($traits, function ($trait) { 208 if (!self::$wasDatabaseAllowed && self::$realDatabase !== null) { 209 // in case an error is thrown in a test, PHPUnit jumps straight to tearDownAfterClass, 210 // so we need the database again 425 426 require_once __DIR__.'/../../lib/private/template/functions.php'; 427 429 $theme = new OC_Defaults(); 430 /** @var IL10N | \PHPUnit_Framework_MockObject_MockObject $l10n */ 431 $l10n = $this->getMockBuilder('\OCP\IL10N')file.php https://gitlab.com/joelopezcuenca/proyectocoin | PHP | 393 lines
252 <tr> 253 <th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-name' ); ?>"><?php echo esc_html( __( 'Name', 'contact-form-7' ) ); ?></label></th> 254 <td><input type="text" name="name" class="tg-name oneline" id="<?php echo esc_attr( $args['content'] . '-name' ); ?>" /></td> 262 <tr> 263 <th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-filetypes' ); ?>"><?php echo esc_html( __( 'Acceptable file types', 'contact-form-7' ) ); ?></label></th> 264 <td><input type="text" name="filetypes" class="filetype oneline option" id="<?php echo esc_attr( $args['content'] . '-filetypes' ); ?>" /></td> 267 <tr> 268 <th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-id' ); ?>"><?php echo esc_html( __( 'Id attribute', 'contact-form-7' ) ); ?></label></th> 269 <td><input type="text" name="id" class="idvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-id' ); ?>" /></td> 272 <tr> 273 <th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-class' ); ?>"><?php echo esc_html( __( 'Class attribute', 'contact-form-7' ) ); ?></label></th> 274 <td><input type="text" name="class" class="classvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-class' ); ?>" /></td> 290 291 <p class="description mail-tag"><label for="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>"><?php echo sprintf( esc_html( __( "To attach the file uploaded through this field to mail, you need to insert the corresponding mail-tag (%s) into the File Attachments field on the Mail tab.", 'contact-form-7' ) ), '<strong><span class="mail-tag"></span></strong>' ); ?><input type="text" class="mail-tag code hidden" readonly="readonly" id="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>" /></label></p> 292</div>pts_result_file_analyzer.php git://pkgs.fedoraproject.org/phoronix-test-suite | PHP | 375 lines
1<?php 2 44 $hw = $result_file->get_system_hardware(); 45 $hw_unique = array_unique($hw); 46 $sw = $result_file->get_system_software(); 46 $sw = $result_file->get_system_software(); 47 $sw_unique = array_unique($sw); 48 $desc = false;RouteListCommand.php https://gitlab.com/4gdevs/online-class-record-system | PHP | 281 lines
1<?php 2 143 144 $middlewares = array_unique( 145 array_merge($middlewares, $this->getPatternFilters($route))bookmark.php https://gitlab.com/gregtyka/helloworld1234 | PHP | 414 lines
1<?php 2/** 37 if ( $_bookmark ) { 38 $_bookmark->link_category = array_unique( wp_get_object_terms( $_bookmark->link_id, 'link_category', array( 'fields' => 'ids' ) ) ); 39 wp_cache_add( $_bookmark->link_id, $_bookmark, 'bookmark' ); 199 wp_cache_set( 'get_bookmarks', $cache, 'bookmark' ); 200 /** This filter is documented in wp-includes/bookmark.php */ 201 return apply_filters( 'get_bookmarks', array(), $r ); 290 291 /** This filter is documented in wp-includes/bookmark.php */ 292 return apply_filters( 'get_bookmarks', $results, $r ); 380 if ( 'edit' == $context ) { 381 /** This filter is documented in wp-includes/post.php */ 382 $value = apply_filters( "edit_$field", $value, $bookmark_id ); 389 } else if ( 'db' == $context ) { 390 /** This filter is documented in wp-includes/post.php */ 391 $value = apply_filters( "pre_$field", $value );Memory.php https://gitlab.com/yousafsyed/easternglamor | PHP | 160 lines
1<?php 2/** 5 * Uses OS tools to provide accurate information about factual memory consumption. 6 * The PHP standard functions may return incorrect information because the process itself may have leaks. 7 * 41 * memory_get_usage() cannot be used because of the bug 42 * @link https://bugs.php.net/bug.php?id=62467 43 * 114 $pow = $unitSymbol ? strpos(self::MEMORY_UNITS, $unitSymbol) : 0; 115 $is32Bit = PHP_INT_SIZE == 4; 116 if ($is32Bit && $pow >= 4) { 141 preg_match_all('/(\D+)/', $number, $matches); 142 if (count(array_unique($matches[0])) > 1) { 143 throw new \InvalidArgumentException( 152 * 153 * @link http://php.net/manual/en/function.php-uname.php 154 * @return booleanclass-sitemap-image-parser.php https://bitbucket.org/wedodigital/wedo-sitemaps.git | PHP | 500 lines
1<?php 2/** 241 if ( PHP_VERSION_ID >= 50209 ) { 242 // phpcs:ignore PHPCompatibility.PHP.NewFunctionParameters.array_unique_sort_flagsFound -- Wrapped in version check. 243 return array_unique( $attachments, SORT_REGULAR );class.plugin-base.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 171 lines
1<?php 2require( ABSPATH . WPINC . '/pluggable.php' ); 131 $options = $this->options; 132 include_once($this->plugin_path.'/views/settings.php'); 133 } 168 foreach( $a2 as $a)array_push($a1, $a); 169 return array_unique($a1); 170 }api-term.php https://bitbucket.org/sebastianpisula/wordpress-starter.git | PHP | 498 lines
1<?php 2 70 // remove duplicates 71 $taxonomies = array_unique($taxonomies); 72Controls.php https://gitlab.com/cmtsheikeshadi/first_app_development_project | PHP | 235 lines
1<?php 2/** 5* @license http://opensource.org/licenses/MIT 6* @link https://github.com/thephpleague/csv/ 7* @version 8.1.0 114 }; 115 $delimiters = array_unique(array_filter($delimiters, [$this, 'isValidCsvControls'])); 116 $csv = $this->getIterator();__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'; 321changepropagator.php https://gitlab.com/Red54/core | PHP | 117 lines
1<?php 2/** 90 foreach ($this->getChanges() as $path) { 91 $parents = array_values(array_unique(array_merge($parents, $this->getParents($path)))); 92 }Type.php https://gitlab.com/fogteen/gasaon | PHP | 303 lines
39 * @author Sebastian Bergmann <sebastian@phpunit.de> 40 * @copyright 2001-2014 Sebastian Bergmann <sebastian@phpunit.de> 41 * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License 41 * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License 42 * @link http://www.phpunit.de/ 43 * @since File available since Release 3.0.0 50 * @subpackage Util 51 * @author Sebastian Bergmann <sebastian@phpunit.de> 52 * @copyright 2001-2014 Sebastian Bergmann <sebastian@phpunit.de> 53 * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License 54 * @link http://www.phpunit.de/ 55 * @since Class available since Release 3.0.0 159 // There seems to be no other way to check arrays for recursion 160 // http://www.php.net/manual/en/language.types.array.php#73936 161 preg_match_all('/\n \[(\w+)\] => Array\s+\*RECURSION\*/', print_r($value, TRUE), $matches);RouteCollection.php https://gitlab.com/krlosnando/cenfo-crm.git | PHP | 344 lines
1<?php 2 275 276 return array_unique($resources); 277 }file.php https://gitlab.com/endomorphosis/falkenstein | PHP | 342 lines
1<?php 2/** 209 210 'upload_failed_php_error' => array( 211 'description' => __( "Uploading a file fails for PHP error", 'contact-form-7' ), 234<table> 235<tr><td><input type="checkbox" name="required" /> <?php echo esc_html( __( 'Required field?', 'contact-form-7' ) ); ?></td></tr> 236<tr><td><?php echo esc_html( __( 'Name', 'contact-form-7' ) ); ?><br /><input type="text" name="name" class="tg-name oneline" /></td><td></td></tr> 240<tr> 241<td><code>id</code> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br /> 242<input type="text" name="id" class="idvalue oneline option" /></td> 248<tr> 249<td><?php echo esc_html( __( "File size limit", 'contact-form-7' ) ); ?> (<?php echo esc_html( __( 'bytes', 'contact-form-7' ) ); ?>) (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br /> 250<input type="text" name="limit" class="filesize oneline option" /></td> 251 252<td><?php echo esc_html( __( "Acceptable file types", 'contact-form-7' ) ); ?> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br /> 253<input type="text" name="filetypes" class="filetype oneline option" /></td>Select.php git://github.com/kohana/database.git | PHP | 447 lines
1<?php defined('SYSPATH') OR die('No direct script access.'); 2/** 8 * @copyright (c) 2008-2009 Kohana Team 9 * @license http://kohanaphp.com/license 10 */ 353 // Select all columns 354 $query .= implode(', ', array_unique(array_map($quote_column, $this->_select))); 355 } 359 // Set tables to select from 360 $query .= ' FROM '.implode(', ', array_unique(array_map($quote_table, $this->_from))); 361 }FormHelper.php https://gitlab.com/x33n/ImpressPages | PHP | 219 lines
1<?php 2 47 48 $files = array_unique($files, SORT_STRING); 49 sort($files);Data.php https://gitlab.com/hennesfinest/wordpress-integration | PHP | 497 lines
1<?php 2/** 93 else { 94 $robots = array_unique(array_merge(explode(',', $headBlock->getRobots()), $robots)); 95CommandWithUpgrade.php https://gitlab.com/Blueprint-Marketing/wp-cli | PHP | 407 lines
1<?php 2 99 private function show_legend( $items ) { 100 $statuses = array_unique( wp_list_pluck( $items, 'status' ) ); 101 124 // Check if a URL to a remote zip file has been specified 125 $url_path = parse_url( $slug, PHP_URL_PATH ); 126 if ( ! empty( $url_path ) && '.zip' === substr( $url_path, - 4 ) ) {Generator.php https://gitlab.com/yousafsyed/easternglamor | PHP | 342 lines
1<?php 2/** 73 /** 74 * Construct, configure, and return a PHP class file code generation object 75 * 92 93 $fetched = array_unique(array_merge($definitions->getClasses(), $im->getAliases())); 94 266 267 // Create PHP file code generation object 268 $classFile = new FileGenerator(); 312 /** 313 * Create a PhpMethod code generation object named after a given alias 314 *FunctionCommentThrowTagSniff.php https://gitlab.com/yousafsyed/easternglamor | PHP | 215 lines
14 * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence 15 * @link http://pear.php.net/package/PHP_CodeSniffer 16 */ 34 * @version Release: @package_version@ 35 * @link http://pear.php.net/package/PHP_CodeSniffer 36 */ 53 * 54 * @param PHP_CodeSniffer_File $phpcsFile The file where this token was found. 55 * @param int $stackPtr The position where the token was found. 59 */ 60 protected function processTokenWithinScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $currScope) 61 { 93 try { 94 $this->commentParser = new PHP_CodeSniffer_CommentParser_FunctionCommentParser($comment, $phpcsFile); 95 $this->commentParser->parse();Cache.php https://gitlab.com/JrLucena/moodle | PHP | 491 lines
1<?php 2/** 194 $this->_loadSliceMap($mailbox, $uidvalid); 195 return array_unique(array_merge( 196 array_keys($this->_slicemap[$mailbox]['s']), 288 289 foreach (array_unique($deleted) as $slice) { 290 /* Get rid of slice if less than 10% of capacity. */ 377 if (!empty($uids)) { 378 foreach (array_unique(array_intersect_key($this->_slicemap[$mailbox]['s'], array_flip($uids))) as $slice) { 379 $this->_loadSlice($mailbox, $slice);DependencyInjectionExtension.php https://gitlab.com/cuza/Clinic_Recods | PHP | 198 lines
1<?php 2 137 138 $serviceIdx = array_unique(array_merge(isset($this->typeExtensionServiceIds[$name]) ? $this->typeExtensionServiceIds[$name] : array(), $serviceIdx)); 139export.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 410 lines
303<channel> 304 <title><?php bloginfo_rss( 'name' ); ?></title> 305 <link><?php bloginfo_rss( 'url' ) ?></link> 313 <?php if ( $cats ) : foreach ( $cats as $c ) : ?> 314 <wp:category><wp:category_nicename><?php echo $c->slug; ?></wp:category_nicename><wp:category_parent><?php echo $c->parent ? $cats[$c->parent]->name : ''; ?></wp:category_parent><?php wxr_cat_name( $c ); ?><?php wxr_category_description( $c ); ?></wp:category> 315 <?php endforeach; endif; ?> 316 <?php if ( $tags ) : foreach ( $tags as $t ) : ?> 317 <wp:tag><wp:tag_slug><?php echo $t->slug; ?></wp:tag_slug><?php wxr_tag_name( $t ); ?><?php wxr_tag_description( $t ); ?></wp:tag> 318 <?php endforeach; endif; ?> 319 <?php if ( $terms ) : foreach ( $terms as $t ) : ?> 320 <wp:term><wp:term_taxonomy><?php echo $t->taxonomy; ?></wp:term_taxonomy><wp:term_slug><?php echo $t->slug; ?></wp:term_slug><wp:term_parent><?php echo $t->parent ? $custom_taxonomies[$t->parent]->name : ''; ?></wp:term_parent><?php wxr_term_name( $t ); ?><?php wxr_term_description( $t ); ?></wp:term> 321 <?php endforeach; endif; ?> 354 <wp:post_id><?php echo $post->ID; ?></wp:post_id> 355 <wp:post_date><?php echo $post->post_date; ?></wp:post_date> 356 <wp:post_date_gmt><?php echo $post->post_date_gmt; ?></wp:post_date_gmt>class-wc-admin-notices.php https://gitlab.com/leobelizquierdo/cabotsubmitter-wordpress | PHP | 187 lines
1<?php 2/** 65 public static function add_notice( $name ) { 66 $notices = array_unique( array_merge( get_option( 'woocommerce_admin_notices', array() ), array( $name ) ) ); 67 update_option( 'woocommerce_admin_notices', $notices ); 126 public function update_notice() { 127 include( 'views/html-notice-update.php' ); 128 } 133 public function install_notice() { 134 include( 'views/html-notice-install.php' ); 135 } 141 if ( ! current_theme_supports( 'woocommerce' ) && ! in_array( get_option( 'template' ), wc_get_core_supported_themes() ) ) { 142 include( 'views/html-notice-theme-support.php' ); 143 } else { 179 if ( $outdated ) { 180 include( 'views/html-notice-template-check.php' ); 181 } else {MimeType.php https://gitlab.com/devtoannh/cafe | PHP | 392 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: MimeType.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 24 */ 25require_once 'Zend/Validate/Abstract.php'; 26 126 } elseif (!is_array($mimetype)) { 127 require_once 'Zend/Validate/Exception.php'; 128 throw new Zend_Validate_Exception("Invalid options to validator provided"); 154 } elseif (!(@ini_get("safe_mode") == 'On' || @ini_get("safe_mode") === 1)) { 155 require_once 'Zend/Validate/Exception.php'; 156 foreach ($this->_magicFiles as $file) { 178 * Sets the magicfile to use 179 * if null, the MAGIC constant from php is used 180 * if the MAGIC file is errorous, no file will be sethelpers.php https://gitlab.com/PragmaticLinux/Laravel | PHP | 783 lines
1<?php 2 357 358 return array_unique($results); 359 }Gcm.php https://gitlab.com/neera.pokhrel.c3/BackendNayapatrika | PHP | 308 lines
1<?php 2/** 6 * info: https://github.com/antongorodezkiy/codeigniter-gcm/ 7 * Description: PHP Codeigniter Google Cloud Messaging Library 8 * License: BSD 165 { 166 $this->payload['registration_ids'] = array_unique($this->payload['registration_ids']); 167 sort($this->payload['registration_ids']);user.php https://gitlab.com/alexprowars/bitrix | PHP | 150 lines
1<?php 2namespace Bitrix\Bizproc\Service; 110 111 return array_unique($heads); 112 }cache.php http://core.svn.wordpress.org/ | PHP | 374 lines
1<?php 2function wp_cache_add($key, $data, $flag = '', $expire = 0) { 49 50define('CACHE_SERIAL_HEADER', "<?php\n//"); 51define('CACHE_SERIAL_FOOTER', "\n?".">"); 128 129 $cache_file = $this->cache_dir.$this->get_group_dir($group)."/".md5($id.DB_PASSWORD).'.php'; 130 if (!file_exists($cache_file)) { 206 207 if (!file_exists($this->cache_dir.$make_dir."index.php")) { 208 @ touch($this->cache_dir.$make_dir."index.php"); 279 280 if (!file_exists($this->cache_dir."index.php")) { 281 @ touch($this->cache_dir."index.php"); 293 294 $ids = array_unique($ids); 295 foreach ($ids as $id) {AssetControlExtension.php git://github.com/silverstripe/sapphire.git | PHP | 300 lines
1<?php 2 229 // De-dupe 230 return array_map("unserialize", array_unique(array_map("serialize", $files))); 231 }bookmark.php https://gitlab.com/rio.munas/gddc | PHP | 415 lines
1<?php 2/** 37 if ( $_bookmark ) { 38 $_bookmark->link_category = array_unique( wp_get_object_terms( $_bookmark->link_id, 'link_category', array( 'fields' => 'ids' ) ) ); 39 wp_cache_add( $_bookmark->link_id, $_bookmark, 'bookmark' ); 199 wp_cache_set( 'get_bookmarks', $cache, 'bookmark' ); 200 /** This filter is documented in wp-includes/bookmark.php */ 201 return apply_filters( 'get_bookmarks', array(), $r ); 290 291 /** This filter is documented in wp-includes/bookmark.php */ 292 return apply_filters( 'get_bookmarks', $results, $r ); 380 if ( 'edit' == $context ) { 381 /** This filter is documented in wp-includes/post.php */ 382 $value = apply_filters( "edit_$field", $value, $bookmark_id ); 389 } elseif ( 'db' == $context ) { 390 /** This filter is documented in wp-includes/post.php */ 391 $value = apply_filters( "pre_$field", $value );AdminPaymentController.php https://gitlab.com/staging06/myproject | PHP | 313 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 22* @copyright 2007-2015 PrestaShop SA 23* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 24* International Registered Trademark & Property of PrestaShop SA 91 { 92 $this->toolbar_title = array_unique($this->breadcrumbs); 93 }Collection.php https://gitlab.com/yousafsyed/easternglamor | PHP | 299 lines
1<?php 2/** 12/** 13 * @SuppressWarnings(PHPMD.LongVariable) 14 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 62 * @param \Magento\Framework\DB\Adapter\AdapterInterface $connection 63 * @SuppressWarnings(PHPMD.ExcessiveParameterList) 64 */ 285 } 286 $options = $productAttribute->getSource()->getSpecificOptions(array_unique($attributeValues)); 287 return $options;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 }lp-course-functions.php https://gitlab.com/gregtyka/lfmawordpress | PHP | 457 lines
1<?php 2/** 57 58 $class = array_unique( $class ); 59url_matcher1.php https://gitlab.com/ntphuc/FoodyBackend | PHP | 312 lines
1<?php 2 309 310 throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException(); 311 }AdminPaymentController.php https://gitlab.com/ivandevp/petshop | PHP | 313 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 22* @copyright 2007-2016 PrestaShop SA 23* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 24* International Registered Trademark & Property of PrestaShop SA 91 { 92 $this->toolbar_title = array_unique($this->breadcrumbs); 93 }RouteCompiler.php https://gitlab.com/x33n/ampache | PHP | 233 lines
1<?php 2 34 * @throws \LogicException If a variable is referenced more than once 35 * @throws \DomainException If a variable name is numeric because PHP raises an error for such 36 * subpatterns in PCRE and thus would break matching, e.g. "(?P<123>.+)". 78 $hostVariables, 79 array_unique($variables) 80 ); 149 // find the first optional token 150 $firstOptional = PHP_INT_MAX; 151 if (!$isHost) {storestocksale.php https://gitlab.com/alexprowars/bitrix | PHP | 292 lines
1<?php 2 214 215 return array_unique($combineColumnElements); 216 }GridFieldDataColumns.php https://gitlab.com/djpmedia/silverstripe-framework | PHP | 313 lines
1<?php 2 46 47 $columns = array_unique($columns); 48 } 118 * 119 * Caution: Make sure to escape special php-characters like in a normal php-statement. 120 * Example: "myFieldName" => '<a href=\"custom-admin/$ID\">$ID</a>'.Source.php https://gitlab.com/Gashler/dp | PHP | 611 lines
1<?php 2/** 4 * 5 * A PHP-Based RSS and Atom Feed Framework. 6 * Takes the hard work out of managing a complete RSS/Atom solution. 41 * @link http://simplepie.org/ SimplePie 42 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 43 */ 201 { 202 return array_unique($categories); 203 } 284 { 285 return array_unique($authors); 286 } 355 { 356 return array_unique($contributors); 357 }feed.php https://gitlab.com/Gashler/dp | PHP | 552 lines
1<?php 2/** 320 321 $cat_names = array_unique($cat_names); 322 444 * 445 * @link http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.3.1 446 * 529function fetch_feed( $url ) { 530 require_once ( ABSPATH . WPINC . '/class-feed.php' ); 531utils-gets.inc.php https://gitlab.com/Gashler/dp | PHP | 361 lines
1<?php 2/** 44 45 return (!empty ($category_ids) && is_array ($category_ids)) ? array_unique ($category_ids) : array (); 46 } 61 62 return (!empty ($child_category_ids) && is_array ($child_category_ids)) ? array_unique ($child_category_ids) : array (); 63 } 76 77 return (!empty ($tag_ids) && is_array ($tag_ids)) ? array_unique ($tag_ids) : array (); 78 } 103 } 104 return (!empty ($tag_ids) && is_array ($tag_ids)) ? array_unique ($tag_ids) : array (); 105 } 122 123 return (!empty ($post_ids) && is_array ($post_ids)) ? array_unique ($post_ids) : array (); 124 }paypal-notify-in-web-accept-sp.inc.php https://gitlab.com/Gashler/dp | PHP | 258 lines
1<?php 2/** 71 $_sp_reference = array ("time" => time (), "ids" => $paypal["sp_ids"], "hours" => $paypal["hours"], "url" => $sp_access_url); 72 $sp_references = c_ws_plugin__s2member_utils_arrays::array_unique (array_merge ($sp_references, $_sp_reference)); 73 update_user_option ($user_id, "s2member_sp_references", $sp_references);misc.php https://gitlab.com/Gashler/dp | PHP | 667 lines
1<?php 2/** 159 160 // Using win_is_writable() instead of is_writable() because of a bug in Windows PHP 161 if ( iis7_supports_permalinks() && ( ( ! file_exists($web_config_file) && win_is_writable($home_path) && $wp_rewrite->using_mod_rewrite_permalinks() ) || win_is_writable($web_config_file) ) ) { 184 $oldfiles = array_reverse( $oldfiles ); 185 $oldfiles = array_unique( $oldfiles ); 186 if ( 5 < count( $oldfiles )) 297 298 $functions = array_unique( $functions ); 299 sort( $functions ); 300 $ignore_functions = apply_filters( 'documentation_ignore_functions', $ignore_functions ); 301 $ignore_functions = array_unique( $ignore_functions ); 302 538foreach ( $_wp_admin_css_colors as $color => $color_info ): ?> 539<div class="color-option"><input name="admin_color" id="admin_color_<?php echo esc_attr( $color ); ?>" type="radio" value="<?php echo esc_attr( $color ); ?>" class="tog" <?php checked($color, $current_color); ?> /> 540 <table class="color-palette">class-wp-comments-list-table.php https://gitlab.com/Gashler/dp | PHP | 561 lines
1<?php 2/** 217 <option value=""><?php _e( 'Show all comment types' ); ?></option> 218<?php 219 $comment_types = apply_filters( 'admin_comment_types_dropdown', array( 227 </select> 228<?php 229 do_action( 'restrict_manage_comments' ); 301</table> 302<?php 303 323 if ( $this->user_can ) { ?> 324 <label class="screen-reader-text" for="cb-select-<?php echo $comment->comment_ID; ?>"><?php _e( 'Select comment' ); ?></label> 325 <input id="cb-select-<?php echo $comment->comment_ID; ?>" type="checkbox" name="delete_comments[]" value="<?php echo $comment->comment_ID; ?>" /> 378 </div> 379 <?php 380 }nextmatch.php https://gitlab.com/julienv/joomleague | PHP | 602 lines
1<?php 2/** 3 * @copyright Copyright (C) 2006-2014 joomleague.at. All rights reserved. 4 * @license GNU/GPL,see LICENSE.php 5 * Joomla! is free software. This version may have been modified pursuant 8 * other free or open source software licenses. 9 * See COPYRIGHT.php for copyright notices and details. 10 */ 16 17require_once( JPATH_COMPONENT.DS . 'helpers' . DS . 'ranking.php' ); 18require_once( JLG_PATH_SITE . DS . 'models' . DS . 'project.php' ); 454 } 455 $listProjectTeamId = implode( ",", array_unique( $projectTeamIds ) ); 456percentage.php https://gitlab.com/julienv/joomleague | PHP | 472 lines
1<?php 2/** 3 * @copyright Copyright (C) 2006-2014 joomleague.at. All rights reserved. 4 * @license GNU/GPL, see LICENSE.php 5 * Joomla! is free software. This version may have been modified pursuant 8 * other free or open source software licenses. 9 * See COPYRIGHT.php for copyright notices and details. 10 */ 14 15require_once(JLG_PATH_ADMIN.DS.'statistics'.DS.'base.php'); 16 134 $res = array(); 135 foreach (array_unique(array_merge(array_keys($num), array_keys($den))) as $match_id) 136 { 170 $res = array(); 171 foreach (array_unique(array_merge(array_keys($num), array_keys($den))) as $person_id) 172 {difference.php https://gitlab.com/julienv/joomleague | PHP | 427 lines
1<?php 2/** 3 * @copyright Copyright (C) 2006-2014 joomleague.at. All rights reserved. 4 * @license GNU/GPL, see LICENSE.php 5 * Joomla! is free software. This version may have been modified pursuant 8 * other free or open source software licenses. 9 * See COPYRIGHT.php for copyright notices and details. 10 */ 14 15require_once(JLG_PATH_ADMIN.DS.'statistics'.DS.'base.php'); 16 105 $res = array(); 106 foreach (array_unique(array_merge(array_keys($add), array_keys($sub))) as $match_id) 107 { 138 $res = array(); 139 foreach (array_unique(array_merge(array_keys($add), array_keys($sub))) as $person_id) 140 {misc.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 615 lines
1<?php 2/** 156 157 // Using win_is_writable() instead of is_writable() because of a bug in Windows PHP 158 if ( ( ! file_exists($web_config_file) && win_is_writable($home_path) && $wp_rewrite->using_mod_rewrite_permalinks() ) || win_is_writable($web_config_file) ) { 183 $oldfiles = array_reverse( $oldfiles ); 184 $oldfiles = array_unique( $oldfiles ); 185 if ( 5 < count( $oldfiles )) 299 300 $functions = array_unique( $functions ); 301 sort( $functions ); 302 $ignore_functions = apply_filters( 'documentation_ignore_functions', $ignore_functions ); 303 $ignore_functions = array_unique( $ignore_functions ); 304 387 /* First we check if the DOMDocument class exists. If it does not exist, 388 * which is the case for PHP 4.X, then we cannot easily update the xml configuration file, 389 * hence we just bail out and tell user that pretty permalinks cannot be used.timber-loader.php https://gitlab.com/aristath/maera | PHP | 412 lines
1<?php 2 199 $locs = array_merge($locs, $this->get_locations_caller($caller)); 200 $locs = array_unique($locs); 201 $locs = apply_filters('timber_locations', $locs);Update.php https://gitlab.com/thoinv/forums | PHP | 373 lines
1<?php 2 220 221 $categories = array_unique($categories); 222 $constraints['rescat'] = implode(' ', $categories); 231 { 232 $prefixes = array_unique($prefixes); 233 $constraints['resprefix'] = implode(' ', $prefixes);DatabaseBackend.php https://gitlab.com/geeta7/drupal | PHP | 485 lines
1<?php 2 202 assert('\Drupal\Component\Assertion\Inspector::assertAllStrings($item[\'tags\'])', 'Cache Tags must be strings.'); 203 $item['tags'] = array_unique($item['tags']); 204 // Sort the cache tags so that they are stored consistently in the DB.config.php https://gitlab.com/alexprowars/bitrix | PHP | 518 lines
1<?php declare(strict_types = 1); 2 44 /** 45 * Returns an array with default values of a module options (from a default_option.php file). 46 * 281 { 282 $languages = array_unique(array_merge( 283 self::getAvailableDefaultLanguages(), 428 } 429 elseif (strncasecmp(PHP_OS, 'WIN', 3) === 0 && preg_match("#^[a-z]{1}:/#i", $confOption)) 430 {ClassCollectionLoader.php https://gitlab.com/megathrone86/SoftwareProjects | PHP | 367 lines
1<?php 2 36 */ 37 public static function load($classes, $cacheDir, $name, $autoReload, $adaptive = false, $extension = '.php') 38 { 38 { 39 // each $name can only be loaded once per PHP process 40 if (isset(self::$loaded[$name])) { 58 59 $classes = array_unique($classes); 60 104 105 $c = preg_replace(array('/^\s*<\?php/', '/\?>\s*$/'), '', file_get_contents($class->getFileName())); 106 111 112 $c = self::fixNamespaceDeclarations('<?php '.$c); 113 $c = preg_replace('/^\s*<\?php/', '', $c);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<?phpclass_cache.php https://gitlab.com/elasa/vb-elasa.ir | PHP | 439 lines
1<?php 2/*======================================================================*\ 117 // Make sure this is unique 118 $cachefields = array_unique($cachefields); 119PhpMatcherDumper.php https://gitlab.com/Marwamimo/Crowdrise_Web | PHP | 401 lines
18/** 19 * PhpMatcherDumper creates a PHP class able to match URLs for a given set of routes. 20 * 24 */ 25class PhpMatcherDumper extends MatcherDumper 26{ 29 /** 30 * Dumps a set of routes to a PHP class. 31 * 38 * 39 * @return string A PHP class representing the matcher class 40 */ 85 * 86 * @return string Match method as PHP code 87 */extension.php https://gitlab.com/alexprowars/bitrix | PHP | 159 lines
1<?php 2 82 { 83 $file = new File($this->path . '/extension.php'); 84 $result = null; 141 142 return array_unique($list); 143 }BelongsTo.php https://gitlab.com/ntphuc/FoodyBackend | PHP | 310 lines
1<?php 2 172 173 return array_values(array_unique($keys)); 174 }Abstract.php https://gitlab.com/blingbang2016/shop | PHP | 301 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 140 { 141 $classes = array_unique(explode(' ', $this->getClass())); 142 if (false !== ($key = array_search($class, $classes))) {Attribute.php https://gitlab.com/gregtyka/SiberianCMS | PHP | 417 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Attribute.php 24593 2012-01-05 20:35:02Z matthew $ 20 */ 24 */ 25require_once 'Zend/Ldap/Converter.php'; 26 148 if (!isset($data[$attribName])) return; 149 $data[$attribName] = array_values(array_unique($data[$attribName])); 150 } 214 /** 215 * Converts a PHP data type into its LDAP representation 216 * 218 * @param mixed $value 219 * @return string|null - null if the PHP data type cannot be converted. 220 */Attribute.php https://gitlab.com/luisrepo/ClienteWS | PHP | 417 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Attribute.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 24 */ 25require_once 'Zend/Ldap/Converter.php'; 26 148 if (!isset($data[$attribName])) return; 149 $data[$attribName] = array_values(array_unique($data[$attribName])); 150 } 214 /** 215 * Converts a PHP data type into its LDAP representation 216 * 218 * @param mixed $value 219 * @return string|null - null if the PHP data type cannot be converted. 220 */Translator.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 481 lines
1<?php 2 321 $this->assertValidLocale($locale); 322 $self = $this; // required for PHP 5.3 where "$this" cannot be use()d in anonymous functions. Change in Symfony 3.0. 323 $cache = $this->getConfigCacheFactory()->cache($this->getCatalogueCachePath($locale), 338 /** 339 * This method is public because it needs to be callable from a closure in PHP 5.3. It should be made protected (or even private, if possible) in 3.0. 340 * 348 $content = sprintf(<<<EOF 349<?php 350 399 { 400 return $this->cacheDir.'/catalogue.'.$locale.'.'.sha1(serialize($this->fallbackLocales)).'.php'; 401 } 449 450 return array_unique($locales); 451 }Request.php https://gitlab.com/x33n/respond | PHP | 288 lines
1<?php 2 26 'txt' => 'text/plain', 27 'php' => 'application/php', 28 'css' => 'text/css', 64 65 $this->accept = array_unique(array_merge($this->accept, $this->getAcceptArray($this->getOption($options, 'accept')))); 66 $this->acceptLanguage = array_unique(array_merge($this->acceptLanguage, $this->getAcceptArray($this->getOption($options, 'acceptLanguage')))); 100 /** 101 * Magic PHP method to retrieve a HTTP request header. 102 * 171 if ($this->getOption($options, 'contentLength') > 0) { 172 return file_get_contents('php://input'); 173 } elseif (isset($options['data'])) { 191 $uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH); 192 } elseif (isset($_SERVER['PHP_SELF']) && isset($_SERVER['SCRIPT_NAME'])) { // use PHP_SELF from Apache environment 193 $uri = substr($_SERVER['PHP_SELF'], strlen($_SERVER['SCRIPT_NAME']));component.php https://gitlab.com/alexprowars/bitrix | PHP | 289 lines
38 $arParams["PATH_TO_SEARCH"] .= "&"; 39$arParams["DATE_TIME_FORMAT"] = trim(empty($arParams["DATE_TIME_FORMAT"]) ? $DB->DateFormatToPHP(CSite::GetDateFormat("FULL")) : $arParams["DATE_TIME_FORMAT"]); 40 100 } 101 $arHobbyDB=array_unique($arHobbyDB); 102 if(count($arHobbyDB)>0)ChainRouter.php https://gitlab.com/geeta7/drupal | PHP | 309 lines
1<?php 2 177 try { 178 // the request/url match logic is the same as in Symfony/Component/HttpKernel/EventListener/RouterListener.php 179 // matching requests is more powerful than matching URLs only, so try that first 241 if ($debug) { 242 $debug = array_unique($debug); 243 $info = implode(', ', $debug);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 }Store.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 630 lines
1<?php namespace Illuminate\Session; 2 428 { 429 $values = array_unique(array_merge($this->get('flash.new', array()), $keys)); 430ApacheMatcherDumper.php https://gitlab.com/x33n/ampache | PHP | 277 lines
1<?php 2 28 * 29 * * script_name: The script name (app.php by default) 30 * * base_uri: The base URI ("" by default) 40 $options = array_merge(array( 41 'script_name' => 'app.php', 42 'base_uri' => '', 93 $rule = array('# 405 Method Not Allowed'); 94 $methodVars = array_values(array_unique($methodVars)); 95 if (in_array('GET', $methodVars) && !in_array('HEAD', $methodVars)) {Generator.php https://gitlab.com/marvin1/soundcloud | PHP | 563 lines
1<?php 2 2 3require(dirname(__FILE__) . "/Entry.php"); 4 90 $this->options = $options; 91 $this->source = str_replace(PHP_EOL, "\n", $options['source']); 92 $this->entries = Entry::getEntries($this->source); 146 preg_match_all('/#\{([^}]+)\}/', $string, $tokens); 147 $tokens = array_unique(array_pop($tokens)); 148Test.php https://gitlab.com/btkm/correct_fb | PHP | 1084 lines
46 */ 47 public static function describe(PHPUnit_Framework_Test $test, $asString = true) 48 { 200 201 // https://bugs.php.net/bug.php?id=63055 202 $matches = array(); 231 232 if (!empty($required['PHP']) && version_compare(PHP_VERSION, $required['PHP'], '<')) { 233 $missing[] = sprintf('PHP %s (or later) is required.', $required['PHP']); 236 if (!empty($required['PHPUnit'])) { 237 $phpunitVersion = PHPUnit_Runner_Version::id(); 238 if (version_compare($phpunitVersion, $required['PHPUnit'], '<')) { 238 if (version_compare($phpunitVersion, $required['PHPUnit'], '<')) { 239 $missing[] = sprintf('PHPUnit %s (or later) is required.', $required['PHPUnit']); 240 }helpers.php https://gitlab.com/btkm/correct_fb | PHP | 885 lines
1<?php 2 363 364 return array_unique($results); 365 }cache.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 566 lines
1<?php 2/** 311 $this->global_groups = array_merge($this->global_groups, $groups); 312 $this->global_groups = array_unique($this->global_groups); 313 } 489 * The $expire parameter is not used, because the cache will automatically 490 * expire for each time a page is accessed and PHP finishes. The method is 491 * more for cache plugins which use files.Minify.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 1051 lines
1<?php 2 9 10require_once W3TC_LIB_W3_DIR . '/Plugin.php'; 11 277 function get_files_js(&$buffer) { 278 require_once W3TC_INC_DIR . '/functions/extract.php'; 279 292 function get_files_css(&$buffer) { 293 require_once W3TC_INC_DIR . '/functions/extract.php'; 294 308 $files = array_filter($files, array(&$this, '_filter_files')); 309 $files = array_values(array_unique($files)); 310 return $files; 461 if (count($ignored_comments)) { 462 require_once W3TC_LIB_MINIFY_DIR . '/Minify/IgnoredCommentPreserver.php'; 463ObjectCache.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 627 lines
1<?php 2 114 /** 115 * PHP5 style constructor 116 */ 136 /** 137 * PHP4 style constructor 138 */ 338 $this->global_groups = array_merge($this->global_groups, $groups); 339 $this->global_groups = array_unique($this->global_groups); 340 } 353 $this->nonpersistent_groups = array_merge($this->nonpersistent_groups, $groups); 354 $this->nonpersistent_groups = array_unique($this->nonpersistent_groups); 355 } 485 486 require_once W3TC_LIB_W3_DIR . '/Cache.php'; 487 @$cache[0] = & W3_Cache::instance($engine, $engineConfig);featured-content.php https://gitlab.com/endomorphosis/falkenstein | PHP | 562 lines
1<?php 2/** 263 $featured = array_merge( (array) $post__not_in, $featured ); 264 $featured = array_unique( $featured ); 265 } 408 'title' => __( 'Featured Content', 'twentyfourteen' ), 409 'description' => sprintf( __( 'Use the <a href="%1$s">"featured" tag</a> to feature your posts. You can change this to a tag of your choice; if no posts match the tag, <a href="%2$s">sticky posts</a> will be displayed instead.', 'twentyfourteen' ), admin_url( '/edit.php?tag=featured' ), admin_url( '/edit.php?show_sticky=1' ) ), 410 'priority' => 130,misc.php https://gitlab.com/endomorphosis/falkenstein | PHP | 770 lines
1<?php 2/** 192 193 // Using win_is_writable() instead of is_writable() because of a bug in Windows PHP 194 if ( iis7_supports_permalinks() && ( ( ! file_exists($web_config_file) && win_is_writable($home_path) && $wp_rewrite->using_mod_rewrite_permalinks() ) || win_is_writable($web_config_file) ) ) { 217 $oldfiles = array_reverse( $oldfiles ); 218 $oldfiles = array_unique( $oldfiles ); 219 if ( 5 < count( $oldfiles )) 330 331 $functions = array_unique( $functions ); 332 sort( $functions ); 333 $ignore_functions = apply_filters( 'documentation_ignore_functions', $ignore_functions ); 334 $ignore_functions = array_unique( $ignore_functions ); 335editor.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 670 lines
1<?php 2/** 2/** 3* @version $Id: editor.php 109 2009-06-21 19:24:41Z happynoodleboy $ 4* @package JCE 282 $plugins = (array) $plugins; 283 $this->plugins = array_unique(array_merge($this->plugins, $plugins)); 284 } 463 } 464 $array = array_unique(array_merge($array, $keys)); 465 } 615 foreach($plugins as $plugin) { 616 $file = $path .DS. $plugin .DS. 'classes' .DS. 'config.php'; 617featured-content.php https://gitlab.com/rio.munas/gddc | PHP | 531 lines
1<?php 2/** 254 $featured = array_merge( (array) $post__not_in, $featured ); 255 $featured = array_unique( $featured ); 256 } 404 'description' => sprintf( __( 'Use a <a href="%1$s">tag</a> to feature your posts. If no posts match the tag, <a href="%2$s">sticky posts</a> will be displayed instead.', 'twentyfourteen' ), 405 esc_url( add_query_arg( 'tag', _x( 'featured', 'featured content default tag slug', 'twentyfourteen' ), admin_url( 'edit.php' ) ) ), 406 admin_url( 'edit.php?show_sticky=1' )Generator.php https://gitlab.com/Marwein/tnjobs | PHP | 1120 lines
1<?php 2/* 2/* 3 * This file is part of the PHPUnit_MockObject package. 4 * 4 * 5 * (c) Sebastian Bergmann <sebastian@phpunit.de> 6 * 26 */ 27class PHPUnit_Framework_MockObject_Generator 28{ 129 * @throws InvalidArgumentException 130 * @throws PHPUnit_Framework_Exception 131 * @throws PHPUnit_Framework_MockObject_RuntimeException 136 if (!is_array($type) && !is_string($type)) { 137 throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'array or string'); 138 }Validator.php https://gitlab.com/Marwein/tnjobs | PHP | 1719 lines
1<?php 2 355 356 $keys = array_unique($keys); 357contact.php https://gitlab.com/alexprowars/bitrix | PHP | 679 lines
1<?php 2namespace Bitrix\Socialservices; 196 '=EXTERNAL_AUTH_ID' => \CSocServBitrix24Net::ID, 197 '=XML_ID' => array_unique( 198 array_merge(usertogroup.php https://gitlab.com/alexprowars/bitrix | PHP | 758 lines
1<?php 2 241 242 $deparmentIdList = array_unique($deparmentIdList); 243 304 } 305 $oldGroupList = array_unique($oldGroupList); 306 $oldGroupAutoList = array_unique($oldGroupAutoList); 327 } 328 $departmentList = array_unique($departmentList); 329 470 471 $userDepartmentList = array_unique($userDepartmentList); 472 489 490 return array_unique($result); 491 }helper.php https://gitlab.com/alexprowars/bitrix | PHP | 1090 lines
1<?php 2 119 ComponentHelper::processBlogPostNewMailUserDestinations($destinationList); 120 $params['DEST'] = array_unique($destinationList); 121 } 296 { 297 $inlineTagsList = array_unique(array_map('ToLower', $inlineTagsList)); 298rest.php https://gitlab.com/alexprowars/bitrix | PHP | 2049 lines
1<?php 2 103 104 return array_unique($arEventIdFullset); 105 } 230 )); 231 $obCache = new CPHPCache; 232 if ($obCache->InitCache($cacheTtl, $cacheId, $cacheDir)) 251 )); 252 $obCache = new CPHPCache; 253 $obCache->InitCache($cacheTtl, $cacheId, $cacheDir); 412 413 $postIdList = array_unique($postIdList); 414 if (empty($postIdList)) 474 'filter' => [ 475 '@ID' => array_unique($attachedIdList) 476 ],seo_sitemap_edit.php https://gitlab.com/alexprowars/bitrix | PHP | 940 lines
1<? 2require_once($_SERVER['DOCUMENT_ROOT']."/bitrix/modules/main/include/prolog_admin_before.php"); 3 16 17Loc::loadMessages(dirname(__FILE__).'/../../main/tools.php'); 18Loc::loadMessages(dirname(__FILE__).'/seo_sitemap.php'); 26{ 27 require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php"); 28 ShowError(Loc::getMessage("SEO_ERROR_NO_MODULE")); 28 ShowError(Loc::getMessage("SEO_ERROR_NO_MODULE")); 29 require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_admin.php"); 30} 46 { 47 require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php"); 48 ShowError(Loc::getMessage("SEO_ERROR_SITEMAP_NOT_FOUND"));finder.php https://gitlab.com/alexprowars/bitrix | PHP | 826 lines
1<?php 2/** 65 66 return array_unique($result); 67 } 82 83 $result = array_unique($result); 84 } 108 109 return array_unique($result); 110 } 114 if(is_array($langs) && !empty($langs)) 115 $langs = array_unique($langs); 116 else 129 130 $result = array_unique($result); 131 }helper.php https://gitlab.com/alexprowars/bitrix | PHP | 792 lines
19 20 const IMPORT_PAGE_URL = 'sale_location_import.php'; 21 const REINDEX_PAGE_URL = 'sale_location_reindex.php'; 21 const REINDEX_PAGE_URL = 'sale_location_reindex.php'; 22 const MIGRATION_PAGE_URL = 'sale_location_migration.php'; 23 188 { 189 $parameters['ID'] = array_unique($parameters['ID']); 190 foreach($parameters['ID'] as $id)delivery_paysystem.php https://gitlab.com/alexprowars/bitrix | PHP | 863 lines
1<?php 2namespace Bitrix\Sale\Internals; 152 { 153 $linkedIds = array_unique(array_merge($linkedIds, $reverseParentLinks)); 154 } 236 $entityType, 237 array_unique(array_merge($parentLinks, $linkedIds)), 238 falseevent.php https://gitlab.com/alexprowars/bitrix | PHP | 721 lines
1<?php 2namespace Bitrix\Pull; 152 { 153 $destination[$eventCode]['users'] = array_unique(array_merge($destination[$eventCode]['users'], array_values($channels))); 154 $destination[$eventCode]['channels'] = array_unique(array_merge($destination[$eventCode]['channels'], array_keys($channels))); 158 $destination[$eventCode]['event'] = $parameters; 159 $destination[$eventCode]['users'] = array_unique(array_values($channels)); 160 $destination[$eventCode]['channels'] = array_unique(array_keys($channels)); 227 { 228 self::$push[$pushCode]['users'] = array_unique(array_merge(self::$push[$pushCode]['users'], array_values($users))); 229 } 237 self::$push[$pushCode]['hasPushCallback'] = $hasPushCallback; 238 self::$push[$pushCode]['users'] = array_unique(array_values($users)); 239 }query.php https://gitlab.com/alexprowars/bitrix | PHP | 678 lines
1<?php 2 128 { 129 if (count(array_unique($match[1])) == 1) 130 $sql = $match[1][0]." IN ( ".implode(", ", $match[2])." )"; 515 { 516 $arColumns = array_unique($arColumns); 517 while (mb_strlen(implode(",", $arColumns)) > 250)access_edit.php https://gitlab.com/alexprowars/bitrix | PHP | 520 lines
1<? 2require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 3require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_js.php"); 51 52//Get only used user group from .access.php file 53$arUserGroupsID = array("*"); 65 { 66 $accessFile = "/.access.php"; 67 $name = "/"; 80 $currentPath = mb_substr($currentPath, 0, $position + 1); 81 $accessFile = $currentPath.".access.php"; 82 } 104 105$arUserGroupsID = array_unique($arUserGroupsID); 106user_edit.php https://gitlab.com/alexprowars/bitrix | PHP | 1102 lines
1<?php 2/** 15 16require_once(dirname(__FILE__)."/../include/prolog_admin_before.php"); 17require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/prolog.php"); 17require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/prolog.php"); 18define("HELP_FILE", "users/user_edit.php"); 19$strRedirect_admin = BX_ROOT."/admin/user_admin.php?lang=".LANG; 19$strRedirect_admin = BX_ROOT."/admin/user_admin.php?lang=".LANG; 20$strRedirect = BX_ROOT."/admin/user_edit.php?lang=".LANG; 21 70 } 71 $arUserSubordinateGroups = array_unique($arUserSubordinateGroups); 72 73 if (count(array_diff($arUserGroups, $arUserSubordinateGroups)) > 0 && !$selfEdit) 74 LocalRedirect(BX_ROOT."/admin/user_admin.php?lang=".LANG); 75}user_admin.php https://gitlab.com/alexprowars/bitrix | PHP | 839 lines
18 19require_once(dirname(__FILE__)."/../include/prolog_admin_before.php"); 20require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/prolog.php"); 20require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/prolog.php"); 21define("HELP_FILE", "users/user_admin.php"); 22$entity_id = "USER"; 39//authorize as user 40if($_REQUEST["action"] == "authorize" && check_bitrix_sessid() && $USER->CanDoOperation('edit_php')) 41{ 43 $USER->Authorize(intval($_REQUEST["ID"]), false, true, null, false); 44 LocalRedirect("user_admin.php?lang=".LANGUAGE_ID); 45} 47//logout user 48if($_REQUEST["action"] == "logout_user" && check_bitrix_sessid() && $USER->CanDoOperation('edit_php')) 49{img.php https://gitlab.com/alexprowars/bitrix | PHP | 1267 lines
1<?php 2/** 263 $arrayY = array(); 264 $arrY = array_unique($arrY); 265 if ($first_null=="Y")nodeattributes.php https://gitlab.com/alexprowars/bitrix | PHP | 660 lines
1<?php 2namespace Bitrix\Landing\Update\Block; 205 $this->dataToUpdate = ($this->dataToUpdate !== '' ? @unserialize($this->dataToUpdate, ['allowed_classes' => false]) : array()); 206 $this->codesToStep = array_unique(array_keys($this->dataToUpdate['BLOCKS'])); 207 $this->codesToStep = array_slice($this->codesToStep, 0, self::STEP_PORTION); 376// APPLY changes 377 $nodeClasses = array_unique($nodeClasses); 378 if ($classesChange) 485 486// if need remove PHP - we must use block content directly, not DOM parser 487 if ( 487 if ( 488 $this->dataToUpdate['BLOCKS'][$code]['CLEAR_PHP'] && 489 $this->dataToUpdate['BLOCKS'][$code]['CLEAR_PHP'] == 'Y' 545 { 546 foreach (array_unique($this->status['SITES_TO_UPDATE']) as $siteId) 547 {rights.php https://gitlab.com/alexprowars/bitrix | PHP | 1113 lines
1<?php 2namespace Bitrix\Landing; 459 $operations[$row['ENTITY_ID']][] = mb_substr($row['OPERATION_NAME'], 8); 460 $operations[$row['ENTITY_ID']] = array_unique($operations[$row['ENTITY_ID']]); 461 }user.php https://gitlab.com/alexprowars/bitrix | PHP | 854 lines
1<? 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/forum/classes/general/user.php"); 3 59 $userID[] = intval($valI); 60 $userID = array_unique($userID); 61 if (empty($userID))topic.php https://gitlab.com/alexprowars/bitrix | PHP | 629 lines
1<? 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/forum/classes/general/topic.php"); 3 127 } 128 $arSqlOrder = array_unique($arSqlOrder); 129 DelDuplicateSort($arSqlOrder);yandex_setup.php https://gitlab.com/alexprowars/bitrix | PHP | 735 lines
18 19IncludeModuleLangFile($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/catalog/export_setup_templ.php'); 20IncludeModuleLangFile(__FILE__); 151 { 152 $V = array_unique(array_values($V)); 153 $_REQUEST['V'] = $V; 200 "TITLE"=>GetMessage("CATI_ADM_RETURN_TO_LIST_TITLE"), 201 "LINK"=>"/bitrix/admin/cat_export_setup.php?lang=".LANGUAGE_ID, 202 "ICON"=>"btn_list", 250 if (!isset($SETUP_FILE_NAME)) 251 $SETUP_FILE_NAME = 'yandex_'.mt_rand(0, 999999).'.php'; 252 if (!isset($checkPermissions) || $checkPermissions != 'Y') 359 ), 360 "ClearSelected(); changeIblockSites(0); BX('id_ifr').src='/bitrix/tools/catalog_export/yandex_util.php?IBLOCK_ID=0&'+'".bitrix_sessid_get()."';", 361 "ClearSelected(); changeIblockSites(this[this.selectedIndex].value); BX('id_ifr').src='/bitrix/tools/catalog_export/yandex_util.php?IBLOCK_ID='+this[this.selectedIndex].value+'&'+'".bitrix_sessid_get()."';",base.php https://gitlab.com/alexprowars/bitrix | PHP | 866 lines
1<?php 2 263 { 264 $result = array_values(array_unique($result)); 265 }helper.php https://gitlab.com/alexprowars/bitrix | PHP | 1871 lines
1<?php 2 119 { 120 $users = array_unique($users); 121 }include.php https://gitlab.com/alexprowars/bitrix | PHP | 967 lines
1<?php 2 71 72 $arTransport = array_unique($arTransport); 73 usort($arTransport, "__SLTransportSort"); 127 128 $cache = new \CPHPCache; 129component.php https://gitlab.com/alexprowars/bitrix | PHP | 557 lines
1<?php 2/** 77 78$selectedList = array_unique($selectedList); 79class.php https://gitlab.com/alexprowars/bitrix | PHP | 731 lines
1<?php 2use Bitrix\Main, 180 181 $ids = array_unique(array_merge($ids, $bestsellers)); 182 } 223 224 $ids = array_unique(array_merge($ids, $mostviewed)); 225 } 239 240 $ids = array_values(array_unique($ids)); 241