PageRenderTime 229ms queryTime 37ms sortTime 6ms getByIdsTime 59ms findMatchingLines 66ms

100+ results results for 'php array_diff repo:diem-project/diem' (229 ms)

Not the results you expected?
generage-wiki.php https://github.com/jorgenils/zend-framework.git | PHP | 337 lines
                    
1<?php
                    
2
                    
4
                    
5require_once dirname(__FILE__) . '/config.php';
                    
6require_once dirname(__FILE__) . '/library/Confluence/Book.php';
                    
6require_once dirname(__FILE__) . '/library/Confluence/Book.php';
                    
7require_once dirname(__FILE__) . '/library/Confluence/Chapter.php';
                    
8
                    
321if (count($book->chapter)) {
                    
322    $diff = array_diff($prev, $new);
                    
323    foreach ($diff as $key => $pagename) {
                    
                
BaseNotStorageEntityModel.php https://github.com/sergiygladkyy/OEF.git | PHP | 401 lines
                    
1<?php
                    
2
                    
2
                    
3require_once('lib/model/base/BaseModel.php');
                    
4
                    
311      // Validation all fields
                    
312      $err = $this->checkAttributesPrecision(array_diff($names, $not_valid), $options);
                    
313      
                    
320      // Validation references
                    
321      $references = array_intersect(array_diff($names, $not_valid), array_keys($this->conf['references']));
                    
322      $err = $this->checkReferences($references);
                    
                
Druid.php https://github.com/Wixel/Druid.git | PHP | 545 lines
                    
1<?php
                    
2
                    
59	);
                    
60	public static $php_errors    = array(
                    
61		E_ERROR              => 'Fatal Error',
                    
171		
                    
172		$global_variables = array_diff(array_keys($GLOBALS), array(
                    
173			'_COOKIE',
                    
428			{
                    
429				$path = str_replace('_', '/', strtolower($class)).'.php';
                    
430				
                    
483		{
                    
484			if (isset(self::$php_errors[$code]))
                    
485			{
                    
488
                    
489			if (version_compare(PHP_VERSION, '5.3', '<')) // @see http://bugs.php.net/bug.php?id=45895
                    
490			{
                    
                
themes.php https://gitlab.com/hop23typhu/faci-vinhomes | PHP | 329 lines
                    
153					<h1><?php _e( 'Delete Theme' ); ?></h1>
                    
154					<div class="error"><p><strong><?php _e( 'Caution:' ); ?></strong> <?php _e( 'This theme may be active on other sites in the network.' ); ?></p></div>
                    
155					<p><?php _e( 'You are about to remove the following theme:' ); ?></p>
                    
157					<h1><?php _e( 'Delete Themes' ); ?></h1>
                    
158					<div class="error"><p><strong><?php _e( 'Caution:' ); ?></strong> <?php _e( 'These themes may be active on other sites in the network.' ); ?></p></div>
                    
159					<p><?php _e( 'You are about to remove the following themes:' ); ?></p>
                    
170					<p><?php _e( 'Are you sure you wish to delete this theme?' ); ?></p>
                    
171				<?php else : ?>
                    
172					<p><?php _e( 'Are you sure you wish to delete these themes?' ); ?></p>
                    
269<div class="wrap">
                    
270<h1><?php echo esc_html( $title ); if ( current_user_can('install_themes') ) { ?> <a href="theme-install.php" class="page-title-action"><?php echo esc_html_x('Add New', 'theme'); ?></a><?php }
                    
271if ( $s )
                    
327
                    
328<?php
                    
329include(ABSPATH . 'wp-admin/admin-footer.php');
                    
                
MvcTest.php https://github.com/Exercise/zf2.git | PHP | 367 lines
                    
1<?php
                    
2/**
                    
40 */
                    
41class MvcTest extends \PHPUnit_Framework_TestCase
                    
42{
                    
348        $this->assertEquals(array(),
                    
349            array_diff_assoc($options, $page->toArray()));
                    
350    }
                    
                
Migrator.php https://bitbucket.org/helfreire/tccsite.git | PHP | 383 lines
                    
1<?php namespace Illuminate\Database\Migrations;
                    
2
                    
81
                    
82		$migrations = array_diff($files, $ran);
                    
83
                    
218	{
                    
219		$files = $this->files->glob($path.'/*_*.php');
                    
220
                    
227		{
                    
228			return str_replace('.php', '', basename($file));
                    
229
                    
247	{
                    
248		foreach ($files as $file) $this->files->requireOnce($path.'/'.$file.'.php');
                    
249	}
                    
                
helpers.php https://bitbucket.org/chakkimatti/vv2.git | PHP | 598 lines
                    
1<?php
                    
2
                    
271{
                    
272	return array_diff_key( $array, array_flip((array) $keys) );
                    
273}
                    
504/**
                    
505 * Determine if the current version of PHP is at least the supplied version.
                    
506 *
                    
509 */
                    
510function has_php($version)
                    
511{
                    
511{
                    
512	return version_compare(PHP_VERSION, $version) >= 0;
                    
513}
                    
                
inmate.php https://github.com/m3nt0r/cakephp-jailson.git | PHP | 415 lines
                    
1<?php 
                    
2/**
                    
2/**
                    
3 * Jailson for CakePHP
                    
4 *   Access Control Plugin
                    
5 * 
                    
6 * @category CakePHP
                    
7 * @author Kjell Bublitz <m3nt0r.de@gmail.com>
                    
9 * @subpackage plugins.jailson.behaviors
                    
10 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
11 * @link http://github.com/m3nt0r/cakephp-jailson Repository/Docs
                    
18 * 
                    
19 * @category CakePHP
                    
20 * @author Kjell Bublitz <m3nt0r.de@gmail.com>
                    
371		if ($task == 'diff') 
                    
372			$data = array_diff($cached, $data);
                    
373		
                    
                
Translate.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 490 lines
                    
1<?php
                    
2/**
                    
12 *
                    
13 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
14 * @SuppressWarnings(PHPMD.TooManyFields)
                    
125     *
                    
126     * @SuppressWarnings(PHPMD.ExcessiveParameterList)
                    
127     */
                    
254        $currentModule = $this->getControllerModuleName();
                    
255        $allModulesExceptCurrent = array_diff($this->_moduleList->getNames(), [$currentModule]);
                    
256
                    
                
Store.php https://gitlab.com/FSalazarH/WaitlessWeb | PHP | 707 lines
                    
1<?php
                    
2
                    
505    {
                    
506        $this->put('flash.old', array_diff($this->get('flash.old', []), $keys));
                    
507    }
                    
                
UrlHandler_Test.php git://github.com/ethna/ethna.git | PHP | 342 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 *  UrlHandler_Test.php
                    
4 */
                    
87        // action ?????
                    
88        $diff = array_diff($injected, $http_vars);
                    
89        $this->assertEqual(count($diff), 1);
                    
92        // action ??????????????????
                    
93        $diff = array_diff($http_vars, $injected);
                    
94        $this->assertEqual(count($diff), 0);
                    
100
                    
101        $diff = array_diff($injected, $http_vars);
                    
102        $this->assertEqual(count($diff), 1);
                    
120        // ????
                    
121        $diff = array_diff($injected, $http_vars);
                    
122        $this->assertEqual(count($diff), 0);
                    
                
_custom_types_translation.php https://bitbucket.org/kenaku/karate.git | PHP | 182 lines
                    
63                <td>
                    
64                    <label><input class="icl_sync_custom_posts" type="radio" name="icl_sync_custom_posts[<?php echo $k ?>]" value="1" <?php echo $rdisabled; 
                    
65                        if(@intval($sitepress_settings['custom_posts_sync_option'][$k])==1) echo ' checked="checked"'
                    
104                <td colspan="2">
                    
105                    <label><input name="translate_slugs[<?php echo $k ?>][on]" type="checkbox" value="1" <?php checked(1, $_translate, true) ?> />&nbsp;<?php 
                    
106                        printf(__('Use different slugs in different languages for %s.', 'sitepress'), $cpost->labels->name); ?></label>
                    
110                            <td style="border: none;"><?php echo $lang['display_name']?></td>
                    
111                            <td style="border: none;"><input name="translate_slugs[<?php echo $k ?>][langs][<?php echo $lang['code'] ?>]" type="text" value="<?php 
                    
112                                echo !empty($_slug_translations[$lang['code']]['value']) ? $_slug_translations[$lang['code']]['value'] : '';    
                    
160                <td>
                    
161                    <label><input type="radio" name="icl_sync_tax[<?php echo $ctax ?>]" value="1" <?php echo $rdisabled; 
                    
162                        if(@$sitepress_settings['taxonomies_sync_option'][$ctax]==1) echo ' checked="checked"'
                    
163                    ?> />&nbsp;<?php _e('Translate', 'sitepress') ?></label>&nbsp;
                    
164                    <label><input type="radio" name="icl_sync_tax[<?php echo $ctax ?>]" value="0" <?php echo $rdisabled; 
                    
165                        if(@$sitepress_settings['taxonomies_sync_option'][$ctax]==0) echo ' checked="checked"'
                    
                
IndexController.php https://gitlab.com/wuhang2003/phpwind | PHP | 419 lines
                    
1<?php
                    
2Wind::import('LIB:base.PwBaseController');
                    
14	
                    
15	/* (non-PHPdoc)
                    
16	 * @see WindController::run()
                    
83			}
                    
84			$moreTags = array_diff_key($myTagsList, $tagContents);
                    
85			$params and $relatedTags = $tagServicer->getRelatedTags($typeName,$params);
                    
                
plugins.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 470 lines
                    
1<?php
                    
2include_spip('inc/config');
                    
45	
                    
46	// forcer la maj des metas pour les cas de modif de numero de version base via phpmyadmin
                    
47	lire_metas();
                    
150			// ajouter les hidden
                    
151			$hiddens = array_diff($lcpa,$results);
                    
152			foreach ($hiddens as $h){
                    
                
ProjectTask.php https://bitbucket.org/vishallogiciel/admin-bootstrap.git | PHP | 447 lines
                    
7 *
                    
8 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
9 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @link          http://cakephp.org CakePHP(tm) Project
                    
17 * @since         CakePHP(tm) v 1.2
                    
122			} else {
                    
123				$this->err(__d('cake_console', 'Unable to set CAKE_CORE_INCLUDE_PATH, you should change it in %s', $path . 'webroot' . DS . 'index.php'));
                    
124				$success = false;
                    
145/**
                    
146 * Checks PHP's include_path for CakePHP.
                    
147 *
                    
415					'Configure::write(\'Routing.prefixes\', array(\'admin\'))',
                    
416					'/app/Config/core.php'));
                    
417				return $this->_stop();
                    
                
Collection.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 705 lines
                    
1<?php namespace Illuminate\Support;
                    
2
                    
81	{
                    
82		return new static(array_diff($this->items, $this->getArrayableItems($items)));
                    
83	}
                    
                
local.php https://gitlab.com/hschoenburg/tlworks2 | PHP | 880 lines
                    
1<?php 
                    
2
                    
154			
                    
155			$field_group['local'] = 'php';
                    
156			
                    
224		// clear cache
                    
225		// - delete cache was origional added to ensure changes to JSON / PHP would appear in WP when using memcache
                    
226		// - the downside is that wp_cache_delet is taxing on the system so has been commented out
                    
305		// remove
                    
306		$this->parents[ $parent_key ] = array_diff($this->parents[ $parent_key ], array($field_key));
                    
307		
                    
                
user-moderation-admin.php https://gitlab.com/Gashler/sg | PHP | 432 lines
                    
116			$active_modules = $theme_my_login_admin->get_option( 'active_modules' );
                    
117			$active_modules = array_values( array_diff( $active_modules, array( 'user-moderation/user-moderation.php' ) ) );
                    
118
                    
180		?>
                    
181		<input name="<?php echo $this->options_key; ?>[type]" type="radio" id="<?php echo $this->options_key; ?>_type_none" value="none"<?php checked( $this->get_option( 'type' ), 'none' ); ?> />
                    
182		<label for="<?php echo $this->options_key; ?>_type_none"><?php _e( 'None', 'theme-my-login' ); ?></label>
                    
184
                    
185		<input name="<?php echo $this->options_key; ?>[type]" type="radio" id="<?php echo $this->options_key; ?>_type_email" value="email" <?php checked( $this->get_option( 'type' ), 'email' ); ?> />
                    
186		<label for="<?php echo $this->options_key; ?>_type_email"><?php _e( 'E-mail Confirmation', 'theme-my-login' ); ?></label>
                    
186		<label for="<?php echo $this->options_key; ?>_type_email"><?php _e( 'E-mail Confirmation', 'theme-my-login' ); ?></label>
                    
187		<p class="description"><?php _e( 'Check this option to require new users to confirm their e-mail address before they may log in.', 'theme-my-login' ); ?></p>
                    
188
                    
188
                    
189		<input name="<?php echo $this->options_key; ?>[type]" type="radio" id="<?php echo $this->options_key; ?>_type_admin" value="admin" <?php checked( $this->get_option( 'type' ), 'admin' ); ?> />
                    
190		<label for="<?php echo $this->options_key; ?>_type_admin"><?php _e( 'Admin Approval', 'theme-my-login' ); ?></label>
                    
                
BaseDmPermissionForm.class.php https://github.com/xdade/diem.git | PHP | 299 lines
                    
1<?php
                    
2
                    
171
                    
172    $unlink = array_diff($existing, $values);
                    
173    if (count($unlink))
                    
177
                    
178    $link = array_diff($values, $existing);
                    
179    if (count($link))
                    
209
                    
210    $unlink = array_diff($existing, $values);
                    
211    if (count($unlink))
                    
215
                    
216    $link = array_diff($values, $existing);
                    
217    if (count($link))
                    
247
                    
248    $unlink = array_diff($existing, $values);
                    
249    if (count($unlink))
                    
                
Indexing.php https://github.com/QnapClub/Plugmedia.git | PHP | 458 lines
                    
1<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
8*
                    
9* Minimum Requirement: PHP 5
                    
10*/
                    
141		$base = $base.$last_value.'/';
                    
142		$array = array_diff(scandir($base), array('.', '..', '.@__thumb','.@__comments')); 
                    
143		
                    
                
Source.php https://github.com/robertleeplummerjr/bluebox.git | PHP | 304 lines
                    
49require_once 'PHPUnit/Util/Class.php';
                    
50require_once 'PHPUnit/Util/CodeCoverage.php';
                    
51require_once 'PHPUnit/Util/Filter.php';
                    
51require_once 'PHPUnit/Util/Filter.php';
                    
52require_once 'PHPUnit/Util/XML.php';
                    
53
                    
53
                    
54PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT');
                    
55
                    
122                $coveredFile->setAttribute('generated', $time);
                    
123                $coveredFile->setAttribute('phpunit', PHPUnit_Runner_Version::id());
                    
124                $document->appendChild($coveredFile);
                    
241                $testFile->setAttribute('generated', $time);
                    
242                $testFile->setAttribute('phpunit', PHPUnit_Runner_Version::id());
                    
243                $document->appendChild($testFile);
                    
                
class.Search.php https://github.com/otto-torino/gino.git | PHP | 203 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @file class.Search.php
                    
4 * @brief Contiene la definizione ed implementazione della classe Gino.Search
                    
5 * 
                    
6 * @copyright 2005-2014 Otto srl (http://www.opensource.org/licenses/mit-license.php) The MIT License
                    
7 * @author marco guidotti guidottim@gmail.com
                    
32 * 
                    
33 * @copyright 2005-2014 Otto srl (http://www.opensource.org/licenses/mit-license.php) The MIT License
                    
34 * @author marco guidotti guidottim@gmail.com
                    
86
                    
87        return  array_diff(array_unique(explode(" ", $clean_string)), $empty_array);
                    
88    }
                    
                
LanguageListTest.php https://bitbucket.org/razum-io/ns-hub.git | PHP | 220 lines
                    
1<?php
                    
2
                    
210    $locked_languages = $this->container->get('language_manager')->getLanguages(LanguageInterface::STATE_LOCKED);
                    
211    $this->assertEqual(array_diff_key($expected_locked_languages, $locked_languages), [], 'Locked languages loaded correctly.');
                    
212
                    
213    $all_languages = $this->container->get('language_manager')->getLanguages(LanguageInterface::STATE_ALL);
                    
214    $this->assertEqual(array_diff_key($expected_all_languages, $all_languages), [], 'All languages loaded correctly.');
                    
215
                    
216    $conf_languages = $this->container->get('language_manager')->getLanguages();
                    
217    $this->assertEqual(array_diff_key($expected_conf_languages, $conf_languages), [], 'Configurable languages loaded correctly.');
                    
218  }
                    
                
CacheController.php https://gitlab.com/isdzulqor/Slis-Dev | PHP | 284 lines
                    
1<?php
                    
2/**
                    
34 *
                    
35 * Both APC and OpCache aren't shared between PHP processes so flushing cache from command line has no effect on web.
                    
36 * Flushing web cache could be either done by:
                    
37 *
                    
38 * - Putting a php file under web root and calling it via HTTP
                    
39 * - Using [Cachetool](http://gordalina.github.io/cachetool/)
                    
82        $foundCaches = array_keys($caches);
                    
83        $notFoundCaches = array_diff($cachesInput, array_keys($caches));
                    
84
                    
                
upgrade.php https://github.com/raymanuk/moodle.git | PHP | 182 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
93                    // We assume the middle separator (rounding down).
                    
94                    $divisionindex = round($sepcount / 2, 0, PHP_ROUND_HALF_DOWN);
                    
95
                    
169            foreach ($currenttoolbarrows as $currenttoolbarrow) {
                    
170                $currenttoolbarrow = implode(',', array_diff(str_getcsv($currenttoolbarrow), array('dragmath')));
                    
171                $newtoolbarrows[] = $currenttoolbarrow;
                    
                
class-wp-image-editor-imagick.php https://gitlab.com/Gashler/sg | PHP | 531 lines
                    
1<?php
                    
2/**
                    
9/**
                    
10 * WordPress Image Editor Class for Image Manipulation through Imagick PHP Module
                    
11 *
                    
53
                    
54		if ( version_compare( phpversion( 'imagick' ), '2.2.0', '<' ) )
                    
55			return false;
                    
80
                    
81		if ( array_diff( $required_methods, get_class_methods( 'Imagick' ) ) )
                    
82			return false;
                    
132		/** This filter is documented in wp-includes/class-wp-image-editor-imagick.php */
                    
133		// Even though Imagick uses less PHP memory than GD, set higher limit for users that have low PHP.ini limits
                    
134		@ini_set( 'memory_limit', apply_filters( 'image_memory_limit', WP_MAX_MEMORY_LIMIT ) );
                    
491
                    
492		/** This filter is documented in wp-includes/class-wp-image-editor-gd.php */
                    
493		return array(
                    
                
view.php https://github.com/t73biz/BaseApp.git | PHP | 488 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP versions 4 and 5
                    
6 *
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://cakephp.org CakePHP(tm) Project
                    
15 * @package       cake
                    
16 * @subpackage    cake.cake.console.libs.tasks
                    
17 * @since         CakePHP(tm) v 1.2
                    
18 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
20App::import('Controller', 'Controller', false);
                    
21include_once dirname(__FILE__) . DS . 'bake.php';
                    
22
                    
                
CMB2_Utils.php https://gitlab.com/vitorhugoro1/grx-kanban | PHP | 415 lines
                    
155			&& $timestamp <= PHP_INT_MAX
                    
156			&& $timestamp >= ~PHP_INT_MAX;
                    
157	}
                    
197		$before = array_slice( $array, 0, $position - 1 );
                    
198		$after  = array_diff_key( $array, $before );
                    
199		$array  = array_merge( $before, $new, $after );
                    
235		// Let's test if We are in the plugins or mu-plugins dir.
                    
236		$test_dir = trailingslashit( $dir ) . 'unneeded.php';
                    
237		if (
                    
313	 *
                    
314	 * Other options are ignored, because they would either bring compatibility problems between PHP and JS, or
                    
315	 * bring even more translation troubles.
                    
356	/**
                    
357	 * Helper function for CMB_Utils->php_to_js_dateformat, because php 5.2 was retarded.
                    
358	 * @since  2.2.0
                    
                
CakeTestFixtureTest.php https://bitbucket.org/ManiAdil/jardinorient.git | PHP | 499 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP 5
                    
6 *
                    
6 *
                    
7 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
                    
8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
                    
15 * @package       Cake.Test.Case.TestSuite
                    
15 * @package       Cake.Test.Case.TestSuite
                    
16 * @since         CakePHP(tm) v 1.2.0.4667
                    
17 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
191	public function setUp() {
                    
192		$methods = array_diff(get_class_methods('DboSource'), array('enabled'));
                    
193		$methods[] = 'connect';
                    
                
Request.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 372 lines
                    
1<?php
                    
2/**
                    
4 * 
                    
5 * Adapted from Andy Smith's OAuth library for PHP
                    
6 * 
                    
8 * @link http://oauth.googlecode.com/svn/spec/ext/consumer_request/1.0/drafts/1/spec.html
                    
9 * @link http://oauth.googlecode.com/svn/code/php/
                    
10 * @link http://term.ie/oauth/example/
                    
15 * @copyright Copyright (c) 2008, Photobucket, Inc.
                    
16 * @license http://www.opensource.org/licenses/mit-license.php The MIT License
                    
17 */
                    
21 */
                    
22require_once ('OAuth/Utils.php');
                    
23/**
                    
25 */
                    
26require_once ('OAuth/Signature.php');
                    
27/**
                    
                
shortcode-overrides.php https://gitlab.com/adwait.rise/guruautolines | PHP | 285 lines
                    
1<?php
                    
2
                    
56
                    
57			/** This filter is documented in wp-includes/post-template.php */
                    
58			$text = apply_filters( 'the_content', $text );
                    
128		if ( isset( $GLOBALS['wpv_menu_had_hash'] ) && $GLOBALS['wpv_menu_had_hash'] ) {
                    
129			$classes = array_diff( $classes, array( 'current-menu-item', 'current-menu-ancestor', 'current-menu-parent' ) );
                    
130		}
                    
                
Album.class.php https://bitbucket.org/devall/gamerpress.git | PHP | 381 lines
                    
1<?php
                    
2
                    
205
                    
206        $aAlbumIdNeedQuery = array_diff($aAlbumId, array_keys($aAlbums));
                    
207        $aAlbumIdNeedQuery = array_diff($aAlbumIdNeedQuery, $aAlbumIdNotNeedQuery);
                    
215                $this->Cache_Set($oAlbum, "album_{$oAlbum->getId()}", array(), 60 * 60 * 24 * 4);
                    
216                $aAlbumIdNeedStore = array_diff($aAlbumIdNeedStore, array($oAlbum->getId()));
                    
217            }
                    
                
sfWidget.class.php https://github.com/IDCI-Consulting/WebsiteEval.git | PHP | 406 lines
                    
1<?php
                    
2
                    
16 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
17 * @version    SVN: $Id: sfWidget.class.php 22933 2009-10-11 22:42:56Z Kris.Wallsmith $
                    
18 */
                    
46    // check option names
                    
47    if ($diff = array_diff($optionKeys, array_merge($currentOptionKeys, $this->requiredOptions)))
                    
48    {
                    
52    // check required options
                    
53    if ($diff = array_diff($this->requiredOptions, array_merge($currentOptionKeys, $optionKeys)))
                    
54    {
                    
                
user.inc.php https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework | PHP | 185 lines
                    
1<?php
                    
2$USER = $_GET["user"];
                    
83					$revoke = array_diff($old_grant, $grant);
                    
84					$grant = array_diff($grant, $old_grant);
                    
85					unset($grants[$object]);
                    
135<tr><th><?php echo lang('Server'); ?><td><input name="host" maxlength="60" value="<?php echo h($row["host"]); ?>" autocapitalize="off">
                    
136<tr><th><?php echo lang('Username'); ?><td><input name="user" maxlength="16" value="<?php echo h($row["user"]); ?>" autocapitalize="off">
                    
137<tr><th><?php echo lang('Password'); ?><td><input name="pass" id="pass" value="<?php echo h($row["pass"]); ?>">
                    
137<tr><th><?php echo lang('Password'); ?><td><input name="pass" id="pass" value="<?php echo h($row["pass"]); ?>">
                    
138<?php if (!$row["hashed"]) { ?><script type="text/javascript">typePassword(document.getElementById('pass'));</script><?php } ?>
                    
139<?php echo checkbox("hashed", 1, $row["hashed"], lang('Hashed'), "typePassword(this.form['pass'], this.checked);"); ?>
                    
141
                    
142<?php
                    
143//! MAX_* limits, REQUIRE
                    
182<input type="submit" value="<?php echo lang('Save'); ?>">
                    
183<?php if (isset($_GET["host"])) { ?><input type="submit" name="drop" value="<?php echo lang('Drop'); ?>"<?php echo confirm(); ?>><?php } ?>
                    
184<input type="hidden" name="token" value="<?php echo $token; ?>">
                    
                
Util.php https://gitlab.com/CORP-RESELLER/shopping-cart-lite | PHP | 303 lines
                    
1<?php
                    
2/**
                    
3 * Braintree Utility methods
                    
4 * PHP version 5
                    
5 *
                    
135    {
                    
136        // php doesn't garbage collect functions created by create_function()
                    
137        // so use a static variable to avoid adding a new function to memory
                    
168    {
                    
169        // php doesn't garbage collect functions created by create_function()
                    
170        // so use a static variable to avoid adding a new function to memory
                    
225        $userKeys = self::_flattenUserKeys($attributes);
                    
226        $invalidKeys = array_diff($userKeys, $validKeys);
                    
227        $invalidKeys = self::_removeWildcardKeys($validKeys, $invalidKeys);
                    
                
MediaEntityController.php https://github.com/iaminawe/openoutreach.git | PHP | 215 lines
                    
1<?php
                    
2/**
                    
42      if ($passed_ids) {
                    
43        $this->ids = array_keys(array_diff_key($passed_ids, $entities));
                    
44      }
                    
200        $entity_values = (array) $entity;
                    
201        if (array_diff_assoc($conditions, $entity_values)) {
                    
202          unset($entities[$entity->{$this->idKey}]);
                    
                
Abstract.php https://github.com/Zefiryn/graduationprojects.git | PHP | 309 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Abstract.php 22824 2010-08-09 18:59:54Z renanbr $
                    
21 */
                    
124			 */
                    
125			require_once 'Zend/Service/Ebay/Exception.php';
                    
126			throw new Zend_Service_Ebay_Exception('Invalid options provided.');
                    
201				$keyNumber = range(0, count($value) - 1);
                    
202				$isAssoc   = count(array_diff($keyRaw, $keyNumber)) > 0;
                    
203				// check for tag representation, like <name att="sometinhg"></value>
                    
244	/**
                    
245	 * Translate native PHP values format to ebay format for request.
                    
246	 *
                    
267	/**
                    
268	 * Translate an ebay value format to native PHP type.
                    
269	 *
                    
                
DocumentTest.php https://github.com/mfairchild365/zf2.git | PHP | 315 lines
                    
1<?php
                    
2/**
                    
29/**
                    
30 * PHPUnit test case
                    
31 */
                    
40 */
                    
41class DocumentTest extends \PHPUnit_Framework_TestCase
                    
42{
                    
74
                    
75        $fieldnamesDiffArray = array_diff($document->getFieldNames(), array('title', 'annotation', 'body'));
                    
76        $this->assertTrue(is_array($fieldnamesDiffArray));
                    
91
                    
92        if (PHP_OS == 'AIX') {
                    
93            return; // tests below here not valid on AIX
                    
                
menu.php https://bitbucket.org/lucascsilva/slpg.git | PHP | 340 lines
                    
1<?php
                    
2
                    
41  if($remove){
                    
42    $variables['element']['#attributes']['class'] = array_diff($variables['element']['#attributes']['class'],$remove);
                    
43  }
                    
                
FormFactory.php https://github.com/outlawscumbag/symfony.git | PHP | 412 lines
                    
1<?php
                    
2
                    
242        $type = end($types);
                    
243        $diff = array_diff(self::$requiredOptions, $knownOptions);
                    
244
                    
248
                    
249        $diff = array_diff($passedOptions, $knownOptions);
                    
250
                    
                
Folder.php https://bitbucket.org/fsilva/slick-framework.git | PHP | 295 lines
                    
1<?php
                    
2
                    
5 *
                    
6 * PHP version 5
                    
7 *
                    
260        if ($this->_exists) {
                    
261            $files = array_diff(scandir($this->_path), $excludeList);
                    
262            foreach ($files as $file) {
                    
                
Group.php https://github.com/srsree/OurBank.git | PHP | 345 lines
                    
1<?php
                    
2/*
                    
21
                    
22<?php
                    
23/*
                    
327         $db = $this->getAdapter();
                    
328         $result=array_keys (array_diff($previous,$current));
                    
329         foreach($result as $group) {
                    
                
translated-object.php https://gitlab.com/hop23typhu/bryepoxy | PHP | 272 lines
                    
1<?php
                    
2
                    
98			$translations = array_merge( array( $lang->slug => $id ), $translations ); // make sure this object is in translations
                    
99			$translations = array_diff( $translations, array( 0 ) ); // don't keep non translated languages
                    
100			$translations = array_intersect_key( $translations, array_flip( $this->model->get_languages_list( array( 'fields' => 'slug' ) ) ) ); // keep only valid languages slugs as keys
                    
103			$old_translations = $this->get_translations( $id );
                    
104			foreach ( array_diff_assoc( $old_translations, $translations ) as $object_id ) {
                    
105				$this->delete_translation( $object_id );
                    
120					$d = unserialize( $term->description );
                    
121					$d = is_array( $d ) ? array_diff_key( $d, $old_translations ) : array(); // remove old translations
                    
122					$d = array_merge( $d, $translations ); // add new one
                    
                
Collect.php https://gitlab.com/yousafsyed/easternglamor | PHP | 313 lines
                    
1<?php
                    
2/**
                    
72        $enabledModules = $this->moduleList->getNames();
                    
73        $disabledModules = array_diff($allModules, $enabledModules);
                    
74
                    
276                $changeTest = $dbModule->getData();
                    
277                $changes = array_diff($module, $changeTest);
                    
278                $changesCleanArray = $this->getCleanChangesArray($changes);
                    
                
Table.php https://bitbucket.org/sader/domset.git | PHP | 344 lines
                    
1<?php
                    
2
                    
16 * @license   http://www.petala-azul.com/bsd.txt   New BSD License
                    
17 * @version   $Id: Table.php 1791 2011-05-31 03:19:53Z bento.vilas.boas@gmail.com $
                    
18 * @link      http://zfdatagrid.com
                    
105
                    
106            $columnsMainTable = array_diff($info['cols'], $columnsToRemove);*/
                    
107            $columnsMainTable = $info['cols'];
                    
                
DefaultOptions.php https://github.com/Exercise/symfony.git | PHP | 320 lines
                    
1<?php
                    
2
                    
19 *
                    
20 * Options are a common pattern for initializing classes in PHP. Avoiding the
                    
21 * problems related to this approach is however a non-trivial task. Usually,
                    
286        $knownOptions = $this->options->getNames();
                    
287        $diff = array_diff($optionNames, $knownOptions);
                    
288
                    
                
i2_import.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 401 lines
                    
1<?php
                    
2
                    
57		$new_assoc=i2_import_field_associate($data, $table_fields, $assoc_field);
                    
58		$test=array_diff($new_assoc,$assoc_field);
                    
59		if (count($test)>0){
                    
                
tags.php https://github.com/xmirror/piwigo.git | PHP | 531 lines
                    
1<?php
                    
2// +-----------------------------------------------------------------------+
                    
2// +-----------------------------------------------------------------------+
                    
3// | Piwigo - a PHP based photo gallery                                    |
                    
4// +-----------------------------------------------------------------------+
                    
5// | Copyright(C) 2008-2013 Piwigo Team                  http://piwigo.org |
                    
6// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
                    
7// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
                    
23
                    
24if( !defined("PHPWG_ROOT_PATH") )
                    
25{
                    
28
                    
29include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
                    
30check_status(ACCESS_ADMINISTRATOR);
                    
408  array(
                    
409    'F_ACTION' => PHPWG_ROOT_PATH.'admin.php?page=tags',
                    
410    'PWG_TOKEN' => get_pwg_token(),
                    
                
SubPanelTilesTabs.php https://github.com/jacknicole/sugarcrm_dev.git | PHP | 267 lines
                    
1<?php
                    
2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
                    
39
                    
40require_once('include/SubPanel/SubPanel.php');
                    
41require_once('include/SubPanel/SubPanelDefinitions.php');
                    
41require_once('include/SubPanel/SubPanelDefinitions.php');
                    
42require_once('include/SubPanel/SubPanelTiles.php');
                    
43class SubPanelTilesTabs extends SubPanelTiles
                    
84             * not included in the layout. */
                    
85            $diff = array_diff($tabs, $usersCustomLayout);
                    
86            $tabs = array_intersect($usersCustomLayout, $tabs);
                    
107
                    
108    	require_once 'include/SubPanel/SubPanelDefinitions.php' ;
                    
109    	$spd = new SubPanelDefinitions ( $this->focus ) ;
                    
191        {
                    
192        	require_once('include/SubPanel/SugarTab.php');
                    
193        	$sugarTab = new SugarTab();
                    
                
routes.php https://bitbucket.org/sirestudios/fortis-wellness.git | PHP | 369 lines
                    
1<?php
                    
2
                    
82        $remove_segments = array_intersect($ignore, $segments);
                    
83        $segments = array_diff($segments, $remove_segments);
                    
84    }
                    
                
ApiQueryUsers.php https://github.com/daevid/MWFork.git | PHP | 332 lines
                    
1<?php
                    
2/**
                    
28	// Eclipse helper - will be ignored in production
                    
29	require_once( 'ApiQueryBase.php' );
                    
30}
                    
100					$this->setContinueEnumParameter( 'users',
                    
101							implode( '|', array_diff( $users, $done ) ) );
                    
102					$goodNames = array();
                    
237				$this->setContinueEnumParameter( 'users',
                    
238						implode( '|', array_diff( $users, $done ) ) );
                    
239				break;
                    
321	protected function getExamples() {
                    
322		return 'api.php?action=query&list=users&ususers=brion|TimStarling&usprop=groups|editcount|gender';
                    
323	}
                    
329	public function getVersion() {
                    
330		return __CLASS__ . ': $Id: ApiQueryUsers.php 92477 2011-07-18 21:26:33Z reedy $';
                    
331	}
                    
                
RollbackAction.php https://github.com/daevid/MWFork.git | PHP | 122 lines
                    
1<?php
                    
2/**
                    
77		if ( !empty( $result ) && $result !== array( array( 'readonlytext' ) ) ) {
                    
78			# array_diff is completely broken for arrays of arrays, sigh.
                    
79			# Remove any 'readonlytext' error manually.
                    
                
mailmessageuid.php https://gitlab.com/alexprowars/bitrix | PHP | 391 lines
                    
1<?php
                    
2
                    
239		{
                    
240			$select = array_diff($fields, array_intersect($fields, ...array_map('array_keys', $eventData)));
                    
241
                    
246
                    
247			if (array_diff($primary, array_intersect($primary, ...array_map('array_keys', $eventData))))
                    
248			{
                    
                
BaseStripeClient.php https://github.com/strangerstudios/paid-memberships-pro.git | PHP | 266 lines
                    
1<?php
                    
2
                    
188    /**
                    
189     * TODO: replace this with a private constant when we drop support for PHP < 5.
                    
190     *
                    
260        // check absence of extra keys
                    
261        $extraConfigKeys = \array_diff(\array_keys($config), \array_keys($this->getDefaultConfig()));
                    
262        if (!empty($extraConfigKeys)) {
                    
                
class-wp-image-editor-imagick.php https://gitlab.com/Gashler/dp | PHP | 477 lines
                    
1<?php
                    
2/**
                    
9/**
                    
10 * WordPress Image Editor Class for Image Manipulation through Imagick PHP Module
                    
11 *
                    
45
                    
46		if ( version_compare( phpversion( 'imagick' ), '2.2.0', '<' ) )
                    
47			return false;
                    
72
                    
73		if ( array_diff( $required_methods, get_class_methods( 'Imagick' ) ) )
                    
74			return false;
                    
121
                    
122		// Even though Imagick uses less PHP memory than GD, set higher limit for users that have low PHP.ini limits
                    
123		@ini_set( 'memory_limit', apply_filters( 'image_memory_limit', WP_MAX_MEMORY_LIMIT ) );
                    
                
Installer.php https://gitlab.com/vortexadventures/void | PHP | 246 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
                    
10 * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
                    
11 * @link      https://cakephp.org CakePHP(tm) Project
                    
12 * @since     3.0.0
                    
12 * @since     3.0.0
                    
13 * @license   https://opensource.org/licenses/mit-license.php MIT License
                    
14 */
                    
17if (!defined('STDIN')) {
                    
18    define('STDIN', fopen('php://stdin', 'r'));
                    
19}
                    
92    /**
                    
93     * Create the config/app.php file if it does not exist.
                    
94     *
                    
                
HashMap.class.php https://bitbucket.org/stk2k/charcoalphp2.1.git | PHP | 386 lines
                    
1<?php
                    
2/**
                    
6*
                    
7* PHP version 5
                    
8*
                    
9* @package    class.base
                    
10* @author     CharcoalPHP Development Team
                    
11* @copyright  2008 stk2k, sazysoft
                    
354        }
                    
355        return array_diff( $this->values, array() );
                    
356    }
                    
                
AssetFactory.php https://github.com/macolu/assetic.git | PHP | 366 lines
                    
1<?php
                    
2
                    
221    {
                    
222        foreach (array_diff(array_keys($options), array('output', 'debug', 'root')) as $key) {
                    
223            unset($options[$key]);
                    
                
mo.php https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests | PHP | 143 lines
                    
1<?php
                    
2
                    
63		$this->assertEquals(3, count($host->entries));
                    
64		$this->assertEquals(array(), array_diff(array('pink', 'green', 'red'), array_keys($host->entries)));
                    
65	}
                    
                
IndexedModel.php https://gitlab.com/pomirleanu.florentin/Elodex | PHP | 260 lines
                    
1<?php
                    
2
                    
218        $loadedRelations = array_keys($this->relations);
                    
219        $hiddenRelations = array_diff($loadedRelations, $this->indexRelations);
                    
220
                    
227        if (count($visible) > 0) {
                    
228            $this->setVisible(array_diff($visible, $hiddenRelations));
                    
229
                    
248            // Don't load already loaded relations
                    
249            $this->load(array_diff($this->indexRelations, array_keys($this->relations)));
                    
250        }
                    
                
functions_picture.inc.php https://gitlab.com/team_fsn/fsn-php | PHP | 133 lines
                    
1<?php
                    
2// +-----------------------------------------------------------------------+
                    
2// +-----------------------------------------------------------------------+
                    
3// | Piwigo - a PHP based photo gallery                                    |
                    
4// +-----------------------------------------------------------------------+
                    
5// | Copyright(C) 2008-2016 Piwigo Team                  http://piwigo.org |
                    
6// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
                    
7// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
                    
120
                    
121  $params = array_diff_assoc(correct_slideshow_params($decode_params), get_default_slideshow_params());
                    
122  $result = '';
                    
                
ApiQueryAllpages.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 335 lines
                    
1<?php
                    
2/**
                    
28	// Eclipse helper - will be ignored in production
                    
29	require_once( 'ApiQueryBase.php' );
                    
30}
                    
123					// Remove the empty string and '*' from the prlevel array
                    
124					$prlevel = array_diff( $params['prlevel'], array( '', '*' ) );
                    
125
                    
318			' Show a list of pages starting at the letter "B"',
                    
319			'  api.php?action=query&list=allpages&apfrom=B',
                    
320			'Using as Generator',
                    
321			' Show info about 4 pages starting at the letter "T"',
                    
322			'  api.php?action=query&generator=allpages&gaplimit=4&gapfrom=T&prop=info',
                    
323			' Show content of first 2 non-redirect pages begining at "Re"',
                    
323			' Show content of first 2 non-redirect pages begining at "Re"',
                    
324			'  api.php?action=query&generator=allpages&gaplimit=2&gapfilterredir=nonredirects&gapfrom=Re&prop=revisions&rvprop=content'
                    
325		);
                    
                
Observer.php https://github.com/rgranadino/magento-mirror.git | PHP | 282 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) 2011 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
109        // exclude up-sell product ids
                    
110        $bundleIds  = array_diff($bundleIds, $productIds);
                    
111
                    
                
Configuration.php https://gitlab.com/freebird/WebApp | PHP | 226 lines
                    
1<?php
                    
2
                    
60                        && isset($value['container']['types']) && !empty($value['container']['types'])
                    
61                        && 0 !== count(array_diff($value['profiler']['container_types'], $value['container']['types']))) {
                    
62                        throw new \RuntimeException('You cannot have different config options for sonata_block.profiler.container_types and sonata_block.container.types; the first one is deprecated, in case of doubt use the latter');
                    
                
class-wc-query.php https://gitlab.com/hop23typhu/list-theme | PHP | 496 lines
                    
1<?php
                    
2/**
                    
59			$_query = wp_parse_args( $q->query );
                    
60			if ( empty( $_query ) || ! array_diff( array_keys( $_query ), array( 'preview', 'page', 'paged', 'cpage', 'orderby' ) ) ) {
                    
61				$q->is_page = true;
                    
                
interview1.php https://github.com/pennsong/ShiyishiWeb.git | PHP | 185 lines
                    
1<?php
                    
2
                    
79					if($okrooms){
                    
80						$vodrooms = array_diff($this->vodrooms,$okrooms);
                    
81					}else{
                    
                
Console.php https://gitlab.com/rsilveira1987/Expresso | PHP | 534 lines
                    
1<?php
                    
2/**
                    
16 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
17 * @version    $Id: Console.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
                    
18 */
                    
22 */
                    
23require_once 'Zend/ProgressBar/Adapter.php';
                    
24
                    
27 */
                    
28require_once 'Zend/Text/MultiByte.php';
                    
29
                    
192       if ($stream === false) {
                    
193            require_once 'Zend/ProgressBar/Adapter/Exception.php';
                    
194            throw new Zend_ProgressBar_Adapter_Exception('Unable to open stream');
                    
212            if (!defined('STDOUT')) {
                    
213                $this->_outputStream = fopen('php://stdout', 'w');    
                    
214            } else {
                    
                
UserIntegritySensorPlugin.php https://gitlab.com/Drulenium-bot/monitoring | PHP | 442 lines
                    
1<?php
                    
2  /**
                    
71    else {
                    
72      $new_users = array_diff_key($current_users, $old_users);
                    
73      if (!empty($new_users)) {
                    
252
                    
253    $new_users_id = array_diff(array_keys($current_users), array_keys($expected_users));
                    
254
                    
254
                    
255    $deleted_users = array_diff_key($expected_users, $current_users);
                    
256
                    
                
List.php https://gitlab.com/rsilveira1987/Expresso | PHP | 448 lines
                    
1<?php
                    
2/**
                    
90    /**
                    
91     * (non-PHPdoc)
                    
92     * @see Tinebase_Controller_Record_Abstract::get()
                    
129        
                    
130        $hiddenMemberids = array_diff($allMemberIds, $allVisibleMemberIds);
                    
131        
                    
137        foreach ($lists as $list) {
                    
138            $list->members = array_diff($list->members, $hiddenMemberids);
                    
139        }
                    
142    /**
                    
143     * (non-PHPdoc)
                    
144     * @see Tinebase_Controller_Record_Abstract::search()
                    
153    /**
                    
154     * (non-PHPdoc)
                    
155     * @see Tinebase_Controller_Record_Abstract::getMultiple()
                    
                
admin.php https://gitlab.com/team_fsn/fsn-php | PHP | 321 lines
                    
30
                    
31include_once(PHPWG_ROOT_PATH.'include/common.inc.php');
                    
32include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
                    
100
                    
101$change_theme_url = PHPWG_ROOT_PATH.'admin.php?';
                    
102$test_get = $_GET;
                    
300trigger_notify('loc_begin_admin_page');
                    
301include(PHPWG_ROOT_PATH.'admin/'.$page['page'].'.php');
                    
302
                    
311
                    
312include(PHPWG_ROOT_PATH.'include/page_header.php');
                    
313
                    
319
                    
320include(PHPWG_ROOT_PATH.'include/page_tail.php');
                    
321?>
                    
                
DbValidator.php https://gitlab.com/yousafsyed/easternglamor | PHP | 198 lines
                    
1<?php
                    
2/**
                    
166        $grantInfo = $connection->query($userPrivilegesQuery)->fetchAll(\PDO::FETCH_NUM);
                    
167        if (empty(array_diff($requiredPrivileges, $this->parseGrantInfo($grantInfo)))) {
                    
168            return true;
                    
174        $grantInfo = $connection->query($schemaPrivilegesQuery)->fetchAll(\PDO::FETCH_NUM);
                    
175        if (empty(array_diff($requiredPrivileges, $this->parseGrantInfo($grantInfo)))) {
                    
176            return true;
                    
                
AbuseFilterVariableHolder.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 426 lines
                    
1<?php
                    
2class AbuseFilterVariableHolder {
                    
8		if ( !( $datum instanceof AFPData || $datum instanceof AFComputedVariable ) ) {
                    
9			$datum = AFPData::newFromPHPVar( $datum );
                    
10		}
                    
279				if ( $this->mMethod == 'link-diff-added' ) {
                    
280					$result = array_diff( $newLinks, $oldLinks );
                    
281				}
                    
282				if ( $this->mMethod == 'link-diff-removed' ) {
                    
283					$result = array_diff( $oldLinks, $newLinks );
                    
284				}
                    
423		return $result instanceof AFPData
                    
424			? $result : AFPData::newFromPHPVar( $result );
                    
425	}
                    
                
Save.php https://gitlab.com/yousafsyed/easternglamor | PHP | 363 lines
                    
1<?php
                    
2/**
                    
82     * @return bool
                    
83     * @SuppressWarnings(PHPMD.BooleanGetMethodName)
                    
84     * @codeCoverageIgnore
                    
245     * @return bool
                    
246     * @SuppressWarnings(PHPMD.BooleanGetMethodName)
                    
247     */
                    
296
                    
297        $allowedItems = array_diff($allowedItems, $deleteAllowedItems);
                    
298
                    
326
                    
327        $allowedItems = array_diff($allowedItems, $deleteAllowedItems);
                    
328        $this->setAllowQuoteItems($allowedItems);
                    
                
Compiler.php https://bitbucket.org/iiic/iszp.git | PHP | 369 lines
                    
1<?php
                    
2
                    
119
                    
120		if ($extra = array_diff_key($this->config, self::$reserved, $this->extensions)) {
                    
121			$extra = implode("', '", array_keys($extra));
                    
174			if ($def->class === 'Nette\DI\NestedAccessor' && ($found = preg_grep('#^'.$name.'\.#i', $list))) {
                    
175				$list = array_diff($list, $found);
                    
176				$def->class = $className . '_' . preg_replace('#\W+#', '_', $name);
                    
177				$class->documents = preg_replace("#\\S+(?= \\$$name\\z)#", $def->class, $class->documents);
                    
178				$classes[] = $accessor = new Nette\Utils\PhpGenerator\ClassType($def->class);
                    
179				foreach ($found as $item) {
                    
265
                    
266		if ($error = array_diff(array_keys($config), $known)) {
                    
267			throw new Nette\InvalidStateException("Unknown key '" . implode("', '", $error) . "' in definition of service.");
                    
                
Simpy.php https://bitbucket.org/haichau59/manga.git | PHP | 433 lines
                    
1<?php
                    
2
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
21 * @version    $Id: Simpy.php 24594 2012-01-05 21:27:01Z matthew $
                    
22 */
                    
26 */
                    
27//require_once 'Zend/Http/Client.php';
                    
28
                    
88        if ($query != null) {
                    
89            $query = array_diff($query, array_filter($query, 'is_null'));
                    
90            $query = '?' . http_build_query($query);
                    
110                     */
                    
111                    //require_once 'Zend/Service/Exception.php';
                    
112                    throw new Zend_Service_Exception($message, $code);
                    
121         */
                    
122        //require_once 'Zend/Service/Exception.php';
                    
123        throw new Zend_Service_Exception($response->getMessage(), $response->getStatus());
                    
                
content.php https://bitbucket.org/asosso/joomla25.git | 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'
                    
210				$filter = JFilterInput::getInstance(
                    
211					array_diff($blackListTags, $whiteListTags), 			// blacklisted tags
                    
212					array_diff($blackListAttributes, $whiteListAttributes), // blacklisted attributes
                    
217				if ($whiteListTags) {
                    
218					$filter->tagBlacklist = array_diff($filter->tagBlacklist, $whiteListTags);
                    
219				}
                    
                
ResourceRegistrar.php https://gitlab.com/MineYourMind/BoNeMEAL | PHP | 392 lines
                    
1<?php namespace Illuminate\Routing;
                    
2
                    
118		{
                    
119			return array_diff($defaults, (array) $options['except']);
                    
120		}
                    
                
FileSystem.php https://github.com/shevron/zf2.git | PHP | 257 lines
                    
1<?php
                    
2/**
                    
188        // Remove the hidden navigation directories
                    
189        $listing = array_diff($listing, array('.', '..'));
                    
190
                    
                
AbstractAddressTest.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 369 lines
                    
1<?php
                    
2/**
                    
9/**
                    
10 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
11 */
                    
11 */
                    
12class AbstractAddressTest extends \PHPUnit_Framework_TestCase
                    
13{
                    
13{
                    
14    /** @var \Magento\Framework\Model\Context|\PHPUnit_Framework_MockObject_MockObject  */
                    
15    protected $contextMock;
                    
16
                    
17    /** @var \Magento\Framework\Registry|\PHPUnit_Framework_MockObject_MockObject  */
                    
18    protected $registryMock;
                    
19
                    
20    /** @var \Magento\Directory\Helper\Data|\PHPUnit_Framework_MockObject_MockObject  */
                    
21    protected $directoryDataMock;
                    
                
proposer_evenement.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 300 lines
                    
1<?php
                    
2/*
                    
134		$mots = array_map('intval',$mots);
                    
135		$mots = array_diff($mots,array(0));
                    
136		$verif = sql_allfetsel('id_mot', "spip_mots", array(sql_in("id_groupe",lire_config('propevent/groupes')),sql_in('id_mot',$mots)));
                    
138		$verif = array_map('intval',$verif);
                    
139		if (count(array_diff($mots, $verif)) OR count(array_diff($verif, $mots)))
                    
140		$erreurs['message_erreur'] = _T('propevent:erreur_mots_cles_interdits');
                    
                
Query.php https://github.com/digitarald/redracer.git | PHP | 245 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 *  $Id: Hook.php 1939 2007-07-05 23:47:48Z zYne $
                    
4 *
                    
18 * and is licensed under the LGPL. For more information, see
                    
19 * <http://www.phpdoctrine.org>.
                    
20 */
                    
27 * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
                    
28 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
29 * @version     $Revision$
                    
29 * @version     $Revision$
                    
30 * @link        www.phpdoctrine.org
                    
31 * @since       1.0
                    
66
                    
67        $foreignId = current(array_diff($this->_table->getColumnNames(), array('keyword', 'field', 'position')));
                    
68
                    
                
wikiplugin_trackeritemcopy.php https://gitlab.com/ElvisAns/tiki | PHP | 283 lines
                    
1<?php
                    
2
                    
228
                    
229                $copyFieldIds[$key] = array_diff($copyFieldIds[$key], $updateFieldIds);
                    
230            }
                    
                
abstract-wc-shipping-method.php https://gitlab.com/iamgraeme/royalmile | PHP | 509 lines
                    
1<?php
                    
2
                    
344				case 'excluding' :
                    
345					$available = in_array( $package['destination']['country'], array_diff( array_keys( WC()->countries->get_shipping_countries() ), $countries ) );
                    
346				break;
                    
                
Simpy.php https://github.com/gauravk90/site.git | PHP | 435 lines
                    
1<?php
                    
2
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
21 * @version    $Id: Simpy.php 18951 2009-11-12 16:26:19Z alexander $
                    
22 */
                    
24
                    
25require_once 'Zend/Http/Client.php';
                    
26
                    
62         */
                    
63        require_once 'Zend/Rest/Client.php';
                    
64        $this->_http = new Zend_Http_Client;
                    
90        if ($query != null) {
                    
91            $query = array_diff($query, array_filter($query, 'is_null'));
                    
92            $query = '?' . http_build_query($query);
                    
112                     */
                    
113                    require_once 'Zend/Service/Exception.php';
                    
114                    throw new Zend_Service_Exception($message, $code);
                    
                
ContentEntityForm.php https://gitlab.com/reasonat/test8 | PHP | 290 lines
                    
1<?php
                    
2
                    
100      ->filterByFieldAccess($this->currentUser())
                    
101      ->filterByFields(array_diff(array_keys($entity->getFieldDefinitions()), $this->getEditedFieldNames($form_state)));
                    
102
                    
                
saisies_lister.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 321 lines
                    
1<?php
                    
2
                    
146function saisies_charger_champs($contenu) {
                    
147	// array_fill_keys est disponible uniquement avec PHP >= 5.2.0
                    
148	// return array_fill_keys(saisies_lister_champs($contenu, false), '');
                    
192	// Les saisies supprimées sont celles qui restent dans les anciennes quand on a enlevé toutes les nouvelles
                    
193	$saisies_supprimees = array_diff_key($saisies_anciennes, $saisies_nouvelles);
                    
194	// Les saisies ajoutées, c'est le contraire
                    
194	// Les saisies ajoutées, c'est le contraire
                    
195	$saisies_ajoutees = array_diff_key($saisies_nouvelles, $saisies_anciennes);
                    
196	// Il reste alors les saisies qui ont le même nom
                    
198	// Dans celles-ci, celles qui sont modifiées sont celles dont la valeurs est différentes
                    
199	$saisies_modifiees = array_udiff(array_diff_key($saisies_nouvelles, $saisies_ajoutees), $saisies_restantes, 'saisies_comparer_rappel');
                    
200	#$saisies_modifiees = array_udiff($saisies_nouvelles, $saisies_restantes, 'saisies_comparer_rappel');
                    
201	// Et enfin les saisies qui ont le même nom et la même valeur
                    
202	$saisies_identiques = array_diff_key($saisies_restantes, $saisies_modifiees);
                    
203	
                    
                
PwNoticeService.php https://gitlab.com/wuhang2003/phpwind | PHP | 423 lines
                    
1<?php
                    
2/**
                    
5 * @author peihong <peihong.zhangph@aliyun-inc.com>
                    
6 * @copyright ©2003-2103 phpwind.com
                    
7 * @license http://www.phpwind.com
                    
7 * @license http://www.phpwind.com
                    
8 * @version $Id: PwNoticeService.php 3833 2012-01-12 03:32:27Z peihong.zhangph $
                    
9 * @package src.service.message.srv
                    
233		} else {
                    
234			$noticeValue = array_diff_key($noticeValue,$newArray);
                    
235		}
                    
                
Console.php https://bitbucket.org/Evgenii/zf2t.git | PHP | 521 lines
                    
1<?php
                    
2/**
                    
196            if (!defined('STDOUT')) {
                    
197                $this->outputStream = fopen('php://stdout', 'w');
                    
198            } else {
                    
214        if ($width === null || !is_int($width)) {
                    
215            if (substr(PHP_OS, 0, 3) === 'WIN') {
                    
216                // We have to default to 79 on windows, because the windows
                    
256
                    
257        if (count(array_diff($elements, $allowedElements)) > 0) {
                    
258            throw new Exception\InvalidArgumentException('Invalid element found in $elements array');
                    
464            case self::FINISH_ACTION_EOL:
                    
465                $this->_outputData(PHP_EOL);
                    
466                break;
                    
                
class-wc-settings-tax.php https://gitlab.com/campus-academy/krowkaramel | PHP | 348 lines
                    
1<?php
                    
2/**
                    
79	public function get_settings_for_default_section() {
                    
80		return include __DIR__ . '/views/settings-tax.php';
                    
81	}
                    
101	public function save() {
                    
102		// phpcs:disable WordPress.Security.NonceVerification.Missing
                    
103		global $current_section;
                    
108			if ( isset( $_POST['woocommerce_tax_classes'] ) ) {
                    
109				$this->save_tax_classes( wp_unslash( $_POST['woocommerce_tax_classes'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
                    
110			}
                    
121		WC_Cache_Helper::get_transient_version( 'shipping', true );
                    
122		// phpcs:enable WordPress.Security.NonceVerification.Missing
                    
123	}
                    
133		$existing_tax_classes = WC_Tax::get_tax_classes();
                    
134		$removed              = array_diff( $existing_tax_classes, $tax_classes );
                    
135		$added                = array_diff( $tax_classes, $existing_tax_classes );
                    
                
UrlGenerator.php https://gitlab.com/mdabutaleb/bitm-laravel-1 | PHP | 324 lines
                    
1<?php
                    
2
                    
52     *
                    
53     * PHP's rawurlencode() encodes all chars except "a-zA-Z0-9-._~" according to RFC 3986. But we want to allow some chars
                    
54     * to be used in their literal form (reasons below). Other chars inside the path must of course be encoded, e.g.
                    
149        // all params must be given
                    
150        if ($diff = array_diff_key($variables, $mergedParams)) {
                    
151            throw new MissingMandatoryParametersException(sprintf('Some mandatory parameters are missing ("%s") to generate a URL for route "%s".', implode('", "', array_keys($diff)), $name));
                    
260        // add a query string if needed
                    
261        $extra = array_udiff_assoc(array_diff_key($parameters, $variables), $defaults, function ($a, $b) {
                    
262            return $a == $b ? 0 : 1;
                    
                
Hashtable.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 421 lines
                    
1<?php
                    
2/**
                    
368        $load = array_flip(
                    
369            array_diff_key(
                    
370                $this->_getMsgCids(
                    
                
Observer.php https://github.com/gryzz/crystal_magento.git | PHP | 282 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) 2010 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
109        // exclude up-sell product ids
                    
110        $bundleIds  = array_diff($bundleIds, $productIds);
                    
111
                    
                
class-admin-editor-specific-replace-vars.php https://gitlab.com/suporte.spturis/carnaval2015.spturis.com.br | PHP | 227 lines
                    
1<?php
                    
2/**
                    
85	public function get_generic( $replacement_variables ) {
                    
86		$shared_variables = array_diff(
                    
87			$this->extract_names( $replacement_variables ),
                    
                
UrlGenerator.php https://gitlab.com/fiesta-framework/Documentation | PHP | 340 lines
                    
1<?php
                    
2
                    
54     *
                    
55     * PHP's rawurlencode() encodes all chars except "a-zA-Z0-9-._~" according to RFC 3986. But we want to allow some chars
                    
56     * to be used in their literal form (reasons below). Other chars inside the path must of course be encoded, e.g.
                    
153        // all params must be given
                    
154        if ($diff = array_diff_key($variables, $mergedParams)) {
                    
155            throw new MissingMandatoryParametersException(sprintf('Some mandatory parameters are missing ("%s") to generate a URL for route "%s".', implode('", "', array_keys($diff)), $name));
                    
279        // add a query string if needed
                    
280        $extra = array_diff_key($parameters, $variables, $defaults);
                    
281        if ($extra && $query = http_build_query($extra, '', '&')) {
                    
                
ResourceRegistrar.php https://gitlab.com/rocs/Streaming-Safe-for-Kids | PHP | 421 lines
                    
1<?php
                    
2
                    
141        } elseif (isset($options['except'])) {
                    
142            return array_diff($defaults, (array) $options['except']);
                    
143        }
                    
                
Api.php https://github.com/rgranadino/magento-mirror.git | PHP | 405 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) 2011 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
236
                    
237            $clear = array_diff($oldTypes, $data['types']);
                    
238
                    
                
ConfigDependencies.php https://gitlab.com/mohamed_hussein/prodt | PHP | 275 lines
                    
1<?php
                    
2
                    
168            if (in_array($format, $rest_config->getFormats($request_method), TRUE)) {
                    
169              $configuration[$request_method]['supported_formats'] = array_diff($configuration[$request_method]['supported_formats'], $removed_formats);
                    
170            }
                    
173            if (in_array($auth, $rest_config->getAuthenticationProviders($request_method), TRUE)) {
                    
174              $configuration[$request_method]['supported_auth'] = array_diff($configuration[$request_method]['supported_auth'], $removed_auth);
                    
175            }
                    
237          if (in_array($format, $rest_config->getFormats($first_method), TRUE)) {
                    
238            $configuration['formats'] = array_diff($configuration['formats'], $removed_formats);
                    
239          }
                    
242          if (in_array($auth, $rest_config->getAuthenticationProviders($first_method), TRUE)) {
                    
243            $configuration['authentication'] = array_diff($configuration['authentication'], $removed_auth);
                    
244          }
                    
                
ProjectTask.php https://bitbucket.org/ManiAdil/jardinorient.git | PHP | 442 lines
                    
7 *
                    
8 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
9 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @link          http://cakephp.org CakePHP(tm) Project
                    
16 * @since         CakePHP(tm) v 1.2
                    
121			} else {
                    
122				$this->err(__d('cake_console', 'Unable to set CAKE_CORE_INCLUDE_PATH, you should change it in %s', $path . 'webroot' . DS . 'index.php'));
                    
123				$success = false;
                    
144/**
                    
145 * Checks PHP's include_path for CakePHP.
                    
146 *
                    
413				$this->out(__d('cake_console', '<error>Unable to write to</error> /app/Config/core.php.'));
                    
414				$this->out(__d('cake_console', 'You need to enable Configure::write(\'Routing.prefixes\',array(\'admin\')) in /app/Config/core.php to use prefix routing.'));
                    
415				$this->_stop();
                    
                
cake.test.php https://bitbucket.org/d1rk/cakephp-including-capistrano.git | PHP | 482 lines
                    
1<?php
                    
2/* SVN FILE: $Id: cake.test.php 8123 2009-03-21 23:55:39Z davidpersson $ */
                    
3/**
                    
9 *
                    
10 * CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
                    
11 * Copyright 2005-2007, Cake Software Foundation, Inc.
                    
17 * @copyright     Copyright 2005-2007, Cake Software Foundation, Inc.
                    
18 * @link          https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests
                    
19 * @package       cake
                    
223		$params = array(
                    
224			'./console/cake.php',
                    
225			'bake',
                    
242		$params = array(
                    
243			'./console/cake.php',
                    
244			'bake',
                    
                
presences.php https://gitlab.com/xivo.solutions/xivo-web-interface | PHP | 377 lines
                    
1<?php
                    
2
                    
224				$info['access_status']['list'] =
                    
225					dwho_array_diff_key(
                    
226						$info['access_status']['list'],
                    
                
edit_index_save.class.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 236 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
139                    // Compare both arrays, looking for differences
                    
140                    $diferences = array_merge(array_diff($fieldsarr, $keyfieldsarr), array_diff($keyfieldsarr, $fieldsarr));
                    
141                    if (empty($diferences)) {
                    
156                    // Compare both arrays, looking for differences
                    
157                    $diferences = array_merge(array_diff($fieldsarr, $indexfieldsarr), array_diff($indexfieldsarr, $fieldsarr));
                    
158                    if (empty($diferences)) {
                    
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>';
                    
                
class-wc-predictive-search-metabox.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 79 lines
                    
1<?php
                    
2/**
                    
46		</style>
                    
47    	<fieldset id="woo_predictive_upgrade_area_box"><legend><?php _e('Upgrade to','woops'); ?> <a href="<?php echo WOOPS_AUTHOR_URI; ?>" target="_blank"><?php _e('Pro Version', 'woops'); ?></a> <?php _e('to activate', 'woops'); ?></legend>
                    
48    	<table class="form-table" cellspacing="0">
                    
49        	<tr valign="top">
                    
50				<th scope="rpw" class="titledesc"><label for="_predictive_search_focuskw"><?php _e('Focus Keywords', 'woops'); ?></label></th>
                    
51				<td class="forminp"><div class="wide_div"><input type="text" value="" id="_predictive_search_focuskw" name="_predictive_search_focuskw" style="width:98%;" /></div></td>
                    
54        </fieldset>
                    
55	<?php
                    
56		
                    
72			} else {
                    
73				$exclude_items = array_diff($exclude_items, array($post_id));
                    
74			}
                    
                
NegotiationConfigureForm.php https://gitlab.com/mohamed_hussein/prodt | PHP | 338 lines
                    
1<?php
                    
2
                    
199      // been made not configurable, deactivate it first.
                    
200      $non_configurable = array_keys(array_diff($customized, array_filter($customized)));
                    
201      $this->disableLanguageSwitcher($non_configurable);
                    
                
File_Importer.php https://gitlab.com/ezgonzalez/integral | PHP | 330 lines
                    
1<?php
                    
2
                    
145			$encoded       = ForceUTF8__Encoding::toUTF8( $record );
                    
146			$encoding_diff = array_diff( $encoded, $record );
                    
147			if ( ! empty( $encoding_diff ) ) {
                    
                
edit_key_save.class.php https://github.com/kpike/moodle.git | PHP | 306 lines
                    
1<?php
                    
2
                    
166                /// Compare both arrays, looking for diferences
                    
167                    $diferences = array_merge(array_diff($fieldsarr, $keyfieldsarr), array_diff($keyfieldsarr, $fieldsarr));
                    
168                    if (empty($diferences)) {
                    
179                /// Compare both arrays, looking for diferences
                    
180                    $diferences = array_merge(array_diff($fieldsarr, $indexfieldsarr), array_diff($indexfieldsarr, $fieldsarr));
                    
181                    if (empty($diferences)) {
                    
214                            /// Compare both arrays, looking for diferences
                    
215                                $diferences = array_merge(array_diff($reffieldsarr, $keyfieldsarr), array_diff($keyfieldsarr, $reffieldsarr));
                    
216                                if (empty($diferences)) {
                    
247                  <p>' . $name . ': ' . $tempkey->readableInfo() . '</p>';
                    
248            $o.= '<a href="index.php?action=edit_key&amp;key=' .$key->getName() . '&amp;table=' . $table->getName() .
                    
249                 '&amp;dir=' . urlencode(str_replace($CFG->dirroot, '', $dirpath)) . '">[' . $this->str['back'] . ']</a>';
                    
                
Attribute.php https://bitbucket.org/razum-io/ns-hub.git | PHP | 345 lines
                    
1<?php
                    
2
                    
257      // ensure that the array index remains sequential.
                    
258      $classes = array_values(array_diff($this->storage['class']->value(), $classes));
                    
259      $this->storage['class']->exchangeArray($classes);
                    
                
edit_index_save.class.php https://github.com/nadavkav/MoodleTAO.git | PHP | 226 lines
                    
1<?php // $Id$
                    
2
                    
134                /// Compare both arrays, looking for diferences
                    
135                    $diferences = array_merge(array_diff($fieldsarr, $keyfieldsarr), array_diff($keyfieldsarr, $fieldsarr));
                    
136                    if (empty($diferences)) {
                    
151                /// Compare both arrays, looking for diferences
                    
152                    $diferences = array_merge(array_diff($fieldsarr, $indexfieldsarr), array_diff($indexfieldsarr, $fieldsarr));
                    
153                    if (empty($diferences)) {
                    
167            $navlinks = array();
                    
168            $navlinks[] = array('name' => $this->str['administration'], 'link' => '../index.php', 'type' => 'misc');
                    
169            $navlinks[] = array('name' => 'XMLDB', 'link' => 'index.php', 'type' => 'misc');
                    
173                     <p>' . $tempindex->readableInfo(),
                    
174                    'index.php?action=edit_index&amp;index=' .$index->getName() . '&amp;table=' . $table->getName() . '&amp;dir=' . urlencode(str_replace($CFG->dirroot, '', $dirpath)));
                    
175            die; /// re-die :-P
                    
                
component_favourite_service_test.php https://github.com/mackensen/moodle.git | PHP | 288 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
56     * @param array $mockstore
                    
57     * @return \PHPUnit\Framework\MockObject\MockObject
                    
58     */
                    
90                    $mockrowarr = (array)$mockrow;
                    
91                    if (array_diff_assoc($criteria, $mockrowarr) == []) {
                    
92                        $returns[$index] = $mockrow;
                    
109                    $fakerowarr = (array)$fakerow;
                    
110                    if (array_diff_assoc($crit, $fakerowarr) == []) {
                    
111                        return $fakerow;
                    
135                    $mockrowarr = (array)$mockrow;
                    
136                    if (array_diff_assoc($criteria, $mockrowarr) == []) {
                    
137                        $count++;
                    
158                    $mockrowarr = (array)$mockrow;
                    
159                    if (array_diff_assoc($criteria, $mockrowarr) == []) {
                    
160                        unset($mockstore[$index]);
                    
                
QueryBuilder.php https://gitlab.com/isdzulqor/Slis-Dev | PHP | 309 lines
                    
1<?php
                    
2/**
                    
193        $viewNames = $this->db->getSchema()->getViewNames($schema);
                    
194        $tableNames = array_diff($tableNames, $viewNames);
                    
195        $command = '';
                    
                
 

Source

Language