PageRenderTime 697ms queryTime 401ms sortTime 5ms getByIdsTime 58ms findMatchingLines 138ms

100+ results results for 'php array_unique repo:di3g0/code-igniter-improved' (697 ms)

Not the results you expected?
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);
                    
                
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;
                    
                
Collection.php https://gitlab.com/AswiniGrossman/Magento | PHP | 411 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
289
                    
290        $productsId = array_unique($productsId);
                    
291
                    
                
pm.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | 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();
                    
                
PhpMatcherDumper.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     */
                    
                
BelongsTo.php https://gitlab.com/rocs/Streaming-Safe-for-Kids | PHP | 328 lines
                    
1<?php
                    
2
                    
180
                    
181        return array_values(array_unique($keys));
                    
182    }
                    
                
Store.php https://gitlab.com/ntphuc/FoodyBackend | PHP | 707 lines
                    
1<?php
                    
2
                    
492    {
                    
493        $values = array_unique(array_merge($this->get('flash.new', []), $keys));
                    
494
                    
                
CollectionConstraint.php https://gitlab.com/yousafsyed/easternglamor | PHP | 112 lines
                    
1<?php
                    
2
                    
40            }
                    
41            if (count(array_unique($unique)) != count($value)) {
                    
42                $this->addError($path, "There are no duplicates allowed in the array", 'uniqueItems');
                    
                
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);
                    
102
                    
                
Rss.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';
                    
41
                    
                
weekly-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);
                    
90
                    
                
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/pr0055/symfonypizza | PHP | 141 lines
                    
1<?php
                    
2
                    
130
                    
131        if (count(array_unique($ids)) > 1) {
                    
132            return false;
                    
                
feed.php https://gitlab.com/gregtyka/wordpress-heroku | 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');
                    
532
                    
                
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  }
                    
                
internal-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&#8217;t work with default or &#8220;pathinfo&#8221; permalinks. Please change your <a href="%s">permalink structure</a> to enable this module&#8217;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]);
                    
177			
                    
                
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-wp-themes-list-table.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | 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&amp;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; ?>
                    
                
class-wp-taxonomy.php https://gitlab.com/pankajmohale/chef2go | PHP | 453 lines
                    
1<?php
                    
2/**
                    
359
                    
360		$args['object_type'] = array_unique( (array) $object_type );
                    
361
                    
                
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']));
                    
228
                    
                
MantenimientosController.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');
                    
                
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' ],
                    
                
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"].'&amp;lang='.LANG.'">'.$ar_ug["USER_ID"].'</a>] ('.$ar_ug["LOGIN"].') '.$ar_ug["FIRST_NAME"].' '.$ar_ug["LAST_NAME"],
                    
103		);
                    
120
                    
121require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php");
                    
122
                    
                
Template.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		{
                    
                
quipthread.class.php https://gitlab.com/haque.mdmanzurul/nga-loyaltymatters | 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;
                    
                
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'])),
                    
                
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"]));
                    
90
                    
                
wpml-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    }
                    
                
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  }
                    
                
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()
                    
                
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&amp;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])) {
                    
                
PhpScanner.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;
                    
                
Feed.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        }
                    
                
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) {
                    
                
edit_index_save.class.php https://gitlab.com/unofficial-mirrors/moodle | 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&amp;index=' .$index->getName() . '&amp;table=' . $table->getName() .
                    
183                 '&amp;dir=' . urlencode(str_replace($CFG->dirroot, '', $dirpath)) . '">[' . $this->str['back'] . ']</a>';
                    
                
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            }
                    
                
banner.php https://gitlab.com/ppapadatis/Videolearn | PHP | 487 lines
                    
1<?php
                    
2/**
                    
43		// Sanitize user ids.
                    
44		$pks = array_unique($pks);
                    
45		JArrayHelper::toInteger($pks);
                    
                
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));
                    
223
                    
                
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]);
                    
251
                    
                
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	}
                    
                
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    }
                    
                
MPSUM_Admin_Plugins.php https://gitlab.com/memuller.web/wp_site | PHP | 275 lines
                    
1<?php
                    
2/**
                    
215		//Update option
                    
216		$plugin_options = array_values( array_unique( $plugin_options ) );
                    
217		$plugin_automatic_options = array_values( array_unique( $plugin_automatic_options ) );
                    
247			?>
                    
248			<div class="updated"><p><strong><?php echo esc_html( $message ); ?></strong></p></div>
                    
249			<?php
                    
252		?>
                    
253        <form action="<?php echo esc_url( add_query_arg( array() ) ); ?>" method="post">
                    
254	    <?php
                    
260		?>
                    
261        <h3><?php esc_html_e( 'Plugin Update Options', 'stops-core-theme-and-plugin-updates' ); ?></h3>
                    
262        <?php
                    
272        </form>
                    
273    <?php
                    
274	} //end tab_output_plugins
                    
                
shBrushPhp.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 91 lines
                    
29 */
                    
