100+ results results for 'php array_map' (314 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>ProxyBuilderTest.php https://gitlab.com/reasonat/test8 | PHP | 445 lines
1<?php 2 343 344 $expected_methods_body = implode("\n", array_map(function ($value) { 345 if ($value === '') {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);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'] ) );ArgvInput.php https://gitlab.com/faisaliqbal/mytripsorter | PHP | 351 lines
1<?php 2 336 $self = $this; 337 $tokens = array_map(function ($token) use ($self) { 338 if (preg_match('{^(-[^=]+=)(.+)}', $token, $match)) {Relation.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 349 lines
1<?php 2 187 { 188 return array_unique(array_values(array_map(function ($value) use ($key) { 189 return $key ? $value->getAttribute($key) : $value->getKey(); 314 315 $tables = array_map(function ($model) { 316 return (new $model)->getTable();mysql.php https://bitbucket.org/ke2083/transfans.co.uk-website.git | PHP | 562 lines
1<?php 2/** 5* @version $Id$ 6* @copyright (c) 2005 phpBB Group 7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 13*/ 14if (!defined('IN_PHPBB')) 15{ 18 19include_once($phpbb_root_path . 'includes/db/dbal.' . $phpEx); 20 63 @mysql_free_result($result); 64 $modes = array_map('trim', explode(',', $row['sql_mode'])); 65UtfNormalTest.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 248 lines
1<?php 2/** 48if( isset( $_SERVER['argv'] ) && in_array( '--icu', $_SERVER['argv'] ) ) { 49 dl( 'php_utfnormal.so' ); 50} 51 52require_once 'UtfNormalDefines.php'; 53require_once 'UtfNormalUtil.php'; 53require_once 'UtfNormalUtil.php'; 54require_once 'UtfNormal.php'; 55 55 56if( php_sapi_name() != 'cli' ) { 57 die( "Run me from the command line please.\n" ); 86 87 $columns = array_map( "hexSequenceToUtf8", explode( ";", $data ) ); 88 array_unshift( $columns, '' );class.jetpack-sync-queue.php https://gitlab.com/vanafroo/landingpage | 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']);arr.php https://github.com/jimmytidey/jimmytidey.co.uk.git | PHP | 223 lines
1<?php 2/* 50 $lines = explode("\n", $lines); 51 $lines = array_map('trim', $lines); //Remove any \r's 52 return $lines; 202 203 //Function based on http://php.net/manual/en/function.array-unique.php#82508 204 static function in_array_i($str, $a) { 211 212 //Function based on http://php.net/manual/en/function.array-unique.php#82508 213 static function array_unique_i($a) {EsmtpTransport.php https://bitbucket.org/shashwat_dinasource/bitscentral.git | 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 ))arr.php https://bitbucket.org/i1598/caiyun_stat.git | 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);edit.php https://github.com/thisduck/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']);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 }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);engine.php https://github.com/AJenbo/ubuntudanmark.dk.git | PHP | 555 lines
1<?php 2/** 3* 4* This file is part of the phpBB Forum Software package. 5* 5* 6* @copyright (c) phpBB Limited <https://www.phpbb.com> 7* @license GNU General Public License, version 2 (GPL-2.0) 16*/ 17if (!defined('IN_PHPBB')) 18{ 22/** 23* Code from pear.php.net, Text_Diff-1.1.0 package 24* http://pear.php.net/package/Text_Diff/ (native engine) 25* 26* Modified by phpBB Limited to meet our coding standards 27* and being able to integrate into phpBBSqliteSchema.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'],ossdl-cdn.php https://github.com/brandonburke/WordPress-Plugin-Baseline.git | PHP | 200 lines
91 } else { 92 return implode('|', array_map('quotemeta', array_map('trim', $input))); 93 } 148 ?> 149 <p><?php _e( 'Your website probably uses lots of static files. Image, Javascript and CSS files are usually static files that could just as easily be served from another site or CDN. Therefore this plugin replaces any links in the <code>wp-content</code> and <code>wp-includes</code> directories (except for PHP files) on your site with the URL you provide below. That way you can either copy all the static content to a dedicated host or mirror the files to a CDN by <a href="http://knowledgelayer.softlayer.com/questions/365/How+does+Origin+Pull+work%3F" target="_blank">origin pull</a>.', 'wp-super-cache' ); ?></p> 150 <p><?php printf( __( 'The <a href="%1$s">CDN Sync Tool</a> plugin will help upload files to Amazon S3/Cloudfront if you would rather not depend on origin pull. See the <a href="%2$s">plugin support forum</a> if you have any queries about this plugin.', 'wp-super-cache' ), 'http://wordpress.org/extend/plugins/cdn-sync-tool/', 'http://wordpress.org/tags/cdn-sync-tool?forum_id=10' ); ?></p> 171 <td> 172 <input type="text" name="ossdl_off_include_dirs" value="<?php echo esc_attr( get_option( 'ossdl_off_include_dirs' ) ); ?>" size="64" class="regular-text code" /><br /> 173 <span class="description"><?php _e( 'Directories to include in static file matching. Use a comma as the delimiter. Default is <code>wp-content, wp-includes</code>, which will be enforced if this field is left empty.', 'wp-super-cache' ); ?></span> 179 <input type="text" name="ossdl_off_exclude" value="<?php echo esc_attr( get_option( 'ossdl_off_exclude' ) ); ?>" size="64" class="regular-text code" /><br /> 180 <span class="description"><?php _e( 'Excludes something from being rewritten if one of the above strings is found in the match. Use a comma as the delimiter like this, <code>.php, .flv, .do</code>, and always include <code>.php</code> (default).', 'wp-super-cache' ); ?></span> 181 </td> 190 <tr valign="top"> 191 <th scope="row" colspan='2'><label><input type='checkbox' name='ossdl_https' value='1' <?php if ( get_option( 'ossdl_https' ) ) { echo 'checked'; } ?> /> <?php _e( 'Skip https URLs to avoid "mixed content" errors', 'wp-super-cache' ); ?></label></th> 192 </tr>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 === '') {generate_utf_tables.php https://github.com/naderman/phpbb-orchestra.git | PHP | 572 lines
28$phpbb_root_path = '../'; 29$phpEx = substr(strrchr(__FILE__, '.'), 1); 30 36 37require_once($phpbb_root_path . 'includes/utf/utf_normalizer.' . $phpEx); 38$file_contents = array(); 268 */ 269 echo "Writing to $file.$phpEx\n"; 270 270 271 if (!$fp = fopen($phpbb_root_path . 'includes/utf/data/' . $file . '.' . $phpEx, 'wb')) 272 { 409 echo "Writing to search_indexer_$idx.$phpEx\n"; 410 $fp = fopen($phpbb_root_path . 'includes/utf/data/search_indexer_' . $idx . '.' . $phpEx, 'wb'); 411 fwrite($fp, '<?php return ' . my_var_export($contents) . ';');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;Translate.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 490 lines
1<?php 2/** 12 * 13 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 14 * @SuppressWarnings(PHPMD.TooManyFields) 125 * 126 * @SuppressWarnings(PHPMD.ExcessiveParameterList) 127 */ 334 $data = $this->_translateResource->getTranslationArray(null, $this->getLocale()); 335 $this->_addData(array_map("htmlspecialchars_decode", $data)); 336 return $this;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(Compiler.php https://bitbucket.org/ndj/piecrust.git | PHP | 447 lines
1<?php 2 3/* 4 * This file is part of Mustache.php. 5 * 14 * 15 * This class is responsible for turning a Mustache token parse tree into normal PHP source code. 16 */ 27 /** 28 * Compile a Mustache token parse tree into PHP source code. 29 * 35 * 36 * @return string Generated PHP source code 37 */ 57 * 58 * @return string Generated PHP source code 59 */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 }helpers.php https://bitbucket.org/daevski/shop-by-recipe.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}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();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 }Oracle.php https://github.com/cawago/ci_campusync_auth.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 }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 );ParserTest.php https://bitbucket.org/vladap/symfony.git | PHP | 247 lines
1<?php 2 19 20class ParserTest extends \PHPUnit_Framework_TestCase 21{ 26 27 $this->assertEquals($representation, array_map(function (SelectorNode $node) { 28 return (string) $node->getTree();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] );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" );class-wp-theme-install-list-table.php https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests | 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>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)));mysql.php https://bitbucket.org/Maron1/taqman.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 {class-wp-themes-list-table.php https://github.com/muskmelon/Greemo.git | PHP | 240 lines
70 if ( current_user_can( 'install_themes' ) && current_user_can( 'manage_network_themes' ) ) { 71 printf( __( 'You only have one theme enabled for this site right now. Visit the Network Admin to <a href="%1$s">enable</a> or <a href="%2$s">install</a> more themes.' ), network_admin_url( 'site-themes.php?id=' . $GLOBALS['blog_id'] ), network_admin_url( 'theme-install.php' ) ); 72 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;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 }update.php https://bitbucket.org/MashedUpMedia/mashedupmedia.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 );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;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 *DefaultTableMapping.php https://gitlab.com/reasonat/test8 | 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);internal-link-aliases.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 310 lines
1<?php 2 41 $aliases = $this->get_setting('aliases', array()); 42 $aliases = array_map('unserialize', array_unique(array_map('serialize', $aliases))); 43 $aliases = array_filter($aliases, array(&$this, 'remove_empty_aliases'));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);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();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 }author.php https://github.com/mackensen/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;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 ) {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 [array.class.php https://github.com/geraintp/frontend.git | PHP | 289 lines
21/** 22 * The <CFArray> object extends PHP's built-in <php:ArrayObject> object by providing convenience methods for 23 * rapidly manipulating array data. Specifically, the `CFArray` object is intended for working with 28 * @copyright See the included NOTICE.md file for more information. 29 * @link http://aws.amazon.com/php/ PHP Developer Center 30 * @link http://php.net/ArrayObject ArrayObject 38 * @param integer $flags (Optional) Flags to control the behavior of the ArrayObject object. Defaults to <STD_PROP_LIST>. 39 * @param string $iterator_class (Optional) Specify the class that will be used for iteration of the <php:ArrayObject> object. <php:ArrayIterator> is the default class used. 40 * @return mixed Either an array of matches, or a single <CFSimpleXML> element. 51 * @param integer $flags (Optional) Flags to control the behavior of the ArrayObject object. Defaults to <STD_PROP_LIST>. 52 * @param string $iterator_class (Optional) Specify the class that will be used for iteration of the <php:ArrayObject> object. <php:ArrayIterator> is the default class used. 53 * @return mixed Either an array of matches, or a single <CFSimpleXML> element. 56 { 57 if (version_compare(PHP_VERSION, '5.3.0', '<')) 58 {design-loop-style02.php https://gitlab.com/mattswann/launch-housing | PHP | 396 lines
1<?php 2function WooComposer_Loop_style02($atts,$element){ 145 $ids = explode( ',', $ids ); 146 $ids = array_map( 'trim', $ids ); 147 }SubPanelTilesTabs.php https://github.com/jacknicole/sugarcrm_dev.git | PHP | 267 lines
1<?php 2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); 39 40require_once('include/SubPanel/SubPanel.php'); 41require_once('include/SubPanel/SubPanelDefinitions.php'); 41require_once('include/SubPanel/SubPanelDefinitions.php'); 42require_once('include/SubPanel/SubPanelTiles.php'); 43class SubPanelTilesTabs extends SubPanelTiles 107 108 require_once 'include/SubPanel/SubPanelDefinitions.php' ; 109 $spd = new SubPanelDefinitions ( $this->focus ) ; 155 { 156 if(in_array('activities', array_map('strtolower', $group['modules']))) 157 { 157 { 158 if(!in_array('history', array_map('strtolower', $group['modules']))) 159 {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'] ) ) {old.php https://bitbucket.org/Red54/wallproxy.git | PHP | 393 lines
1<?php 2 39function print_notify($method, $url, $status, $content) { 40 $content = "<h2>PHP Server Fetch Info</h2><hr noshade='noshade'><p>$method '$url'</p><p>Return Code: $status</p><p>Message: $content</p>"; 41 $headers = array('content-type' => 'text/html'); 47 $headers = array('content-type' => 'text/html'); 48 $content = "<h2>PHP Server Debug Info</h2><hr noshade='noshade'>"; 49 foreach (func_get_args() as $key => $value) { 65 function urlfetch_curl_readheader($ch, $header) { 66 $kv = array_map('trim', explode(':', $header, 2)); 67 if (isset($kv[1])) { 148 if ($key) { 149 $header_array[] = join('-', array_map('ucfirst', explode('-', $key))).': '.$value; 150 } 203 if ($key) { 204 $header_string .= join('-', array_map('ucfirst', explode('-', $key))).': '.$value."\r\n"; 205 }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));Migrator.php https://bitbucket.org/helfreire/tccsite.git | 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 }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)); 163YamlFileLoader.php https://github.com/outlawscumbag/symfony.git | 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, '@')) {admin_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'; 22edit.php https://github.com/sharpmachine/wakeupmedia.com.git | 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'); 291design-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; ?>">scrut_prop.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 329 lines
1<?php 2 6 include_spip('scrut_prop_fonctions'); 7 $return['liste'] = array_map("scrut_prop_mettre_underscore",explode(';',$liste)); 8 67 68 $resultats = array_map('supprime_espaces',_request('resultat')); 69 178 179 $resultats = array_map('supprime_espaces',_request('resultat')); 180 $sieges = _request('siege');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);function.html_options.php https://github.com/MyITCRM/myitcrm1.git | PHP | 121 lines
1<?php 2/** 21 * the passed parameters 22 * @link http://smarty.php.net/manual/en/language.function.html.options.php {html_image} 23 * (Smarty online manual) 56 case 'selected': 57 $$_key = array_map('strval', array_values((array)$_val)); 58 break;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 memorylmbSelectRawQuery.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)); 282Pgsql.php https://github.com/AlinT/socorro.git | PHP | 539 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 4 * 5 * $Id: Pgsql.php 3160 2008-07-20 16:03:48Z Shadowhand $ 6 * 9 * @copyright (c) 2007-2008 Kohana Team 10 * @license http://kohanaphp.com/license.html 11 */ 112 // Runs escape_column on both sides of an AS statement 113 $column = array_map(array($this, __FUNCTION__), explode(' AS ', $column)); 114modifier.php https://github.com/denisbz/SPIP-1.git | PHP | 253 lines
1<?php 2 113 // Nettoyer les valeurs 114 $champs = array_map('corriger_caracteres', $champs); 115 190 if (is_array($options['invalideur'])) 191 array_map('suivre_invalideur',$options['invalideur']); 192 elseadmin-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;Parser.php https://gitlab.com/Sigpot/AirSpot | PHP | 401 lines
1<?php 2 72 73 $joined = trim(implode('', array_map(function (Token $token) { 74 return $token->getValue();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>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 ); 199RestMarshalling.class.php https://github.com/ghiata/xp-framework.git | PHP | 267 lines
1<?php 2/* This class is part of the XP framework 71 if (sizeof($chunks) > 1) { // product_id => productId 72 $variants[]= array_shift($chunks).implode(array_map('ucfirst', $chunks)); 73 }audio.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 371 lines
1<?php 2 81 $sound_files = explode( ',', $sound_file ); 82 $sound_files = array_map( 'trim', $sound_files ); 83 $sound_files = array_map( array( $this, 'rawurlencode_spaces' ), $sound_files ); 83 $sound_files = array_map( array( $this, 'rawurlencode_spaces' ), $sound_files ); 84 $sound_files = array_map( 'esc_url_raw', $sound_files ); // Ensure each is a valid URL 85 $num_files = count( $sound_files );SimpleHeaderSet.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 );CakeFixtureManager.php https://bitbucket.org/00firestar00/ejfirestar.com.git | PHP | 285 lines
1<?php 2/** 4 * 5 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 12 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @link http://cakephp.org CakePHP(tm) Project 14 * @package Cake.TestSuite.Fixture 14 * @package Cake.TestSuite.Fixture 15 * @since CakePHP(tm) v 2.0 16 * @license http://www.opensource.org/licenses/mit-license.php MIT License 73 if (!is_array($test->fixtures)) { 74 $test->fixtures = array_map('trim', explode(',', $test->fixtures)); 75 } 138 $className = Inflector::camelize($fixture); 139 if (is_readable($path . DS . $className . 'Fixture.php')) { 140 $fixtureFile = $path . DS . $className . 'Fixture.php';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!medias_administrations.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 183 lines
1<?php 2 28 // iterer par groupe de 100 pour ne pas exploser sur les grosses bases 29 $docs = array_map('reset',sql_allfetsel('id_document','spip_documents',"statut='0'",'','',"0,100")); 30 while (count($docs)){ 35 if ($affiche) echo " ."; 36 $docs = array_map('reset',sql_allfetsel('id_document','spip_documents',"statut='0'",'','',"0,100")); 37 }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);