100+ results results for 'php array_diff' (479 ms)
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) {themes.php https://gitlab.com/kath.de/cibedo_cibedo.de | 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');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 {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 }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); 373Translate.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]); 256Store.php https://gitlab.com/ntphuc/BackendFeedy | 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);Migrator.php https://gitlab.com/oytunistrator/92five | 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 }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);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 }helpers.php https://bitbucket.org/gmmcal/laravel.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}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)); 307user-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>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);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)); 84class-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(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.0Request.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 }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; ?>">view.php https://github.com/ensignlee/ssbook.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'; 22Util.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);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 oneFormFactory.php https://gitlab.com/fbi/radyo-api-server | 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); 250routes.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 }Collect.php https://gitlab.com/crazybutterfly815/magento2 | 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);DocumentTest.php https://github.com/Exercise/zf2.git | PHP | 316 lines
1<?php 2/** 30/** 31 * PHPUnit test case 32 */ 41 */ 42class DocumentTest extends \PHPUnit_Framework_TestCase 43{ 75 76 $fieldnamesDiffArray = array_diff($document->getFieldNames(), array('title', 'annotation', 'body')); 77 $this->assertTrue(is_array($fieldnamesDiffArray)); 92 93 if (PHP_OS == 'AIX') { 94 return; // tests below here not valid on AIXmailmessageuid.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 {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 }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 = '';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;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); 256ResourceRegistrar.php https://gitlab.com/kimting254/wbms | PHP | 392 lines
1<?php namespace Illuminate\Routing; 2 118 { 119 return array_diff($defaults, (array) $options['except']); 120 }sfWidget.class.php https://github.com/bb-dev/OpenPNE3.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 {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?>CakeTestFixtureTest.php https://gitlab.com/digaotinfo/abear.com.br | 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';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;DbValidator.php https://gitlab.com/crazybutterfly815/magento2 | 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;Save.php https://gitlab.com/crazybutterfly815/magento2 | 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);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'))); 68content.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | 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 }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/manubamba/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))); 102PwNoticeService.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/rmoshiur81/Larave-Grading | 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); 111class-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 }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 }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'],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 ) ) {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&index=' .$index->getName() . '&table=' . $table->getName() . '&dir=' . urlencode(str_replace($CFG->dirroot, '', $dirpath))); 175 die; /// re-die :-PQueryBuilder.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 = '';queues.php https://gitlab.com/xivo.solutions/xivo-web-interface | PHP | 412 lines
1<?php 2 112 if(empty($pannounce['slt']) === false) 113 $pannounce['list'] = dwho_array_diff_key($pannounce['list'], 114 $pannounce['slt']); 252 if(empty($pannounce['slt']) === false) 253 $pannounce['list'] = dwho_array_diff_key($pannounce['list'], 254 $pannounce['slt']);template.php https://gitlab.com/Rad1calDreamer/honey | PHP | 110 lines
9$link = GetPagePath(false, false)."?".http_build_query( 10 array_diff_key( 11 $_REQUEST, 88 ob_start(); 89 include(__DIR__."/form.php"); 90 $arResult["OUTPUT_LIST"]["HTML"] = ob_get_clean().$arResult["OUTPUT_LIST"]["HTML"]; 96 while(ob_get_clean()); 97 echo CUtil::PhpToJSObject(array( 98 "TEXT" => $arResult["OUTPUT_LIST"]["HTML"],class.wp-scripts.php https://gitlab.com/Gashler/sg | PHP | 331 lines
1<?php 2/** 115 if ( false === $group && in_array($handle, $this->in_footer, true) ) 116 $this->in_footer = array_diff( $this->in_footer, (array) $handle ); 117 177 178 /** This filter is documented in wp-includes/class.wp-scripts.php */ 179 $src = esc_url( apply_filters( 'script_loader_src', $src, $handle ) );class-wc-language-pack-upgrader.php https://gitlab.com/webkod3r/tripolis | PHP | 273 lines
1<?php 2 163 $notices = get_option( 'woocommerce_admin_notices', array() ); 164 $notices = array_diff( $notices, array( 'translation_upgrade' ) ); 165 update_option( 'woocommerce_admin_notices', $notices ); 186 187 $url = wp_nonce_url( admin_url( 'admin.php?page=' . $page . '&action=translation_upgrade' ), 'language_update' ); 188 $tools_url = admin_url( 'admin.php?page=' . $page ); 256 case 3 : 257 echo '<div class="error"><p>' . __( 'Failed to install/update the translation:', 'woocommerce' ) . ' ' . sprintf( __( 'An authentication error occurred while updating the translation. Please try again or configure your %sUpgrade Constants%s.', 'woocommerce' ), '<a href="http://codex.wordpress.org/Editing_wp-config.php#WordPress_Upgrade_Constants">', '</a>' ) . '</p></div>'; 258 break;editor.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 522 lines
1<?php 2/** 174 $this->_observers[] = $observer; 175 $methods = array_diff(get_class_methods($observer), get_class_methods('JPlugin')); 176 } 488 $name = JFilterInput::getInstance()->clean($this->_name, 'cmd'); 489 $path = JPATH_PLUGINS . '/editors/' . $name . '.php'; 490 492 { 493 $path = JPATH_PLUGINS . '/editors/' . $name . '/' . $name . '.php'; 494 if (!JFile::exists($path))Soap.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 258 lines
1<?php 2/** 17 * 18 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 19 */ 86 * @param \Magento\Framework\App\AreaList $areaList 87 * @SuppressWarnings(PHPMD.ExcessiveParameterList) 88 */ 245 $allowedParams = [$wsdlParam, $servicesParam]; 246 $notAllowedParameters = array_diff($requestParams, $allowedParams); 247 if (count($notAllowedParameters)) {ks_prefreport.php https://gitlab.com/ElvisAns/tiki | PHP | 229 lines
1<?php 2 11// Usage: From the command line: 12// php doc/devtools/prefreport.php 13// resulting file can be found at dump/prefreport.txt 14// 15// also check out doc/devtools/securitycheck.php to see in which files are 16// used each pref (and permission name too) 20 21require_once 'tiki-setup.php'; 22$prefslib = TikiLib::lib('prefs'); 93 94 foreach (glob('lib/prefs/*.php') as $file) { 95 $name = substr(basename($file), 0, -4); 212 213 $words = array_diff(explode(' ', $name . ' ' . $description), $stopWords); 214Parser.php https://bitbucket.org/dbaltas/zend-framework-1.x-on-git.git | PHP | 407 lines
1<?php 2 2 3require_once('Scope.php'); 4require_once('Symbol.php'); 4require_once('Symbol.php'); 5require_once('Destructable.php'); 6 123 public function statement($exclude = array()) { 124 $skip = array_diff(array(';', "\n", ','), $exclude); 125 while (in_array($this->token->id, $skip)) {Session.php https://github.com/sebio/symfony.git | PHP | 289 lines
1<?php 2 261 if (isset($this->attributes['_flash'])) { 262 $this->attributes['_flash'] = array_diff_key($this->attributes['_flash'], $this->oldFlashes); 263 }FileManagedUnitTestBase.php https://gitlab.com/mohamed_hussein/prodt | PHP | 217 lines
1<?php 2 56 // Determine if there were any expected that were not called. 57 $uncalled = array_diff($expected, $actual); 58 if (count($uncalled)) { 65 // Determine if there were any unexpected calls. 66 $unexpected = array_diff($actual, $expected); 67 if (count($unexpected)) {SubPanelTilesTabs.php https://gitlab.com/tjaafar/SuiteCRM | PHP | 271 lines
1<?php 2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); 40 41require_once('include/SubPanel/SubPanel.php'); 42require_once('include/SubPanel/SubPanelDefinitions.php'); 42require_once('include/SubPanel/SubPanelDefinitions.php'); 43require_once('include/SubPanel/SubPanelTiles.php'); 44/** 89 * not included in the layout. */ 90 $diff = array_diff($tabs, $usersCustomLayout); 91 $tabs = array_intersect($usersCustomLayout, $tabs); 195 { 196 require_once('include/SubPanel/SugarTab.php'); 197 $sugarTab = new SugarTab(); 224 225 $sugarTabs[$key] = array(//'url'=>'index.php?module=' . $_REQUEST['module'] . '&record=' . $_REQUEST['record'] . '&action=' . $_REQUEST['action']. '&subpanel=' . $key.'#tabs', 226 //'url'=>"javascript:SUGAR.util.retrieveAndFill('index.php?to_pdf=1&module=MySettings&action=LoadTabSubpanels&loadModule={$_REQUEST['module']}&record={$_REQUEST['record']}&subpanel=$key','subpanel_list',null,null,null);",sharelib.php https://gitlab.com/ElvisAns/tiki | PHP | 306 lines
1<?php 2 123 // Remove redundant permissions 124 $permissions = array_diff($permissions, array_keys($this->groupPerm)); 125 $permissions = array_diff($permissions, array_keys($this->categPerm)); 268 269 return array_diff($Tiki_ShareObject__groups, array_keys($this->validGroups)); 270 }Configurable.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 227 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 */ 63 64 $insert = array_diff($productIds, $old); 65 $delete = array_diff($old, $productIds);Migrator.php https://gitlab.com/ealexis.t/trends | PHP | 417 lines
1<?php 2 81 82 $migrations = array_diff($files, $ran); 83 250 { 251 $files = $this->files->glob($path.'/*_*.php'); 252 260 $files = array_map(function ($file) { 261 return str_replace('.php', '', basename($file)); 262 282 foreach ($files as $file) { 283 $this->files->requireOnce($path.'/'.$file.'.php'); 284 }class-ms-model-customposttype.php https://gitlab.com/najomie/fit-hippie | PHP | 471 lines
1<?php 2/** 16 * 17 * Both static and class property are used to handle php 5.2 limitations. 18 * Override this value in child object. 280 281 $remove = array_diff( $all_fields, $data_to_keep ); 282class-yoast-plugin-conflict.php https://gitlab.com/najomie/fit-hippie | PHP | 333 lines
1<?php 2/** 117 if ( ! function_exists( 'get_plugin_data' ) ) { 118 require_once( ABSPATH . '/wp-admin/includes/plugin.php' ); 119 } 160 */ 161 $inactive_sections = array_diff( $all_plugin_sections, $sections ); 162 if ( ! empty( $inactive_sections ) ) { 174 if ( isset( $this->active_plugins[ $section ] ) ) { 175 $inactive_plugins = array_diff( $this->plugins[ $section ], $this->active_plugins[ $section ] ); 176 } 201 /* translators: %s: 'Facebook' plugin name of possibly conflicting plugin */ 202 $error_message .= '<a class="button button-primary" href="' . wp_nonce_url( 'plugins.php?action=deactivate&plugin=' . $plugin_file . '&plugin_status=all', 'deactivate-plugin_' . $plugin_file ) . '">' . sprintf( __( 'Deactivate %s', 'wordpress-seo' ), WPSEO_Utils::get_plugin_name( $plugin_file ) ) . '</a> '; 203Migrator.php https://gitlab.com/Sigpot/AirSpot | PHP | 416 lines
1<?php 2 81 82 $migrations = array_diff($files, $ran); 83 250 { 251 $files = $this->files->glob($path.'/*_*.php'); 252 260 $files = array_map(function ($file) { 261 return str_replace('.php', '', basename($file)); 262 }, $files); 281 foreach ($files as $file) { 282 $this->files->requireOnce($path.'/'.$file.'.php'); 283 }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/ 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&index=' .$index->getName() . '&table=' . $table->getName() . 183 '&dir=' . urlencode(str_replace($CFG->dirroot, '', $dirpath)) . '">[' . $this->str['back'] . ']</a>';helper.php https://bitbucket.org/gnomeontherun/square-one.git | PHP | 434 lines
1<?php 2/** 252 // Remove the white-listed tags and attributes from the black-list. 253 $blackListTags = array_diff($blackListTags, $whiteListTags); 254 $blackListAttributes = array_diff($blackListAttributes, $whiteListAttributes); 260 { 261 $filter->tagBlacklist = array_diff($filter->tagBlacklist, $whiteListTags); 262 } 265 { 266 $filter->attrBlacklist = array_diff($filter->attrBlacklist); 267 } 330 // Get component path 331 if ($app->isAdmin() && file_exists(JPATH_COMPONENT . '/admin.' . $file . '.php')) 332 { 332 { 333 $path = JPATH_COMPONENT . '/admin.' . $file . '.php'; 334 }Apriori.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 345 lines
1<?php 2 4 5namespace Phpml\Association; 6 6 7use Phpml\Helper\Predictable; 8use Phpml\Helper\Trainable; 139 if ($this->confidence <= ($confidence = $this->confidence($frequent, $antecedent))) { 140 $consequent = array_values(array_diff($frequent, $antecedent)); 141 $this->rules[] = [ 235 foreach ($samples as $q) { 236 if (count(array_merge(array_diff($p, $q), array_diff($q, $p))) != 2) { 237 continue; 342 { 343 return array_diff($set1, $set2) == array_diff($set2, $set1); 344 }question.php https://github.com/holsinger/openfloor.git | PHP | 300 lines
1<?php 2class Question extends Controller 126 127 $diff = array_diff($tags, $existingVs); 128 247 $data['view_name'] = 'question_view'; 248 $this->load->view('question/question_view.php', $data); 249 }themes.php https://gitlab.com/woxiprogrammers/infinia-wordpress | PHP | 291 lines
83 $title = __( 'Update Themes' ); 84 $parent_file = 'themes.php'; 85 154 ?> 155 <div class="error"><p><strong><?php _e( 'Caution:' ); ?></strong> <?php echo _n( 'This theme may be active on other sites in the network.', 'These themes may be active on other sites in the network.', $themes_to_delete ); ?></p></div> 156 <p><?php echo _n( 'You are about to remove the following theme:', 'You are about to remove the following themes:', $themes_to_delete ); ?></p> 174 <?php wp_nonce_field('bulk-themes') ?> 175 <?php submit_button( _n( 'Yes, Delete this theme', 'Yes, Delete these themes', $themes_to_delete ), 'button', 'submit', false ); ?> 176 </form> 246<div class="wrap"> 247<h2><?php echo esc_html( $title ); if ( current_user_can('install_themes') ) { ?> <a href="theme-install.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'theme'); ?></a><?php } 248if ( $s ) 289 290<?php 291include(ABSPATH . 'wp-admin/admin-footer.php');RouteProvider.php https://gitlab.com/reasonat/test8 | PHP | 424 lines
1<?php 2 200 201 $routes_to_load = array_diff($names, array_keys($this->routes), array_keys($this->serializedRoutes)); 202 if ($routes_to_load) { 349 350 // We sort by fit and name in PHP to avoid a SQL filesort. 351 usort($routes, array($this, 'routeProviderRouteCompare')); 366 } 367 // Reverse sort from highest to lowest fit. PHP should cast to int, but 368 // the explicit cast makes this sort more robust against unexpected input.Abstract.php https://github.com/maintainable/framework.git | PHP | 197 lines
1<?php 2/** 8 * @author Chuck Hagenbuch <chuck@horde.org> 9 * @license http://opensource.org/licenses/bsd-license.php 10 * @category Horde 18 * @author Chuck Hagenbuch <chuck@horde.org> 19 * @license http://opensource.org/licenses/bsd-license.php 20 * @category Horde 158 $required = array('adapter', 'username'); 159 $diff = array_diff_key(array_flip($required), $this->_config); 160 if (! empty($diff)) {FormTabs.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 302 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 */ 36 * 37 * @SuppressWarnings(PHPMD.NumberOfChildren) 38 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 148 { 149 $this->unassignedFields = array_diff_key( 150 $this->unassignedFields, 160 * 161 * @SuppressWarnings(PHPMD.UnusedLocalVariable) 162 */Configurable.php https://bitbucket.org/jit_bec/shopifine.git | PHP | 227 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) 2012 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 63 64 $insert = array_diff($productIds, $old); 65 $delete = array_diff($old, $productIds);Instance.php https://github.com/guiohm/magento-french.git | PHP | 341 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) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 79 80 $removePageIds = array_diff($pageIds, $object->getData('page_group_ids')); 81ext_array.h https://gitlab.com/iranjith4/hhvm | C Header | 318 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 2010-2016 Facebook, Inc. (http://www.facebook.com) | 6 | Copyright (c) 1997-2010 The PHP Group | 7 +----------------------------------------------------------------------+ 7 +----------------------------------------------------------------------+ 8 | This source file is subject to version 3.01 of the PHP license, | 9 | that is bundled with this package in the file LICENSE, and is | 10 | available through the world-wide-web at the following url: | 11 | http://www.php.net/license/3_01.txt | 12 | If you did not receive a copy of the PHP license and are unable to | 13 | obtain it through the world-wide-web, please send a note to | 14 | license@php.net so we can mail you a copy immediately. | 15 +----------------------------------------------------------------------+Job.php https://gitlab.com/blingbang2016/shop | PHP | 358 lines
1<?php 2 111 $updateValues = array_intersect_key($newValues, $oldValues); 112 $insertValues = array_diff_key($newValues, $oldValues); 113 114 // Remove Updates and Inserts that match defaults 115 $updateValues = array_diff_assoc($updateValues, $defaultValues); 116 $insertValues = array_diff_assoc($insertValues, $defaultValues); 127 // Generate key/value lists for Delete (Old values, not being updated, that are identical to default values) 128 $deleteValues = array_intersect_assoc(array_diff_key($oldValues, $updateValues), $defaultValues); 129CsvImportHandler.php https://gitlab.com/yousafsyed/easternglamor | PHP | 299 lines
1<?php 2/** 107 $validFields = $this->_filterFileFields($fileFields); 108 $invalidFields = array_diff_key($fileFields, $validFields); 109 $ratesData = $this->_filterRateData($ratesRawData, $invalidFields, $validFields); 153 * @throws \Magento\Framework\Exception\LocalizedException 154 * @SuppressWarnings(PHPMD.UnusedLocalVariable) 155 */AssetResolver.php https://gitlab.com/reasonat/test8 | PHP | 393 lines
1<?php 2 102 protected function getLibrariesToLoad(AttachedAssetsInterface $assets) { 103 return array_diff( 104 $this->libraryDependencyResolver->getLibrariesWithDependencies($assets->getLibraries()),Class.php https://github.com/tanduy/zf.git | PHP | 513 lines
30 */ 31require_once 'Zend/CodeGenerator/Php/Member/Container.php'; 32 35 */ 36require_once 'Zend/CodeGenerator/Php/Method.php'; 37 40 */ 41require_once 'Zend/CodeGenerator/Php/Property.php'; 42 45 */ 46require_once 'Zend/CodeGenerator/Php/Docblock.php'; 47 159 } elseif (!$docblock instanceof Zend_CodeGenerator_Php_Docblock) { 160 require_once 'Zend/CodeGenerator/Php/Exception.php'; 161 throw new Zend_CodeGenerator_Php_Exception('setDocblock() is expecting either a string, array or an instance of Zend_CodeGenerator_Php_Docblock');Compiler.php https://gitlab.com/adam.kvita/MI-VMM-SIFT | PHP | 461 lines
1<?php 2 176 { 177 $this->config = Helpers::expand(array_diff_key($this->config, self::$reserved), $this->builder->parameters) 178 + array_intersect_key($this->config, self::$reserved); 185 $last = $this->getExtensions(Extensions\InjectExtension::class); 186 $this->extensions = array_merge(array_diff_key($this->extensions, $last), $last); 187 187 188 $extensions = array_diff_key($this->extensions, $first); 189 foreach (array_intersect_key($extensions, $this->config) as $name => $extension) { 196 197 if ($extra = array_diff_key($this->extensions, $extensions, $first)) { 198 $extra = implode("', '", array_keys($extra)); 200 201 } elseif ($extra = key(array_diff_key($this->config, self::$reserved, $this->extensions))) { 202 $hint = Nette\Utils\ObjectMixin::getSuggestion(array_keys(self::$reserved + $this->extensions), $extra);index.php https://github.com/mudrd8mz/moodle.git | PHP | 190 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 24 25require_once("../../../../config.php"); 26 76 $canexport = !$download && has_capability('mod/forum:exportforum', $context); 77 $redirecturl = new moodle_url('/mod/forum/view.php', ['id' => $forumid]); 78 $numforums = 1; 95 $canexport = false; 96 $redirecturl = new moodle_url('/course/view.php', ['id' => $courseid]); 97 $numforums = count($forumsvisibletouser); 100 // Specify whether user has access to all forums in the course. 101 $accessallforums = empty(array_diff($allforumidsincourse, $filters['forums'])); 102} 103 104$pageurl = new moodle_url('/mod/forum/report/summary/index.php', $pageurlparams); 105Mapper.php https://gitlab.com/yousafsyed/easternglamor | PHP | 407 lines
1<?php 2/** 12/** 13 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 14 */ 107 * @throws StateException 108 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 109 */ 296 $allElements = array_keys($elements); 297 $notUsedElements = implode(', ', array_diff($allElements, $mappedElements)); 298 if (!empty($notUsedElements)) {