30SyntaxHighlighter.brushes.Php = function()
                    
31{
                    
40					'array_udiff_uassoc array_uintersect array_uintersect_assoc '+
                    
41					'array_uintersect_uassoc array_unique array_unshift array_values array_walk '+
                    
42					'array_walk_recursive atan atan2 atanh base64_decode base64_encode base_convert '+
                    
86
                    
87	this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags);
                    
88};
                    
90SyntaxHighlighter.brushes.Php.prototype	= new SyntaxHighlighter.Highlighter();
                    
91SyntaxHighlighter.brushes.Php.aliases	= ['php'];
                    
92
                    
                
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        }
                    
                
class-wc-query.php https://gitlab.com/hop23typhu/list-theme | PHP | 496 lines
                    
1<?php
                    
2/**
                    
241		// Get a list of post id's which match the current filters set (in the layered nav and price filter)
                    
242		$post__in = array_unique( apply_filters( 'loop_shop_post_in', array() ) );
                    
243
                    
                
MessageBag.php https://gitlab.com/Sigpot/AirSpot | PHP | 359 lines
                    
1<?php
                    
2
                    
197    {
                    
198        return array_unique($this->all($format));
                    
199    }
                    
                
perfmon_index_list.php https://gitlab.com/alexprowars/bitrix | PHP | 426 lines
                    
5define("PERFMON_STOP", true);
                    
6require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
7/** @global CMain $APPLICATION */
                    
10Loader::includeModule('perfmon');
                    
11require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/perfmon/prolog.php");
                    
12
                    
105						{
                    
106							foreach (array_unique($arMissedKeys) as $suggest)
                    
107							{
                    
267
                    
268	$row->AddViewField("SQL_COUNT", '<a href="perfmon_sql_list.php?lang='.LANGUAGE_ID.'&amp;set_filter=Y&amp;find_suggest_id='.$f_ID.'">'.$f_SQL_COUNT.'</a>');
                    
269	$row->AddViewField("COLUMN_NAMES", str_replace(",", "<br>", $f_COLUMN_NAMES));
                    
308			"TEXT" => GetMessage("PERFMON_INDEX_DETAILS"),
                    
309			"ACTION" => $lAdmin->ActionRedirect('perfmon_index_detail.php?lang='.LANG.'&ID='.$f_ID),
                    
310		),
                    
                
CopyableBehavior.php git://github.com/croogo/croogo.git | PHP | 416 lines
                    
1<?php
                    
2
                    
23 * @copyright Jamie Nay
                    
24 * @license	http://www.opensource.org/licenses/mit-license.php The MIT License
                    
25 * @link http://github.com/jamienay/copyable_behavior
                    
149		}
                    
150		$ignore = array_unique($this->settings[$Model->alias]['ignore']);
                    
