100+ results results for 'php array_unique repo:opehei/wordpress-trunk' (278 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); 291AbstractFindAdapter.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);pm.php https://bitbucket.org/likeping/lkp.git | PHP | 373 lines
1<?php 2 6 7 $Id: pm.php 1067 2011-03-08 10:06:51Z svn_project_zhangjie $ 8*/ 49 $lastpm = $_ENV['pm']->lastpm($uid); 50 require_once UC_ROOT.'lib/uccode.class.php'; 51 $this->uccode = new uccode(); 90 if(!empty($msgto)) { 91 $msgto = array_unique(explode(',', $msgto)); 92 } 278 279 require_once UC_ROOT.'lib/uccode.class.php'; 280 $this->uccode = new uccode(); 310 311 require_once UC_ROOT.'lib/uccode.class.php'; 312 $this->uccode = new uccode();BaseObject.php https://github.com/homer6/Propel.git | PHP | 396 lines
1<?php 2 92 { 93 return array_unique($this->modifiedColumns); 94 } 335 } 336 return $this->fromArray($parser->toArray($data), BasePeer::TYPE_PHPNAME); 337 } 355 } 356 return $parser->fromArray($this->toArray(BasePeer::TYPE_PHPNAME, true, array(), true)); 357 } 381 } 382 // no lcfirst in php<5.3... 383 $virtualColumn[0] = strtolower($virtualColumn[0]);previewmanager.php https://gitlab.com/wuhang2003/core | PHP | 342 lines
1<?php 2/** 239 } 240 $this->defaultProviders = array_unique($this->defaultProviders); 241 return $this->defaultProviders;bookmark.php https://github.com/jywarren/whooz.git | PHP | 346 lines
1<?php 2/** 23 $link = $wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->links WHERE link_id = %d LIMIT 1", $bookmark_id)); 24 $link->link_category = array_unique( wp_get_object_terms($link->link_id, 'link_category', 'fields=ids') ); 25PhpMatcherDumper.php https://bitbucket.org/AdriVanHoudt/school.git | PHP | 378 lines
17/** 18 * PhpMatcherDumper creates a PHP class able to match URLs for a given set of routes. 19 * 23 */ 24class PhpMatcherDumper extends MatcherDumper 25{ 26 /** 27 * Dumps a set of routes to a PHP class. 28 * 35 * 36 * @return string A PHP class representing the matcher class 37 */ 82 * 83 * @return string Match method as PHP code 84 */script_combiner.php https://github.com/plastic/Cake-boilerplate.git | PHP | 325 lines
1<?php 2/** 8// Include the stand-alone configuration file if it exists. 9if (is_file(CONFIGS . 'script_combiner.php')) { 10 Configure::load('script_combiner'); 214 if (isset($urlMatches[1])) { 215 $urlMatches = array_unique($urlMatches[1]); 216 } else {PhpMatcherDumper.php https://github.com/Exercise/symfony.git | PHP | 289 lines
1<?php 2 17/** 18 * PhpMatcherDumper creates a PHP class able to match URLs for a given set of routes. 19 * 22 */ 23class PhpMatcherDumper extends MatcherDumper 24{ 25 /** 26 * Dumps a set of routes to a PHP class. 27 * 34 * 35 * @return string A PHP class representing the matcher class 36 */ 48 return <<<EOF 49<?php 50class-wp-themes-list-table.php https://github.com/muskmelon/Greemo.git | PHP | 240 lines
70 if ( current_user_can( 'install_themes' ) && current_user_can( 'manage_network_themes' ) ) { 71 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' ) ); 72 94 ?> 95 <div class="tablenav <?php echo $which; ?>"> 96 <?php $this->pagination( $which ); ?> 170 if ( ! is_multisite() && current_user_can( 'delete_themes' ) ) 171 $actions[] = '<a class="submitdelete deletion" href="' . wp_nonce_url( "themes.php?action=delete&template=$stylesheet", 'delete-theme_' . $stylesheet ) . '" onclick="' . "return confirm( '" . esc_js( sprintf( __( "You are about to delete this theme '%s'\n 'Cancel' to stop, 'OK' to delete." ), $theme_name ) ) . "' );" . '">' . __( 'Delete' ) . '</a>'; 172 $actions = apply_filters( 'theme_action_links', $actions, $themes[$theme_name] ); 175?> 176 <a href="<?php echo $preview_link; ?>" class="<?php echo $thickbox_class; ?> screenshot"> 177<?php if ( $screenshot ) : ?> 192<?php if ( $tags ) : ?> 193<p><?php _e( 'Tags:' ); ?> <?php echo join( ', ', $tags ); ?></p> 194<?php endif; ?>Store.php https://gitlab.com/FSalazarH/WaitlessWeb | PHP | 707 lines
1<?php 2 492 { 493 $values = array_unique(array_merge($this->get('flash.new', []), $keys)); 494PHPDriver.php https://github.com/weaverryan/mongodb-odm.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 }scripts.php https://github.com/NuarHaruha/WPI-WordPress-Theme.git | PHP | 166 lines
86 87 $this->head = array_unique($this->head); 88 116 { 117 echo PHP_EOL.PHP_T; 118 t('script','',array( 136 $js = PHP_EOL.PHP_T; 137 $js .= '/*<![CDATA[*/'.PHP_EOL.PHP_T.PHP_T; 138 $js .= 'var wpi = {url:'.json_encode(WPI_URL_SLASHIT); 157 // google webmaster 404 widget 158 $js .= PHP_T.PHP_T.'var GOOG_FIXURL_LANG = \''.$lang.'\';var GOOG_FIXURL_SITE = wpi.url;'.PHP_EOL; 159 } 159 } 160 $js .= PHP_T.'/*]]>*/'.PHP_EOL.PHP_T; 161internal-link-aliases.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 310 lines
1<?php 2 41 $aliases = $this->get_setting('aliases', array()); 42 $aliases = array_map('unserialize', array_unique(array_map('serialize', $aliases))); 43 $aliases = array_filter($aliases, array(&$this, 'remove_empty_aliases')); 164 if ($content && preg_match_all('@ href=["\']([^#][^"\']+)["\']@', $content, $matches)) { 165 $urls = array_unique($matches[1]); 166BelongsTo.php https://gitlab.com/rocs/Streaming-Safe-for-Kids | PHP | 328 lines
1<?php 2 180 181 return array_values(array_unique($keys)); 182 }feed.php https://github.com/sharpmachine/wakeupmedia.com.git | 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'); 532internal-link-aliases.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 374 lines
1<?php 2 34 if (suwp::permalink_mode() != SUWP_PRETTY_PERMALINKS) 35 $this->print_message('error', sprintf(__('Link Mask Generator won’t work with default or “pathinfo” permalinks. Please change your <a href="%s">permalink structure</a> to enable this module’s functionality.', 'seo-ultimate'), 'options-permalink.php')); 36 53 $aliases = $this->get_setting('aliases', array()); 54 $aliases = array_map('unserialize', array_unique(array_map('serialize', $aliases))); 55 $aliases = array_filter($aliases, array(&$this, 'remove_empty_aliases')); 175 if ($content && preg_match_all('@ href=["\']([^#][^"\']+)["\']@', $content, $matches)) { 176 $urls = array_unique($matches[1]); 177CollectionConstraint.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');City.php https://gitlab.com/sajyeasmin/AtomicProject_Sajeda_Yeasmin_SEIP_132820_B37 | PHP | 292 lines
1<?php 2namespace App\city; 36 Message::message("<div id='msg'><h3 align='center'>[ UserName: $this->user_name ] , [ UserCity: $this->user_city] <br> Data Has Been Inserted Successfully!</h3></div>"); 37 Utility::redirect('create.php'); 38 } 72 Message::message("<div id='message'><h3 align='center'> Failed! Data Has Not Been Updated Successfully!</h3></div>"); 73 Utility::redirect('index.php'); 74 }// end of update() 82 Message::message("<div id='message'><h3 align='center'> Failed! Data Has Not Been Deleted Successfully!</h3></div>"); 83 Utility::redirect('index.php'); 84 95 ); 96 Utility::redirect('index.php'); 97 } 138 Message::message("<div id='message'><h3 align='center'> Success! Data Has Been Restored Successfully!</h3></div>"); 139 Utility::redirect('trashList.php'); 140 }check_configuration.php https://gitlab.com/klausmig/InformationRetrievalSystem | PHP | 106 lines
51 52echo sprintf("php.ini used by PHP: %s\n\n", get_ini_path()); 53 56 echo "** WARNING **\n"; 57 echo "* The PHP CLI can use a different php.ini file\n"; 58 echo "* than the one used with your web server.\n"; 69echo "\n** Mandatory requirements **\n\n"; 70check(version_compare(phpversion(), '5.2.4', '>='), 'PHP version is at least 5.2.4', 'Current version is '.phpversion(), true); 71 95 96check(!ini_get('short_open_tag'), 'php.ini has short_open_tag set to off', 'Set it to off in php.ini', false); 97check(!ini_get('magic_quotes_gpc'), 'php.ini has magic_quotes_gpc set to off', 'Set it to off in php.ini', false); 100 101check(version_compare(phpversion(), '5.2.9', '!='), 'PHP version is not 5.2.9', 'PHP 5.2.9 broke array_unique() and sfToolkit::arrayDeepMerge(). Use 5.2.10 instead [Ticket #6211]', false); 102Rss.php https://gitlab.com/rsilveira1987/Expresso | PHP | 533 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Rss.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $ 20 */ 24 */ 25require_once 'Zend/Feed/Reader/FeedAbstract.php'; 26 29 */ 30require_once 'Zend/Feed/Reader/Extension/Atom/Feed.php'; 31 34 */ 35require_once 'Zend/Feed/Reader/Extension/DublinCore/Feed.php'; 36 39 */ 40require_once 'Zend/Date.php'; 41weekly-mail.php https://gitlab.com/pankajmohale/chef2go | PHP | 283 lines
1<?php 2 12 /** Set up WordPress environment */ 13 require_once( '/home/rgbastud/public_html/chefs2go/wp-load.php' ); 14} 15 16require('/home/rgbastud/public_html/chefs2go/wp-content/themes/chef2go/mpdf60/mpdf.php'); 17$timesheet_value = weekly_mail_timesheet_function(); 50 $author_id_array[] = $author_id; 51 $author_unique_id_array = array_unique($author_id_array); 52 } 250$fileName = 'weekly-timesheet.pdf'; 251$eol = PHP_EOL; 252$separator = md5(time());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>Relation.php https://gitlab.com/Pasantias/pasantiasASLG | 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();Index.php https://gitlab.com/billyprice1/bdApi | PHP | 120 lines
1<?php 2 88 if (!empty($clientIds)) { 89 $clientIds = array_unique($clientIds); 90PwLikeService.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/pr0055/symfonypizza | PHP | 141 lines
1<?php 2 130 131 if (count(array_unique($ids)) > 1) { 132 return false;Rss.php https://github.com/grandison/budo16.git | PHP | 533 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Rss.php 18367 2009-09-22 14:55:59Z padraic $ 20 */ 24 */ 25// require_once 'Zend/Feed/Reader/FeedAbstract.php'; 26 29 */ 30// require_once 'Zend/Feed/Reader/Extension/Atom/Feed.php'; 31 34 */ 35// require_once 'Zend/Feed/Reader/Extension/DublinCore/Feed.php'; 36 39 */ 40// require_once 'Zend/Date.php'; 41Json.php https://github.com/testruby/Tine-2.0-Open-Source-Groupware-and-CRM.git | PHP | 417 lines
1<?php 2/** 101 $groupIds = $_records->group_id; 102 $groups = Tinebase_Group::getInstance()->getMultiple(array_unique(array_values($groupIds))); 103 $knownTypes = Tinebase_Department::getInstance()->search(new Tinebase_Model_DepartmentFilter()); 178 179 // add or remove members to or from internet/fileserver groups (defined in config.inc.php) 180 foreach ($_members as $memberId) {DefaultTableMapping.php https://gitlab.com/reasonat/test8 | PHP | 396 lines
1<?php 2 95 public function getTableNames() { 96 return array_unique(array_merge(array_keys($this->fieldNames), array_keys($this->extraColumns))); 97 }tprScriptParser.php https://github.com/yoyar/tprsp.git | PHP | 456 lines
1<?php 2 265 266 $letters = array_unique(explode(',', $matches[1])); 267 304 305 $letters = array_unique(explode(',', $matches[1])); 306quipthread.class.php https://bitbucket.org/orchdork10159/dnsman.ly.git | PHP | 346 lines
1<?php 2/** 206 } 207 $moderators = array_unique($moderators); 208 279 280 $this->xpdo->getService('mail', 'mail.modPHPMailer'); 281 if (!$this->xpdo->mail) return false;arr.php https://github.com/jimmytidey/jimmytidey.co.uk.git | PHP | 223 lines
1<?php 2/* 202 203 //Function based on http://php.net/manual/en/function.array-unique.php#82508 204 static function in_array_i($str, $a) { 211 212 //Function based on http://php.net/manual/en/function.array-unique.php#82508 213 static function array_unique_i($a) {ezurltype.php https://github.com/eeggenberger/ezpublish.git | PHP | 374 lines
1<?php 2/** 11/*! 12 \class eZURLType ezurltype.php 13 \ingroup eZDatatype 102 } 103 $urls = array_unique( $urls ); 104class-wp-taxonomy.php https://github.com/AJenbo/ubuntudanmark.dk.git | PHP | 453 lines
1<?php 2/** 359 360 $args['object_type'] = array_unique( (array) $object_type ); 361story_view.php https://github.com/winbladh/imuse.git | PHP | 208 lines
1<?php 2include "includes.php"; 87 88 $condlist = array_unique($condlist); 89 //print_r($condlist); 97 { 98 redirect("story_view.php?storyid=$storyid&bypass=1"); 99 }class-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 );Twig.php https://gitlab.com/sulistiana/web-profile-arsy | PHP | 238 lines
1<?php 2/** 12 13require_once APPPATH . 'third_party/Twig-1.24.1/lib/Twig/Autoloader.php'; 14Twig_Autoloader::register(); 55 $this->functions_asis = 56 array_unique( 57 array_merge($this->functions_asis, $params['functions']) 62 $this->functions_safe = 63 array_unique( 64 array_merge($this->functions_safe, $params['functions_safe'])class.Search.php https://github.com/otto-torino/gino.git | PHP | 203 lines
1<?php 2/** 2/** 3 * @file class.Search.php 4 * @brief Contiene la definizione ed implementazione della classe Gino.Search 5 * 6 * @copyright 2005-2014 Otto srl (http://www.opensource.org/licenses/mit-license.php) The MIT License 7 * @author marco guidotti guidottim@gmail.com 32 * 33 * @copyright 2005-2014 Otto srl (http://www.opensource.org/licenses/mit-license.php) The MIT License 34 * @author marco guidotti guidottim@gmail.com 86 87 return array_diff(array_unique(explode(" ", $clean_string)), $empty_array); 88 }sfPropelBaseTask.class.php https://github.com/bheneka/gitta.git | PHP | 357 lines
1<?php 2 57 58 $schemas = array_unique(array_merge($finder->in(sfConfig::get('sf_config_dir')), $finder->in($this->configuration->getPluginSubPaths('/config')))); 59 if (self::CHECK_SCHEMA === $checkSchema && !count($schemas)) 261 262 require_once dirname(__FILE__).'/sfPhing.class.php'; 263 264 // enable output buffering 265 Phing::setOutputStream(new OutputStream(fopen('php://output', 'w'))); 266 Phing::startup(); 318 return array( 319 'propel.database' => $database->getParameter('phptype'), 320 'propel.database.driver' => $database->getParameter('phptype'),ContentsController.php https://gitlab.com/techniconline/kmc | PHP | 294 lines
1<?php namespace App\Http\Controllers\backend; 2 142 $input['title_tags'] = CategoryHelper::createTags($input['link_title']); 143 $input['tags_upd'] = array_unique(explode(",", $input['title_tags'] . ',' . $input['tags'])); 144 $input['tags'] = implode(",", $input['tags_upd']); 226 $updateContent->sort = isset($input['sort']) && $input['sort'] ? $input['sort'] : 1; 227 $input['tags_upd'] = array_unique(explode(",", $input['title_tags'] . ',' . $input['tags'])); 228MantenimientosController.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 382 lines
1<?php 2 74 $unionascensores = array_merge($ascensoreslist, $ascensoreslistcli); 75 $resultascensores = array_unique($unionascensores); 76 77 $unionmantenimientos = array_merge($mantenimientoexternoslist, $mantenimientoexternoslistcli); 78 $resultmantenimientos = array_unique($unionmantenimientos); 79 102 $union = array_merge($mantenimientosascensor, $mantenimientosexternos); 103 $result = array_unique($union); 104 190 ob_start(); 191 include(app_path().'/views/pdf/informemantenimiento.php'); 192 $content = ob_get_clean(); 194 // convert to PDF 195 require_once(public_path().'/packages/html2pdf/html2pdf.class.php'); 196 $html2pdf = new HTML2PDF('P', 'A4', 'es');XMLWriter.php https://gitlab.com/najomie/fit-hippie | PHP | 402 lines
1<?php 2 3// Handle eval errors that cause the script to finish 4$wpaeErrorHandler = new WpaePhpInterpreterErrorHandler(); 5register_shutdown_function(array($wpaeErrorHandler, 'handle')); 149 preg_match_all("%(\{[^\}\{]*\})%", $node_tpl, $matches); 150 $xpaths = array_unique($matches[0]); 151 246 preg_match_all("%(\[[^\]\[]*\])%", $xml, $matches); 247 $snipets = empty($matches) ? array() : array_unique($matches[0]); 248 $simple_snipets = array(); 249 preg_match_all("%(\{[^\}\{]*\})%", $xml, $matches); 250 $xpaths = array_unique($matches[0]); 251banner.php https://github.com/CCI-Studios/Wee-Magazine.git | PHP | 487 lines
1<?php 2/** 43 // Sanitize user ids. 44 $pks = array_unique($pks); 45 JArrayHelper::toInteger($pks);OpenruthClient.class.php https://github.com/dingproject/openruth.git | PHP | 483 lines
1<?php 2// $Id$ 76 $sensitive = func_get_args(); 77 // For some reason PHP doesn't have array_flatten, and this is the 78 // shortest alternative. 196 if (sizeof($h['issues'])) { 197 $h['holdings'] = array_unique($h['holdings']); 198 }reflection_php5.php https://github.com/kpike/moodle.git | PHP | 380 lines
1<?php 2/** 27 * Checks that a class has been declared. Versions 28 * before PHP5.0.2 need a check that it's not really 29 * an interface. 41 /** 42 * Needed to kill the autoload feature in PHP5 43 * for classes created dynamically. 61 /** 62 * Needed to kill the autoload feature in PHP5 63 * for classes created dynamically. 71 /** 72 * Needed to select the autoload feature in PHP5 73 * for classes created dynamically. 94 function getMethods() { 95 return array_unique(get_class_methods($this->_interface)); 96 }PluginDmPageTable.class.php https://github.com/xdade/diem.git | PHP | 404 lines
1<?php 2/** 136 137 $this->prepareRecordPageCache($module->getKey(), array_unique($ids)); 138 }create.php https://github.com/larscwallin/revolution.git | PHP | 235 lines
1<?php 2/** 144 $parentIds[] = $p; 145 $parentIds = array_unique($parentIds); 146 } else { 194$tvCounts = array(); 195$tvOutput = include dirname(__FILE__).'/tvs.php'; 196if (!empty($tvCounts)) {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{AssetCollectionTest.php https://github.com/dlondero/fantamanager.git | PHP | 262 lines
1<?php 2 17 18class AssetCollectionTest extends \PHPUnit_Framework_TestCase 19{ 240 241 $this->assertEquals(2, count(array_unique($urls)), 'iterator prevents basename collisions'); 242 }http.php https://bitbucket.org/rossberenson/michael-karas.git | 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' ],helper.php https://gitlab.com/ricardosanchez/prueba | PHP | 481 lines
1<?php 2/** 12$com_path = JPATH_SITE . '/components/com_content/'; 13require_once $com_path . 'helpers/route.php'; 14 158 159 $catids = array_unique(array_merge($catids, $additional_catids)); 160 } 239 $menu = $app->getMenu(); 240 $menuitems = $menu->getItems('link', 'index.php?option=com_users&view=login'); 241 251 252 $item->link = JRoute::_('index.php?option=com_users&view=login&Itemid=' . $Itemid); 253 }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 }array.idl.php https://github.com/diegoIta/hiphop-php.git | PHP | 376 lines
1<?php 2 2 3include_once 'base.php'; 4 156 157f('array_unique', Variant, 158 array('array' => Variant), FunctionIsFoldable);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 {shortcodes.php https://github.com/kronda/kronda.git | PHP | 420 lines
1<?php 2 32 33 $tags = array_filter( array_unique( (array) $tag ) ); 34 291 292 $options = array_filter( array_unique( $options ) ); 293helper.php https://github.com/Hackwar/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'; 321edit_index_save.class.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 236 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 122 // Check that there aren't duplicate column names 123 $uniquearr = array_unique($fieldsarr); 124 if (count($fieldsarr) != count($uniquearr)) { 181 <p>' . $tempindex->readableInfo() . '</p>'; 182 $o.= '<a href="index.php?action=edit_index&index=' .$index->getName() . '&table=' . $table->getName() . 183 '&dir=' . urlencode(str_replace($CFG->dirroot, '', $dirpath)) . '">[' . $this->str['back'] . ']</a>';helper.php https://github.com/zarkos/Kunena-2.0.git | PHP | 340 lines
1<?php 2/** 54 } elseif (is_array ($ids) ) { 55 $ids = array_unique($ids); 56 } else {Class.php https://github.com/aflexi/thirdparty.git | PHP | 317 lines
38 * @subpackage Util_Skeleton 39 * @author Sebastian Bergmann <sebastian@phpunit.de> 40 * @copyright 2002-2010 Sebastian Bergmann <sebastian@phpunit.de> 40 * @copyright 2002-2010 Sebastian Bergmann <sebastian@phpunit.de> 41 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 42 * @link http://www.phpunit.de/ 51 * @author Sebastian Bergmann <sebastian@phpunit.de> 52 * @copyright 2002-2010 Sebastian Bergmann <sebastian@phpunit.de> 53 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 57 */ 58class PHPUnit_Util_Skeleton_Class extends PHPUnit_Util_Skeleton 59{ 236 237 $testedMethods = array_unique($testedMethods); 238 sort($testedMethods);class-wp-rest-search-controller.php https://gitlab.com/campus-academy/krowkaramel | PHP | 387 lines
1<?php 2/** 72 __METHOD__, 73 /* translators: %s: PHP class name. */ 74 sprintf( __( 'REST search handlers must extend the %s class.' ), 'WP_REST_Search_Handler' ), 188 * @since 5.6.0 The `$id` parameter can accept a string. 189 * @since 5.9.0 Renamed `$id` to `$item` to match parent class for PHP 8 named parameter support. 190 * 241 242 $types = array_unique( $types ); 243 $subtypes = array_unique( $subtypes ); 306 307 $types = array_unique( $types ); 308 $subtypes = array_unique( $subtypes );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'])),freeswitch.php https://github.com/robertleeplummerjr/bluebox.git | PHP | 291 lines
1<?php defined('SYSPATH') or die('No direct access allowed.'); 2/** 2/** 3 * freeswitch.php - Provides logic for the installer telephony configuration step 4 * @author K Anderson 109 // Create one unique list of all bluebox xml and extra sip profiles 110 $conflictXmlFiles = array_unique(array_merge($oldXmlFiles, $sipProfiles)); 111 124 message::set('This driver requires ' 125 . html::anchor('http://us3.php.net/manual/en/class.domdocument.php', 'DOMDocument', array('target' => '_new')) 126 . ' to be installed and active'); 153 154 // Write $telephonyOptions to freeswitch.php 155 if ( ! Installer_Controller::updateConfig($telephonyOptions, 'freeswitch')) 159 160 // Set the driver name in telephony.php 161 if (!Installer_Controller::updateConfig(array('driver' => 'FreeSwitch'), 'telephony'))ComposerInformation.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 379 lines
101 /** 102 * Retrieves required php version 103 * 106 */ 107 public function getRequiredPhpVersion() 108 { 110 $allPlatformReqs = $this->getLocker()->getPlatformRequirements(true); 111 $requiredPhpVersion = $allPlatformReqs['php']->getPrettyConstraint(); 112 } else { 118 if ($packageName === 'magento/product-community-edition') { 119 $phpRequirementLink = $package->getRequires()['php']; 120 if ($phpRequirementLink instanceof Link) { 120 if ($phpRequirementLink instanceof Link) { 121 $requiredPhpVersion = $phpRequirementLink->getPrettyConstraint(); 122 }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"])); 90wpml-post-translation.class.php https://gitlab.com/woxiprogrammers/infinia-wordpress | PHP | 367 lines
1<?php 2require ICL_PLUGIN_PATH . '/inc/post-translation/wpml-post-duplication.class.php'; 2require ICL_PLUGIN_PATH . '/inc/post-translation/wpml-post-duplication.class.php'; 3require 'wpml-post-synchronization.class.php'; 4require_once 'wpml-wordpress-actions.class.php'; 72 update_option( 'sticky_posts', 73 array_values( array_unique( array_filter( array_merge( $posts, $unfiltered ) ) ) ) ); 74 } 82 } 83 $posts = array_values( array_unique( array_filter( $posts ) ) ); 84 } 100 public function pre_update_option_sticky_posts( $posts ) { 101 $updated_sticky_list = array_values( array_unique( array_filter( array_merge( $posts, 102 $this->filtered_sticky_posts ) ) ) ); 240 } 241 require_once ICL_PLUGIN_PATH . '/inc/cache.php'; 242 icl_cache_clear( $post_vars['post_type'] . 's_per_language', true );appProdUrlMatcher.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 }contact.php https://github.com/3den/J-MediaGalleries.git | PHP | 343 lines
1<?php 2/** 2/** 3 * @version $Id: contact.php 19024 2010-10-02 18:53:34Z 3dentech $ 4 * @package Joomla.Administrator 167 // Sanitize user ids. 168 $pks = array_unique($pks); 169 JArrayHelper::toInteger($pks);EditView.php https://github.com/hitchby/PLEXUS.git | PHP | 391 lines
1<?php 2/*+******************************************************************************** 9 ********************************************************************************/ 10require_once('data/Tracker.php'); 11 26$image_path=$theme_path."images/"; 27require_once('modules/CustomView/CustomView.php'); 28 77 78 $smarty->assign("MANDATORYCHECK",implode(",",array_unique($oCustomView->mandatoryvalues))); 79 $smarty->assign("SHOWVALUES",implode(",",$oCustomView->showvalues)); 158 $smarty->assign("STDFILTER_JAVASCRIPT",$stdfilterjs); 159 $smarty->assign("MANDATORYCHECK",implode(",",array_unique($oCustomView->mandatoryvalues))); 160 $smarty->assign("SHOWVALUES",implode(",",$oCustomView->showvalues)); 291 global $app_list_strings, $current_language,$app_strings,$current_user; 292 require('user_privileges/user_privileges_'.$current_user->id.'.php'); 293 global $oCustomView;Process.php https://bitbucket.org/kdms/sh-magento.git | PHP | 451 lines
1<?php 2/** 127 if (strpos(str_replace($this->_includeDir, '', $target), '-') 128 || !in_array(substr($source, strlen($source)-4, 4), array('.php'))) { 129 return $this; 199 } else { 200 if (!in_array(substr($source, strlen($source)-4, 4), array('.php'))) { 201 return $this; 297 $arrFiles[$code] = array_merge($arrFiles[$code], $statClasses); 298 $arrFiles[$code] = array_unique($arrFiles[$code]); 299 sort($arrFiles[$code]); 334 $classesSorce = $this->_getClassesSourceCode($classes, $code); 335 file_put_contents($this->_includeDir.DS.Varien_Autoload::SCOPE_FILE_PREFIX.$code.'.php', $classesSorce); 336 } 369 370 $classesSource = "<?php\n"; 371 foreach ($sortedClasses as $className) {ThemeSuggestions.php https://gitlab.com/guillaumev/alkarama | PHP | 359 lines
1<?php 2/** 96 // Ensure the list of suggestions is unique. 97 $suggestions = array_unique($this->suggestions); 98 }helper.php https://github.com/xillibit/Kunena-forum.git | PHP | 526 lines
1<?php 2/** 100 101 $ids = array_unique($ids); 102 self::loadTopics($ids, $user);Abstract.php https://github.com/studioskylab/Docblox.git | PHP | 301 lines
1<?php 2/** 4 * 5 * PHP Version 5 6 * 11 * @copyright 2010-2011 Mike van Riel / Naenius (http://www.naenius.com) 12 * @license http://www.opensource.org/licenses/mit-license.php MIT 13 * @link http://docblox-project.org 22 * @author Mike van Riel <mike.vanriel@naenius.com> 23 * @license http://www.opensource.org/licenses/mit-license.php MIT 24 * @link http://docblox-project.org 233 } 234 $existing_tag_names = array_unique($existing_tag_names); 235Cache.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | 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])) {SummaryOfOrganization.php https://gitlab.com/Sajibcse/ATOMIC_PROJECT_SEIP143979_SAJIB_B37 | PHP | 404 lines
1<?php 2namespace App\BITM\SEIP143979\SummaryOfOrganization; 55 56 Utility::redirect('create.php'); 57 120 121 Utility::redirect('index.php'); 122 136 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been Inserted !</h3></div>"); 137 Utility::redirect('index.php'); 138 160 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been trashed !</h3></div>"); 161 Utility::redirect('index.php'); 162 220 } 221 Utility::redirect("multipleDelete.php"); 222 }List.php https://gitlab.com/rsilveira1987/Expresso | PHP | 448 lines
1<?php 2/** 90 /** 91 * (non-PHPdoc) 92 * @see Tinebase_Controller_Record_Abstract::get() 115 } 116 $allMemberIds = array_unique($allMemberIds); 117 142 /** 143 * (non-PHPdoc) 144 * @see Tinebase_Controller_Record_Abstract::search() 153 /** 154 * (non-PHPdoc) 155 * @see Tinebase_Controller_Record_Abstract::getMultiple()LiveTranslate.hooks.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 352 lines
1<?php 2 7 * 8 * @file LiveTranslate.hooks.php 9 * @ingroup LiveTranslate 27 global $egLiveTranslateLanguages; 28 $egLiveTranslateLanguages = array_unique( $egLiveTranslateLanguages ); 29registration.php https://github.com/sengann/iks-school.com.git | PHP | 443 lines
1<?php 2/** 2/** 3 * @version $Id: registration.php 18935 2010-09-17 14:27:40Z infograf768 $ 4 * @package Joomla.Site 76 $base = $uri->toString(array('scheme', 'user', 'pass', 'host', 'port')); 77 $data['activate'] = $base.JRoute::_('index.php?option=com_users&task=registration.activate&token='.$data['activation'], false); 78 $data['fromname'] = $config->get('fromname'); 93 $data['username'], 94 $data['siteurl'].'index.php?option=com_users&task=registration.activate&token='.$data['activation'] 95 ); 193 // Get the groups the user should be added to after registration. 194 $this->data->groups = isset($this->data->groups) ? array_unique($this->data->groups) : array(); 195 348 $base = $uri->toString(array('scheme', 'user', 'pass', 'host', 'port')); 349 $data['activate'] = $base.JRoute::_('index.php?option=com_users&task=registration.activate&token='.$data['activation'], false); 350bookmark.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);AbstractFindAdapter.php https://bitbucket.org/AdriVanHoudt/school.git | PHP | 320 lines
1<?php 2 63 // warning! INF < INF => true ; INF == INF => false ; INF === INF => true 64 // https://bugs.php.net/bug.php?id=9118 65 if (INF !== $this->maxDepth) { 94 95 $paths = $this->shell->testCommand('uniq') ? $command->add('| uniq')->execute() : array_unique($command->execute()); 96 $iterator = new Iterator\FilePathsIterator($paths, $dir);Collection.php https://gitlab.com/koodersmiikka/operaatio-terveys | PHP | 717 lines
1<?php namespace Illuminate\Support; 2 550 { 551 return new static(array_unique($this->items)); 552 }TbGroupGridView.php https://bitbucket.org/sankalpsingha/teamsoft.git | PHP | 373 lines
1<?php 2 126 //store columns for group. Set object for existing columns in grid and string for attributes 127 $groupColumns = array_unique(array_merge($this->mergeColumns, $this->extraRowColumns)); 128 foreach ($groupColumns as $key => $colName) {tags.php https://bitbucket.org/zachisit/zachis.it-m.git | PHP | 383 lines
1<?php 2 3/** 4* Tag PHP class for the WordPress plugin NextGEN Gallery 5* nggallery.lib.php 346 $slugarray = array_map('sanitize_title', $taglist); 347 $slugarray = array_unique($slugarray); 348PhpScanner.php https://gitlab.com/axeltizon/magento-demopoweraccess | PHP | 247 lines
1<?php 2/** 12 13class PhpScanner implements ScannerInterface 14{ 180 } 181 return array_unique($output); 182 } 244 } 245 return array_unique($classes); 246 }Type.hx https://gitlab.com/ezeql/haxe | Haxe | 266 lines
120 } 121 __php__("php_Boot::$skip_constructor = false"); 122 return i; 164 "); 165 return untyped __php__("new _hx_array(array_values(array_unique($r)))"); 166 } 185 "); 186 return untyped __php__("new _hx_array(array_unique($r))"); 187 } 226 if(getEnum(untyped __php__("$a->params[$i]")) != null) { 227 if(!untyped enumEq(__php__("$a->params[$i]"),__php__("$b->params[$i]"))) 228 return false; 229 } else { 230 if(!untyped __call__("_hx_equal", __php__("$a->params[$i]"),__php__("$b->params[$i]"))) 231 return false;template-functions.php https://bitbucket.org/adatux_/uakami.git | PHP | 468 lines
1<?php 2 35 if ( isset( $name ) ) 36 $templates[] = $slug . '-' . $name . '.php'; 37 $templates[] = $slug . '.php'; 168 // Remove empties and duplicates 169 $stack = array_unique( array_filter( $stack ) ); 170 194 if ( empty( $templates ) ) 195 $templates = array( "{$type}.php" ); 196 241 242 return apply_filters( 'bbp_add_template_locations', array_unique( $retval ), $templates ); 243} 249 * If it's a user edit page, WP_Query::bbp_is_single_user_edit is set to true 250 * and the the 'wp-admin/includes/user.php' file is included. 251 * In addition, on user/user edit pages, WP_Query::home is set to false & queryFeed.php https://gitlab.com/rsilveira1987/Expresso | PHP | 265 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Feed.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $ 20 */ 24 */ 25require_once 'Zend/Feed/Reader/Extension/FeedAbstract.php'; 26 29 */ 30require_once 'Zend/Date.php'; 31 87 if (!empty($authors)) { 88 $authors = array_unique($authors); 89 }Reader.php https://gitlab.com/gideonmarked/PLCPortal | PHP | 350 lines
1<?php 2/** 5* @license http://opensource.org/licenses/MIT 6* @link https://github.com/thephpleague/csv/ 7* @version 8.1.1 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');admin.functions.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 321 lines
1<?php 2/** 317 } 318 return array_unique( $array_cat ); 319}Container.php https://github.com/Exercise/symfony.git | PHP | 455 lines
1<?php 2 283 284 return array_unique(array_merge($ids, array_keys($this->services))); 285 }special.php https://gitlab.com/shapcy/opencart | PHP | 286 lines
1<?php 2class ControllerProductSpecial extends Controller { 221 222 $limits = array_unique(array($this->config->get($this->config->get('config_theme') . '_product_limit'), 25, 50, 75, 100)); 223Router.php https://gitlab.com/mohamed_hussein/prodt | PHP | 339 lines
1<?php 2 112 } 113 // PHP 7.4 introduces changes to its serialization format, which mean that 114 // older versions of PHP are unable to unserialize data that is serialized 114 // older versions of PHP are unable to unserialize data that is serialized 115 // in PHP 7.4. If the site's version of PHP has been downgraded, then 116 // attempting to unserialize routes from the database will fail, and so the 117 // router needs to be rebuilt on the current PHP version. 118 // See https://www.php.net/manual/en/migration74.incompatible.php. 119 catch (\TypeError $e) { 133 throw 0 < count($this->allow) 134 ? new MethodNotAllowedException(array_unique($this->allow)) 135 : new ResourceNotFoundException(sprintf('No routes found for "%s".', $this->currentPath->getPath()));class-wc-shipping-zone-data-store.php https://gitlab.com/campus-academy/krowkaramel | PHP | 373 lines
1<?php 2/** 109 110 /** This action is documented in includes/datastores/class-wc-shipping-zone-data-store.php. */ 111 do_action( 'woocommerce_shipping_zone_loaded', $zone ); 166 167 return $wpdb->get_results( $wpdb->prepare( $raw_methods_sql, $zone_id ) ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared 168 } 270 $matches = wc_postcode_location_matcher( $postcode, $postcode_locations, 'zone_id', 'location_code', $country ); 271 $do_not_match = array_unique( array_diff( $zone_ids_with_postcode_rules, array_keys( $matches ) ) ); 272 291 LEFT OUTER JOIN {$wpdb->prefix}woocommerce_shipping_zone_locations as locations ON zones.zone_id = locations.zone_id AND location_type != 'postcode' 292 WHERE " . implode( ' ', $criteria ) // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared 293 . ' ORDER BY zone_order ASC, zones.zone_id ASC LIMIT 1'TbGroupGridView.php https://gitlab.com/irvanresna/new-gemilang | 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) {RouteCollection.php https://bitbucket.org/AdriVanHoudt/school.git | PHP | 364 lines
1<?php 2 351 { 352 return array_unique($this->resources); 353 }access.php https://github.com/nikosdion/Akeeba-Example.git | PHP | 427 lines
1<?php 2/** 280 { 281 $result = array_unique($result); 282 }wpml-installation.class.php https://gitlab.com/woxiprogrammers/infinia-wordpress | PHP | 325 lines
1<?php 2 2 3require 'wpml-language-switcher-settings.class.php'; 4 88 $sanitized_codes = array(); 89 $lang_codes = array_filter( array_unique( $lang_codes ) ); 90 foreach ( $lang_codes as $code ) {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 }Birthday.php https://gitlab.com/Sajibcse/ATOMIC_PROJECT_SEIP143979_SAJIB_B37 | PHP | 402 lines
1<?php 2/** 2/** 3 * Created by PhpStorm. 4 * User: DELL 105 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been Updated !</h3></div>"); 106 Utility::redirect('index.php'); 107 121 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been Inserted !</h3></div>"); 122 Utility::redirect('index.php'); 123 142 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been Inserted !</h3></div>"); 143 Utility::redirect('index.php'); 144 165 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been trashed !</h3></div>"); 166 Utility::redirect('index.php'); 167Publisher.php https://github.com/quarkness/piwik.git | PHP | 418 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Publisher.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 24 */ 25// require_once 'Zend/Feed/Pubsubhubbub.php'; 26 92 } elseif (!is_array($config)) { 93 // require_once 'Zend/Feed/Pubsubhubbub/Exception.php'; 94 throw new Zend_Feed_Pubsubhubbub_Exception('Array or Zend_Config object' 117 if (empty($url) || !is_string($url) || !Zend_Uri::check($url)) { 118 // require_once 'Zend/Feed/Pubsubhubbub/Exception.php'; 119 throw new Zend_Feed_Pubsubhubbub_Exception('Invalid parameter "url"' 163 { 164 $this->_hubUrls = array_unique($this->_hubUrls); 165 return $this->_hubUrls;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) ?>TaggableBehavior.php https://github.com/mmonguilod/sfPropel15TaggableBehaviorPlugin.git | PHP | 304 lines
11 'tagging_table' => '%TABLE%_tagging', 12 'tagging_table_phpname' => '%PHPNAME%Tagging', 13 'tag_table' => 'taggable_tag', 39 $tagTableName = $this->getTagTableName(); 40 $tagTablePhpName = $this->replaceTokens($this->parameters['tag_table_phpname']); 41 46 'name' => $tagTableName, 47 'phpName' => $tagTablePhpName, 48 'package' => $table->getPackage(), 92 'name' => $taggingTableName, 93 'phpName' => $this->replaceTokens($this->parameters['tagging_table_phpname']), 94 'package' => $table->getPackage(), 298 '%TABLE%' => $table->getName(), 299 '%PHPNAME%' => $table->getPhpName(), 300 ));users.php https://github.com/joebushi/joomla.git | PHP | 194 lines
1<?php 2/** 79 80 $this->setRedirect('index.php?option=com_users&view=users'); 81 } 120 121 $this->setRedirect('index.php?option=com_users&view=users'); 122 } 152 153 $this->setRedirect('index.php?option=com_users&view=users'); 154 } 172 // Sanitize user ids. 173 $cid = array_unique($cid); 174 JArrayHelper::toInteger($cid); 185 $message = JText::sprintf('USERS_USER_BATCH_FAILED', $model->getError()); 186 $this->setRedirect('index.php?option=com_users&view=users', $message, 'error'); 187 return false;RTHandler.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 414 lines
1<?php 2 3/** 4 * @file RTHandler.inc.php 5 * 14 15// $Id: RTHandler.inc.php,v 1.55 2008/07/01 01:16:12 asmecher Exp $ 16 127 // Remove duplicate extra form elements and get their values 128 $searchParams = array_unique($searchParams); 129 $searchValues = array();Feed.php https://github.com/grandison/budo16.git | PHP | 265 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Feed.php 16711 2009-07-14 16:10:54Z matthew $ 20 */ 24 */ 25// require_once 'Zend/Feed/Reader/Extension/FeedAbstract.php'; 26 29 */ 30// require_once 'Zend/Date.php'; 31 87 if (!empty($authors)) { 88 $authors = array_unique($authors); 89 }view.php https://bitbucket.org/crevillo/enetcall.git | PHP | 240 lines
1<?php 2/** 77 // Without reference there will be a inconsistency with GLOBAL instance and stored ini file. 78 $iniTemp = eZINI::create( $settingFile . '.append.php', $path, null, null, null ); 79 $iniTemp->removeSetting( $block, $setting ); 219 $iniFiles = array_merge( $iniFiles, eZDir::recursiveFindRelative( $iniPath, '', '.ini' ) ); 220 $iniFiles = array_merge( $iniFiles, eZDir::recursiveFindRelative( $iniPath, '', '.ini.append.php' ) ); 221} 224$iniFiles = preg_replace('%.*/%', '', $iniFiles ); 225// remove *.ini[.append.php] from file name 226$iniFiles = preg_replace('%\.ini.*%', '.ini', $iniFiles ); 228 229$tpl->setVariable( 'ini_files', array_unique( $iniFiles ) ); 230$tpl->setVariable( 'siteaccess_list', $siteAccessList );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' );molajo.php https://github.com/ot2sen/Molajo.git | PHP | 299 lines
1<?php 2/** 285 if (basename($folder) == 'tmpl') { 286 $files = JFolder::files($folder, $filter = '.php', $recurse = false, $full = false, $exclude = array(), $excludefilter = array('^\..*','.*~','*_*.php')); 287 296 } 297 return array_unique($viewLayout); 298 }Class.php https://github.com/miros/mvc_framework.git | PHP | 317 lines
2/** 3 * PHPUnit 4 * 40 * @copyright 2002-2010 Sebastian Bergmann <sb@sebastian-bergmann.de> 41 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 42 * @link http://www.phpunit.de/ 49 * @category Testing 50 * @package PHPUnit 51 * @author Sebastian Bergmann <sb@sebastian-bergmann.de> 52 * @copyright 2002-2010 Sebastian Bergmann <sb@sebastian-bergmann.de> 53 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 54 * @version Release: @package_version@ 57 */ 58class PHPUnit_Util_Skeleton_Class extends PHPUnit_Util_Skeleton 59{filebrowser.php https://bitbucket.org/chiamingyen/cmsimple-and-plugins.git | PHP | 431 lines
1<?php 2 3/** 4 * @version $Id: filebrowser.php 292 2012-09-21 16:24:11Z cmb69 $ 5 */ 105 } 106 $usages = array_unique($usages); 107 if (count($usages) > 0) { 250// 設法在 Windows 能夠儲存中文命名檔案 251if (substr(php_uname(), 0, 7) == "Windows") 252{ 307// 設法在 Windows 能夠儲存中文命名檔案 308if (substr(php_uname(), 0, 7) == "Windows") 309{Rss.php https://bitbucket.org/brunoMaurice/youfood.git | PHP | 533 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Rss.php 16963 2009-07-22 14:39:31Z padraic $ 20 */ 24 */ 25require_once 'Zend/Feed/Reader/FeedAbstract.php'; 26 29 */ 30require_once 'Zend/Feed/Reader/Extension/Atom/Feed.php'; 31 34 */ 35require_once 'Zend/Feed/Reader/Extension/DublinCore/Feed.php'; 36 39 */ 40require_once 'Zend/Date.php'; 41Generator.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 }