100+ results results for 'php array_unique' (1137 ms)
1<?php 2/** 239 } 240 $this->defaultProviders = array_unique($this->defaultProviders); 241 return $this->defaultProviders;Collection.php https://gitlab.com/blingbang2016/shop | PHP | 411 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 289 290 $productsId = array_unique($productsId); 291PhpMatcherDumper.php https://gitlab.com/oytunistrator/92five | 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 */Store.php https://gitlab.com/ealexis.t/trends | PHP | 707 lines
1<?php 2 492 { 493 $values = array_unique(array_merge($this->get('flash.new', []), $keys)); 494CollectionConstraint.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');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>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) {InlineServiceDefinitionsPass.php https://gitlab.com/cuza/Clinic_Recods | PHP | 141 lines
1<?php 2 130 131 if (count(array_unique($ids)) > 1) { 132 return false;feed.php https://gitlab.com/gregtyka/WordPress-on-OpenShift | 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'); 532class-wp-theme-install-list-table.php https://gitlab.com/webkod3r/tripolis | 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 );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();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{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' ],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"); 122Template.php https://gitlab.com/dcnf/dcbase.org | PHP | 424 lines
1<?php 2 297 298 return array_unique($names); 299 }eventpergame.php https://gitlab.com/julienv/joomleague | PHP | 337 lines
1<?php 2/** 3 * @copyright Copyright (C) 2006-2014 joomleague.at. All rights reserved. 4 * @license GNU/GPL, see LICENSE.php 5 * Joomla! is free software. This version may have been modified pursuant 8 * other free or open source software licenses. 9 * See COPYRIGHT.php for copyright notices and details. 10 */ 14 15require_once(JLG_PATH_ADMIN.DS.'statistics'.DS.'base.php'); 16 78 /** 79 * (non-PHPdoc) 80 * @see administrator/components/com_joomleague/statistics/JLGStatistic#getPlayerStatsByProject($person_id, $project_id) 104 $res = array(); 105 foreach (array_unique(array_merge(array_keys($num), array_keys($den))) as $person_id) 106 {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');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"])); 90appProdUrlMatcher.php https://gitlab.com/abdelwahed.farabi/TimeToStartWeb | PHP | 277 lines
1<?php 2 274 275 throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException(); 276 }bookmark.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);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])) {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) {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 }my-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) ?>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' );Generator.php https://gitlab.com/Griffolion/Game-Embargo-Tracker | 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 }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() ) ); 243perfmon_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 ),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) {AbstractFindAdapter.php https://gitlab.com/techniconline/kmc | PHP | 331 lines
1<?php 2 63 64 if (PHP_INT_MAX !== $this->maxDepth) { 65 $find->add('-maxdepth')->add($this->maxDepth + 1); 104 105 $paths = $this->shell->testCommand('uniq') ? $command->add('| uniq')->execute() : array_unique($command->execute()); 106 $iterator = new Iterator\FilePathsIterator($paths, $dir);PwDesignThreadDataService.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()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()select.php https://gitlab.com/ngochuynh1991/cuacuon | 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>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_arrayPushController.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');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')RouteListCommand.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 281 lines
1<?php 2 143 144 $middlewares = array_unique( 145 array_merge($middlewares, $this->getPatternFilters($route))PwDesignUserDataService.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()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 }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');Translator.php https://gitlab.com/Laolballs/evotting | 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 }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 );script.php https://gitlab.com/alexprowars/bitrix | PHP | 338 lines
1<?php 2 38 39 $documentIds = array_unique($documentIds); 40MessageBag.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 }helpers.php https://gitlab.com/kimting254/wbms | PHP | 800 lines
1<?php 2 371 372 return array_unique($results); 373 }FormHelper.php https://gitlab.com/x33n/ImpressPages | PHP | 219 lines
1<?php 2 47 48 $files = array_unique($files, SORT_STRING); 49 sort($files);CommandWithUpgrade.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 ) ) {Util.php https://gitlab.com/jeann2015/secret | PHP | 291 lines
1<?php 2 188 189 $directories = array_diff(array_unique($directories), array_unique($listedDirectories)); 190Memory.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 booleanConfiguration.php https://gitlab.com/mohamedchiheb.bida/workshopFOS | 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']))); 58ViewLookupWizardField.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)bookmark.php https://gitlab.com/gentotech/evotennissg | 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 ) );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();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_objetclass-wc-admin-notices.php https://gitlab.com/webkod3r/tripolis | 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 {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 ifControls.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();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 }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 }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 *Type.php https://gitlab.com/oytunistrator/92five | 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);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) {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)); 35class-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 ); 348DependencyInjectionExtension.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)); 139functions.php https://gitlab.com/Suhailgit/Project | PHP | 579 lines
1<?php 2 309 preg_match_all( $pattern, $content, $usernames ); 310 $usernames = array_unique( array_filter( $usernames[1] ) ); 311Request.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']));ApacheMatcherDumper.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)) {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;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); 135Translator.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 }lp-course-functions.php https://gitlab.com/gregtyka/lfmawordpress | PHP | 457 lines
1<?php 2/** 57 58 $class = array_unique( $class ); 59object-cache.php https://gitlab.com/Blueprint-Marketing/vip-quickstart | PHP | 402 lines
1<?php 2 9 10Install this file to wp-content/object-cache.php 11*/ 12 13// Users with setups where multiple installs share a common wp-config.php or $table_prefix 14// can use this to guarantee uniqueness for the keys generated by this object cache 138 $this->global_groups = array_merge($this->global_groups, $groups); 139 $this->global_groups = array_unique($this->global_groups); 140 } 146 $this->no_mc_groups = array_merge($this->no_mc_groups, $groups); 147 $this->no_mc_groups = array_unique($this->no_mc_groups); 148 }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;file.php https://gitlab.com/oxidigitaluser/liguelista | 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>class-wp-theme-install-list-table.php https://gitlab.com/Blueprint-Marketing/WordPress-1 | PHP | 396 lines
124 $class = ( $action == $tab ) ? ' class="current"' : ''; 125 $href = self_admin_url('theme-install.php?tab=' . $action); 126 $display_tabs['theme-install-'.$action] = "<a href='$href'$class>$text</a>"; 154 ?> 155 <div class="available-theme installable-theme"><?php 156 $this->single_row( $theme ); 229 ?> 230 <a class="screenshot install-theme-preview" href="<?php echo esc_url( $preview_url ); ?>" title="<?php echo esc_attr( $preview_title ); ?>"> 231 <img src='<?php echo esc_url( $theme->screenshot_url ); ?>' width='150' /> 245 246 <?php 247 $this->install_theme_info( $theme ); 257 <div class="wp-full-overlay-header"> 258 <a href="#" class="close-full-overlay button-secondary"><?php _e( 'Close' ); ?></a> 259 <span class="theme-install"></span>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 */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)); 95Store.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)); 430class-sitemap-image-parser.php https://bitbucket.org/wedodigital/wedo-sitemaps.git | PHP | 500 lines
1<?php 2/** 241 if ( PHP_VERSION_ID >= 50209 ) { 242 // phpcs:ignore PHPCompatibility.PHP.NewFunctionParameters.array_unique_sort_flagsFound -- Wrapped in version check. 243 return array_unique( $attachments, SORT_REGULAR );class.plugin-base.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 171 lines
1<?php 2require( ABSPATH . WPINC . '/pluggable.php' ); 131 $options = $this->options; 132 include_once($this->plugin_path.'/views/settings.php'); 133 } 168 foreach( $a2 as $a)array_push($a1, $a); 169 return array_unique($a1); 170 }api-term.php https://bitbucket.org/sebastianpisula/wordpress-starter.git | PHP | 498 lines
1<?php 2 70 // remove duplicates 71 $taxonomies = array_unique($taxonomies); 72__compare.php https://gitlab.com/BGCX261/zimmerli-svn-to-git.git | PHP | 310 lines
1<?php 2 abstract class __emarket_compare { 95 $elements = getSession("compare_list"); 96 $elements = array_unique($elements); 97 return $elements;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.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'; 321MimeType.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 setchangepropagator.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 }MylikeController.php https://gitlab.com/wuhang2003/phpwind | PHP | 269 lines
1<?php 2Wind::import('LIB:base.PwBaseController'); 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: MylikeController.php 6836 2012-03-27 04:05:46Z gao.wanggao $ 9 * @package 39 foreach ($logLists AS $_log) { 40 $_log['tags'] = array_unique((array)$_log['tags']); 41 if (!$_log['tags']) continue;RouteCollection.php https://gitlab.com/krlosnando/cenfo-crm.git | PHP | 344 lines
1<?php 2 275 276 return array_unique($resources); 277 }reflection_php5.php https://gitlab.com/x33n/platform | PHP | 386 lines
5 * @subpackage UnitTester 6 * @version $Id: reflection_php5.php 2011 2011-04-29 08:22:48Z pp11 $ 7 */ 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. 94 function getMethods() { 95 return array_unique(get_class_methods($this->interface)); 96 }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 }Exists.php https://gitlab.com/yousafsyed/easternglamor | PHP | 204 lines
1<?php 2/** 24 */ 25#require_once 'Zend/Validate/Abstract.php'; 26 74 } else if (!is_array($directory)) { 75 #require_once 'Zend/Validate/Exception.php'; 76 throw new Zend_Validate_Exception ('Invalid options to validator provided'); 125 } else if (!is_array($directory)) { 126 #require_once 'Zend/Validate/Exception.php'; 127 throw new Zend_Validate_Exception ('Invalid options to validator provided'); 136 } 137 $directories = array_unique($directories); 138Action.php https://gitlab.com/yousafsyed/easternglamor | PHP | 179 lines
1<?php 2/** 103 $this->setData( 104 ['product_ids' => array_unique($productIds), 'attributes_data' => $attrData, 'store_id' => $storeId] 105 ); 107 if ($this->_hasIndexableAttributes($attrData)) { 108 $this->_productEavIndexerProcessor->reindexList(array_unique($productIds)); 109 } 112 if (!$categoryIndexer->isScheduled()) { 113 $categoryIndexer->reindexList(array_unique($productIds)); 114 } 122 * @return bool 123 * @SuppressWarnings(PHPMD.UnusedLocalVariable) 124 */ 170 $this->setData( 171 ['product_ids' => array_unique($productIds), 'website_ids' => $websiteIds, 'action_type' => $type] 172 );OperatorSpacingSniff.php https://gitlab.com/yousafsyed/easternglamor | PHP | 231 lines
12 * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence 13 * @link http://pear.php.net/package/PHP_CodeSniffer 14 */ 25 * @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600) 26 * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence 27 * @version Release: @package_version@ 27 * @version Release: @package_version@ 28 * @link http://pear.php.net/package/PHP_CodeSniffer 29 */ 68 * 69 * @param PHP_CodeSniffer_File $phpcsFile The current file being checked. 70 * @param int $stackPtr The position of the current token in 74 */ 75 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) 76 {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);Full.php https://gitlab.com/yousafsyed/easternglamor | PHP | 450 lines
1<?php 2/** 11/** 12 * @SuppressWarnings(PHPMD.TooManyFields) 13 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 177 * @param \Magento\CatalogSearch\Model\Indexer\Fulltext\Action\IndexIteratorFactory $indexIteratorFactory 178 * @SuppressWarnings(PHPMD.ExcessiveParameterList) 179 */ 271 * 272 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 273 * @SuppressWarnings(PHPMD.NPathComplexity) 277 if ($productIds !== null) { 278 $productIds = array_unique(array_merge($productIds, $this->getProductIdsFromParents($productIds))); 279 }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);Tag.php https://gitlab.com/staging06/myproject | PHP | 275 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 99 if (!is_array($tag_list)) { 100 $tag_list = array_filter(array_unique(array_map('trim', preg_split('#\\'.$separator.'#', $tag_list, null, PREG_SPLIT_NO_EMPTY)))); 101 }BelongsTo.php https://gitlab.com/hatemdigify/digifyblog | PHP | 310 lines
1<?php 2 172 173 return array_values(array_unique($keys)); 174 }export.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 410 lines
303<channel> 304 <title><?php bloginfo_rss( 'name' ); ?></title> 305 <link><?php bloginfo_rss( 'url' ) ?></link> 313 <?php if ( $cats ) : foreach ( $cats as $c ) : ?> 314 <wp:category><wp:category_nicename><?php echo $c->slug; ?></wp:category_nicename><wp:category_parent><?php echo $c->parent ? $cats[$c->parent]->name : ''; ?></wp:category_parent><?php wxr_cat_name( $c ); ?><?php wxr_category_description( $c ); ?></wp:category> 315 <?php endforeach; endif; ?> 316 <?php if ( $tags ) : foreach ( $tags as $t ) : ?> 317 <wp:tag><wp:tag_slug><?php echo $t->slug; ?></wp:tag_slug><?php wxr_tag_name( $t ); ?><?php wxr_tag_description( $t ); ?></wp:tag> 318 <?php endforeach; endif; ?> 319 <?php if ( $terms ) : foreach ( $terms as $t ) : ?> 320 <wp:term><wp:term_taxonomy><?php echo $t->taxonomy; ?></wp:term_taxonomy><wp:term_slug><?php echo $t->slug; ?></wp:term_slug><wp:term_parent><?php echo $t->parent ? $custom_taxonomies[$t->parent]->name : ''; ?></wp:term_parent><?php wxr_term_name( $t ); ?><?php wxr_term_description( $t ); ?></wp:term> 321 <?php endforeach; endif; ?> 354 <wp:post_id><?php echo $post->ID; ?></wp:post_id> 355 <wp:post_date><?php echo $post->post_date; ?></wp:post_date> 356 <wp:post_date_gmt><?php echo $post->post_date_gmt; ?></wp:post_date_gmt>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);entry.php https://gitlab.com/webkod3r/tripolis | PHP | 93 lines
1<?php 2/** 4 * 5 * @version $Id: entry.php 1157 2015-11-20 04:30:11Z dd32 $ 6 * @package pomo 39 * - extracted_comments (string) -- comments left by developers 40 * - references (array) -- places in the code this strings is used, in relative_to_root_path/file.php:linenum form 41 * - flags (array) -- flags like php-format 58 /** 59 * PHP4 constructor. 60 */ 84 function merge_with(&$other) { 85 $this->flags = array_unique( array_merge( $this->flags, $other->flags ) ); 86 $this->references = array_unique( array_merge( $this->references, $other->references ) );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']);XmlScanner.php https://gitlab.com/yousafsyed/easternglamor | PHP | 87 lines
1<?php 2/** 37 $xpath = new \DOMXPath($dom); 38 $xpath->registerNamespace("php", "http://php.net/xpath"); 39 $xpath->registerPhpFunctions('preg_match'); 40 $regex = '/^(.*)\\\(.*)Proxy$/'; 41 $query = "/config/preference[ php:functionString('preg_match', '{$regex}', @type) > 0]/@type | " . 42 "//argument[@xsi:type='object' and php:functionString('preg_match', '{$regex}', text()) > 0] |" . 42 "//argument[@xsi:type='object' and php:functionString('preg_match', '{$regex}', text()) > 0] |" . 43 "//item[@xsi:type='object' and php:functionString('preg_match', '{$regex}', text()) > 0] |" . 44 "/config/virtualType[ php:functionString('preg_match', '{$regex}', @type) > 0]/@type"; 49 } 50 $output = array_unique($output); 51 return $this->_filterEntities($output);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) {ManageController.php https://gitlab.com/wuhang2003/phpwind | PHP | 372 lines
1<?php 2defined('WEKIT_VERSION') || exit('Forbidden'); 10 * @author Mingqu Luo <luo.mingqu@gmail.com> 11 * @copyright ©2003-2103 phpwind.com 12 * @license http://www.windframework.com 12 * @license http://www.windframework.com 13 * @version $Id: ManageController.php 28865 2013-05-28 03:34:43Z jieyin $ 14 * @package wind 41 $wordList = explode("\n", $word['word']); 42 $wordList = array_unique($wordList); 43 152 153 $word = array_unique($word); 154 171 $ids = $word['ids'] ? explode(',', $word['ids']) : array(); 172 $ids = array_unique($ids); 173AssetControlExtension.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 );class-wp-themes-list-table.php https://gitlab.com/webkod3r/tripolis | PHP | 308 lines
95 if ( current_user_can( 'install_themes' ) && current_user_can( 'manage_network_themes' ) ) { 96 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=' . $GLOBALS['blog_id'] ), network_admin_url( 'theme-install.php' ) ); 97 106 if ( current_user_can( 'install_themes' ) ) { 107 printf( __( 'You only have one theme installed right now. Live a little! You can choose from over 1,000 free themes in the WordPress.org Theme Directory at any time: just click on the <a href="%s">Install Themes</a> tab above.' ), admin_url( 'theme-install.php' ) ); 108 139 <div id="availablethemes"> 140 <?php $this->display_rows_or_placeholder(); ?> 141 </div> 210 <?php if ( $screenshot = $theme->get_screenshot() ) : ?> 211 <img src="<?php echo esc_url( $screenshot ); ?>" alt="" /> 212 <?php endif; ?> 234 <div class="themedetaildiv hide-if-js"> 235 <p><strong><?php _e('Version:'); ?></strong> <?php echo $version; ?></p> 236 <p><?php echo $theme->display('Description'); ?></p>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 }UpdateItemOptions.php https://gitlab.com/yousafsyed/easternglamor | PHP | 93 lines
1<?php 2/** 14 * @return \Magento\Framework\Controller\Result\Redirect 15 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 16 * @SuppressWarnings(PHPMD.NPathComplexity) 72 } else { 73 $messages = array_unique(explode("\n", $e->getMessage())); 74 foreach ($messages as $message) {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 }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>'.exclude_pages.php https://gitlab.com/blueprintmrk/bladencountyrecords | PHP | 371 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 $bail_out = ( ( defined( 'WP_ADMIN' ) && WP_ADMIN == true ) || ( strpos( $_SERVER[ 'PHP_SELF' ], 'wp-admin' ) !== false ) ); 46 $bail_out = apply_filters( 'ep_admin_bail_out', $bail_out ); 63 // Ensure the array only has unique values 64 $delete_ids = array_unique( $excluded_ids ); 65 114function ep_get_page( $page_id, $pages ) { 115 // PHP 5 would be much nicer here, we could use foreach by reference, ah well. 116 $length = count($pages); 187 // De-dupe the array, in case it was there already 188 $excluded_ids = array_unique( $excluded_ids ); 189 } 230 echo '<p class="ep_exclude_alert"><em>'; 231 printf( __( 'N.B. An ancestor of this page is excluded, so this page is too (<a href="%1$s" title="%2$s">edit ancestor</a>).', EP_TD), "post.php?action=edit&post=$nearest_excluded_ancestor", __( 'edit the excluded ancestor', EP_TD ) ); 232 echo '</em></p>';theme-editor.php https://gitlab.com/webkod3r/tripolis | PHP | 298 lines
82 switch ( $type ) { 83 case 'php': 84 $allowed_files += $theme->get_files( 'php', 1 ); 207 switch ( $file_type ) { 208 case '.php': 209 if ( $has_templates || $theme->parent() ) : 243?> 244 <li><a href="theme-editor.php?file=<?php echo urlencode( $filename ) ?>&theme=<?php echo urlencode( $stylesheet ) ?>"><?php echo $file_description; ?></a></li> 245<?php 265 <?php echo $docs_select; ?> 266 <input type="button" class="button" value=" <?php esc_attr_e( 'Look Up' ); ?> " onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( 'https://api.wordpress.org/core/handbook/1.0/?function=' + escape( jQuery( '#docs-list' ).val() ) + '&locale=<?php echo urlencode( get_locale() ) ?>&version=<?php echo urlencode( $wp_version ) ?>&redirect=true'); }" /> 267 </div> 271 <?php if ( is_child_theme() && $theme->get_stylesheet() == get_template() ) : ?> 272 <p><?php if ( is_writeable( $file ) ) { ?><strong><?php _e( 'Caution:' ); ?></strong><?php } ?> 273 <?php _e( 'This is a file in your current parent theme.' ); ?></p>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 }class-sitemaps-admin.php https://gitlab.com/ngochuynh1991/cuacuon | PHP | 185 lines
1<?php 2/** 140 $this->importing_post_types[] = get_post_type( $post ); 141 $this->importing_post_types = array_unique( $this->importing_post_types ); 142 }storestocksale.php https://gitlab.com/alexprowars/bitrix | PHP | 292 lines
1<?php 2 214 215 return array_unique($combineColumnElements); 216 }