151		foreach ($ignore as $path) {
                    
                
class-wp-rest-search-controller.php https://gitlab.com/ebrjose/comcebu | 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 );
                    
                
widget-recent-posts-tab.php https://gitlab.com/mattswann/launch-housing | PHP | 249 lines
                    
87		  	<li class="recent-posts-tab active"><a href="#recent-posts-tab-<?php echo intval($random_tab_id) ?>" data-toggle="tab"><?php _e('Recent', 'Elise') ?></a></li>

                    
88		  	<?php if ($show_popular_posts) { ?><li class="popular-posts-tab"><a href="#popular-posts-tab-<?php echo intval($random_tab_id) ?>" data-toggle="tab"><?php _e('Popular', 'Elise') ?></a></li><?php } ?>

                    
89			<?php if ($show_recent_comments) { ?><li class="recent-comments-tab"><a href="#recent-comments-tab-<?php echo intval($random_tab_id) ?>" data-toggle="tab"><i class="fa fa-comments"></i></a></li><?php } ?>

                    
232		<p><label for="<?php echo $this->get_field_id( 'number_recent' ); ?>"><?php _e( 'Number of recent/popular posts to show:', 'Elise' ); ?></label>

                    
233		<input id="<?php echo $this->get_field_id( 'number_recent' ); ?>" name="<?php echo $this->get_field_name( 'number_recent' ); ?>" type="text" value="<?php echo $number_recent; ?>" size="3" /></p>

                    
234

                    
234

                    
235		<p><input class="checkbox" type="checkbox" <?php checked( $show_popular_posts ); ?> id="<?php echo $this->get_field_id( 'show_popular_posts' ); ?>" name="<?php echo $this->get_field_name( 'show_popular_posts' ); ?>" />

                    
236		<label for="<?php echo $this->get_field_id( 'show_popular_posts' ); ?>"><?php _e( 'Display Popular Posts Tab', 'Elise' ); ?></label></p>

                    
237

                    
238		<p><input class="checkbox" type="checkbox" <?php checked( $show_recent_comments ); ?> id="<?php echo $this->get_field_id( 'show_recent_comments' ); ?>" name="<?php echo $this->get_field_name( 'show_recent_comments' ); ?>" />

                    
239		<label for="<?php echo $this->get_field_id( 'show_recent_comments' ); ?>"><?php _e( 'Display Recent Comments Tab', 'Elise' ); ?></label></p>

                    
241		<p><label for="<?php echo $this->get_field_id( 'number_comments' ); ?>"><?php _e( 'Number of recent comments to show:', 'Elise' ); ?></label>

                    
242		<input id="<?php echo $this->get_field_id( 'number_comments' ); ?>" name="<?php echo $this->get_field_name( 'number_comments' ); ?>" type="text" value="<?php echo $number_comments; ?>" size="3" /></p>

                    
243

                    
                
entreprise.php https://gitlab.com/Erdrix/overviewCompanies | PHP | 431 lines
                    
1<?php
                    
2
                    
69    // Nombre de stage moyen
                    
70    $fili    = array_unique($fili);
                    
71    $average = count($stages);
                    
71    $average = count($stages);
                    
72    $average = round($average / count(array_unique($date)), 1);
                    
73
                    
                
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');
                    
                
component.php https://gitlab.com/Rad1calDreamer/honey | PHP | 297 lines
                    
37	$arParams["PATH_TO_SEARCH"] .= "&";
                    
38$arParams["DATE_TIME_FORMAT"] = trim(empty($arParams["DATE_TIME_FORMAT"]) ? $DB->DateFormatToPHP(CSite::GetDateFormat("FULL")) : $arParams["DATE_TIME_FORMAT"]);
                    
39
                    
99				}
                    
100				$arHobbyDB=array_unique($arHobbyDB);
                    
101				if(count($arHobbyDB)>0)
                    
                
Container.php https://gitlab.com/paveltizek/shop | PHP | 498 lines
                    
1<?php
                    
2
                    
160		}
                    
161		return array_unique($errors);
                    
162	}
                    
                
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()
                    
                
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');
                    
167
                    
                
update.php https://gitlab.com/emad.rashad/mls-grading | PHP | 245 lines
                    
1<?php 
                    
2require_once('../../../../classes/Session.php'); 
                    
2require_once('../../../../classes/Session.php'); 
                    
3require_once('../../../../classes/Functions.php'); 
                    
