100+ results results for 'php array_map repo:nigelbaor/vagrant-lnmp' (832 ms)
1<?php 2/* 102 'datasourceOrigin' => 'ajax', 103 'availableDatasetRoute' => './include/common/webServices/rest/internal.php?object=centreon_configuration_timeperiod&action=list', 104 'multiple' => true, 143 $attrTimeperiods, 144 array('defaultDatasetRoute' => './include/common/webServices/rest/internal.php?object=centreon_configuration_timeperiod&action=defaultValues&target=timeperiodRenderer&field=tp_include&id=' . $tp_id) 145); 162 */ 163require_once "./include/configuration/configObject/timeperiod/timeperiod_JS.php"; 164if ($o == "c" || $o == "a" || $o == "mc") { 172 <script type="text/javascript"> 173 globalExceptionTabId[<?php echo $k;?>] = <?php echo $exception_id[$k];?>; 174 globalExceptionTabName[<?php echo $k;?>] = '<?php echo $exception_days[$k];?>'; 175 globalExceptionTabTimerange[<?php echo $k;?>] = '<?php echo $exception_timerange[$k];?>'; 176 globalExceptionTabTimeperiodId[<?php echo $k;?>] = <?php echo $exception_timeperiod_id[$k];?>; 177 </script>previewmanager.php https://gitlab.com/wuhang2003/core | PHP | 342 lines
1<?php 2/** 90 if ($this->providerListDirty) { 91 $keys = array_map('strlen', array_keys($this->providers)); 92 array_multisort($keys, SORT_DESC, $this->providers);ProxyBuilderTest.php https://gitlab.com/geeta7/drupal | PHP | 445 lines
1<?php 2 343 344 $expected_methods_body = implode("\n", array_map(function ($value) { 345 if ($value === '') {bookmark-template.php https://gitlab.com/VTTE/sitios-vtte | PHP | 324 lines
1<?php 2/** 235 } 236 $parsed_args['class'] = array_map( 'sanitize_html_class', $parsed_args['class'] ); 237 $parsed_args['class'] = trim( join( ' ', $parsed_args['class'] ) );class.jetpack-sync-queue.php https://gitlab.com/vanafroo/voipWEB | PHP | 459 lines
1<?php 2 391 // at the same time 392 // TODO: confirm we only need to support PHP 5.05+ (otherwise we'll need to emulate microtime as float, and avoid PHP_INT_MAX) 393 // @see: http://php.net/manual/en/function.microtime.php 396 // row iterator is used to avoid collisions where we're writing data waaay fast in a single process 397 if ( $this->row_iterator === PHP_INT_MAX ) { 398 $this->row_iterator = 0; 444 static function get_item_values( $items ) { 445 return array_map( array( __CLASS__, 'get_item_value' ), $items ); 446 } 448 static function get_item_ids( $items ) { 449 return array_map( array( __CLASS__, 'get_item_id' ), $items ); 450 }edit.php https://github.com/MikeLockz/lockwitz.git | PHP | 263 lines
40 $submenu_file = "edit.php?post_type=$post_type"; 41 $post_new_file = "post-new.php?post_type=$post_type"; 42} else { 42} else { 43 $parent_file = 'edit.php'; 44 $submenu_file = 'edit.php'; 188<?php screen_icon(); ?> 189<h2><?php echo esc_html( $post_type_object->labels->name ); ?> <a href="<?php echo $post_new_file ?>" class="add-new-h2"><?php echo esc_html($post_type_object->labels->add_new); ?></a> <?php 190if ( isset($_REQUEST['s']) && $_REQUEST['s'] ) 193 194<?php 195if ( isset($_REQUEST['posted']) && $_REQUEST['posted'] ) : $_REQUEST['posted'] = (int) $_REQUEST['posted']; ?> 195if ( isset($_REQUEST['posted']) && $_REQUEST['posted'] ) : $_REQUEST['posted'] = (int) $_REQUEST['posted']; ?> 196<div id="message" class="updated"><p><strong><?php _e('This has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_REQUEST['posted'] ); ?>"><?php _e('View Post'); ?></a> | <a href="<?php echo get_edit_post_link( $_REQUEST['posted'] ); ?>"><?php _e('Edit Post'); ?></a></p></div> 197<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']);Relation.php https://gitlab.com/puntodos/ean-landings | PHP | 349 lines
1<?php 2 187 { 188 return array_unique(array_values(array_map(function ($value) use ($key) { 189 return $key ? $value->getAttribute($key) : $value->getKey(); 314 315 $tables = array_map(function ($model) { 316 return (new $model)->getTable();arr.php https://gitlab.com/ken3/bluSky | PHP | 602 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 351 /** 352 * Recursive version of [array_map](http://php.net/array_map), applies one or more 353 * callbacks to all elements in an array, including sub-arrays. 366 * will cause an error. 367 * [!!] Unlike `array_map`, this method requires a callback and will only map 368 * a single array. 403 * Merges one or more arrays recursively and preserves all keys. 404 * Note that this does not work the same as [array_merge_recursive](http://php.net/array_merge_recursive)! 405 *Oauth.php https://gitlab.com/ViniciusP/project-games | PHP | 262 lines
1<?php 2/** 2/** 3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 9 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 10 * @link http://cakephp.org CakePHP(tm) Project 11 * @since 3.0.0 11 * @since 3.0.0 12 * @license http://www.opensource.org/licenses/mit-license.php MIT License 13 */ 127 $key = [$credentials['consumerSecret'], $credentials['tokenSecret']]; 128 $key = array_map([$this, '_encode'], $key); 129 $key = implode('&', $key); 156 ]; 157 $parts = array_map([$this, '_encode'], $parts); 158 return implode('&', $parts);EsmtpTransport.php https://gitlab.com/7slayer/h-node | PHP | 340 lines
1<?php 2 10 11//@require 'Swift/Transport/AbstractSmtpTransport.php'; 12//@require 'Swift/Transport/EsmtpHandler.php'; 12//@require 'Swift/Transport/EsmtpHandler.php'; 13//@require 'Swift/Transport/IoBuffer.php'; 14//@require 'Swift/Transport/SmtpAgent.php'; 14//@require 'Swift/Transport/SmtpAgent.php'; 15//@require 'Swift/TransportException.php'; 16//@require 'Swift/Mime/Message.php'; 16//@require 'Swift/Mime/Message.php'; 17//@require 'Swift/Events/EventDispatcher.php'; 18 207 if (in_array(strtolower($method), 208 array_map('strtolower', (array) $handler->exposeMixinMethods()) 209 ))ArgvInput.php https://gitlab.com/s.manchanda/wfa-leave-application | PHP | 351 lines
1<?php 2 336 $self = $this; 337 $tokens = array_map(function ($token) use ($self) { 338 if (preg_match('{^(-[^=]+=)(.+)}', $token, $match)) {internal-link-aliases.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 374 lines
1<?php 2 34 if (suwp::permalink_mode() != SUWP_PRETTY_PERMALINKS) 35 $this->print_message('error', sprintf(__('Link Mask Generator won’t work with default or “pathinfo” permalinks. Please change your <a href="%s">permalink structure</a> to enable this module’s functionality.', 'seo-ultimate'), 'options-permalink.php')); 36 53 $aliases = $this->get_setting('aliases', array()); 54 $aliases = array_map('unserialize', array_unique(array_map('serialize', $aliases))); 55 $aliases = array_filter($aliases, array(&$this, 'remove_empty_aliases'));Oracle.php https://github.com/EstebanFuentealba/PHPCodeCreator.git | PHP | 255 lines
1<?php 2/* 2/* 3 * $Id: Oracle.php 7490 2010-03-29 19:53:27Z jwage $ 4 * 24 * @subpackage Import 25 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 26 * @author Konsta Vesterinen <kvesteri@cc.hut.fi> 87 88 return array_map(array($this->conn->formatter, 'fixSequenceName'), $tableNames); 89 } 105 106 return array_map(array($this->conn->formatter, 'fixIndexName'), $constraints); 107 } 169 170 return array_map(array($this->conn->formatter, 'fixIndexName'), $indexes); 171 }edit.php https://github.com/eric-brechemier/wordpress.git | PHP | 294 lines
29 30 if ( strpos($sendback, 'post.php') !== false ) 31 $sendback = admin_url($post_new_file); 37 } elseif ( ( $_REQUEST['action'] != -1 || $_REQUEST['action2'] != -1 ) && ( isset($_REQUEST['post']) || isset($_REQUEST['ids']) ) ) { 38 $post_ids = isset($_REQUEST['post']) ? array_map( 'intval', (array) $_REQUEST['post'] ) : explode(',', $_REQUEST['ids']); 39 $doaction = ($_REQUEST['action'] != -1) ? $_REQUEST['action'] : $_REQUEST['action2']; 114 $submenu_file = "edit.php?post_type=$post_type"; 115 $post_new_file = "post-new.php?post_type=$post_type"; 116} else { 163<?php screen_icon(); ?> 164<h2><?php echo esc_html( $post_type_object->labels->name ); ?> <a href="<?php echo $post_new_file ?>" class="button add-new-h2"><?php echo esc_html($post_type_object->labels->add_new); ?></a> <?php 165if ( isset($_REQUEST['s']) && $_REQUEST['s'] ) 170if ( isset($_REQUEST['posted']) && $_REQUEST['posted'] ) : $_REQUEST['posted'] = (int) $_REQUEST['posted']; ?> 171<div id="message" class="updated"><p><strong><?php _e('This has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_REQUEST['posted'] ); ?>"><?php _e('View Post'); ?></a> | <a href="<?php echo get_edit_post_link( $_REQUEST['posted'] ); ?>"><?php _e('Edit Post'); ?></a></p></div> 172<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']);class-cp-user-relationships.php https://gitlab.com/clusterpress/clusterpress | PHP | 543 lines
1<?php 2/** 323 } else { 324 $in = array_map( 'esc_sql', $in ); 325 $in = '"' . join( '","', $in ) . '"';Drawer.php https://gitlab.com/Blueprint-Marketing/Imagine | PHP | 356 lines
1<?php 2 24/** 25 * Drawer implementation using the Gmagick PHP extension 26 */ 264 265 $points = array_map(function (PointInterface $p) { 266 return array('x' => $p->getX(), 'y' => $p->getY()); 304 /** 305 * @see http://www.php.net/manual/en/imagick.queryfontmetrics.php#101027 306 *Email.php https://gitlab.com/johanlindberg/irvato-crm | PHP | 273 lines
1<?php 2/************************************************************************ 52 if (!empty($address) || !filter_var($address, FILTER_VALIDATE_EMAIL)) { 53 $arr = array_map(function ($e) { 54 return trim($e);SqliteSchema.php https://gitlab.com/ViniciusP/project-games | PHP | 451 lines
1<?php 2/** 2/** 3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 11 * @link http://cakephp.org CakePHP(tm) Project 12 * @since 3.0.0 12 * @since 3.0.0 13 * @license http://www.opensource.org/licenses/mit-license.php MIT License 14 */ 351 } 352 $columns = array_map( 353 [$this->_driver, 'quoteIdentifier'], 392 $data = $table->index($name); 393 $columns = array_map( 394 [$this->_driver, 'quoteIdentifier'],ProxyBuilderTest.php git://github.com/drupal/drupal.git | PHP | 445 lines
1<?php 2 10use Drupal\Component\ProxyBuilder\ProxyBuilder; 11use PHPUnit\Framework\TestCase; 12 343 344 $expected_methods_body = implode("\n", array_map(function ($value) { 345 if ($value === '') {PhpRedisConnection.php https://gitlab.com/madwanz64/laravel | PHP | 557 lines
1<?php 2 14 */ 15class PhpRedisConnection extends Connection implements ConnectionContract 16{ 31 /** 32 * Create a new PhpRedis connection. 33 * 66 { 67 return array_map(function ($value) { 68 return $value !== false ? $value : null;PrettyPageHandler.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 333 lines
1<?php 2/** 2/** 3 * Whoops - php errors for cool kids 4 * @author Filipe Dobreira <http://github.com/filp> 70 // @todo: make this more robust 71 if(php_sapi_name() === 'cli' && !isset($_ENV['whoops-test'])) { 72 return Handler::DONE; 74 75 // Get the 'pretty-template.php' template file 76 // @todo: this can be made more dynamic &&|| cleaned-up 80 81 $templateFile = "$resources/pretty-template.php"; 82 112 113 $extraTables = array_map(function($table) { 114 return $table instanceof \Closure ? $table() : $table;DataStore.php https://gitlab.com/campus-academy/krowkaramel | PHP | 413 lines
1<?php 2/** 212 if ( isset( $query_args[ $field ] ) && is_array( $query_args[ $field ] ) && count( $query_args[ $field ] ) > 0 ) { 213 $ip_addresses = array_map( 'esc_sql', $query_args[ $field ] ); 214 339 340 // phpcs:disable WordPress.DB.PreparedSQL.InterpolatedNotPrepared 341 $db_records_count = (int) $wpdb->get_var( 345 ); 346 // phpcs:enable WordPress.DB.PreparedSQL.InterpolatedNotPrepared 347 359 $download_data = $wpdb->get_results( 360 $this->subquery->get_query_statement(), // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared 361 ARRAY_A 367 368 $download_data = array_map( array( $this, 'cast_numbers' ), $download_data ); 369 $data = (object) array(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> 140 $this->_cache('merge', $model, $stored, $cached); 141 return array_map(array('Storage', 'unpack'), $stored); 142 }Translate.php https://gitlab.com/svillegas/magento2 | PHP | 490 lines
1<?php 2/** 12 * 13 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 14 * @SuppressWarnings(PHPMD.TooManyFields) 125 * 126 * @SuppressWarnings(PHPMD.ExcessiveParameterList) 127 */ 334 $data = $this->_translateResource->getTranslationArray(null, $this->getLocale()); 335 $this->_addData(array_map("htmlspecialchars_decode", $data)); 336 return $this;ModuleAutoloader.php https://gitlab.com/koodersmiikka/operaatio-terveys | PHP | 426 lines
1<?php 2/** 12// Grab SplAutoloader interface 13require_once __DIR__ . '/SplAutoloader.php'; 14 181 if ($this->pharExtensions) { 182 $pharSuffixPattern = '(' . implode('|', array_map('preg_quote', $this->pharExtensions)) . ')'; 183 } 202 203 // No directory with Module.php, searching for phars 204 if ($pharSuffixPattern) { 235 { 236 $file = new SplFileInfo($dirPath . '/Module.php'); 237 if ($file->isReadable() && $file->isFile()) { 237 if ($file->isReadable() && $file->isFile()) { 238 // Found directory with Module.php in it 239 require_once $file->getRealPath();helpers.php https://bitbucket.org/gmmcal/laravel.git | PHP | 598 lines
1<?php 2 243{ 244 return array_map(function($v) use ($key) 245 { 287 288 return json_encode(array_map(function($m) { return $m->to_array(); }, $models)); 289} 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}Grammar.php https://gitlab.com/rocs/Streaming-Safe-for-Kids | PHP | 476 lines
1<?php 2 211 { 212 return array_map(function ($value) use ($prefix) { 213 return $prefix.' '.$value;Collection.php https://gitlab.com/koodersmiikka/operaatio-terveys | PHP | 717 lines
1<?php namespace Illuminate\Support; 2 92 { 93 array_map($callback, $this->items); 94 272 { 273 return new static(array_map($callback, $this->items, array_keys($this->items))); 274 } 538 { 539 $this->items = array_map($callback, $this->items); 540 586 { 587 return array_map(function($value) 588 {AP_ChatBox.php https://github.com/neofutur/MyBestBB.git | PHP | 246 lines
106 <td> 107 <input type="radio" name="read_chatbox" value="1"<?php if ($group['g_read_chatbox'] == '1') echo ' checked="checked"' ?> tabindex="3" /> <strong>Yes</strong> <input type="radio" name="read_chatbox" value="0"<?php if ($group['g_read_chatbox'] == '0') echo ' checked="checked"' ?> tabindex="4" /> <strong>No</strong> 108 <span>Allow users in this group to view the ChatBox.</span> 124 </tr> 125<?php endif; ?><?php endif; ?> </table> 126 </div> 163 164 redirect('admin_loader.php?plugin=AP_ChatBox.php', 'Group edited. Redirecting …'); 165 183 <div class="box"> 184 <form method="post" action="admin_loader.php?plugin=AP_ChatBox.php"> 185 <div class="inform"> 233while ($cur_group = $db->fetch_assoc($result)) 234 echo "\t\t\t\t\t\t\t\t".'<tr><th scope="row"><a href="admin_loader.php?plugin=AP_ChatBox.php&edit_group='.$cur_group['g_id'].'">Edit Setting</a></th><td>'.pun_htmlspecialchars($cur_group['g_title']).'</td></tr>'."\n"; 235class-helper.php https://gitlab.com/webkod3r/tripolis | PHP | 422 lines
1<?php 2/** 21 */ 22 return array_map("FusionHelper::OBJECT_TO_ARRAY", $object); 23 }converter.php https://gitlab.com/hunt9310/ras | PHP | 438 lines
1<?php 2/** 87 $class = explode( '-', $converter ); 88 $class = array_map( 'ucfirst', $class ); 89 $class = 'WR_Pb_Converter_' . implode( '_', $class ); 128 foreach ( $files as $file ) { 129 if ( 'converter.php' != $file['name'] ) { 130 $converter = substr( $file['name'], 0, -4 ); 133 $class = explode( '-', $converter ); 134 $class = array_map( 'ucfirst', $class ); 135 $class = 'WR_Pb_Converter_' . implode( '_', $class );Cost_Utils.php https://gitlab.com/kath.de/cibedo_cibedo.de | PHP | 481 lines
1<?php 2/** 328 if ( count( $matches ) === 4 ) { 329 $decimals = max( array_map( 'strlen', end( $matches ) ) ); 330 $max = max( $max, $decimals ); 383 384 $_merging_cost = array_map( array( $this, 'convert_decimal_separator' ), 385 (array) $merging_cost ); 385 (array) $merging_cost ); 386 $_merging_cost = array_map( array( $this, 'numerize_numbers' ), $_merging_cost ); 387 $numeric_merging_cost_costs = array_filter( $_merging_cost, 'is_numeric' ); 393 $this->_current_original_cost_separator = empty( $matches[1][0] ) ? '.' : $matches[1][0]; 394 $matches[0] = empty( $matches[0] ) ? $matches[0] : array_map( array( 395 $this, 398 $matches[0] ); 399 $numeric_orignal_costs = empty( $matches[0] ) ? $matches[0] : array_map( 'floatval', 400 $matches[0] );class-wp-theme-install-list-table.php https://gitlab.com/Gashler/dp | PHP | 394 lines
1<?php 2/** 64 case 'tag': 65 $args['tag'] = array_map( 'sanitize_key', $search_terms ); 66 break; 121 $class = ( $action == $tab ) ? ' class="current"' : ''; 122 $href = self_admin_url('theme-install.php?tab=' . $action); 123 $display_tabs['theme-install-'.$action] = "<a href='$href'$class>$text</a>"; 133 <div class="alignleft actions"> 134 <?php do_action( 'install_themes_table_header' ); ?> 135 </div> 226 ?> 227 <a class="screenshot install-theme-preview" href="<?php echo esc_url( $preview_url ); ?>" title="<?php echo esc_attr( $preview_title ); ?>"> 228 <img src='<?php echo esc_url( $theme->screenshot_url ); ?>' width='150' /> 254 <div class="wp-full-overlay-header"> 255 <a href="#" class="close-full-overlay"><?php _e( '← Close' ); ?></a> 256 </div>Util.php https://gitlab.com/hop23typhu/bryepoxy | PHP | 476 lines
1<?php 2/** 126 */ 127 public static function array_map_recursive( $callback, $array ) { 128 array_walk_recursive( $array, array( __CLASS__, 'array_map_recursive_helper' ), $callback ); 132 133 public static function array_map_recursive_helper( &$val, $key, $callback ) { 134 $val = call_user_func( $callback, $val ); 343 if ( 'dbDelta' == $opts['upgrade_method'] ) { 344 require_once ABSPATH . 'wp-admin/includes/upgrade.php'; 345 dbDelta( "CREATE TABLE $full_table_name ( $columns ) $table_options" );ticket_group_edit.php https://gitlab.com/alexprowars/bitrix | PHP | 299 lines
1<? 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/support/prolog.php"); 15 16$LIST_URL = '/bitrix/admin/ticket_group_list.php'; 17 49 { 50 $UIDS = array_map('intval', $_POST[$FMUTagName]['VALS']); 51 $UIDS = array_unique($UIDS); 101 'CAN_MAIL_UPDATE_GROUP_MESSAGES' => $ar_ug['CAN_MAIL_UPDATE_GROUP_MESSAGES'], 102 'USER_NAME' => '[<a title="'.GetMessage("MAIN_USER_PROFILE").'" href="user_edit.php?ID='.$ar_ug["USER_ID"].'&lang='.LANG.'">'.$ar_ug["USER_ID"].'</a>] ('.$ar_ug["LOGIN"].') '.$ar_ug["FIRST_NAME"].' '.$ar_ug["LAST_NAME"], 103 ); 120 121require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php"); 122ListCommand.php https://gitlab.com/techniconline/kmc | PHP | 278 lines
1<?php 2 173 foreach ($result as $label => $items) { 174 $names = array_map(array($this, 'formatItemName'), $items); 175 $output->writeln(sprintf('<strong>%s</strong>: %s', $label, implode(', ', $names)));Matrix.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 374 lines
1<?php 2 4 5namespace Phpml\Math; 6 6 7use Phpml\Math\LinearAlgebra\LUDecomposition; 8use Phpml\Exception\InvalidArgumentException; 8use Phpml\Exception\InvalidArgumentException; 9use Phpml\Exception\MatrixException; 10 159 if ($this->rows == 1) { 160 $matrix = array_map(function ($el) { 161 return [$el]; 163 } else { 164 $matrix = array_map(null, ...$this->matrix); 165 }class-wc-order-item-shipping.php https://gitlab.com/campus-academy/krowkaramel | PHP | 319 lines
1<?php 2/** 138 if ( isset( $raw_tax_data['total'] ) ) { 139 $tax_data['total'] = array_map( 'wc_format_decimal', $raw_tax_data['total'] ); 140 } elseif ( ! empty( $raw_tax_data ) && is_array( $raw_tax_data ) ) { 141 // Older versions just used an array. 142 $tax_data['total'] = array_map( 'wc_format_decimal', $raw_tax_data ); 143 } 148 } else { 149 $this->set_total_tax( array_sum( array_map( 'wc_round_tax_total', $tax_data['total'] ) ) ); 150 }template.php https://bitbucket.org/frazras/higgler.git | PHP | 384 lines
1<?php 2 74 if (!empty($vars['elements']['#data']['wrapper_css'])) { 75 foreach (array_map('drupal_html_class', explode(' ', $vars['elements']['#data']['wrapper_css'])) as $class) { 76 $vars['attributes_array']['class'][] = $class; 84 if (!empty($vars['elements']['#data']['css'])) { 85 foreach (array_map('drupal_html_class', explode(' ', $vars['elements']['#data']['css'])) as $class) { 86 $vars['content_attributes_array']['class'][] = $class;update.php https://bitbucket.org/sephora99/kmirock.git | PHP | 420 lines
27 include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version 28 $php_version = phpversion(); 29 61 'version' => $wp_version, 62 'php' => $php_version, 63 'locale' => $locale, 96 if ( 'packages' == $offer_key ) 97 $offer['packages'] = (object) array_intersect_key( array_map( 'esc_url', $offer['packages'] ), 98 array_fill_keys( array( 'full', 'no_content', 'new_bundled', 'partial' ), '' ) ); 146 // Check for updated every 60 minutes if hitting update pages; else, check every 12 hours. 147 $timeout = in_array( current_filter(), array( 'load-plugins.php', 'load-update.php', 'load-update-core.php' ) ) ? 3600 : 43200; 148 $time_not_changed = isset( $current->last_checked ) && $timeout > ( time() - $current->last_checked ); 225 // Check for updated every 60 minutes if hitting update pages; else, check every 12 hours. 226 $timeout = in_array( current_filter(), array( 'load-themes.php', 'load-update.php', 'load-update-core.php' ) ) ? 3600 : 43200; 227 $time_not_changed = isset( $last_update->last_checked ) && $timeout > ( time( ) - $last_update->last_checked );inputfilter.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 551 lines
1<?php 2/** 2/** 3 * @class: InputFilter (PHP4 & PHP5, with comments) 4 * @project: PHP Input Filter 5 * @date: 10-05-2005 6 * @version: 1.2.2_php4/php5 7 * @author: Daniel Morris 44 */ 45 $tagsArray = array_map('strtolower', (array) $tagsArray); 46 $attrArray = array_map('strtolower', (array) $attrArray); 58 /** 59 * Method to be called by another php script. Processes for XSS and 60 * specified bad code. 462 /** 463 * Method to be called by another php script. Processes for SQL injection 464 *Writer.php https://gitlab.com/billyprice1/app-download.org | PHP | 317 lines
1<?php 2 17 { 18 $this->_fd = fopen('php://memory', 'wb'); 19 } 87 } else if (function_exists('gmp_init')) { 88 $value = PHP_INT_SIZE < 8 89 ? gmp_and($value, '0x0ffffffffffffffff') 92 $values = $this->varint_gmp($value); 93 } else if (PHP_INT_SIZE < 8) { 94 throw new \OutOfBoundsException( 94 throw new \OutOfBoundsException( 95 "PHP versions compiled with 32bit integers can only support negative integer encoding with GMP extension ($value was given)" 96 ); 100 } else { 101 throw new \OutOfBoundsException("Varints of negative integers are only supported with GMP or BC big integers PHP extensions ($value was given)"); 102 }SpecificPriceRule.php https://gitlab.com/staging06/myproject | PHP | 315 lines
1<?php 2/* 9* It is also available through the world-wide-web at this URL: 10* http://opensource.org/licenses/osl-3.0.php 11* If you did not receive a copy of the license and are unable to 22* @copyright 2007-2015 PrestaShop SA 23* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 24* International Registered Trademark & Property of PrestaShop SA 149 if ($products && count($products)) { 150 $where .= ' AND id_product IN ('.implode(', ', array_map('intval', $products)).')'; 151 } 258 if ($products && count($products)) { 259 $query->where('p.`id_product` IN ('.implode(', ', array_map('intval', $products)).')'); 260 } 277 ->where('ps.id_shop = '.(int)$current_shop_id); 278 $query->where('p.`id_product` IN ('.implode(', ', array_map('intval', $products)).')'); 279 $result = Db::getInstance()->executeS($query);Oracle.php https://bitbucket.org/openfisma-ondemand/openfisma.git | PHP | 255 lines
1<?php 2/* 2/* 3 * $Id: Oracle.php 6151 2009-07-21 21:50:23Z jwage $ 4 * 18 * and is licensed under the LGPL. For more information, see 19 * <http://www.phpdoctrine.org>. 20 */ 24 * @subpackage Import 25 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 26 * @author Konsta Vesterinen <kvesteri@cc.hut.fi> 27 * @version $Revision: 6151 $ 28 * @link www.phpdoctrine.org 29 * @since 1.0 87 88 return array_map(array($this->conn->formatter, 'fixSequenceName'), $tableNames); 89 }Dispatcher.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 409 lines
1<?php 2 130 if ($constructor = $reflection->getConstructor()) { 131 $injected = array_map(function ($parameter) use ($command, $source, $extras) { 132 return $this->getParameterValueForCommand($command, $source, $parameter, $extras);PHPLocTask.php https://gitlab.com/Isaki/le331.fr | PHP | 422 lines
24/** 25 * Runs phploc a tool for quickly measuring the size of PHP projects. 26 * 184 if (!class_exists('\SebastianBergmann\PHPLOC\Analyser')) { 185 if (!@include_once 'SebastianBergmann/PHPLOC/autoload.php') { 186 if (!@include_once 'PHPLOC/Analyser.php') { 361 if ($this->oldVersion) { 362 require_once 'PHPLOC/TextUI/ResultPrinter/XML.php'; 363 374 if ($this->oldVersion) { 375 require_once 'PHPLOC/TextUI/ResultPrinter/CSV.php'; 376 416 { 417 $analyserClass = ($this->oldVersion ? 'PHPLOC_Analyser' : '\\SebastianBergmann\\PHPLOC\\Analyser'); 418 $analyser = new $analyserClass();author.php https://bitbucket.org/moodle/moodle.git | PHP | 222 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 33 34require_once($CFG->dirroot . '/mod/forum/lib.php'); 35 164 } else { 165 $groups = array_map(function($group) use ($urlfactory, $context, $output) { 166 $groupurl = null;sites.php https://gitlab.com/Blueprint-Marketing/cli | PHP | 380 lines
1<?php 2 54 55 $rows = array_map(function($cached_site) { 56 return array( 61 'created' => date('Y-m-d H:i:s', $cached_site['created']), 62 'memberships' => array_map(function($membership) { 63 return $membership['name']; 248 * : Specify the the full path, including the filename, to the alias file you wish to create. 249 * Without this option a default of '~/.drush/pantheon.drushrc.php' will be used. 250 * 255 $json = \Terminus::get_config('json'); 256 $location = Input::optional('location', $assoc_args, getenv("HOME").'/.drush/pantheon.aliases.drushrc.php'); 257 259 if (is_dir($location)) { 260 \Terminus::error("Please provide a full path with filename, e.g. %s/pantheon.aliases.drushrc.php", $location); 261 exit(1);design-loop-style01.php https://gitlab.com/ezgonzalez/integral | PHP | 384 lines
1<?php 2function WooComposer_Loop_style01($atts,$element){ 134 $ids = explode( ',', $ids ); 135 $ids = array_map( 'trim', $ids ); 136 }design-loop-style02.php https://gitlab.com/ezgonzalez/integral | PHP | 396 lines
1<?php 2function WooComposer_Loop_style02($atts,$element){ 145 $ids = explode( ',', $ids ); 146 $ids = array_map( 'trim', $ids ); 147 }DeleteComment.php https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests | PHP | 355 lines
1<?php 2 5 */ 6require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' ); 7 30 $this->_comments = $this->factory->comment->create_post_comments( $post_id, 15 ); 31 $this->_comments = array_map( 'get_comment', $this->_comments ); 32 } 71 $_POST['_page'] = 1; 72 $_POST['_url'] = admin_url( 'edit-comments.php' ); 73 128 $_POST['_page'] = 1; 129 $_POST['_url'] = admin_url( 'edit-comments.php' ); 130 158 $_POST['_page'] = 1; 159 $_POST['_url'] = admin_url( 'edit-comments.php' ); 160WebInstallerOptions.php https://gitlab.com/link233/bootmw | PHP | 460 lines
1<?php 2/** 109 110 $skinNames = array_map( 'strtolower', $skins ); 111 $chosenSkinName = $this->getVar( 'wgDefaultSkin', $this->parent->getDefaultSkin( $skinNames ) ); 351 if ( $skins ) { 352 $skinNames = array_map( 'strtolower', $skins ); 353 $this->parent->setVar( 'wgDefaultSkin', $this->parent->getDefaultSkin( $skinNames ) ); 415 $defaultSkin = $this->getVar( 'wgDefaultSkin' ); 416 $skinsToInstallLowercase = array_map( 'strtolower', $skinsToInstall ); 417 if ( $skinsToInstall && array_search( $defaultSkin, $skinsToInstallLowercase ) === false ) {DefaultTableMapping.php https://gitlab.com/guillaumev/alkarama | PHP | 396 lines
1<?php 2 299 $definitions = array_filter($this->fieldStorageDefinitions, function($definition) use ($table_mapping) { return $table_mapping->requiresDedicatedTableStorage($definition); }); 300 $data_tables = array_map(function($definition) use ($table_mapping) { return $table_mapping->getDedicatedDataTableName($definition); }, $definitions); 301 $revision_tables = array_map(function($definition) use ($table_mapping) { return $table_mapping->getDedicatedRevisionTableName($definition); }, $definitions);fetch.php https://bitbucket.org/moodle/moodle.git | PHP | 314 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 44use stdClass; 45require_once($CFG->dirroot.'/grade/grading/form/guide/lib.php'); 46 103 global $CFG, $USER; 104 require_once("{$CFG->libdir}/gradelib.php"); 105 [ 174 if ($definition->guide_criteria) { 175 $criterion = array_map(function($criterion) use ($definitionid, $fillings, $context) { 176 $result = [ 216 if ($definition->guide_comments) { 217 $comments = array_map(function($comment) use ($definitionid, $context) { 218 return [edit-comments.php https://gitlab.com/WPonEB/WPonEB | PHP | 334 lines
1<?php 2/** 9/** WordPress Administration Bootstrap */ 10require_once( dirname( __FILE__ ) . '/admin.php' ); 11if ( ! current_user_can( 'edit_posts' ) ) { 35 } elseif ( isset( $_REQUEST['ids'] ) ) { 36 $comment_ids = array_map( 'absint', explode( ',', $_REQUEST['ids'] ) ); 37 } elseif ( wp_get_referer() ) { 196 197require_once( ABSPATH . 'wp-admin/admin-header.php' ); 198?> 200<div class="wrap"> 201<h1 class="wp-heading-inline"><?php 202if ( $post_id ) { 214 215<?php 216if ( isset($_REQUEST['s']) && strlen( $_REQUEST['s'] ) ) {DB_forge.php https://gitlab.com/Riky_Lesmana/SugarSweetCakes | PHP | 438 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.2.4 or newer 6 * 108 { 109 $key = array_search(strtolower($db_name), array_map('strtolower', $this->db->data_cache['db_names']), TRUE); 110 if ($key !== FALSE) 263 { 264 $key = array_search(strtolower($this->db->dbprefix.$table_name), array_map('strtolower', $this->db->data_cache['table_names']), TRUE); 265 if ($key !== FALSE) 301 { 302 $key = array_search(strtolower($this->db->dbprefix.$table_name), array_map('strtolower', $this->db->data_cache['table_names']), TRUE); 303 if ($key !== FALSE) 436 437/* End of file DB_forge.php */ 438/* Location: ./system/database/DB_forge.php */SpecificPriceRule.php https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | PHP | 315 lines
1<?php 2/* 9* It is also available through the world-wide-web at this URL: 10* http://opensource.org/licenses/osl-3.0.php 11* If you did not receive a copy of the license and are unable to 22* @copyright 2007-2016 PrestaShop SA 23* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 24* International Registered Trademark & Property of PrestaShop SA 149 if ($products && count($products)) { 150 $where .= ' AND id_product IN ('.implode(', ', array_map('intval', $products)).')'; 151 } 258 if ($products && count($products)) { 259 $query->where('p.`id_product` IN ('.implode(', ', array_map('intval', $products)).')'); 260 } 277 ->where('ps.id_shop = '.(int)$current_shop_id); 278 $query->where('p.`id_product` IN ('.implode(', ', array_map('intval', $products)).')'); 279 $result = Db::getInstance()->executeS($query);IncludeResolver.php https://gitlab.com/mohamed_hussein/prodt | PHP | 258 lines
1<?php 2 23 * 24 * @internal JSON:API maintains no PHP API since its API is the HTTP API. This 25 * class may change at any time and this will break any dependencies on it. 27 * @see https://www.drupal.org/project/drupal/issues/3032787 28 * @see jsonapi.api.php 29 */ 149 $targeted_entities = $entity_storage->loadMultiple(array_unique($ids)); 150 $access_checked_entities = array_map(function (EntityInterface $entity) { 151 return $this->entityAccessChecker->getAccessCheckedResourceObject($entity); 175 // $include_parameter: 'one.two.three, one.two.four'. 176 $include_paths = array_map('trim', explode(',', $include_parameter)); 177 // $exploded_paths: [['one', 'two', 'three'], ['one', 'two', 'four']]. 177 // $exploded_paths: [['one', 'two', 'three'], ['one', 'two', 'four']]. 178 $exploded_paths = array_map(function ($include_path) { 179 return array_map('trim', explode('.', $include_path));Builder.php https://gitlab.com/jjpa2018/dashboard | PHP | 433 lines
1<?php 2 148 return in_array( 149 strtolower($column), array_map('strtolower', $this->getColumnListing($table)) 150 ); 161 { 162 $tableColumns = array_map('strtolower', $this->getColumnListing($table)); 163admin_snippets_edit.php https://github.com/Sweil/Frogsystem-2.git | PHP | 326 lines
1<?php if (!defined('ACP_GO')) die('Unauthorized access!'); 2 47 // Security-Functions 48 $_POST['snippet_id'] = array_map ( 'intval', explode ( ',', $_POST['snippet_id'] ) ); 49 73 // Security Function 74 $_POST['snippet_id'] = array_map ( 'intval', $_POST['snippet_id'] ); 75YamlFileLoader.php https://bitbucket.org/cryofrost/portal.git | PHP | 339 lines
1<?php 2 270 if (!$this->container->hasExtension($namespace)) { 271 $extensionNamespaces = array_filter(array_map(function ($ext) { return $ext->getAlias(); }, $this->container->getExtensions())); 272 throw new \InvalidArgumentException(sprintf( 294 if (is_array($value)) { 295 $value = array_map(array($this, 'resolveServices'), $value); 296 } elseif (is_string($value) && 0 === strpos($value, '@')) {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'; 22YamlFileLoader.php https://gitlab.com/fbi/web | PHP | 325 lines
1<?php 2 258 if (!$this->container->hasExtension($namespace)) { 259 $extensionNamespaces = array_filter(array_map(function ($ext) { return $ext->getAlias(); }, $this->container->getExtensions())); 260 throw new \InvalidArgumentException(sprintf( 281 if (is_array($value)) { 282 $value = array_map(array($this, 'resolveServices'), $value); 283 } else if (is_string($value) && 0 === strpos($value, '@')) {design-loop-style04.php https://gitlab.com/ezgonzalez/integral | PHP | 365 lines
1<?php 2function WooComposer_Loop_style04($atts,$element){ 134 $ids = explode( ',', $ids ); 135 $ids = array_map( 'trim', $ids ); 136 }foreign.inc.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 78 lines
14 . ($_GET["name"] != "" ? "\nDROP " . ($jush == "sql" ? "FOREIGN KEY " : "CONSTRAINT ") . idf_escape($_GET["name"]) . "," : "") 15 . "\nADD FOREIGN KEY (" . implode(", ", array_map('idf_escape', $source)) . ") REFERENCES " . table($_POST["table"]) . " (" . implode(", ", array_map('idf_escape', $target)) . ")" //! reuse $_GET["name"] - check in older MySQL versions 16 . (ereg("^($on_actions)\$", $_POST["on_delete"]) ? " ON DELETE $_POST[on_delete]" : "") 55<input type="hidden" name="change-js" value=""> 56<noscript><p><input type="submit" name="change" value="<?php echo lang('Change'); ?>"></noscript> 57<table cellspacing="0"> 57<table cellspacing="0"> 58<thead><tr><th><?php echo lang('Source'); ?><th><?php echo lang('Target'); ?></thead> 59<?php 70<?php echo lang('ON DELETE'); ?>: <?php echo html_select("on_delete", array(-1 => "") + explode("|", $on_actions), $row["on_delete"]); ?> 71 <?php echo lang('ON UPDATE'); ?>: <?php echo html_select("on_update", array(-1 => "") + explode("|", $on_actions), $row["on_update"]); ?> 72<p> 75<?php } ?> 76<?php if ($_GET["name"] != "") { ?><input type="submit" name="drop" value="<?php echo lang('Drop'); ?>"<?php echo confirm(); ?>><?php } ?> 77<input type="hidden" name="token" value="<?php echo $token; ?>">ProcessBuilder.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 287 lines
1<?php 2 269 $arguments = array_merge($this->prefix, $this->arguments); 270 $script = implode(' ', array_map(array(__NAMESPACE__.'\\ProcessUtils', 'escapeArgument'), $arguments)); 271Element.php https://bitbucket.org/acidel/buykoala.git | PHP | 437 lines
1<?php 2 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Element.php 20104 2010-01-06 21:26:01Z matthew $ 21 */ 195 } elseif ($length > 1) { 196 return array_map(create_function('$e', 'return new Zend_Feed_Element($e);'), $nodes); 197 } else { 244 */ 245 #require_once 'Zend/Feed/Exception.php'; 246 throw new Zend_Feed_Exception('Cannot set the value of multiple tags simultaneously.');Parser.php https://bitbucket.org/moodle/moodle.git | PHP | 317 lines
1<?php 2 3/* 4 * This file is part of Mustache.php. 5 * 291 { 292 $filters = array_map('trim', explode('|', $name)); 293 $name = array_shift($filters);mysql.php https://bitbucket.org/gmmcal/laravel.git | PHP | 421 lines
1<?php namespace Laravel\Database\Schema\Grammars; 2 52 // using commas like normal and generate the SQL. 53 $columns = implode(', ', array_map(function($column) 54 { 235 { 236 $columns = array_map(array($this, 'wrap'), $command->columns); 237 240 // generate the alter statement SQL. 241 $columns = implode(', ', array_map(function($column) 242 {CompletionTrait.php https://github.com/composer/composer.git | PHP | 209 lines
1<?php declare(strict_types=1); 2 84 // to reduce noise, when no text is yet entered we list only two entries for ext- and lib- prefixes 85 $hintsToFind = ['ext-' => 0, 'lib-' => 0, 'php' => 99, 'composer' => 99]; 86 foreach ($platformRepo->getPackages() as $pkg) { 107 return array_merge( 108 array_map(static function (PackageInterface $package) { 109 return $package->getName(); 144 if ($showVendors) { 145 $results = array_map(static function (string $name): string { 146 return $name.'/'; 177 * Suggest package names available on all configured repositories or 178 * platform packages from the ones available on the currently-running PHP 179 */ 182 return function (CompletionInput $input): array { 183 if (Preg::isMatch('{^(ext|lib|php)(-|$)|^com}', $input->getCompletionValue())) { 184 $matches = $this->suggestPlatformPackage()($input);Util.php https://gitlab.com/vincent.perdereau/picandparts | PHP | 332 lines
1<?php 2/** 3 * Braintree Utility methods 4 * PHP version 5 5 * 34 // create an object from the data in each element 35 $objectArray = array_map($classFactory, $data); 36 else: 164 { 165 // php doesn't garbage collect functions created by create_function() 166 // so use a static variable to avoid adding a new function to memory 197 { 198 // php doesn't garbage collect functions created by create_function() 199 // so use a static variable to avoid adding a new function to memoryclass-wp-themes-list-table.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 240 lines
70 if ( current_user_can( 'install_themes' ) && current_user_can( 'manage_network_themes' ) ) { 71 printf( __( 'You only have one theme enabled for this site right now. Visit the Network Admin to <a href="%1$s">enable</a> or <a href="%2$s">install</a> more themes.' ), network_admin_url( 'site-themes.php?id=' . $GLOBALS['blog_id'] ), network_admin_url( 'theme-install.php' ) ); 72 99 </div> 100 <?php 101 } 175?> 176 <a href="<?php echo $preview_link; ?>" class="<?php echo $thickbox_class; ?> screenshot"> 177<?php if ( $screenshot ) : ?> 192<?php if ( $tags ) : ?> 193<p><?php _e( 'Tags:' ); ?> <?php echo join( ', ', $tags ); ?></p> 194<?php endif; ?> 211 // In a tag? 212 if ( in_array( $word, array_map( 'sanitize_title_with_dashes', $theme['Tags'] ) ) ) 213 $matched = 1;lmbSelectRawQuery.class.php https://github.com/idler/limb.git | PHP | 396 lines
1<?php 2/* 2/* 3 * Limb PHP Framework 4 * 8 */ 9lmb_require('limb/dbal/src/query/lmbCriteriaQuery.class.php'); 10 16 * @package dbal 17 * @version $Id: lmbSelectRawQuery.class.php 6005 2007-06-19 21:14:49Z pachanga $ 18 */ 280 281 $group = implode(',', array_map(array($this->_conn, 'quoteIdentifier'), $this->_group_by)); 282Parser.php https://gitlab.com/ealexis.t/trends | PHP | 401 lines
1<?php 2 72 73 $joined = trim(implode('', array_map(function (Token $token) { 74 return $token->getValue();admin-actions.php https://gitlab.com/mostafame/team_website | PHP | 267 lines
1<?php 2 34 35 $request = array_map('stripslashes_deep', $_REQUEST); 36 92 93 $url = add_query_arg( $query, SITEORIGIN_PANELS_LAYOUT_URL . '/wp-admin/admin-ajax.php?action=query_layouts'); 94 $response = wp_remote_get( $url ); 262 263 include plugin_dir_path( __FILE__ ) . '../tpl/live-editor-preview.php'; 264strptime.js https://gitlab.com/rickoverman/doo-cli | JavaScript | 365 lines
5 // depends on: setlocale 6 // depends on: array_map 7 // test: skip 12 13 // tm_isdst is in other docs; why not PHP? 14 69 70 /* Fix: Locale alternatives are supported though not documented in PHP; see http://linux.die.net/man/3/strptime 71Ec 94 // BEGIN REDUNDANT 95 this.php_js = this.php_js || {}; 96 this.setlocale('LC_ALL', 0); // ensure setup of localization variables takes place 98 99 var phpjs = this.php_js; 100 var locale = phpjs.localeCategories.LC_TIME;class-wp-theme-install-list-table.php https://gitlab.com/webkod3r/tripolis | PHP | 472 lines
1<?php 2/** 70 71 /** This filter is documented in wp-admin/theme-install.php */ 72 $tabs = apply_filters( 'install_themes_tabs', $tabs ); 94 case 'tag': 95 $args['tag'] = array_map( 'sanitize_key', $search_terms ); 96 break; 174 $class = ( $action === $tab ) ? ' class="current"' : ''; 175 $href = self_admin_url('theme-install.php?tab=' . $action); 176 $display_tabs['theme-install-'.$action] = "<a href='$href'$class>$text</a>"; 303 ?> 304 <a class="screenshot install-theme-preview" href="<?php echo esc_url( $preview_url ); ?>" title="<?php echo esc_attr( $preview_title ); ?>"> 305 <img src="<?php echo esc_url( $theme->screenshot_url ); ?>" width="150" alt="" /> 315 <?php endforeach; ?> 316 <li class="hide-if-no-js"><a href="#" class="theme-detail"><?php _e('Details') ?></a></li> 317 </ul>Migrator.php https://gitlab.com/oytunistrator/92five | PHP | 383 lines
1<?php namespace Illuminate\Database\Migrations; 2 218 { 219 $files = $this->files->glob($path.'/*_*.php'); 220 225 226 $files = array_map(function($file) 227 { 227 { 228 return str_replace('.php', '', basename($file)); 229 247 { 248 foreach ($files as $file) $this->files->requireOnce($path.'/'.$file.'.php'); 249 }functions.php https://gitlab.com/4gdevs/online-class-record-system | PHP | 207 lines
1<?php 2 39 'PsySH version' => Shell::VERSION, 40 'PHP version' => PHP_VERSION, 41 'default includes' => $config->getDefaultIncludes(), 118 'tab completion enabled' => $config->getTabCompletion(), 119 'custom matchers' => array_map('get_class', $config->getTabCompletionMatchers()), 120 ); 162 if ($usageException !== null) { 163 echo $usageException->getMessage() . PHP_EOL . PHP_EOL; 164 } 185 if ($input->getOption('version')) { 186 echo $shell->getVersion() . PHP_EOL; 187 exit(0); 196 } catch (Exception $e) { 197 echo $e->getMessage() . PHP_EOL; 198YamlFileLoader.php https://gitlab.com/Snizer/PI-DEV-TUNISIAMALL3A6-WEB | PHP | 392 lines
1<?php 2 318 if (!$this->container->hasExtension($namespace)) { 319 $extensionNamespaces = array_filter(array_map(function ($ext) { return $ext->getAlias(); }, $this->container->getExtensions())); 320 throw new InvalidArgumentException(sprintf( 342 if (is_array($value)) { 343 $value = array_map(array($this, 'resolveServices'), $value); 344 } elseif (is_string($value) && 0 === strpos($value, '@=')) {ext_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 +----------------------------------------------------------------------+class-wc-shipping-zone.php https://gitlab.com/0072016/woocommerce | PHP | 438 lines
1<?php 2 197 // Fix display of encoded characters. 198 $location_parts = array_map( 'html_entity_decode', $location_parts ); 199SimpleHeaderSet.php https://gitlab.com/madwanz64/laravel | PHP | 399 lines
1<?php 2 271 { 272 $this->order = array_flip(array_map('strtolower', $sequence)); 273 } 281 { 282 $this->required = array_flip(array_map('strtolower', $names)); 283 }HandlerFilterPermissionTest.php https://gitlab.com/mohamed_hussein/prodt | PHP | 115 lines
1<?php 2 106 foreach (['system' => 'System', 'user' => 'User'] as $module => $title) { 107 $expected = array_map(function ($permission) { 108 return Html::escape(strip_tags($permission['title']));class-wcs-related-order-store-cpt.php https://gitlab.com/remyvianne/krowkaramel | PHP | 261 lines
1<?php 2if ( ! defined( 'ABSPATH' ) ) { 99 $related_subscription_ids = wp_list_pluck( $related_subscription_ids, 'value' ); 100 $related_subscription_ids = array_map( 'absint', $related_subscription_ids ); 101 $related_subscription_ids = array_values( $related_subscription_ids );favicon.php https://github.com/RomanSixty/Feed-on-Feeds.git | PHP | 337 lines
1<?php 2/** Locate a suitable favicon for a site. 114 $relations = explode(' ', $link->getAttribute('rel')); 115 if (in_array('icon', array_map('strtolower', $relations))) { 116 $href = $link->getAttribute('href'); 231 /* allow common extensions */ 232 $ext = pathinfo(parse_url($url, PHP_URL_PATH), PATHINFO_EXTENSION); 233 switch ($ext) {FilterFormatFormBase.php https://gitlab.com/mohamed_hussein/prodt | PHP | 235 lines
1<?php 2 47 '#title' => $this->t('Roles'), 48 '#options' => array_map('\Drupal\Component\Utility\Html::escape', user_role_names()), 49 '#disabled' => $is_fallback,repository.php https://gitlab.com/campus-academy/krowkaramel | PHP | 303 lines
1<?php 2namespace Elementor\Core\App\Modules\KitLibrary\Data; 101 ->reduce( function ( Collection $carry, $taxonomies, $type ) { 102 return $carry->merge( array_map( function ( $taxonomy ) use ( $type ) { 103 return [ 260 ->reduce( function ( $carry, $content, $type ) { 261 $mapped_documents = array_map( function ( $document ) use ( $type ) { 262 // TODO: Fix it!FakerTrackerCommand.php https://gitlab.com/ElvisAns/tiki | PHP | 262 lines
1<?php 2 100 foreach ($fieldOverrideDefinition as $fieldDefinition) { 101 $arguments = array_map('trim', explode(',', $fieldDefinition)); 102 $fieldReference = array_shift($arguments);Element.php https://gitlab.com/devtoannh/cafe | PHP | 437 lines
1<?php 2 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Element.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 195 } elseif ($length > 1) { 196 return array_map(create_function('$e', 'return new Zend_Feed_Element($e);'), $nodes); 197 } else { 244 */ 245 require_once 'Zend/Feed/Exception.php'; 246 throw new Zend_Feed_Exception('Cannot set the value of multiple tags simultaneously.');EsmtpTransport.php https://gitlab.com/3dplex/3d-plex-main-site | PHP | 483 lines
1<?php 2 319 if (in_array(strtolower($method), 320 array_map('strtolower', (array) $handler->exposeMixinMethods()) 321<<<<<<< HEADedit.php https://gitlab.com/gregtyka/WordPress-stable | PHP | 290 lines
9/** WordPress Administration Bootstrap */ 10require_once( './admin.php' ); 11 37 $parent_file = "edit.php?post_type=$post_type"; 38 $submenu_file = "edit.php?post_type=$post_type"; 39 $post_new_file = "post-new.php?post_type=$post_type"; 223<?php screen_icon(); ?> 224<h2><?php echo esc_html( $post_type_object->labels->name ); ?> <a href="<?php echo $post_new_file ?>" class="add-new-h2"><?php echo esc_html($post_type_object->labels->add_new); ?></a> <?php 225if ( ! empty( $_REQUEST['s'] ) ) 228 229<?php if ( isset( $_REQUEST['locked'] ) || isset( $_REQUEST['updated'] ) || isset( $_REQUEST['deleted'] ) || isset( $_REQUEST['trashed'] ) || isset( $_REQUEST['untrashed'] ) ) { 230 $messages = array(); 289<?php 290include('./admin-footer.php'); 291class-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 } 131 public function save_tax_classes( $raw_tax_classes ) { 132 $tax_classes = array_filter( array_map( 'trim', explode( "\n", $raw_tax_classes ) ) ); 133 $existing_tax_classes = WC_Tax::get_tax_classes();FilterFormTest.php https://gitlab.com/mohamed_hussein/prodt | PHP | 257 lines
1<?php 2 199 $found_options = $select->findAll('css', 'option'); 200 $found_options = array_map(function ($item) { 201 return $item->getValue();menu_group.php https://gitlab.com/vanthanhhoh/devlovebook | PHP | 150 lines
1<?php 2 8 public function Main() { 9 require(CONTROLLER_PATH . Boot::$ControllerGroup . 'menu_group' . DIRECTORY_SEPARATOR . 'menu_group_ListRows.php'); 10 } 39 echo '<input type="hidden" name="NodeID" value="' . $NodeID . '"/>'; 40 include Form::$CompiledPath . 'Controller_menu_group_InsertNode.php'; 41 echo '<div class="clearfix"></div><div class="clearfix" style="text-align:center;margin:10px 0 15px 0"><input type="submit" class="btn btn-primary" value="Save"/></div>'; 50 $ids = array_filter(explode(',', $ids)); 51 $ids = array_map('intval', $ids); 52arr.php https://github.com/azhai2012/calf.git | PHP | 585 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 351 /** 352 * Recursive version of [array_map](http://php.net/array_map), applies the 353 * same callback to all elements in an array, including sub-arrays. 357 * 358 * [!!] Unlike `array_map`, this method requires a callback and will only map 359 * a single array. 394 * Merges one or more arrays recursively and preserves all keys. 395 * Note that this does not work the same as [array_merge_recursive](http://php.net/array_merge_recursive)! 396 *index.php https://github.com/sinantalebi/esoTalk.git | PHP | 250 lines
96<li><label>Forum title</label> <input id='forumTitle' name='forumTitle' tabindex='1' type='text' class='text' value='<?php echo @$_POST["forumTitle"]; ?>'/> 97<?php if (isset($install->errors["forumTitle"])): ?><div class='warning msg'><?php echo $install->errors["forumTitle"]; ?></div><?php endif; ?></li> 98 127<li><label>Administrator email</label> <input id='adminEmail' name='adminEmail' tabindex='8' type='text' class='text' value='<?php echo @$_POST["adminEmail"]; ?>'/> 128<?php if (isset($install->errors["adminEmail"])): ?><span class='warning msg'><?php echo $install->errors["adminEmail"]; ?></span><?php endif; ?></li> 129 130<li><label>Administrator password</label> <input id='adminPass' name='adminPass' tabindex='9' type='password' class='text' value='<?php echo @$_POST["adminPass"]; ?>'/> 131<?php if (isset($install->errors["adminPass"])): ?><span class='warning msg'><?php echo $install->errors["adminPass"]; ?></span><?php endif; ?></li> 132 133<li><label>Confirm password</label> <input id='adminConfirm' name='adminConfirm' tabindex='10' type='password' class='text' value='<?php echo @$_POST["adminConfirm"]; ?>'/> 134<?php if (isset($install->errors["adminConfirm"])): ?><span class='warning msg'><?php echo $install->errors["adminConfirm"]; ?></span><?php endif; ?></li> 135</ul> 151 152<?php if (isset($install->errors["tablePrefix"])): ?><p class='warning msg'><?php echo $install->errors["tablePrefix"]; ?></p><?php endif; ?> 153parser_footnote.test.php https://gitlab.com/michield/dokuwiki | PHP | 388 lines
1<?php 2require_once 'parser.inc.php'; 25 ); 26 $this->assertEquals(array_map('stripbyteindex',$this->H->calls),$calls); 27 } 37 ); 38 $this->assertEquals(array_map('stripbyteindex',$this->H->calls),$calls); 39 } 56 ); 57 $this->assertEquals(array_map('stripbyteindex',$this->H->calls),$calls); 58 } 74 ); 75 $this->assertEquals(array_map('stripbyteindex',$this->H->calls),$calls); 76 } 93 ); 94 $this->assertEquals(array_map('stripbyteindex',$this->H->calls),$calls); 95 }edit.php https://gitlab.com/Blueprint-Marketing/WordPress-1 | PHP | 324 lines
1<?php 2/** 9/** WordPress Administration Bootstrap */ 10require_once( dirname( __FILE__ ) . '/admin.php' ); 11 29 if ( ! empty( $_REQUEST[ $_redirect ] ) ) { 30 wp_redirect( admin_url( 'edit-comments.php?p=' . absint( $_REQUEST[ $_redirect ] ) ) ); 31 exit; 36if ( 'post' != $post_type ) { 37 $parent_file = "edit.php?post_type=$post_type"; 38 $submenu_file = "edit.php?post_type=$post_type"; 38 $submenu_file = "edit.php?post_type=$post_type"; 39 $post_new_file = "post-new.php?post_type=$post_type"; 40} else { 40} else { 41 $parent_file = 'edit.php'; 42 $submenu_file = 'edit.php';PerformanceForm.php https://gitlab.com/reasonat/test8 | PHP | 193 lines
1<?php 2 123 $period = array(0, 60, 180, 300, 600, 900, 1800, 2700, 3600, 10800, 21600, 32400, 43200, 86400); 124 $period = array_map(array($this->dateFormatter, 'formatInterval'), array_combine($period, $period)); 125 $period[0] = '<' . t('no caching') . '>';ProcessBuilder.php https://gitlab.com/techniconline/kmc | PHP | 285 lines
1<?php 2 267 $arguments = array_merge($this->prefix, $this->arguments); 268 $script = implode(' ', array_map(array(__NAMESPACE__ . '\\ProcessUtils', 'escapeArgument'), $arguments)); 269social-media-icons.php https://gitlab.com/Gashler/sg | PHP | 207 lines
129 <label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php _e( 'Title:', 'jetpack' ); ?></label> 130 <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['title'] ); ?>" /> 131 </p> 141 <label for="<?php echo esc_attr( $this->get_field_id( 'instagram_username' ) ); ?>"><?php _e( 'Instagram username:', 'jetpack' ); ?></label> 142 <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'instagram_username' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'instagram_username' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['instagram_username'] ); ?>" /> 143 </p> 145 <label for="<?php echo esc_attr( $this->get_field_id( 'pinterest_username' ) ); ?>"><?php _e( 'Pinterest username:', 'jetpack' ); ?></label> 146 <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'pinterest_username' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'pinterest_username' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['pinterest_username'] ); ?>" /> 147 </p> 153 <label for="<?php echo esc_attr( $this->get_field_id( 'github_username' ) ); ?>"><?php _e( 'GitHub username:', 'jetpack' ); ?></label> 154 <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'github_username' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'github_username' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['github_username'] ); ?>" /> 155 </p> 161 <label for="<?php echo esc_attr( $this->get_field_id( 'vimeo_username' ) ); ?>"><?php _e( 'Vimeo username:', 'jetpack' ); ?></label> 162 <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'vimeo_username' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'vimeo_username' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['vimeo_username'] ); ?>" /> 163 </p>Mysql.php https://gitlab.com/vince.omega/mcb-nov-build | PHP | 499 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2/** 4 * 5 * $Id: Mysql.php 4344 2009-05-11 16:41:39Z zombor $ 6 * 9 * @copyright (c) 2007-2008 Kohana Team 10 * @license http://kohanaphp.com/license.html 11 */ 120 // Runs escape_table on both sides of an AS statement 121 $table = array_map(array($this, __FUNCTION__), explode(' AS ', $table)); 122 158 // Runs escape_column on both sides of an AS statement 159 $column = array_map(array($this, __FUNCTION__), explode(' AS ', $column)); 160array.idl.php https://github.com/diegoIta/hiphop-php.git | PHP | 376 lines
1<?php 2 2 3include_once 'base.php'; 4 79 80f('array_map', Variant, 81 array('callback' => Variant,formMetaServiceDependency.php https://gitlab.com/florianocomercial/centreon | PHP | 253 lines
1<?php 2/* 45 # Set base value 46 $dep = array_map("myDecode", $DBRESULT->fetchRow()); 47 84 'datasourceOrigin' => 'ajax', 85 'availableDatasetRoute' => './include/common/webServices/rest/internal.php?object=centreon_configuration_meta&action=list', 86 'multiple' => true, 133 $attrMetas, 134 array('defaultDatasetRoute' => './include/common/webServices/rest/internal.php?object=centreon_configuration_meta&action=defaultValues&target=dependency&field=dep_msParents&id=' . $dep_id) 135); 139 $attrMetas, 140 array('defaultDatasetRoute' => './include/common/webServices/rest/internal.php?object=centreon_configuration_meta&action=defaultValues&target=dependency&field=dep_msChilds&id=' . $dep_id) 141); 197$helptext = ""; 198include_once("include/configuration/configObject/service_dependency/help.php"); 199foreach ($help as $key => $text) {Job.php https://gitlab.com/blingbang2016/shop | PHP | 358 lines
1<?php 2 285 // Clean up each entry to being a trimmed string 286 $values = array_map('trim', $values); 287 314 // Clean up each entry to being a trimmed string 315 $values = array_map('trim', $values); 316 339 // Clean up each entry to being a trimmed string 340 $values = array_map('trim', $values); 341Logger.php https://gitlab.com/nitm/yii2-module | PHP | 395 lines
1<?php 2 38 parent::init(); 39 $this->currentUser = (\Yii::$app->hasProperty('user') && \Yii::$app->user->getId()) ? \Yii::$app->user->getIdentity() : new \nitm\models\User(['username' => (php_sapi_name() == 'cli' ? 'console' : 'web')]); 40 81 if(\Yii::$app->get('log') && is_array($this->dispatcher) && isset($this->dispatcher['targets'])) { 82 $targets = array_map(function ($config) { 83 return \Yii::createObject($config);Loader.php https://github.com/patadejaguar/S.A.F.E.-Open-Source-Microfinance-Suite.git | PHP | 376 lines
1<?php 2 213 if (strpos($name, '=') !== false) { 214 list($name, $value) = array_map('trim', explode('=', $name, 2)); 215 } 332 333 // If PHP is running as an Apache module and an existing 334 // Apache environment variable exists, overwrite it