4require_once('../../../../classes/MysqlDatabase.php'); 
                    
4require_once('../../../../classes/MysqlDatabase.php'); 
                    
5require_once('../../../../classes/Users.php'); 
                    
6require_once('../../../../classes/Profile.php'); 
                    
6require_once('../../../../classes/Profile.php'); 
                    
7require_once('../../../../classes/Nodes.php'); 
                    
8require_once('../../../../classes/NodesContent.php'); 
                    
8require_once('../../../../classes/NodesContent.php'); 
                    
9require_once('../../../../classes/NodesSelectedTaxonomies.php'); 
                    
10require_once('../../../../classes/Localization.php'); 
                    
10require_once('../../../../classes/Localization.php'); 
                    
11require_once('../../../../classes/NodesImageGallery.php');
                    
12require_once('../../../../classes/Taxonomies.php'); 
                    
                
admin.functions.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 321 lines
                    
1<?php
                    
2/**
                    
317    }
                    
318    return array_unique( $array_cat );
                    
319}
                    
                
Plugin.php https://gitlab.com/vannh/portal_training | PHP | 392 lines
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://cakephp.org CakePHP(tm) Project
                    
12 * @since         2.0.0
                    
66     *
                    
67     * Will load the bootstrap.php and routes.php files.
                    
68     *
                    
70     *
                    
71     * Will load routes.php file but not bootstrap.php
                    
72     *
                    
190
                    
191        $vendorFile = dirname(dirname(dirname(dirname(__DIR__)))) . DS . 'cakephp-plugins.php';
                    
192        if (!file_exists($vendorFile)) {
                    
                
viewData.php https://gitlab.com/florianocomercial/centreon | PHP | 332 lines
                    
1<?php
                    
2/*
                    
38}
                    
39require_once './class/centreonDuration.class.php';
                    
40require_once './class/centreonBroker.class.php';
                    
40require_once './class/centreonBroker.class.php';
                    
41include_once("./include/monitoring/common-Func.php");
                    
42
                    
45 */
                    
46require_once "HTML/QuickForm.php";
                    
47require_once 'HTML/QuickForm/Renderer/ArraySmarty.php';
                    
56 */
                    
57$url = "viewData.php";
                    
58
                    
59/*
                    
60 * PHP functions
                    
61 */
                    
                
MigrationSnapshotTask.php https://gitlab.com/alexandresgv/siteentec | PHP | 277 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://cakephp.org CakePHP(tm) Project
                    
12 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
200
                    
201        return array_unique($list);
                    
202    }
                    
223        $tableDir = new Folder($path);
                    
224        $tableDir = $tableDir->find('.*\.php');
                    
225        return $tableDir;
                    
237        $tables = [];
                    
238        $className = str_replace('Table.php', '', $className);
                    
239        if ($pluginName !== null) {
                    
                
LinkManagement.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 386 lines
                    
1<?php
                    
2/**
                    
16/**
                    
17 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
18 */
                    
117     * {@inheritdoc}
                    
118     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
119     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
206     * {@inheritdoc}
                    
207     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
208     */
                    
314        $resource->dropAllUnneededSelections($product->getData($linkField), $excludeSelectionIds);
                    
315        $resource->removeProductRelations($product->getData($linkField), array_unique($usedProductIds));
                    
316
                    
                
select.php https://gitlab.com/webkod3r/tripolis | 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>
                    
                
Scraper.php https://gitlab.com/boptom/scraper | PHP | 413 lines
                    
1<?php
                    
2
                    
151        if (self::isArray()) {
                    
152            $this->text = array_unique($this->text);
                    
153        }
                    
                
AdminPaymentController.php https://gitlab.com/jslee1/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    }
                    
                
ajax.php https://gitlab.com/michield/dokuwiki | PHP | 452 lines
                    
1<?php
                    
2/**
                    
9if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../');
                    
10require_once(DOKU_INC.'inc/init.php');
                    
11//close session
                    
108    $data = array_map('noNS',$data);
                    
109    $data = array_unique($data);
                    
110    sort($data);
                    
237    $fullscreen = true;
                    
238    require_once(DOKU_INC.'lib/exe/mediamanager.php');
                    
239
                    
                
SummaryOfOrganization.php https://gitlab.com/Charlesbasis/AtomicProject_CharlesValerioHowlader_136344_B35 | PHP | 282 lines
                    
1<?php
                    
2
                    
59
                    
60        Utility::redirect('create.php');
                    
61
                    
101        $STH->execute($arrData);
                    
102        Utility::redirect('index.php');
                    
103
                    
110
                    
111        Utility::redirect('index.php');
                    
112    } // end of delete(), permanent delete
                    
121
                    
122        Utility::redirect('index.php');
                    
123
                    
156
                    
157        Utility::redirect('index.php');
                    
158
                    
                
yandex_setup.php https://gitlab.com/Rad1calDreamer/honey | PHP | 463 lines
                    
2//<title>Yandex</title>
                    
3IncludeModuleLangFile($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/catalog/export_setup_templ.php');
                    
4
                    
108	{
                    
109		$V = array_unique(array_values($V));
                    
110		$_REQUEST['V'] = $V;
                    
134		"TITLE"=>GetMessage("CATI_ADM_RETURN_TO_LIST_TITLE"),
                    
135		"LINK"=>"/bitrix/admin/cat_export_setup.php?lang=".LANGUAGE_ID,
                    
136		"ICON"=>"btn_list",
                    
198		),
                    
199		"ClearSelected(); BX('id_ifr').src='/bitrix/tools/catalog_export/yandex_util.php?IBLOCK_ID=0&'+'".bitrix_sessid_get()."';",
                    
200		"ClearSelected(); BX('id_ifr').src='/bitrix/tools/catalog_export/yandex_util.php?IBLOCK_ID='+this[this.selectedIndex].value+'&'+'".bitrix_sessid_get()."';",
                    
358	</script>
                    
359	<iframe src="/bitrix/tools/catalog_export/yandex_util.php?IBLOCK_ID=<?=intval($IBLOCK_ID)?>&<? echo bitrix_sessid_get(); ?>" id="id_ifr" name="ifr" style="display:none"></iframe>
                    
360	</td>
                    
                
ClassCollectionLoader.php https://gitlab.com/reasonat/test8 | PHP | 379 lines
                    
1<?php
                    
2
                    
36     */
                    
37    public static function load($classes, $cacheDir, $name, $autoReload, $adaptive = false, $extension = '.php')
                    
38    {
                    
38    {
                    
39        // each $name can only be loaded once per PHP process
                    
40        if (isset(self::$loaded[$name])) {
                    
58
                    
59        $classes = array_unique($classes);
                    
60
                    
104
                    
105            $c = preg_replace(array('/^\s*<\?php/', '/\?>\s*$/'), '', file_get_contents($class->getFileName()));
                    
106
                    
198        if (PHP_VERSION_ID >= 70000) {
                    
199            // PHP 7 memory manager will not release after token_get_all(), see https://bugs.php.net/70098
                    
200            unset($tokens, $rawChunk);
                    
                
Move.php https://gitlab.com/rsilveira1987/Expresso | PHP | 299 lines
                    
1<?php
                    
2/**
                    
111        $movedMessages = FALSE;
                    
112        foreach (array_unique($_messages->folder_id) as $folderId) {
                    
113            $movedMessages = ($this->_moveMessagesByFolder($_messages, $folderId, $_targetFolder) || $movedMessages);
                    
                
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()
                    
                
Getlist.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 290 lines
                    
1<?php
                    
2/*
                    
161  }
                    
162  $request['params']['return'] = array_unique(array_merge($fieldsToReturn, $request['extra']));
                    
163}
                    
                
Collection.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 705 lines
                    
1<?php namespace Illuminate\Support;
                    
2
                    
538	{
                    
539		return new static(array_unique($this->items));
                    
540	}
                    
                
block_sort.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 274 lines
                    
1<?php
                    
2
                    
6 *
                    
7 *      $Id: block_sort.php 29557 2012-04-18 10:10:07Z svn_project_zhangjie $
                    
8 */
                    
159			}
                    
160			$fids = array_unique($fids);
                    
161		}
                    
235				if($threadtypes[$fid]['prefix'] == 1) {
                    
236					$thread['typehtml'] = '<em>[<a href="forum.php?mod=forumdisplay&fid='.$fid.'&amp;filter=typeid&amp;typeid='.$thread['typeid'].'">'.$threadtypes[$fid]['types'][$thread['typeid']].'</a>]</em>';
                    
237				} elseif($threadtypes[$fid]['icons'][$thread['typeid']] && $threadtypes[$fid]['prefix'] == 2) {
                    
237				} elseif($threadtypes[$fid]['icons'][$thread['typeid']] && $threadtypes[$fid]['prefix'] == 2) {
                    
238					$thread['typehtml'] = '<em><a title="'.$threadtypes[$fid]['types'][$thread['typeid']].'" href="forum.php?mod=forumdisplay&fid='.$fid.'&amp;filter=typeid&amp;typeid='.$thread['typeid'].'">'.'<img style="vertical-align: middle;padding-right:4px;" src="'.$threadtypes[$fid]['icons'][$thread['typeid']].'" alt="'.$threadtypes[$fid]['types'][$thread['typeid']].'" /></a></em>';
                    
239				}
                    
258							}
                    
259							$verify[$value['uid']] .= "<a href=\"home.php?mod=spacecp&ac=profile&op=verify&vid=$vid\" target=\"_blank\">".(!empty($srcurl) ? '<img src="'.$srcurl.'" class="vm" alt="'.$vsetting['title'].'" title="'.$vsetting['title'].'" />' : $vsetting['title']).'</a>';
                    
260						}
                    
                
Translator.php https://gitlab.com/techniconline/kmc | PHP | 440 lines
                    
1<?php
                    
2
                    
351            $content = sprintf(<<<EOF
                    
352<?php
                    
353
                    
377    {
                    
378        return $this->cacheDir . '/catalogue.' . $locale . '.' . sha1(serialize($this->fallbackLocales)) . '.php';
                    
379    }
                    
423
                    
424        return array_unique($locales);
                    
425    }
                    
                
bookmark.php https://gitlab.com/haque.mdmanzurul/wp-harpar-carolyn | 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&amp;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 ) );
                    
                
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_array
                    
                
class-wc-shipping-zone-data-store.php https://gitlab.com/remyvianne/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'
                    
                
PushController.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');
                    
                
content.php https://gitlab.com/ppapadatis/Videolearn | PHP | 240 lines
                    
1<?php
                    
2/**
                    
32			JText::_('JGLOBAL_ARTICLES'),
                    
33			'index.php?option=com_content&view=articles',
                    
34			$vName == 'articles'
                    
37			JText::_('COM_CONTENT_SUBMENU_CATEGORIES'),
                    
38			'index.php?option=com_categories&extension=com_content',
                    
39			$vName == 'categories');
                    
41			JText::_('COM_CONTENT_SUBMENU_FEATURED'),
                    
42			'index.php?option=com_content&view=featured',
                    
43			$vName == 'featured'
                    
182		// Remove duplicates before processing (because the black list uses both sets of arrays).
                    
183		$blackListTags			= array_unique($blackListTags);
                    
184		$blackListAttributes	= array_unique($blackListAttributes);
                    
184		$blackListAttributes	= array_unique($blackListAttributes);
                    
185		$customListTags			= array_unique($customListTags);
                    
186		$customListAttributes	= array_unique($customListAttributes);
                    
                
class.jetpack-autoupdate.php https://gitlab.com/chernushov881/charity-fund | PHP | 369 lines
                    
1<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
                    
2/**
                    
71		if (
                    
72			/** This filter is documented in class.jetpack-json-api-endpoint.php */
                    
73			apply_filters( 'jetpack_json_manage_api_enabled', true )
                    
109		$autoupdate_plugin_list         = (array) get_site_option( 'auto_update_plugins', array() );
                    
110		$plugin_files                   = array_unique( array_merge( $autoupdate_plugin_list, $autoupdate_plugin_translations ) );
                    
111		$plugin_slugs                   = array_map( array( __CLASS__, 'get_plugin_slug' ), $plugin_files );
                    
157	 *
                    
158	 * @param string $item Example: 'jetpack/jetpack.php' for type 'plugin' or 'twentyfifteen' for type 'theme'.
                    
159	 * @param string $type 'plugin' or 'theme'.
                    
295		// Lets check some reasons why it might not be working as expected.
                    
296		include_once ABSPATH . '/wp-admin/includes/admin.php';
                    
297		include_once ABSPATH . '/wp-admin/includes/class-wp-upgrader.php';
                    
322		$skin = new Automatic_Upgrader_Skin();
                    
323		include_once ABSPATH . 'wp-admin/includes/file.php';
                    
324		include_once ABSPATH . 'wp-admin/includes/template.php';
                    
                
Router.php https://gitlab.com/andecode/theme-spark | 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()));
                    
                
order_total.php https://gitlab.com/shinvdu/doc | PHP | 250 lines
                    
1<?php
                    
2/**
                    
8 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
                    
9 * @version $Id: order_total.php 19103 2011-07-13 18:10:46Z wilt $
                    
10 */
                    
85        
                    
86        $GLOBALS[$class]->output = array_unique($GLOBALS[$class]->output);
                    
87        $size = sizeof($GLOBALS[$class]->output);
                    
98          // use a template file for output instead of hard-coded HTML
                    
99          require($template->get_template_dir('tpl_modules_order_totals.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_order_totals.php');
                    
100        }
                    
                
City.php https://gitlab.com/Nilufarjahan/LabExam8 | PHP | 268 lines
                    
1<?php
                    
2namespace App\City;
                    
54            Message::message("<div id='msg'></div><h5 align='center'>[ Name: $this->name ] ,[ Country: $this->country ], [ City: $this->city ] <br> Data Has not Been Inserted Successfully!</h5></div>");
                    
55        Utility::redirect('create.php');
                    
56
                    
101
                    
102        Utility::redirect('index.php');
                    
103
                    
117
                    
118        Utility::redirect('index.php');
                    
119
                    
137
                    
138        Utility::redirect('index.php');
                    
139
                    
149
                    
150        Utility::redirect('trashed.php');
                    
151
                    
                
Codecept.php https://gitlab.com/panace/public | PHP | 249 lines
                    
1<?php
                    
2namespace Codeception;
                    
12    /**
                    
13     * @var \Codeception\PHPUnit\Runner
                    
14     */
                    
16    /**
                    
17     * @var \PHPUnit_Framework_TestResult
                    
18     */
                    
68    {
                    
69        $this->result = new \PHPUnit_Framework_TestResult;
                    
70        $this->dispatcher = new EventDispatcher();
                    
80        $this->registerSubscribers();
                    
81        $this->registerPHPUnitListeners();
                    
82
                    
82
                    
83        $printer = new PHPUnit\ResultPrinter\UI($this->dispatcher, $this->options);
                    
84        $this->runner = new PHPUnit\Runner();
                    
                
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')
                    
                
PHPDriver.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 116 lines
                    
1<?php
                    
2/*
                    
24/**
                    
25 * The PHPDriver invokes a static PHP function on the document class itself passing
                    
26 * a ClassMetadata instance for you to manually populate with mapping information.
                    
27 *
                    
28 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
29 * @link        www.doctrine-project.org
                    
33 */
                    
34class PHPDriver implements Driver
                    
35{
                    
44    {
                    
45        $this->paths = array_unique(array_merge($this->paths, $paths));
                    
46    }
                    
                
Kernel.php https://gitlab.com/jjpa2018/dashboard | PHP | 380 lines
                    
1<?php
                    
2
                    
209    {
                    
210        $paths = array_unique(Arr::wrap($paths));
                    
211
                    
223            $command = $namespace.str_replace(
                    
224                ['/', '.php'],
                    
225                ['\\', ''],
                    
                
spacing.php https://gitlab.com/vanafroo/voipWEB | PHP | 361 lines
                    
1<?php
                    
2/*
                    
14 * @author   Thomas Usborne
                    
15 * @license  http://www.opensource.org/licenses/gpl-license.php GPL v2.0 (or later)
                    
16 * @link     http://www.generatepress.com
                    
256		// We'll also remove the padding if there's no color difference between the widgets and content background color
                    
257		if ( count( array_unique( $widget_padding ) ) === 1 && end( $widget_padding ) === '40' && $colors_match ) {
                    
258			$output .= '.one-container .sidebar .widget{padding:0px;}';
                    
                
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()
                    
                
RouteListCommand.php https://gitlab.com/judielsm/Handora | PHP | 281 lines
                    
1<?php
                    
2
                    
143
                    
144        $middlewares = array_unique(
                    
145            array_merge($middlewares, $this->getPatternFilters($route))
                    
                
Hashtable.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 421 lines
                    
1<?php
                    
2/**
                    
371                    $mailbox,
                    
372                    array_unique(array_intersect($this->_mbox[$mailbox]['u']->ids, $uids))
                    
373                ),
                    
                
ModuleHandlerTest.php https://gitlab.com/guillaumev/alkarama | PHP | 321 lines
                    
1<?php
                    
2
                    
77  protected function assertModuleList(array $expected_values, $condition) {
                    
78    $expected_values = array_values(array_unique($expected_values));
                    
79    $enabled_modules = array_keys($this->container->get('module_handler')->getModuleList());
                    
                
Source.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 351 lines
                    
1<?php
                    
2/**
                    
105     * @return $this
                    
106     * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
                    
107     */
                    
151            "cpe.{$productIdField} = dd.{$productIdField}",
                    
152            array_unique([$productIdField, 'entity_id'])
                    
153        )->where(
                    
344     * @return string
                    
345     * @SuppressWarnings(PHPMD.UnusedFormalParameter)
                    
346     */
                    
                
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');
                    
                
subscription.php https://gitlab.com/Rad1calDreamer/honey | PHP | 401 lines
                    
1<?php
                    
2/**
                    
35			$bitrixDirectory = \Bitrix\Main\Application::getInstance()->getPersonalRoot();
                    
36			$result = $bitrixDirectory.'/tools/sender_sub_confirm.php?sender_subscription=confirm&tag='.urlencode($tag);
                    
37		}
                    
147
                    
148		$mailingList = array_unique($mailingList);
                    
149		foreach($mailingList as $mailingId)
                    
                
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/woxiprogrammers/infinia-wordpress | 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 );
                    
                
AbstractElement.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 576 lines
                    
1<?php
                    
2/**
                    
16 * @author     Magento Core Team <core@magentocommerce.com>
                    
17 * @SuppressWarnings(PHPMD.NumberOfChildren)
                    
18 */
                    
269    {
                    
270        $classes = array_unique(explode(' ', $this->getClass()));
                    
271        if (false !== ($key = array_search($class, $classes))) {
                    
531     * @return $this
                    
532     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
533     */
                    
                
SimpleTemplateAbstract.php https://gitlab.com/php.bjoernbartels.earth/simpletemplate | PHP | 288 lines
                    
1<?php
                    
2/**
                    
256
                    
257        // Be sure that php code stays unchanged 
                    
258        $php_matches = array();
                    
259        $container = array();
                    
260        if (preg_match_all('/<\?(php)?((.)|(\s))*?\?>/i', $template, $php_matches)) { 
                    
261            $x = 0; 
                    
261            $x = 0; 
                    
262            foreach ($php_matches[0] as $php_match) { 
                    
263                $x++; 
                    
263                $x++; 
                    
264                $template = str_replace($php_match, "{PHP#".$x."#PHP}", $template); 
                    
265                $container[$x] = $php_match; 
                    
281            foreach ($container as $x => $php_match) { 
                    
282                $template = str_replace("{PHP#".$x."#PHP}", $php_match, $template); 
                    
283            } 
                    
                
 

Source

Language