Skip to content

Instantly share code, notes, and snippets.

@runekaagaard
Created April 21, 2011 10:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save runekaagaard/934138 to your computer and use it in GitHub Desktop.
Save runekaagaard/934138 to your computer and use it in GitHub Desktop.
Popular PHP frameworks/CMS: isset/empty in ternary operator
Instances of isset:
###################
1 return isset($this->request->params['action']) ? $this->request->params['action'] : '';
2 $this->plugin = isset($request->params['plugin']) ? $request->params['plugin'] : null;
3 $enable = isset($settings['enabled']) ? $settings['enabled'] : true;
4 $newUnique = isset($value['unique']) ? $value['unique'] : 0;
5 $oldUnique = isset($old[$name]['unique']) ? $old[$name]['unique'] : 0;
6 $fields[$key] = isset($matches[4]) ? $matches[2] . '.' . $matches[4] : $matches[1];
7 $default = isset($col['default']) ? $col['default'] : null;
8 $nullable = isset($col['null']) ? $col['null'] : null;
9 return (isset($this->methodCache[$method][$key])) ? $this->methodCache[$method][$key] : null;
10 'type' => isset($assocData['type']) ? $assocData['type'] : 'LEFT',
11 'type' => isset($assocData['type']) ? $assocData['type'] : 'LEFT',
12 $this->name = (isset($name) ? $name : get_class($this));
13 $this->alias = (isset($alias) ? $alias : $this->name);
14 $keys['old'] = isset($keys['old']) ? $keys['old'] : array();
15 $recursive = (isset($assoc['counterScope']) ? 1 : -1);
16 'parent_id' => isset($parent[0][$type]['id']) ? $parent[0][$type]['id'] : null,
17 $data['id'] = isset($node[0][$type]['id']) ? $node[0][$type]['id'] : null;
18 $reset = (isset($query['reset']) ? $query['reset'] : true);
19 $query['recursive'] = (isset($query['recursive'])) ? $query['recursive'] : $containments['depth'];
20 $keep[$name][$key] = array_merge((isset($keep[$name][$key]) ? $keep[$name][$key] : array()), (array) $children[$key]);
21 $map[$name][$type] = isset($map[$name][$type]) ? array_merge($map[$name][$type], (array)$assoc) : (array)$assoc;
22 $enable = isset($settings['enabled']) ? $settings['enabled'] : true;
23 return isset($this->request->params['action']) ? $this->request->params['action'] : '';
24 $ajaxProvider = isset($settings['ajax']) ? $settings['ajax'] : 'Js';
25 $dir = isset($options['direction']) ? $options['direction'] : 'asc';
26 $obj = isset($options['update']) ? $this->_ajaxHelperClass : 'Html';
27 $wrapCallbacks = isset($options['wrapCallbacks']) ? $options['wrapCallbacks'] : true;
28 $inline = isset($options['inline']) ? $options['inline'] : true;
29 $rule = isset($validateProp['rule']) ? $validateProp['rule'] : false;
30 $text = isset($text[$error]) ? $text[$error] : null;
31 $hiddenField = isset($attributes['hiddenField']) ? $attributes['hiddenField'] : true;
32 $buffer = isset($options['buffer']) ? $options['buffer'] : null;
33 $safe = isset($options['safe']) ? $options['safe'] : true;
34 $buffer = isset($options['buffer']) ? $options['buffer'] : null;
35 $safe = isset($options['safe']) ? $options['safe'] : true;
36 return isset($this->request->params['action']) ? $this->request->params['action'] : '';
37 $asset[1] = isset($asset[1]) ? '?' . $asset[1] : null;
38 $defaults = isset($_this->__config[$type]) ? $_this->__config[$type] : array();
39 return isset($_this->__config[$type]) ? $_this->__config[$type] : null;
40 return isset(self::$_requests[0]) ? self::$_requests[0] : null;
41 $output = isset($path['here']) ? $path['here'] : '/';
42 $greedy = isset($options['greedy']) ? $options['greedy'] : self::$named['greedy'];
43 Configure::bootstrap(isset($boot) ? $boot : true);
44 return isset(self::$_styles[$style]) ? self::$_styles[$style] : null;
45 return isset($this->_tokens[0]) ? $this->_tokens[0] : '';
46 $condition = 'WHERE 1=1 LIMIT ' . (isset($this->params['count']) ? $this->params['count'] : 10);
47 $Dispatcher->dispatch(new CakeRequest(isset($_GET['url']) ? $_GET['url'] : null));
Count:
##########################
47
Instances of empty:
###################
1 return $this->validationErrors = (!empty($errors) ? $errors : false);
2 $this->{'require' . $method} = (empty($actions)) ? array('*'): $actions;
3 return call_user_func_array(array(&$controller, $method), empty($params) ? null : $params);
4 $plugin = empty($this->request['plugin']) ? null : Inflector::camelize($this->request['plugin']) . '/';
5 $config['charset'] = !empty($config['charset']) ? $config['charset'] : null;
6 $className = empty($this->{$type}[$name]['className']) ? $name : $this->{$type}[$name]['className'];
7 $day = empty($date['Y']) ? null : $date['Y'] . '-' . $date['m'] . '-' . $date['d'] . ' ';
8 $hour = empty($date['H']) ? null : $date['H'] . ':' . $date['i'] . ':' . $date['s'];
9 return empty($this->virtualFields) ? false : $this->virtualFields;
10 'recursive' => empty($this->hasAndBelongsToMany[$assoc]['conditions']) ? -1 : 0,
11 $keys = empty($keys) ? $this->data[$this->alias] : $keys;
12 $throwErrors = (empty($this->settings[$Model->alias]) ? true : $this->settings[$Model->alias]['notices']);
13 $containments['depth'] = empty($depths) ? 0 : max($depths);
14 return (empty($edge[$right])) ? 0 : $edge[$right];
15 return (empty($edge[$left])) ? 0 : $edge[$left];
16 $regex = '/^(?:(?:https?|ftps?|file|news|gopher):\/\/)' . (!empty($strict) ? '' : '?') .
17 return sprintf($this->tags['charset'], (!empty($charset) ? $charset : 'utf-8'));
18 'type' => ($created && empty($options['action'])) ? 'put' : 'post',
19 $fixtures = !empty($test->fixtures) ? $test->fixtures : array();
20 $name = empty($this->_short) ? '--' . $this->_name : '-' . $this->_short;
21 $path = (empty($this->configPath)) ? CONFIGS : $this->configPath;
22 $usePrefix = empty($db->config['prefix']) ? '' : $db->config['prefix'];
Count:
##########################
22
Instances of isset:
###################
1 $host = $parsed_url['host'] . (isset($parsed_url['port']) ? ':' . $parsed_url['port'] : '');
2 $path = isset($parsed_url['path']) ? $parsed_url['path'] : '';
3 || (isset($test->results['#exception']) && $test->results['#exception'] > 0) ? 'fail' : 'pass');
4 $op = isset($_REQUEST['op']) ? $_REQUEST['op'] : '';
5 $op = isset($_REQUEST['op']) ? $_REQUEST['op'] : '';
6 $result[$param[0]] = isset($param[1]) ? rawurldecode($param[1]) : '';
7 $port = isset($uri['port']) ? $uri['port'] : 80;
8 $port = isset($uri['port']) ? $uri['port'] : 443;
9 $path = isset($uri['path']) ? $uri['path'] : '/';
10 $index = (function_exists('locale_get_plural')) ? locale_get_plural($count, isset($options['langcode']) ? $options['langcode'] : NULL) : -1;
11 $langcode = isset($language->language) ? $language->language : 'en';
12 $language = isset($options['language']) && isset($options['language']->language) ? $options['language']->language : '';
13 $script = isset($options['script']) ? $options['script'] : '';
14 $basename = isset($item['basename']) ? $item['basename'] : basename($item['data']);
15 $target = isset($subgroup) ? $subgroup : $group;
16 $source = isset($source) ? $source : $target;
17 $end = time() + (isset($info['time']) ? $info['time'] : 15);
18 $browsers = isset($elements['#browsers']) ? $elements['#browsers'] : array();
19 $prefix = isset($elements['#prefix']) ? $elements['#prefix'] : '';
20 $suffix = isset($elements['#suffix']) ? $elements['#suffix'] : '';
21 $bin = isset($elements['#cache']['bin']) ? $elements['#cache']['bin'] : 'cache';
22 $bin = isset($elements['#cache']['bin']) ? $elements['#cache']['bin'] : 'cache';
23 $expire = isset($elements['#cache']['expire']) ? $elements['#cache']['expire'] : CACHE_PERMANENT;
24 $granularity = isset($elements['#cache']['granularity']) ? $elements['#cache']['granularity'] : NULL;
25 $a_weight = (is_array($a) && isset($a['#weight'])) ? $a['#weight'] : 0;
26 $b_weight = (is_array($b) && isset($b['#weight'])) ? $b['#weight'] : 0;
27 $a_title = (is_array($a) && isset($a['#title'])) ? $a['#title'] : '';
28 $b_title = (is_array($b) && isset($b['#title'])) ? $b['#title'] : '';
29 return isset($cache[$type]) ? $cache[$type] : array();
30 $a_weight = (is_array($a) && isset($a['weight'])) ? $a['weight'] : 0;
31 $b_weight = (is_array($b) && isset($b['weight'])) ? $b['weight'] : 0;
32 $sort = isset($elements['#sorted']) ? !$elements['#sorted'] : $sort;
33 $$var = isset($match[++$i]) ? $match[$i] : '';
34 $id = isset($entity->{$info['entity keys']['id']}) ? $entity->{$info['entity keys']['id']} : NULL;
35 $vid = ($info['entity keys']['revision'] && isset($entity->{$info['entity keys']['revision']})) ? $entity->{$info['entity keys']['revision']} : NULL;
36 $types = array_flip(isset($provider['types']) ? $provider['types'] : $default_types);
37 $callback = isset($provider['callbacks']['language']) ? $provider['callbacks']['language'] : FALSE;
38 $results[$provider_id] = isset($languages[$langcode]) ? $languages[$langcode] : FALSE;
39 return isset($provider['weight']) && is_numeric($provider['weight']) ? $provider['weight'] : $default;
40 $op = isset($_REQUEST['op']) ? $_REQUEST['op'] : '';
41 $elapsed = isset($current_set['elapsed']) ? $current_set['elapsed'] : 0;
42 $form = call_user_func_array(isset($callback) ? $callback : $form_id, $args);
43 $form_state['programmed'] = isset($form_state['programmed']) ? $form_state['programmed'] : FALSE;
44 $element['#value'] = isset($element['#default_value']) ? $element['#default_value'] : '';
45 return isset($element['#default_value']) ? $element['#default_value'] : 0;
46 return isset($input) ? $element['#return_value'] : 0;
47 return (isset($element['#default_value']) && is_array($element['#default_value'])) ? $element['#default_value'] : array();
48 '#default_value' => isset($element['#default_value']) ? $element['#default_value'] : NULL,
49 '#ajax' => isset($element['#ajax']) ? $element['#ajax'] : NULL,
50 '#default_value' => isset($value[$key]) ? $key : NULL,
51 '#ajax' => isset($element['#ajax']) ? $element['#ajax'] : NULL,
52 '#default_value' => isset($value[$key]) ? $key : NULL,
53 '#ajax' => isset($element['#ajax']) ? $element['#ajax'] : NULL,
54 $prefix = isset($element['#field_prefix']) ? '<span class="field-prefix">' . $element['#field_prefix'] . '</span> ' : '';
55 $suffix = isset($element['#field_suffix']) ? ' <span class="field-suffix">' . $element['#field_suffix'] . '</span>' : '';
56 $actions_map[$key]['callback'] = isset($array['callback']) ? $array['callback'] : $callback;
57 $include_file = isset($info['path']) ? $info['path'] : $path;
58 $pattern = isset($info['pattern']) ? $info['pattern'] : ($hook . '__');
59 $arg_name = isset($info['variables']) ? 'variables' : 'render element';
60 $subtheme_paths = isset($theme_paths[$theme]) ? $theme_paths[$theme] : array();
61 $pattern = isset($info['pattern']) ? $info['pattern'] : ($hook . '__');
62 $arg_name = isset($info['variables']) ? 'variables' : 'render element';
63 return isset($cache[$theme][$setting_name]) ? $cache[$theme][$setting_name] : NULL;
64 $header_count += isset($header_cell['colspan']) ? $header_cell['colspan'] : 1;
65 $data = isset($cell['data']) ? $cell['data'] : '';
66 $count[$hook] = isset($count[$hook]) && is_int($count[$hook]) ? $count[$hook] : 1;
67 isset($variables[$region]) ? $variables[$region] .= $region_content : $variables[$region] = $region_content;
68 $language = isset($GLOBALS['language']) ? $GLOBALS['language'] : language_default();
69 $bundle = isset($partial_entity->bundle) ? $partial_entity->bundle : NULL;
70 '%type' => isset($types[$error_level]) ? $severity_msg : 'Unknown error',
71 $database = isset($databases['default']['default']) ? $databases['default']['default'] : array();
72 array(isset($form_state['input']['driver']) ? $form_state['input']['driver'] : current($drivers_keys)),
73 $name = isset($details['name']) ? $details['name'] : $profile->name;
74 '#description' => isset($profiles[$profile]['description']) ? $profiles[$profile]['description'] : '',
75 $name = $languages[$name][0] . (isset($languages[$name][1]) ? ' ' . st('(@language)', array('@language' => $languages[$name][1])) : '');
76 $output .= '<p>' . (isset($messages['error']) ? st('Review the messages above before visiting <a href="@url">your new site</a>.', array('@url' => url(''))) : st('<a href="@url">Visit your new site</a>.', array('@url' => url('')))) . '</p>';
77 $this->fetchStyle = isset($fetch_style) ? $fetch_style : $this->defaultFetchStyle;
78 $this->fetchStyle = isset($fetch_style) ? $fetch_style : $this->defaultFetchStyle;
79 $this->fetchStyle = isset($fetch_style) ? $fetch_style : $this->defaultFetchStyle;
80 $this->setPrefix(isset($this->connectionOptions['prefix']) ? $this->connectionOptions['prefix'] : '');
81 $this->defaultPrefix = isset($prefix['default']) ? $prefix['default'] : '';
82 return isset($specials[$operator]) ? $specials[$operator] : NULL;
83 return $this->condition->compile($connection, isset($queryPlaceholder) ? $queryPlaceholder : $this);
84 return isset($this->alterMetaData[$key]) ? $this->alterMetaData[$key] : NULL;
85 return $this->where->compile($connection, isset($queryPlaceholder) ? $queryPlaceholder : $this);
86 $fields[] = (isset($field['table']) ? $this->connection->escapeTable($field['table']) . '.' : '') . $this->connection->escapeField($field['field']) . ' AS ' . $this->connection->escapeAlias($field['alias']);
87 return isset($specials[$operator]) ? $specials[$operator] : NULL;
88 'class' => isset($stack[$i + 1]['class']) ? $stack[$i + 1]['class'] : NULL,
89 'type' => isset($stack[$i + 1]['type']) ? $stack[$i + 1]['type'] : NULL,
90 return $this->condition->compile($connection, isset($queryPlaceholder) ? $queryPlaceholder : $this);
91 return $this->condition->compile($connection, isset($queryPlaceholder) ? $queryPlaceholder : $this);
92 return $this->condition->compile($connection, isset($queryPlaceholder) ? $queryPlaceholder : $this);
93 return $this->condition->compile($connection, isset($queryPlaceholder) ? $queryPlaceholder : $this);
94 $return = isset($specials[$operator]) ? $specials[$operator] : array();
95 $page = isset($_GET['page']) ? $_GET['page'] : '';
96 $li_first = theme('pager_first', array('text' => (isset($tags[0]) ? $tags[0] : t('« first')), 'element' => $element, 'parameters' => $parameters));
97 $li_previous = theme('pager_previous', array('text' => (isset($tags[1]) ? $tags[1] : t('‹ previous')), 'element' => $element, 'interval' => 1, 'parameters' => $parameters));
98 $li_next = theme('pager_next', array('text' => (isset($tags[3]) ? $tags[3] : t('next ›')), 'element' => $element, 'interval' => 1, 'parameters' => $parameters));
99 $li_last = theme('pager_last', array('text' => (isset($tags[4]) ? $tags[4] : t('last »')), 'element' => $element, 'parameters' => $parameters));
100 $page = isset($_GET['page']) ? $_GET['page'] : '';
101 'cache' => isset($user->cache) ? $user->cache : 0,
102 $session_data = isset($_SESSION) ? $_SESSION : NULL;
103 $timers[$name]['count'] = isset($timers[$name]['count']) ? ++$timers[$name]['count'] : 1;
104 return isset($conf[$name]) ? $conf[$name] : $default;
105 return isset($headers[$name]) ? $headers[$name] : NULL;
106 $max_age = !variable_get('page_cache_invoke_hooks', TRUE) && (!isset($_COOKIE[session_name()]) || isset($hook_boot_headers['vary'])) ? variable_get('page_cache_maximum_age', 0) : 0;
107 $if_modified_since = isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) ? strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) : FALSE;
108 $if_none_match = isset($_SERVER['HTTP_IF_NONE_MATCH']) ? stripslashes($_SERVER['HTTP_IF_NONE_MATCH']) : FALSE;
109 $options['langcode'] = isset($language->language) ? $language->language : 'en';
110 'referer' => isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '',
111 return isset($_SESSION['messages']) ? $_SESSION['messages'] : NULL;
112 $conf = variable_initialize(isset($conf) ? $conf : array());
113 return isset($versions[$module]) ? $versions[$module] : SCHEMA_UNINSTALLED;
114 $data[$k] = isset($map[$v]) ? $map[$v] : '';
115 $default_delivery_callback = (isset($router_item) && $router_item) ? $router_item['delivery_callback'] : NULL;
116 $value = isset($path_map[$index]) ? $path_map[$index] : '';
117 $args[$i] = isset($path_map[$arg]) ? $path_map[$arg] : '';
118 $mlid = isset($link['mlid']) ? $link['mlid'] : 0;
119 $min_depth = (isset($parameters['min_depth']) ? $parameters['min_depth'] : 1);
120 $active_trail = (isset($parameters['active_trail']) ? $parameters['active_trail'] : array());
121 $output .= l($link['title'], $link['href'], isset($link['localized_options']) ? $link['localized_options'] : array());
122 $load_functions[$k] = isset($item['load arguments']) ? array($function => $item['load arguments']) : $function;
123 'password' => isset($url['pass']) ? urldecode($url['pass']) : '',
124 'port' => isset($url['port']) ? urldecode($url['port']) : '',
125 $custom_theme = (isset($conf['maintenance_theme']) ? $conf['maintenance_theme'] : 'seven');
126 $order = isset($_GET['order']) ? $_GET['order'] : '';
127 return array('name' => $header['data'], 'sql' => isset($header['field']) ? $header['field'] : '');
128 $default = array('name' => $header['data'], 'sql' => isset($header['field']) ? $header['field'] : '');
129 $order = isset($_GET['order']) ? $_GET['order'] : '';
130 return array('name' => $header['data'], 'sql' => isset($header['field']) ? $header['field'] : '');
131 $default = array('name' => $header['data'], 'sql' => isset($header['field']) ? $header['field'] : '');
132 define('MAIL_LINE_ENDINGS', isset($_SERVER['WINDIR']) || strpos($_SERVER['SERVER_SOFTWARE'], 'Win32') !== FALSE ? "\r\n" : "\n");
133 'from' => isset($from) ? $from : $default_from,
134 $allowed_tags = isset($allowed_tags) ? array_intersect($supported_tags, $allowed_tags) : $supported_tags;
135 _authorize_filetransfer_connection_settings_set_defaults($element[$child_key], $child_key, ((isset($defaults[$key]) && is_array($defaults[$key])) ? $defaults[$key] : $defaults));
136 return isset($language->language) ? $language->language : FALSE;
137 $browser_langs[$found[1]] = (isset($found[3]) ? (float) $found[3] : 1.0);
138 list($language, $_GET['q']) = language_url_split_prefix(isset($_GET['q']) ? $_GET['q'] : NULL, $languages);
139 $language_query = isset($_SESSION[$param]) ? $_SESSION[$param] : $GLOBALS[$type]->language;
140 $query_value = isset($_GET[$query_param]) ? check_plain($_GET[$query_param]) : NULL;
141 $native = isset($predefined[$langcode][1]) ? $predefined[$langcode][1] : $predefined[$langcode][0];
142 $direction = isset($predefined[$langcode][2]) ? $predefined[$langcode][2] : LANGUAGE_LTR;
143 $strings[isset($value['msgctxt']) ? $value['msgctxt'] : ''][$value['msgid']] = $value['msgstr'];
144 $plid = _locale_import_one_string_db($report, $lang, isset($value['msgctxt']) ? $value['msgctxt'] : '', $english[$key], $trans, $group, $comments, $mode, $plid, $key);
145 _locale_import_one_string_db($report, $lang, isset($value['msgctxt']) ? $value['msgctxt'] : '', $english, $translation, $group, $comments, $mode);
146 'translation' => isset($child->translation) ? $child->translation : '',
147 $plural = isset($strings[$plural]['plural']) ? $strings[$plural]['plural'] : 0;
148 $files[$module]->required_by = isset($data['reverse_paths']) ? $data['reverse_paths'] : array();
149 $files[$module]->requires = isset($data['paths']) ? $data['paths'] : array();
150 $message = isset($message) ? $message : t('File %file exists on the disk.', array('%file' => $file->uri));
151 $message = isset($message) ? $message : t('File %file exists in database at the correct path.', array('%file' => $file->uri));
152 $message = isset($message) ? $message : t('File %file exists on the disk.', array('%file' => $file->uri));
153 $message = isset($message) ? $message : t('File %file exists in database at the correct path.', array('%file' => $file->uri));
154 $message = isset($message) ? $message : t('File %file is permanent.', array('%file' => $file->uri));
155 $current_file_count = isset($current_element['#file_upload_delta']) ? $current_element['#file_upload_delta'] : 0;
156 $fid = isset($element['#value']['fid']) ? $element['#value']['fid'] : 0;
157 $form_state_fid = isset($form_state_fid[$parent]) ? $form_state_fid[$parent] : 0;
158 $default_fid = isset($element['#default_value']['fid']) ? $element['#default_value']['fid'] : 0;
159 $return = isset($element['#default_value']) ? $element['#default_value'] : array('fid' => 0);
160 $default_fid = isset($element['#default_value']) ? $element['#default_value'] : 0;
161 $destination = isset($element['#upload_location']) ? $element['#upload_location'] : NULL;
162 $fields = isset($field) ? array($field['field_name'] => $field) : field_info_fields();
163 return isset($field) ? $references[$field['field_name']] : $references;
164 '#default_value' => isset($settings['description_field']) ? $settings['description_field'] : '',
165 '#default_value' => isset($items[$delta]) ? $items[$delta] : $defaults,
166 $data = array('user' => isset($account) ? $account : $GLOBALS['user']);
167 '#value' => isset($item['display']) ? $item['display'] : $field['settings']['display_default'],
168 '#value' => isset($item['description']) ? $item['description'] : '',
169 'class' => isset($widget['#attributes']['class']) ? array_merge($widget['#attributes']['class'], array('draggable')) : array('draggable'),
170 $count_before = (isset($ids)) ? count($ids) : 0;
171 '#default_value' => isset($account->data['overlay']) ? $account->data['overlay'] : 1,
172 return isset($default_mappings[$type]) ? $default_mappings[$type] : array();
173 $type = isset($mapping['type']) ? $mapping['type'] : 'property';
174 $tid = (isset($router_item['page_arguments'][0]) ? $router_item['page_arguments'][0]->tid : 0);
175 $variables['topics'][$id]->last_reply = theme('forum_submitted', array('topic' => isset($topic->last_reply) ? $topic->last_reply : NULL));
176 $variables['author'] = isset($variables['topic']->uid) ? theme('username', array('account' => $variables['topic'])) : '';
177 $variables['time'] = isset($variables['topic']->created) ? format_interval(REQUEST_TIME - $variables['topic']->created) : '';
178 return isset($history[$nid]) ? $history[$nid] : NODE_NEW_LIMIT;
179 '#default_value' => isset($node->active) ? $node->active : 1,
180 '#default_value' => isset($node->runtime) ? $node->runtime : 0,
181 $chvotes = isset($choice['chvotes']) ? $choice['chvotes'] : NULL;
182 return theme('poll_results', array('raw_title' => $node->title, 'results' => $poll_results, 'votes' => $total_votes, 'raw_links' => isset($node->links) ? $node->links : array(), 'block' => $block, 'nid' => $node->nid, 'vote' => isset($node->vote) ? $node->vote : NULL));
183 return isset($node->nid) ? $node->nid : FALSE;
184 $preview_js_path = isset($info['preview_js']) ? $path . $info['preview_js'] : drupal_get_path('module', 'color') . '/' . 'preview.js';
185 $preview_html_path = DRUPAL_ROOT . '/' . (isset($info['preview_html']) ? drupal_get_path('theme', $theme) . '/' . $info['preview_html'] : drupal_get_path('module', 'color') . '/preview.html');
186 '%widget_type' => isset($widget_types[$instance['widget']['type']]) ? $widget_types[$instance['widget']['type']]['label'] : $instance['widget']['type'],
187 $array = !isset($array) ? array() : $array;
188 $row[$cell]['#prefix'] = theme('indentation', array('size' => $depth)) . (isset($row[$cell]['#prefix']) ? $row[$cell]['#prefix'] : '');
189 $colums_count += (is_array($header) && isset($header['colspan']) ? $header['colspan'] : 1);
190 '#markup' => isset($extra_field['description']) ? $extra_field['description'] : '',
191 '#markup' => isset($extra_field['edit']) ? $extra_field['edit'] : '',
192 '#markup' => isset($extra_field['delete']) ? $extra_field['delete'] : '',
193 $element['#prefix'] = '<div class="ajax-new-content">' . (isset($element['#prefix']) ? $element['#prefix'] : '');
194 $element['#suffix'] = (isset($element['#suffix']) ? $element['#suffix'] : '') . '</div>';
195 return isset($bundle_info['admin']['real path']) ? $bundle_info['admin']['real path'] : $bundle_info['admin']['path'];
196 return isset($all_menus[$menu_name]) ? $all_menus[$menu_name] : FALSE;
197 '#default_value' => isset($link['options']['attributes']['title']) ? $link['options']['attributes']['title'] : '',
198 '#default_value' => isset($item['options']['attributes']['title']) ? $item['options']['attributes']['title'] : '',
199 $form['effects'][$key]['#weight'] = isset($form_state['input']['effects']) ? $form_state['input']['effects'][$key]['weight'] : NULL;
200 '#markup' => isset($effect['summary theme']) ? theme($effect['summary theme'], array('data' => $effect['data'])) : '',
201 '#weight' => isset($form_state['input']['weight']) ? $form_state['input']['weight'] : NULL,
202 '#value' => isset($_GET['weight']) ? intval($_GET['weight']) : (isset($effect['weight']) ? $effect['weight'] : count($style['effects'])),
203 '#value' => isset($effect['ieid']) ? t('Update effect') : t('Add effect'),
204 '#default_value' => isset($data['width']) ? $data['width'] : '',
205 '#default_value' => isset($data['height']) ? $data['height'] : '',
206 '#default_value' => (isset($data['upscale'])) ? $data['upscale'] : 0,
207 '#default_value' => (isset($data['degrees'])) ? $data['degrees'] : 0,
208 '#default_value' => (isset($data['bgcolor'])) ? $data['bgcolor'] : '#FFFFFF',
209 '#default_value' => (isset($data['random'])) ? $data['random'] : 0,
210 $extensions = isset($elements[$delta]['#upload_validators']['file_validate_extensions'][0]) ? $elements[$delta]['#upload_validators']['file_validate_extensions'][0] : implode(' ', $supported_extensions);
211 '#default_value' => isset($item['alt']) ? $item['alt'] : '',
212 '#default_value' => isset($item['title']) ? $item['title'] : '',
213 '#path' => isset($uri) ? $uri : '',
214 return isset($matches[1]) ? $matches[1] : FALSE;
215 return isset($effect['help']) ? ('<p>' . $effect['help'] . '</p>') : NULL;
216 return isset($effect['help']) ? ('<p>' . $effect['help'] . '</p>') : NULL;
217 $effect['data'] = isset($effect['data']) ? $effect['data'] : array();
218 return isset($definitions[$effect]) ? $definitions[$effect] : FALSE;
219 '#default_value' => isset($account->{$field->name}) ? $account->{$field->name} : '',
220 '#default_value' => isset($account->{$field->name}) ? $account->{$field->name} : '',
221 '#default_value' => isset($account->{$field->name}) ? $account->{$field->name} : '',
222 '#default_value' => isset($account->{$field->name}) ? $account->{$field->name} : '',
223 '#default_value' => isset($account->{$field->name}) ? $account->{$field->name} : '',
224 '#default_value' => isset($account->{$field->name}) ? $account->{$field->name} : '',
225 return isset($type) ? $types[$type] : $types;
226 '#default_value' => isset($edit['options']) ? $edit['options'] : '',
227 '#default_value' => isset($edit['visibility']) ? $edit['visibility'] : PROFILE_PUBLIC,
228 '@user_created' => isset($account->created) ? format_date($account->created, 'medium') : t('not yet created'),
229 '#default_value' => isset($block->title) ? $block->title : '',
230 '#value' => isset($block->pages) ? $block->pages : '',
231 '#default_value' => isset($block->visibility) ? $block->visibility : BLOCK_VISIBILITY_NOTLISTED,
232 '#default_value' => isset($block->pages) ? $block->pages : '',
233 '#default_value' => isset($block->custom) ? $block->custom : BLOCK_CUSTOM_FIXED,
234 $region = (isset($block['region']['#default_value']) ? $block['region']['#default_value'] : BLOCK_REGION_NONE);
235 '#format' => isset($edit['format']) ? $edit['format'] : NULL,
236 '#default_value' => isset($account->data['block'][$block->module][$block->delta]) ? $account->data['block'][$block->module][$block->delta] : ($block->custom == 1),
237 parse_str(isset($return_to_parts['query']) ? $return_to_parts['query'] : '', $return_to_query_parameters);
238 $op = isset($_POST['op']) ? $_POST['op'] : $callback_arg;
239 $session = isset($_SESSION['user_overview_filter']) ? $_SESSION['user_overview_filter'] : array();
240 $form['checkboxes'][$rid] = array('#type' => 'checkboxes', '#options' => $options, '#default_value' => isset($status[$rid]) ? $status[$rid] : array());
241 $status = isset($account->status) ? $account->status : 1;
242 '#default_value' => (!$register && isset($account->roles) ? array_keys($account->roles) : array()),
243 '#default_value' => isset($account->signature) ? $account->signature : '',
244 '#format' => isset($account->signature_format) ? $account->signature_format : NULL,
245 '#value' => isset($account->picture) ? $account->picture : NULL,
246 'access callback' => isset($category['access callback']) ? $category['access callback'] : 'user_edit_access',
247 'access arguments' => isset($category['access arguments']) ? $category['access arguments'] : array(1),
248 $langcode = isset($language) ? $language->language : NULL;
249 foreach (isset($_SESSION['user_overview_filter']) ? $_SESSION['user_overview_filter'] : array() as $filter) {
250 'username' => (isset($user->name) ? $user->name : ''),
251 '#description' => (isset($method['description']) ? $method['description'] : NULL),
252 'user_cancel_notify' => isset($account->data['user_cancel_notify']) ? $account->data['user_cancel_notify'] : variable_get('user_mail_status_canceled_notify', FALSE),
253 return isset($account->picture) ? $account->picture->uri : NULL;
254 $module_info = isset($info[$module]) ? $info[$module] : FALSE;
255 $text = (isset($newranges[0]) ? '' : $dots[0]) . implode($dots[1], $out) . $dots[2];
256 $variables['snippet'] = isset($result['snippet']) ? $result['snippet'] : '';
257 'SCRIPT_NAME' => isset($_SERVER['SCRIPT_NAME']) ? $_SERVER['SCRIPT_NAME'] : NULL,
258 'name' => (isset($user->name) ? $user->name : ''),
259 ':value' => isset($item['#value']) ? $item['#value'] : '',
260 $result = isset($graph[$vertex]['paths']) ? $graph[$vertex]['paths'] : array();
261 $result = isset($graph[$vertex]['reverse_paths']) ? $graph[$vertex]['reverse_paths'] : array();
262 '@pass' => format_plural(isset($summary['#pass']) ? $summary['#pass'] : 0, '1 pass', '@count passes'),
263 '@fail' => format_plural(isset($summary['#fail']) ? $summary['#fail'] : 0, '1 fail', '@count fails'),
264 '@exception' => format_plural(isset($summary['#exception']) ? $summary['#exception'] : 0, '1 exception', '@count exceptions'),
265 $args['@debug'] = format_plural(isset($summary['#debug']) ? $summary['#debug'] : 0, '1 debug message', '@count debug messages');
266 return $this->assert(!isset($value), $message ? $message : t('Value @value is NULL.', array('@value' => var_export($value, TRUE))), $group);
267 return $this->assert(isset($value), $message ? $message : t('Value @value is not NULL.', array('@value' => var_export($value, TRUE))), $group);
268 $this->assertTrue(isset($role->rid), t('Created role of name: @name, id: @rid', array('@name' => $name, '@rid' => (isset($role->rid) ? $role->rid : t('-n/a-')))), t('Role'));
269 $this->drupalSetContent($content, isset($original_url) ? $original_url : curl_getinfo($this->curlHandle, CURLINFO_EFFECTIVE_URL));
270 '@url' => isset($original_url) ? $original_url : $url,
271 $action = isset($form['action']) ? $this->getAbsoluteUrl((string) $form['action']) : $this->getUrl();
272 $ajax_path = isset($ajax_settings['url']) ? $ajax_settings['url'] : 'system/ajax';
273 $method = isset($command['method']) ? $command['method'] : $ajax_settings['method'];
274 $type = isset($element['type']) ? (string) $element['type'] : $element->getName();
275 $value = isset($element['value']) ? (string) $element['value'] : '';
276 return $this->assertTrue(isset($elements[0]) && !empty($elements[0]['checked']), $message ? $message : t('Checkbox field @id is checked.', array('@id' => $id)), t('Browser'));
277 return $this->assertTrue(isset($elements[0]) && empty($elements[0]['checked']), $message ? $message : t('Checkbox field @id is not checked.', array('@id' => $id)), t('Browser'));
278 return $this->assertTrue(isset($elements[0]) && !empty($elements[0]['selected']), $message ? $message : t('Option @option for field @id is selected.', array('@option' => $option, '@id' => $id)), t('Browser'));
279 return $this->assertTrue(isset($elements[0]) && empty($elements[0]['selected']), $message ? $message : t('Option @option for field @id is not selected.', array('@option' => $option, '@id' => $id)), t('Browser'));
280 '!category' => isset($params['category']['category']) ? $params['category']['category'] : '',
281 $edit['data']['contact'] = isset($edit['contact']) ? $edit['contact'] : variable_get('contact_default_status', 1);
282 $field_name = isset($sandbox['vocabularies'][$record->vocab_id][$record->type]) ? $sandbox['vocabularies'][$record->vocab_id][$record->type] : 'taxonomyextra';
283 $page = isset($_GET['page']) ? $_GET['page'] : 0;
284 $back_step = isset($back_step) ? $back_step : 0;
285 $term_deltas[$term->tid] = isset($term_deltas[$term->tid]) ? $term_deltas[$term->tid] + 1 : 0;
286 $form_state['redirect'] = array($_GET['q'], (isset($_GET['page']) ? array('query' => array('page' => $_GET['page'])) : array()));
287 $level_weights[$values['parent']] = isset($level_weights[$values['parent']]) ? $level_weights[$values['parent']] + 1 : 0;
288 $row[] = (isset($term['#term']['depth']) && $term['#term']['depth'] > 0 ? theme('indentation', array('size' => $term['#term']['depth'])) : ''). drupal_render($term['view']);
289 'vocabulary_machine_name' => isset($vocabulary) ? $vocabulary->machine_name : NULL,
290 '#value' => isset($term->vocabulary_machine_name) ? $term->vocabulary_machine_name : $vocabulary->name,
291 return isset($parents[$tid]) ? $parents[$tid] : array();
292 return isset($children[$tid]) ? $children[$tid] : array();
293 $max_depth = (!isset($max_depth)) ? count($children[$vid]) : $max_depth;
294 $tags[$item['tid']] = isset($item['taxonomy_term']) ? $item['taxonomy_term'] : taxonomy_term_load($item['tid']);
295 return isset($project['info']['project status url']) ? $project['info']['project status url'] : variable_get('update_fetch_url', UPDATE_DEFAULT_URL);
296 $langcode = isset($language) ? $language->language : NULL;
297 $requirement_label = isset($project['reason']) ? $project['reason'] : t('Can not determine status');
298 $row_key = isset($project['title']) ? drupal_strtolower($project['title']) : drupal_strtolower($project['name']);
299 return isset($_COOKIE['Drupal_toolbar_collapsed']) ? $_COOKIE['Drupal_toolbar_collapsed'] : 0;
300 $if_modified_since = isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) ? strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) : FALSE;
301 $if_none_match = isset($_SERVER['HTTP_IF_NONE_MATCH']) ? stripslashes($_SERVER['HTTP_IF_NONE_MATCH']) : FALSE;
302 $item['timestamp'] = isset($entry->timestamp) ? $entry->timestamp : REQUEST_TIME;
303 aggregator_save_item(array('iid' => (isset($entry->iid) ? $entry->iid : ''), 'fid' => $feed->fid, 'timestamp' => $item['timestamp'], 'title' => $item['title'], 'link' => $item['link'], 'author' => $item['author'], 'description' => $item['description'], 'guid' => $item['guid']));
304 $url = url((isset($category) ? 'aggregator/categories/' . $category->cid : 'aggregator'), array('absolute' => TRUE));
305 $description = isset($category) ? t('@site_name - aggregated feeds in category @title', array('@site_name' => $site_name, '@title' => $category->title)) : t('@site_name - aggregated feeds', array('@site_name' => $site_name));
306 '#default_value' => isset($feed->title) ? $feed->title : '',
307 '#default_value' => isset($feed->url) ? $feed->url : '',
308 '#default_value' => isset($feed->refresh) ? $feed->refresh : 3600,
309 '#default_value' => isset($feed->block) ? $feed->block : 5,
310 $categories = db_query('SELECT c.cid, c.title, f.fid FROM {aggregator_category} c LEFT JOIN {aggregator_category_feed} f ON c.cid = f.cid AND f.fid = :fid ORDER BY title', array(':fid' => isset($feed->fid) ? $feed->fid : NULL));
311 $item['guid'] = isset($item['guid']) ? $item['guid'] : '';
312 $op = isset($_POST['op']) ? $_POST['op'] : '';
313 $comment_count = isset($node->nid) ? db_query('SELECT comment_count FROM {node_comment_statistics} WHERE nid = :nid', array(':nid' => $node->nid))->fetchField() : 0;
314 $status = (isset($comment->status) ? $comment->status : COMMENT_NOT_PUBLISHED);
315 '#default_value' => isset($context['keywords']) ? drupal_implode_tags($context['keywords']) : '',
316 $filter_data = isset($_SESSION['node_overview_filter']) ? $_SESSION['node_overview_filter'] : array();
317 $session = isset($_SESSION['node_overview_filter']) ? $_SESSION['node_overview_filter'] : array();
318 $l_options = $node->language != LANGUAGE_NONE && isset($languages[$node->language]) ? array('language' => $languages[$node->language]) : array();
319 '#value' => isset($type->orig_type) ? $type->orig_type : '',
320 $op = isset($form_state['values']['op']) ? $form_state['values']['op'] : '';
321 $type->old_type = isset($form_state['values']['old_type']) ? $form_state['values']['old_type'] : $type->type;
322 $node = (object) array('uid' => $user->uid, 'name' => (isset($user->name) ? $user->name : ''), 'type' => $type, 'language' => LANGUAGE_NONE);
323 '#value' => isset($node->$key) ? $node->$key : NULL,
324 '#default_value' => isset($node->changed) ? $node->changed : NULL,
325 return (isset($history[$nid]->timestamp) ? $history[$nid]->timestamp : 0);
326 return isset($types[$type]) ? $types[$type] : FALSE;
327 return isset($types[$type]) && isset($types[$type]->base) ? $types[$type]->base : FALSE;
328 return isset($types[$type]) ? $types[$type] : FALSE;
329 $new_type->orig_type = isset($info['type']) ? $info['type'] : '';
330 $nids = (isset($nid) ? array($nid) : array());
331 $conditions = (isset($vid) ? array('vid' => $vid) : array());
332 $arguments = isset($values['arguments']) ? $values['arguments'] : array();
333 '#default_value' => isset($context['keywords']) ? drupal_implode_tags($context['keywords']) : '',
334 $delta = isset($get_delta) ? $get_delta : 0;
335 '#default_value' => isset($items[$delta]['_weight']) ? $items[$delta]['_weight'] : $delta,
336 $element[$delta]['#prefix'] = '<div class="ajax-new-content">' . (isset($element[$delta]['#prefix']) ? $element[$delta]['#prefix'] : '');
337 $element[$delta]['#suffix'] = (isset($element[$delta]['#suffix']) ? $element[$delta]['#suffix'] : '') . '</div>';
338 $instance['widget']['weight'] = isset($max_weight) ? $max_weight + 1 : 0;
339 'type' => isset($field_type['default_formatter']) ? $field_type['default_formatter'] : 'hidden',
340 $display['weight'] = isset($max_weight) ? $max_weight + 1 : 0;
341 '#default_value' => isset($items[$delta]['value']) ? $items[$delta]['value'] : '',
342 $row->{$column} = isset($item[$column]) ? $item[$column] : NULL;
343 '#value' => isset($entity->$key) ? $entity->$key : NULL,
344 $values = isset($e->{$field_name}[$langcode]) ? $e->{$field_name}[$langcode] : array();
345 $items = isset($entity->{$field_name}[$langcode]) ? $entity->{$field_name}[$langcode] : array();
346 $grouped_items[$field_id][$langcode][$id] = isset($entity->{$field_name}[$langcode]) ? $entity->{$field_name}[$langcode] : array();
347 $variables[$field_name] = isset($entity->{$field_name}[$langcode]) ? $entity->{$field_name}[$langcode] : NULL;
348 $a_weight = (is_array($a) && isset($a['_weight']['#value']) ? $a['_weight']['#value'] : 0);
349 $b_weight = (is_array($b) && isset($b['_weight']['#value']) ? $b['_weight']['#value'] : 0);
350 $settings = isset($stored_settings[$entity_type][$bundle]) ? $stored_settings[$entity_type][$bundle] : array();
351 $elements[$name]['#access'] = isset($elements[$name]['#access']) ? ($elements[$name]['#access'] && $settings['visible']) : $settings['visible'];
352 $output = isset($elements[0]) ? $elements[0] : array();
353 return isset($entity->{$field_name}[$langcode]) ? $entity->{$field_name}[$langcode] : FALSE;
354 $settings = isset($bundle_settings['extra_fields']['form'][$name]) ? $bundle_settings['extra_fields']['form'][$name] : array();
355 $settings = isset($bundle_settings['extra_fields']['display'][$name]) ? $bundle_settings['extra_fields']['display'][$name] : array();
356 return isset($info['behaviors'][$op]) ? $info['behaviors'][$op] : FIELD_BEHAVIOR_DEFAULT;
357 return isset($info[$entity_type]['bundles']) ? $info[$entity_type]['bundles'] : array();
358 return isset($info['settings']) ? $info['settings'] : array();
359 return isset($info['instance_settings']) ? $info['instance_settings'] : array();
360 return isset($info['settings']) ? $info['settings'] : array();
361 return isset($info['settings']) ? $info['settings'] : array();
362 return isset($info['settings']) ? $info['settings'] : array();
363 $display_language[$instance['field_name']] = isset($entity->{$instance['field_name']}[$langcode]) ? $langcode : LANGUAGE_NONE;
364 return isset($display_language[$field_name]) ? $display_language[$field_name] : FALSE;
365 $prefixes = isset($instance['settings']['prefix']) ? array_map('field_filter_xss', explode('|', $instance['settings']['prefix'])) : array('');
366 $suffixes = isset($instance['settings']['suffix']) ? array_map('field_filter_xss', explode('|', $instance['settings']['suffix'])) : array('');
367 $value = isset($items[$delta]['value']) ? $items[$delta]['value'] : '';
368 $record[_field_sql_storage_columnname($field_name, $column)] = isset($item[$column]) ? $item[$column] : NULL;
369 $values[$key] = (isset($value) && $value !== '') ? $value : $key;
370 '#default_value' => (isset($default_value[0]) && $default_value[0] == $on_value) ? 1 : 0,
371 $element['#title'] = isset($options[$on_value]) ? $options[$on_value] : '';
372 $values = (isset($items_transposed[$column]) && is_array($items_transposed[$column])) ? $items_transposed[$column] : array();
373 $items[$id][$delta]['safe_value'] = isset($item['value']) ? _text_sanitize($instances[$id], $langcode, $item, 'value') : '';
374 $items[$id][$delta]['safe_summary'] = isset($item['summary']) ? _text_sanitize($instances[$id], $langcode, $item, 'summary') : '';
375 '#default_value' => isset($items[$delta]['value']) ? $items[$delta]['value'] : NULL,
376 '#default_value' => isset($items[$delta]['summary']) ? $items[$delta]['summary'] : NULL,
377 '#default_value' => isset($items[$delta]['value']) ? $items[$delta]['value'] : NULL,
378 $element['#format'] = isset($items[$delta]['format']) ? $items[$delta]['format'] : NULL;
379 $items[$id][$delta]['safe_value'] = isset($item['value']) ? _text_sanitize($instances[$id], $langcode, $item, 'value') : '';
380 $items[$id][$delta]['safe_summary'] = isset($item['summary']) ? _text_sanitize($instances[$id], $langcode, $item, 'summary') : '';
381 '#default_value' => isset($items[$delta]) ? $items[$delta] : '',
382 $record[_field_sql_storage_columnname($field_name, $column)] = isset($item[$column]) ? $item[$column] : NULL;
383 $nid = isset($node->nid) ? $node->nid : 'new';
384 $pid = isset($form_state['values']['pid']) ? $form_state['values']['pid'] : 0;
385 $language = isset($form_state['values']['language']) ? $form_state['values']['language'] : LANGUAGE_NONE;
386 'source' => isset($form['#node']->nid) ? 'node/' . $form['#node']->nid : NULL,
387 'language' => isset($form['#node']->language) ? $form['#node']->language : LANGUAGE_NONE,
388 $path['language'] = isset($node->language) ? $node->language : LANGUAGE_NONE;
389 $path['language'] = isset($node->language) ? $node->language : LANGUAGE_NONE;
390 $path = (isset($form['#term']['tid']) ? path_load('taxonomy/term/' . $form['#term']['tid']) : array());
391 'source' => isset($form['#term']['tid']) ? 'taxonomy/term/' . $form['#term']['tid'] : NULL,
392 '!message' => strip_tags(!isset($log_entry['variables']) ? $log_entry['message'] : strtr($log_entry['message'], $log_entry['variables'])),
393 $langcode = (isset($language) ? $language->language : NULL);
394 $extension = isset($extensions[$data[2]]) ? $extensions[$data[2]] : '';
395 '#default_value' => isset($account->timezone) ? $account->timezone : ($account->uid == $user->uid ? variable_get('date_default_timezone', '') : ''),
396 'owner' => isset($file->owner) ? $file->owner : '',
397 return isset($info[$name]) ? $info[$name] : array();
398 return isset($regions[0]) ? $regions[0] : '';
399 return isset($b['weight']) ? $a['weight'] - $b['weight'] : $a['weight'];
400 $description = isset($description) ? $description : t('This action cannot be undone.');
401 return isset($_COOKIE['Drupal_visitor_admin_compact_mode']) ? $_COOKIE['Drupal_visitor_admin_compact_mode'] : variable_get('admin_compact_mode', FALSE);
402 '#default_value' => isset($context['message']) ? $context['message'] : '',
403 '#default_value' => isset($context['url']) ? $context['url'] : '',
404 return $type ? (isset($types[$type]) ? $types[$type] : FALSE) : $types;
405 return $type ? (isset($date_formats[$type]) ? $date_formats[$type] : FALSE) : $date_formats;
406 $form['links'][$key] = (isset($extra['links'][$key]) ? $extra['links'][$key] : array());
407 $dependent_name = isset($all_modules[$dependent]->info['name']) ? $all_modules[$dependent]->info['name'] : $dependent;
408 '#default_value' => variable_get('file_default_scheme', isset($options['public']) ? 'public' : key($options)),
409 '#default_value' => (isset($choices[$default]) ? $default : 'custom'),
410 $severity = $severities[isset($requirement['severity']) ? (int) $requirement['severity'] : 0];
411 $output .= '<div class="'. join(' ', $theme->classes) .'">' . $screenshot . '<div class="theme-info"><h3>' . $theme->info['name'] . ' ' . (isset($theme->info['version']) ? $theme->info['version'] : '') . $notes . '</h3><div class="theme-description">' . $description . '</div>';
412 $aid = isset($form_state['values']['actions_aid']) ? $form_state['values']['actions_aid'] : NULL;
413 $link_mode = isset($mlid) ? "remove" : "add";
414 $disabled_languages = isset($languages[0]) ? $languages[0] : FALSE;
415 return isset($formats[$format_id]) ? $formats[$format_id] : FALSE;
416 $format->filters[$name]['status'] = isset($format->filters[$name]['status']) ? $format->filters[$name]['status'] : 0;
417 $format->filters[$name]['settings'] = isset($filter['default settings']) ? $filter['default settings'] : array();
418 return isset($account) ? $formats['user'][$account->uid] : $formats['all'];
419 $filter->settings = (isset($filter->settings) ? unserialize($filter->settings) : array());
420 return isset($filters[$format_id]) ? $filters[$format_id] : array();
421 $defaults = (isset($filter['default settings']) ? $filter['default settings'] : array());
422 $this->assertEqual(unserialize($filter->settings), isset($format_filters[$name]['settings']) ? $format_filters[$name]['settings'] : array(), t('Database: Proper filter settings for %filter in text format %format.', $t_args));
423 $this->assertEqual($filter->settings, isset($format_filters[$name]['settings']) ? $format_filters[$name]['settings'] : array(), t('filter_list_format: Proper filter settings for %filter in text format %format.', $t_args));
424 '#default_value' => (isset($form['#node']->language) ? $form['#node']->language : ''),
425 $langcode = isset($langcode) ? $langcode : $language->language;
426 return ($lang && isset($list[$lang])) ? $list[$lang] : t('All');
427 $path = isset($segments[1]) ? $segments[1] : $prefix;
428 $types = array_flip(isset($provider['types']) ? $provider['types'] : $form['#language_types']);
429 $rows[$langcode][$group] = ($langcode == 'en' ? t('n/a') : '0/' . (isset($groupsums[$group]) ? $groupsums[$group] : 0) . ' (0%)');
430 '#default_value' => (isset($choices[$default]) ? $default : 'custom'),
Count:
##########################
430
Instances of empty:
###################
1 $options['headers']['Authorization'] = 'Basic ' . base64_encode($uri['user'] . (!empty($uri['pass']) ? ":" . $uri['pass'] : ''));
2 $name = !empty($account->name) ? $account->name : variable_get('anonymous', t('Anonymous'));
3 $prefix = empty($path) ? rtrim($options['prefix'], '/') : $options['prefix'];
4 $delivery_callback = !empty($default_delivery_callback) ? $default_delivery_callback : 'drupal_deliver_html_page';
5 $array = !empty($array) ? array_combine($array, $array) : array();
6 $query_string = empty($item['version']) ? $default_query_string : $js_version_string . $item['version'];
7 return empty($drupal_hash_salt) ? hash('sha256', serialize($databases)) : $drupal_hash_salt;
8 $op = !empty($matches['operation']) ? $matches['operation'] : '=';
9 return empty($provider_id) ? LANGUAGE_NEGOTIATION_DEFAULT : FALSE;
10 $args = empty($path) ? array() : explode('/', $path);
11 form_error($elements, $t('!name cannot be longer than %max characters but is currently %length characters long.', array('!name' => empty($elements['#title']) ? $elements['#parents'][0] : $elements['#title'], '%max' => $elements['#maxlength'], '%length' => drupal_strlen($elements['#value']))));
12 watchdog('form', 'Illegal choice %choice in !name element.', array('%choice' => $v, '!name' => empty($elements['#title']) ? $elements['#parents'][0] : $elements['#title']), WATCHDOG_ERROR);
13 watchdog('form', 'Illegal choice %choice in %name element.', array('%choice' => $elements['#value'], '%name' => empty($elements['#title']) ? $elements['#parents'][0] : $elements['#title']), WATCHDOG_ERROR);
14 $value_callback = !empty($element['#value_callback']) ? $element['#value_callback'] : 'form_type_' . $element['#type'] . '_value';
15 return '<div' . drupal_attributes($attributes) . '>' . (!empty($element['#children']) ? $element['#children'] : '') . '</div>';
16 '#value' => empty($element['#value']) ? NULL : $element['#value']['pass1'],
17 '#value' => empty($element['#value']) ? NULL : $element['#value']['pass2'],
18 return '<div' . drupal_attributes($attributes) . '>' . (!empty($element['#children']) ? $element['#children'] : '') . '</div>';
19 $required = !empty($element['#required']) ? theme('form_required_marker', array('element' => $element)) : '';
20 $username = empty($settings['username']) ? '' : $settings['username'];
21 $password = empty($settings['password']) ? '' : $settings['password'];
22 $hostname = empty($settings['advanced']['hostname']) ? 'localhost' : $settings['advanced']['hostname'];
23 $port = empty($settings['advanced']['port']) ? 21 : $settings['advanced']['port'];
24 $username = empty($settings['username']) ? '' : $settings['username'];
25 $password = empty($settings['password']) ? '' : $settings['password'];
26 $hostname = empty($settings['advanced']['hostname']) ? 'localhost' : $settings['advanced']['hostname'];
27 $port = empty($settings['advanced']['port']) ? 22 : $settings['advanced']['port'];
28 $theme = !empty($user->theme) && drupal_theme_access($user->theme) ? $user->theme : variable_get('theme_default', 'bartik');
29 $theme = !empty($custom_theme) ? $custom_theme : $theme;
30 $theme = !empty($GLOBALS['theme_key']) ? $GLOBALS['theme_key'] : '';
31 $passed_ids = !empty($ids) ? array_flip($ids) : FALSE;
32 'values' => !empty($install_state['forms'][$function]) ? $install_state['forms'][$function] : array(),
33 '#default_value' => !empty($database['driver']) ? $database['driver'] : current($drivers_keys),
34 $merge_data = array('init' => $form_state['values']['account']['mail'], 'roles' => !empty($account->roles) ? $account->roles : array(), 'status' => 1);
35 $dsn = 'mysql:host=' . $connection_options['host'] . ';port=' . (empty($connection_options['port']) ? 3306 : $connection_options['port']);
36 $comments = (!empty($this->comments)) ? '/* ' . implode('; ', $this->comments) . ' */ ' : '';
37 $comments = (!empty($this->comments)) ? '/* ' . implode('; ', $this->comments) . ' */ ' : '';
38 $form['database']['#default_value'] = empty($database['database']) ? $default_database : $database['database'];
39 $comments = (!empty($this->comments)) ? '/* ' . implode('; ', $this->comments) . ' */ ' : '';
40 $comments = (!empty($this->comments)) ? '/* ' . implode('; ', $this->comments) . ' */ ' : '';
41 $comments = (!empty($this->comments)) ? '/* ' . implode('; ', $this->comments) . ' */ ' : '';
42 $comments = (!empty($this->comments)) ? '/* ' . implode('; ', $this->comments) . ' */ ' : '';
43 $comments = (!empty($this->comments)) ? '/* ' . implode('; ', $this->comments) . ' */ ' : '';
44 $comments = (!empty($this->comments)) ? '/* ' . implode('; ', $this->comments) . ' */ ' : '';
45 $comments = (!empty($this->comments)) ? '/* ' . implode('; ', $this->comments) . ' */ ' : '';
46 $comments = (!empty($this->comments)) ? '/* ' . implode('; ', $this->comments) . ' */ ' : '';
47 $width = !empty($width) ? $width : $height / $aspect;
48 $height = !empty($height) ? $height : $width / $aspect;
49 $width = !empty($width) ? $width : 9999999;
50 $height = !empty($height) ? $height : 9999999;
51 return empty($wrappers[$scheme]) ? FALSE : $wrappers[$scheme]['class'];
52 return empty($updates[$module]) ? FALSE : $updates[$module];
53 '#default_value' => empty($database['database']) ? '' : $database['database'],
54 '#default_value' => empty($database['username']) ? '' : $database['username'],
55 '#default_value' => empty($database['password']) ? '' : $database['password'],
56 '#default_value' => empty($database['host']) ? 'localhost' : $database['host'],
57 '#default_value' => empty($database['port']) ? '' : $database['port'],
58 $buffer .= '$' . $variable[1] . " = " . var_export($setting['value'], TRUE) . ";" . (!empty($setting['comment']) ? ' // ' . $setting['comment'] . "\n" : "\n");
59 return strtr((!empty($locale_strings[$options['context']][$string]) ? $locale_strings[$options['context']][$string] : $string), $args);
60 ($locale != 'en' && !empty($locale) ? array('locale') : array()))
61 $read_only_path = !empty($path) ? $path : $_GET['q'];
62 $callback = empty($item['access_callback']) ? 0 : trim($item['access_callback']);
63 $arg = $function(!empty($map[$index]) ? $map[$index] : '', $map, $index);
64 $element['#localized_options'] = !empty($data['link']['localized_options']) ? $data['link']['localized_options'] : array();
65 return '<li' . (!empty($variables['element']['#active']) ? ' class="active"' : '') . '>' . l($link_text, $link['href'], $link['localized_options']) . "</li>\n";
66 $tree = empty($item['below']) ? array() : $item['below'];
67 'options' => empty($item['description']) ? array() : array('attributes' => array('title' => $item['description'])),
68 $item['to_arg_functions'] = empty($to_arg_functions) ? '' : serialize($to_arg_functions);
69 $item['load_functions'] = empty($item['_load_functions']) ? '' : serialize($item['_load_functions']);
70 $dependency_map[$function] = !empty($update['reverse_paths']) ? array_keys($update['reverse_paths']) : array();
71 $comments = _locale_import_shorten_comments(empty($value['#']) ? array() : $value['#']);
72 $output .= (!empty($translation[$langcode])) ? $langcode . ' ' : "<em class=\"locale-untranslated\">$langcode</em> ";
73 return empty($xmlrpc_value->data) || range(0, count($xmlrpc_value->data) - 1) === array_keys($xmlrpc_value->data) ? 'array' : 'struct';
74 $status = drupal_write_record('url_alias', $path, (!empty($path['pid']) ? 'pid' : array()));
75 $list = (!empty($list) ? array_combine($list, $list) : array());
76 'cardinality' => !empty($field_settings['cardinality']) ? $field_settings['cardinality'] : 1,
77 $element['#progress_indicator'] = empty($element['#progress_indicator']) ? 'none' : $element['#progress_indicator'];
78 '#type' => empty($item['fid']) ? 'hidden' : 'checkbox',
79 $output = empty($rows) ? '' : theme('table', array('header' => $headers, 'rows' => $rows, 'attributes' => array('id' => $table_id)));
80 $element[$delta] = array('#markup' => empty($item['uri']) ? '' : file_create_url($item['uri']));
81 return empty($rows) ? '' : theme('table', array('header' => $header, 'rows' => $rows));
82 $where = !empty($where) ? implode(' AND ', $where) : '';
83 return !empty($theme->info[$type]) ? $theme->info[$type] : array();
84 $variables['attributes_array']['about'] = empty($variables['node_url']) ? NULL: $variables['node_url'];
85 $variables['attributes_array']['typeof'] = empty($variables['node']->rdf_mapping['rdftype']) ? NULL : $variables['node']->rdf_mapping['rdftype'];
86 $variables['title_attributes_array']['property'] = empty($variables['node']->rdf_mapping['title']['predicates']) ? NULL : $variables['node']->rdf_mapping['title']['predicates'];
87 $name = empty($account["name"]) ? $this->web_user->name : $account["name"] . " (not verified)";
88 $node->icon = !empty($node->icon) ? $node->icon : '';
89 '#default_value' => !empty($node->title) ? $node->title : '',
90 $title = !empty($vocabulary->name) ? $vocabulary->name : '';
91 $variables['forums'][$id]->description = !empty($forum->description) ? filter_xss_admin($forum->description) : '';
92 $choice_count = max(2, empty($node->choice) ? 2 : count($node->choice));
93 '#default_value' => !empty($settings['display_summary']) ? $settings['display_summary'] : 0,
94 return (!empty($row['label']['#value']) ? 'main' : 'add_new');
95 $class = (empty($region['rows_order']) ? 'region-empty' : 'region-populated');
96 return !empty($options[$field_type]) ? $options[$field_type] : array();
97 return !empty($options[$field_type]) ? $options[$field_type] : array();
98 '#value' => !empty($instance['widget']['weight']) ? $instance['widget']['weight'] : 0,
99 '#default_value' => !empty($instance['label']) ? $instance['label'] : $field['field_name'],
100 '#default_value' => !empty($instance['description']) ? $instance['description'] : '',
101 '#value' => !empty($field['instance']['widget']['active']) ? 1 : 0,
102 $destinations = !empty($_REQUEST['destinations']) ? $_REQUEST['destinations'] : array();
103 $callback = empty($access_callback) ? 0 : trim($access_callback);
104 'old_name' => !empty($menu['menu_name']) ? $menu['menu_name'] : '',
105 $data['width'] = empty($data['width']) ? PHP_INT_MAX : $data['width'];
106 $data['height'] = empty($data['height']) ? PHP_INT_MAX : $data['height'];
107 $value = empty($element['#allow_negative']) ? $element['#value'] : preg_replace('/^-/', '', $element['#value']);
108 $row[] = drupal_render($form[$key]['label']) . (empty($summary) ? '' : ' ' . $summary);
109 'class' => !empty($form[$key]['weight']['#access']) || $key == 'new' ? array('draggable') : array(),
110 'cardinality' => !empty($field_settings['cardinality']) ? $field_settings['cardinality'] : 1,
111 '@uid' => !empty($account->uid) ? $account->uid : t('not yet assigned'),
112 '@user_url' => !empty($account->uid) ? url("user/$account->uid", array('absolute' => TRUE)) : t('not yet assigned'),
113 '@user_edit_url' => !empty($account->uid) ? url("user/$account->uid/edit", array('absolute' => TRUE)) : t('not yet assigned'),
114 '#default_value' => !empty($region) && $region != -1 ? $region : NULL,
115 $variables['block_listing'][$region][$i]->row_class = !empty($block['#attributes']['class']) ? implode(' ', $block['#attributes']['class']) : '';
116 $variables['block_listing'][$region][$i]->delete_link = !empty($block['delete']) ? drupal_render($block['delete']) : '';
117 $demo_theme = !empty($arg[4]) ? $arg[4] : variable_get('theme_default', 'bartik');
118 <tr class="region-message region-<?php print $region?>-message <?php print empty($block_listing[$region]) ? 'region-empty' : 'region-populated'; ?>">
119 'openid.claimed_id' => !empty($_REQUEST['openid_claimed_id']) ? $_REQUEST['openid_claimed_id'] : '',
120 $identity = !empty($service['identity']) ? $service['identity'] : $claimed_id;
121 $replacements[$original] = !empty($account->uid) ? $account->uid : t('not yet assigned');
122 $replacements[$original] = !empty($account->uid) ? url("user/$account->uid", $url_options) : t('not yet assigned');
123 $replacements[$original] = !empty($account->uid) ? url("user/$account->uid/edit", $url_options) : t('not yet assigned');
124 $replacements[$original] = !empty($account->login) ? format_date($account->login, 'medium', '', NULL, $language_code) : t('never');
125 $replacements[$original] = !empty($account->created) ? format_date($account->created, 'medium', '', NULL, $language_code) : t('not yet created');
126 'warning' => !empty($perm_item['restrict access']) ? t('Warning: Give to trusted roles only; this permission has security implications.') : '',
127 $edit['data'] = !empty($edit['data']) ? array_merge($account->data, $edit['data']) : $account->data;
128 $edit['picture'] = empty($edit['picture']->fid) ? 0 : $edit['picture']->fid;
129 return empty($arg) || $arg == '%' ? $GLOBALS['user']->uid : $arg;
130 return empty($mail) ? NULL : $mail['result'];
131 $sandbox['#finished'] = empty($sandbox['max']) ? 1 : ($sandbox['progress'] / $sandbox['max']);
132 $requested_theme = empty($custom_theme) ? 'NONE' : $custom_theme;
133 '#default_value' => !empty($form_state['values']['drivertext']) ? $form_state['values']['drivertext'] : "",
134 '#default_value' => !empty($antonym) ? $antonym : '',
135 $this->assertTrue(TRUE, t('All the expected hooks were called: %expected', array('%expected' => empty($expected) ? t('(none)') : implode(', ', $expected))));
136 $this->assertTrue(FALSE, t('Unexpected hooks were called: %unexpected.', array('%unexpected' => empty($unexpected) ? t('(none)') : implode(', ', $unexpected))));
137 $url = empty($curl_options[CURLOPT_URL]) ? curl_getinfo($this->curlHandle, CURLINFO_EFFECTIVE_URL) : $curl_options[CURLOPT_URL];
138 '!method' => !empty($curl_options[CURLOPT_NOBODY]) ? 'HEAD' : (empty($curl_options[CURLOPT_POSTFIELDS]) ? 'GET' : 'POST'),
139 $action = $this->getAbsoluteUrl(!empty($submit['path']) ? $submit['path'] : 'system/ajax');
140 return $this->assertTrue(isset($elements[0]) && !empty($elements[0]['checked']), $message ? $message : t('Checkbox field @id is checked.', array('@id' => $id)), t('Browser'));
141 return $this->assertTrue(isset($elements[0]) && empty($elements[0]['checked']), $message ? $message : t('Checkbox field @id is not checked.', array('@id' => $id)), t('Browser'));
142 return $this->assertTrue(isset($elements[0]) && !empty($elements[0]['selected']), $message ? $message : t('Option @option for field @id is selected.', array('@option' => $option, '@id' => $id)), t('Browser'));
143 return $this->assertTrue(isset($elements[0]) && empty($elements[0]['selected']), $message ? $message : t('Option @option for field @id is not selected.', array('@option' => $option, '@id' => $id)), t('Browser'));
144 '#default_value' => !empty($account->data['contact']) ? $account->data['contact'] : FALSE,
145 return (!empty($page_term) ? $page_term->tid == $term->tid : FALSE);
146 $function = !empty($field['settings']['options_list_callback']) ? $field['settings']['options_list_callback'] : 'taxonomy_allowed_values';
147 $incompatible[] = !empty($info['name']) ? $info['name'] : t('Unknown');
148 $row .= !empty($status_label) ? $status_label : check_plain($project['reason']);
149 $sub_themes = !empty($file->enabled_sub_themes) ? $file->enabled_sub_themes : array();
150 $base_themes = !empty($file->base_themes) ? $file->base_themes : array();
151 'link' => empty($feed->link) ? $feed->url : $feed->link,
152 'description' => empty($feed->description) ? '' : $feed->description,
153 'image' => empty($feed->image) ? '' : $feed->image,
154 'etag' => empty($feed->etag) ? '' : $feed->etag,
155 'modified' => empty($feed->modified) ? 0 : $feed->modified,
156 $modified = empty($feed->http_headers['last-modified']) ? 0 : strtotime($feed->http_headers['last-modified']);
157 $etag = empty($feed->http_headers['etag']) ? '' : $feed->http_headers['etag'];
158 $feed->link = !empty($channel['LINK']) ? $channel['LINK'] : '';
159 $feed->description = !empty($channel['DESCRIPTION']) ? $channel['DESCRIPTION'] : '';
160 $comment_settings = ($node->comment == COMMENT_NODE_HIDDEN && empty($comment_count)) ? COMMENT_NODE_CLOSED : $node->comment;
161 'pid' => empty($comment->pid) ? 0 : $comment->pid,
162 $date = (!empty($comment->date) ? $comment->date : format_date($comment->created, 'custom', 'Y-m-d H:i O'));
163 $comment->created = !empty($comment->created) ? $comment->created : REQUEST_TIME;
164 $variables['new'] = !empty($comment->new) ? t('new') : '';
165 $langcode = empty($revision->language) ? LANGUAGE_NONE : $revision->language;
166 $type->base = !empty($form_state['values']['base']) ? $form_state['values']['base'] : 'node_content';
167 '#default_value' => !empty($node->log) ? $node->log : '',
168 '#default_value' => !empty($node->name) ? $node->name : '',
169 '#description' => t('Format: %time. The date format is YYYY-MM-DD and %timezone is the time zone offset from UTC. Leave blank to use the time of form submission.', array('%time' => !empty($node->date) ? date_format(date_create($node->date), 'Y-m-d H:i:s O') : format_date($node->created, 'custom', 'Y-m-d H:i:s O'), '%timezone' => !empty($node->date) ? date_format(date_create($node->date), 'O') : format_date($node->created, 'custom', 'O'))),
170 '#default_value' => !empty($node->date) ? $node->date : '',
171 return (!empty($type->help) ? '<p>' . filter_xss_admin($type->help) . '</p>' : '');
172 return (!empty($type->help) ? '<p>' . filter_xss_admin($type->help) . '</p>' : '');
173 $items[] = l($node->title, 'node/' . $node->nid, !empty($node->comment_count) ? array('attributes' => array('title' => format_plural($node->comment_count, '1 comment', '@count comments'))) : array());
174 $existing_type = !empty($info->old_type) ? $info->old_type : $info->type;
175 $node->created = !empty($node->date) ? strtotime($node->date) : REQUEST_TIME;
176 return (!empty($page_node) ? $page_node->nid == $node->nid : FALSE);
177 '#default_value' => !empty($node->title) ? $node->title : '',
178 $required = !empty($element['#required']) ? '<span class="form-required" title="' . t('This field is required. ') . '">*</span>' : '';
179 $languages = !empty($entity->$field_name) ? $field_languages : $all_languages;
180 $id = ($load_current || empty($entity_type['entity keys']['revision'])) ? $row->entity_id : $row->revision_id;
181 $label = !empty($label) ? $label : $bundle . ' label';
182 $actual_mode = (!empty($view_mode_settings[$view_mode]['custom_settings']) ? $view_mode : 'default');
183 $actual_mode = (!empty($view_mode_settings[$view_mode]['custom_settings'])) ? $view_mode : 'default';
184 $variables['attributes'] = empty($variables['attributes_array']) ? '' : drupal_attributes($variables['attributes_array']);
185 $variables['title_attributes'] = empty($variables['title_attributes_array']) ? '' : drupal_attributes($variables['title_attributes_array']);
186 $variables['content_attributes'] = empty($variables['content_attributes_array']) ? '' : drupal_attributes($variables['content_attributes_array']);
187 $variables['item_attributes'][$delta] = empty($variables['item_attributes_array'][$delta]) ? '' : drupal_attributes($variables['item_attributes_array'][$delta]);
188 $languages = !empty($entity->$field_name) ? $field_languages : $all_languages;
189 $languages = !empty($entity->$field_name) ? $field_languages : $all_languages;
190 $current_bid = empty($node->book['bid']) ? 0 : $node->book['bid'];
191 $node->book += _book_link_defaults(!empty($node->nid) ? $node->nid : 'new');
192 $sandbox['#finished'] = empty($sandbox['max']) ? 1 : ($sandbox['progress'] / $sandbox['max']);
193 $default_theme = !empty($GLOBALS['theme_key']) ? $GLOBALS['theme_key'] : NULL;
194 $number_enabled = !empty($shortcut_link['hidden']) ? 0 : 1;
195 $set->title = empty($title) ? $this->randomName(10) : $title;
196 'link_title' => !empty($title) ? $title : $this->randomName(10),
197 $title = empty($links->links[$langcode]) ? l($translation_node->title, $path) : l($translation_node->title, $links->links[$langcode]['href'], $links->links[$langcode]);
198 $options[] = empty($links->links[$langcode]) ? l($text, $path) : l($text, $links->links[$langcode]['href'], $links->links[$langcode]);
199 $options[] = empty($links->links[$langcode]) ? l($text, $path, $query) : l($text, $links->links[$langcode]['href'], array_merge_recursive($links->links[$langcode], $query));
200 $tnid = !empty($node->tnid) ? $node->tnid : $form['#node']->translation_source->nid;
201 return !empty($permission) ? user_roles(FALSE, $permission) : array();
202 $filters = !empty($format->format) ? filter_list_format($format->format) : array();
203 $id = empty($id) ? 2 : $id + 1;
204 $locale_t[$langcode][$data->context][$data->source] = (empty($data->translation) ? TRUE : $data->translation);
205 $locale_t[$langcode][$context][$string] = (empty($translation->translation) ? TRUE : $translation->translation);
206 $args = array(':url' => base_path() . (!empty($GLOBALS['conf']['clean_url']) ? $language_browser_fallback : "?q=$language_browser_fallback"));
207 $prefix = empty($language->prefix) ? '' : $language->prefix . '/';
208 $ratio = (!empty($groupsums[$data->textgroup]) && $data->translation > 0) ? round(($data->translation/$groupsums[$data->textgroup]) * 100.0, 2) : 0;
209 $page['content']['dashboard'][$region] = !empty($page[$region]) ? $page[$region] : array();
210 $info['overlay_regions'] = !empty($info['overlay_regions']) ? array_merge($info['overlay_regions'], dashboard_regions()) : dashboard_regions();
211 . '<h2>' . (!empty($block['title']) && $block['title'] != '<none>' ? check_plain($block['title']) : check_plain($block['info'])) . '</h2>'
Count:
##########################
211
Instances of isset:
###################
1 $connectionId = isset($entityManager['connection']) ? sprintf('doctrine.dbal.%s_connection', $entityManager['connection']) : 'database_connection';
2 $eventManagerID = isset($entityManager['connection']) ? sprintf('doctrine.dbal.%s_connection.event_manager', $entityManager['connection']) : 'doctrine.dbal.event_manager';
3 $name = isset($params['path']) ? $params['path']:$params['dbname'];
4 $type = isset($e[1]) ? $e[1] : 'string';
5 $type = isset($matches[1][0]) ? $matches[1][0] : $type;
6 $length = isset($matches[2][0]) ? $matches[2][0] : null;
7 $defaultDatabase = isset($documentManager['default_database']) ? $documentManager['default_database'] : $defaultDB;
8 $eventManagerName = isset($documentManager['event_manager']) ? $documentManager['event_manager'] : $documentManager['name'];
9 new Reference(sprintf('doctrine.odm.mongodb.%s_connection', isset($documentManager['connection']) ? $documentManager['connection'] : $documentManager['name'])),
10 $dmMetadataCacheDriver = isset($documentManager['metadata_cache_driver']) ? $documentManager['metadata_cache_driver'] : $defaultMetadataCache;
11 $memcacheClass = isset($dmMetadataCacheDriver['class']) ? $dmMetadataCacheDriver['class'] : sprintf('%%doctrine.odm.mongodb.cache.%s_class%%', $type);
12 $memcacheHost = isset($dmMetadataCacheDriver['host']) ? $dmMetadataCacheDriver['host'] : '%doctrine.odm.mongodb.cache.memcache_host%';
13 $memcachePort = isset($dmMetadataCacheDriver['port']) ? $dmMetadataCacheDriver['port'] : '%doctrine.odm.mongodb.cache.memcache_port%';
14 $memcacheInstanceClass = isset($dmMetadataCacheDriver['instance-class']) ? $dmMetadataCacheDriver['instance-class'] : (isset($dmMetadataCacheDriver['instance_class']) ? $dmMetadataCacheDriver['instance_class'] : '%doctrine.odm.mongodb.cache.memcache_instance_class%');
15 isset($connection['server']) ? $connection['server'] : null,
16 isset($connection['options']) ? $connection['options'] : array(),
17 $priority = isset($event['priority']) ? $event['priority'] : 0;
18 $priority = isset($attributes[0]['priority']) ? $attributes[0]['priority'] : 0;
19 $priority = isset($attributes[0]['priority']) ? $attributes[0]['priority'] : 0;
20 ->replaceArgument(0, str_replace('%', '%%', isset($links[$ide]) ? $links[$ide] : $ide))
21 ->replaceArgument(1, isset($config['assets_base_urls']) ? $config['assets_base_urls'] : array())
22 return isset($this->templates[$key]) ? $this->templates[$key] : null;
23 $alt = $this->generateInternalUri($options['alt'][0], isset($options['alt'][1]) ? $options['alt'][1] : array(), isset($options['alt'][2]) ? $options['alt'][2] : array());
24 $options['attributes'] = isset($alt[1]) ? $alt[1] : array();
25 $options['query'] = isset($alt[2]) ? $alt[2] : array();
26 return isset($parameters[$match[1]]) ? $parameters[$match[1]] : $match[0];
27 $dir = isset($_SERVER['KERNEL_DIR']) ? $_SERVER['KERNEL_DIR'] : $this->getPhpUnitXmlDir();
28 isset($options['environment']) ? $options['environment'] : 'test',
29 isset($options['debug']) ? $options['debug'] : true
30 $method = isset($requirements['_method']) ? strtoupper(is_array($requirements['_method']) ? implode(', ', $requirements['_method']) : $requirements['_method']) : 'ANY';
31 $method = isset($requirements['_method']) ? strtoupper(is_array($requirements['_method']) ? implode(', ', $requirements['_method']) : $requirements['_method']) : 'ANY';
32 <option disabled="disabled"><?php echo isset($separator) ? $separator : '-----------------' ?></option>
33 $priority = isset($attributes[0]['priority']) ? $attributes[0]['priority'] : 0;
34 $userProvider = isset($firewall[$key]['provider']) ? $this->getUserProviderId($firewall[$key]['provider']) : $defaultProvider;
35 throw new \LogicException(sprintf('No authentication listener registered for pattern "%s".', isset($firewall['pattern']) ? $firewall['pattern'] : ''));
36 $userProvider = isset($config['provider']) ? $this->getUserProviderId($config['provider']) : $defaultProvider;
37 return $this->assetsHelper->getUrl($asset->getTargetUrl(), isset($options['package']) ? $options['package'] : null);
38 isset($handler['max_files']) ? $handler['max_files'] : 0,
39 isset($handler['buffer_size']) ? $handler['buffer_size'] : 0,
40 isset($handler['buffer_size']) ? $handler['buffer_size'] : 0,
41 return isset($this->objectFieldAces[$field]) ? $this->objectFieldAces[$field] : array();
42 $password = isset($attributes['password']) ? $attributes['password'] : null;
43 $enabled = isset($attributes['enabled']) ? $attributes['enabled'] : true;
44 $roles = isset($attributes['roles']) ? $attributes['roles'] : array();
45 $key = isset($arg['key']) ? (string) $arg['key'] : (!$arguments ? 0 : max(array_keys($arguments)) + 1);
46 $this->import($import['resource'], null, isset($import['ignore_errors']) ? (Boolean) $import['ignore_errors'] : false, $file);
47 return isset($this->tags[$name]) ? $this->tags[$name] : array();
48 return (isset($this->server[$key])) ? $this->server[$key] : $default;
49 isset($this->server['HTTPS']) ? 's' : '',
50 isset($this->server['HTTP_HOST']) ? $this->server['HTTP_HOST'] : 'localhost'
51 return isset($this->cookieJar[$name]) ? $this->cookieJar[$name] : null;
52 return isset($this->options[$name]) ? $this->options[$name] : null;
53 return isset($choices[$choice]) ? $choices[$choice] : null;
54 return isset($this->slots[$name]) ? $this->slots[$name] : $default;
55 return isset($this->attributes['_flash']) ? $this->attributes['_flash'] : array();
56 $cacheControl[strtolower($match[1])] = isset($match[2]) && $match[2] ? $match[2] : (isset($match[3]) ? $match[3] : true);
57 $queryString = isset($components['query']) ? html_entity_decode($components['query']) : '';
58 return isset(static::$formats[$format]) ? static::$formats[$format][0] : null;
59 return isset($preferredLanguages[0]) ? $preferredLanguages[0] : null;
60 return isset($preferredLanguages[0]) ? $preferredLanguages[0] : $locales[0];
61 'httponly' => isset($cookieDefaults['httponly']) ? $cookieDefaults['httponly'] : false,
62 'class' => isset($entry['class']) ? $entry['class'] : '',
63 'type' => isset($entry['type']) ? $entry['type'] : '',
64 'file' => isset($entry['file']) ? $entry['file'] : null,
65 'line' => isset($entry['line']) ? $entry['line'] : null,
66 'args' => isset($entry['args']) ? $this->flattenArgs($entry['args']) : array(),
67 throw new \ErrorException(sprintf('%s: %s in %s line %d', isset($this->levels[$level]) ? $this->levels[$level] : $level, $message, $file, $line));
68 return isset($this->data['error_count']) ? $this->data['error_count'] : 0;
69 return isset($this->data['logs']) ? $this->data['logs'] : array();
70 if ($this->requestsMatch(isset($entry[1]['vary']) ? $entry[1]['vary'][0] : '', $request->headers->all(), $entry[0])) {
71 $v1 = isset($env1[$key]) ? $env1[$key] : null;
72 $v2 = isset($env2[$key]) ? $env2[$key] : null;
73 isset($options['alt']) ? $options['alt'] : null,
74 isset($options['onerror']) && 'continue' == $options['onerror'] ? 'true' : 'false'
75 return isset($this->messages[$domain]) ? $this->messages[$domain] : array();
76 return isset($this->messages[$domain][$id]) ? $this->messages[$domain][$id] : $id;
77 $modifiers = isset($matches['modifiers']) ? $matches['modifiers'] : '';
78 $magnitude = strtolower(isset($matches[3]) ? $matches[3] : '');
79 $this->setOperator(isset($matches[1]) ? $matches[1] : '==');
80 $operator = isset($matches[1]) ? $matches[1] : '==';
81 $rule[] = sprintf('RewriteCond %%{%s} !-z%s', $methodVar, isset($methodVars[$i + 1]) ? ' [OR]' : '');
82 return isset($this->routes[$name]) ? $this->routes[$name] : null;
83 return isset($this->options[$name]) ? $this->options[$name] : null;
84 return isset($this->defaults[$name]) ? $this->defaults[$name] : null;
85 return isset($this->requirements[$key]) ? $this->requirements[$key] : null;
86 return isset($this->parameters[$name]) ? $this->parameters[$name] : null;
87 $type = isset($config['type']) ? $config['type'] : null;
88 $prefix = isset($config['prefix']) ? $config['prefix'] : null;
89 $defaults = isset($config['defaults']) ? $config['defaults'] : array();
90 $requirements = isset($config['requirements']) ? $config['requirements'] : array();
91 $options = isset($config['options']) ? $config['options'] : array();
92 return isset($this->attributes[$attr]) ? $this->attributes[$attr] : null;
93 $plainSortFlag = isset($intlToPlainFlagMap[$sortFlag]) ? $intlToPlainFlagMap[$sortFlag] : self::SORT_REGULAR;
94 'year' => isset($options['year']) ? $options['year'] : 1970,
95 'month' => isset($options['month']) ? $options['month'] : 1,
96 'day' => isset($options['day']) ? $options['day'] : 1,
97 'hour' => isset($options['hour']) ? $options['hour'] : 0,
98 'hourInstance' => isset($options['hourInstance']) ? $options['hourInstance'] : null,
99 'minute' => isset($options['minute']) ? $options['minute'] : 0,
100 'second' => isset($options['second']) ? $options['second'] : 0,
101 'marker' => isset($options['marker']) ? $options['marker'] : null,
102 'timezone' => isset($options['timezone']) ? $options['timezone'] : null,
103 return isset($this->arguments[$name]) ? $this->arguments[$name] : $this->definition->getArgument($name)->getDefault();
104 return isset($this->options[$name]) ? $this->options[$name] : $this->definition->getOption($name)->getDefault();
105 $command = isset($this->commands[$name]) ? $this->commands[$name] : $this->aliases[$name];
106 $class = isset($trace[$i]['class']) ? $trace[$i]['class'] : '';
107 $type = isset($trace[$i]['type']) ? $trace[$i]['type'] : '';
108 $file = isset($trace[$i]['file']) ? $trace[$i]['file'] : 'n/a';
109 $line = isset($trace[$i]['line']) ? $trace[$i]['line'] : 'n/a';
Count:
##########################
109
Instances of empty:
###################
1 $this->fileLinkFormat = empty($fileLinkFormat) ? ini_get('xdebug.file_link_format') : $fileLinkFormat;
2 $path = (empty($controller) ? '' : $controller.'/').$this->get('name').'.'.$this->get('format').'.'.$this->get('engine');
3 return empty($this->parameters['bundle']) ? 'views/'.$path : '@'.$this->get('bundle').'/Resources/views/'.$path;
4 $this->path = empty($path) ? '/' : $path;
5 $this->path = empty($path) ? '/' : $path;
6 $this->path = empty($path) ? '/' : $path;
7 empty($value['year']) ? '1970' : $value['year'],
8 empty($value['month']) ? '1' : $value['month'],
9 empty($value['day']) ? '1' : $value['day'],
10 empty($value['hour']) ? '0' : $value['hour'],
11 empty($value['minute']) ? '0' : $value['minute'],
12 empty($value['second']) ? '0' : $value['second'],
13 $localPropertyPath = empty($propertyPath) ? $property : $propertyPath.'.'.$property;
14 return empty($data) ? null : $data;
Count:
##########################
14
Instances of isset:
###################
1 return isset($this->_m[$behavior]) ? $this->_m[$behavior] : null;
2 return isset($output[1]) ? $output[1]*1024 : 0;
3 return isset($_GET[$name]) ? $_GET[$name] : (isset($_POST[$name]) ? $_POST[$name] : $defaultValue);
4 return isset($_GET[$name]) ? $_GET[$name] : $defaultValue;
5 return isset($_POST[$name]) ? $_POST[$name] : $defaultValue;
6 return isset($this->_deleteParams[$name]) ? $this->_deleteParams[$name] : $defaultValue;
7 return isset($this->_putParams[$name]) ? $this->_putParams[$name] : $defaultValue;
8 $this->_port=!$this->getIsSecureConnection() && isset($_SERVER['SERVER_PORT']) ? (int)$_SERVER['SERVER_PORT'] : 80;
9 $this->_securePort=$this->getIsSecureConnection() && isset($_SERVER['SERVER_PORT']) ? (int)$_SERVER['SERVER_PORT'] : 443;
10 return isset($_GET[$this->routeVar]) ? $_GET[$this->routeVar] : $r;
11 $route=isset($url[0]) ? $url[0] : '';
12 $route=isset($url[0]) ? $url[0] : $app->defaultController;
13 return isset($_SESSION[$key]) ? $_SESSION[$key] : $defaultValue;
14 return isset($_SESSION[$key]) ? $_SESSION[$key] : $defaultValue;
15 return isset($_SESSION[$key]) ? $_SESSION[$key] : null;
16 return isset($_SESSION[$offset]) ? $_SESSION[$offset] : null;
17 $htmlOptions['submit']=isset($htmlOptions['href']) ? $htmlOptions['href'] : '';
18 return self::tag('textarea',$htmlOptions,isset($htmlOptions['encode']) && !$htmlOptions['encode'] ? $value : self::encode($value));
19 $value=isset($htmlOptions['value']) ? $htmlOptions['value'] : 1;
20 $value=isset($htmlOptions['value']) ? $htmlOptions['value'] : 1;
21 return self::tag('textarea',$htmlOptions,isset($htmlOptions['encode']) && !$htmlOptions['encode'] ? $text : self::encode($text));
22 $hiddenOptions=isset($htmlOptions['id']) ? array('id'=>self::ID_PREFIX.$htmlOptions['id']) : array('id'=>false);
23 $hiddenOptions=isset($htmlOptions['id']) ? array('id'=>self::ID_PREFIX.$htmlOptions['id']) : array('id'=>false);
24 $hiddenOptions=isset($htmlOptions['id']) ? array('id'=>self::ID_PREFIX.$htmlOptions['id']) : array('id'=>false);
25 $hiddenOptions=isset($htmlOptions['id']) ? array('id'=>self::ID_PREFIX.$htmlOptions['id']) : array('id'=>false);
26 $hiddenOptions=isset($htmlOptions['id']) ? array('id'=>self::ID_PREFIX.$htmlOptions['id']) : array('id'=>false);
27 $key=isset($htmlOptions['key']) ? $htmlOptions['key'] : 'primaryKey';
28 $skinName=isset($properties['skin']) ? $properties['skin'] : 'default';
29 $scripts=isset($this->scripts[self::POS_END]) ? $this->scripts[self::POS_END] : array();
30 return isset($this->_errors[$attribute]) ? $this->_errors[$attribute] : array();
31 return isset($this->_errors[$attribute]) ? reset($this->_errors[$attribute]) : null;
32 $values2[$name]=isset($values[$name]) ? $values[$name] : null;
33 return isset($this->getMetaData()->relations[$name]) ? $this->getMetaData()->relations[$name] : null;
34 return isset($map[$type]) ? $map[$type] : PDO::PARAM_STR;
35 return (isset($this->columnTypes[$t]) ? $this->columnTypes[$t] : $t).substr($type,$pos);
36 return isset($this->columns[$name]) ? $this->columns[$name] : null;
37 $sql=isset($query['distinct']) && $query['distinct'] ? 'SELECT DISTINCT' : 'SELECT';
38 $sql.=' '.(isset($query['select']) ? $query['select'] : '*');
39 $limit=isset($query['limit']) ? (int)$query['limit'] : -1;
40 $offset=isset($query['offset']) ? (int)$query['offset'] : -1;
41 return isset($this->_query['select']) ? $this->_query['select'] : '';
42 return isset($this->_query['distinct']) ? $this->_query['distinct'] : false;
43 return isset($this->_query['from']) ? $this->_query['from'] : '';
44 return isset($this->_query['where']) ? $this->_query['where'] : '';
45 return isset($this->_query['join']) ? $this->_query['join'] : '';
46 return isset($this->_query['group']) ? $this->_query['group'] : '';
47 return isset($this->_query['having']) ? $this->_query['having'] : '';
48 return isset($this->_query['order']) ? $this->_query['order'] : '';
49 return isset($this->_query['limit']) ? $this->_query['limit'] : -1;
50 return isset($this->_query['offset']) ? $this->_query['offset'] : -1;
51 return isset($this->_query['union']) ? $this->_query['union'] : '';
52 'relations'=>isset($this->relations[$className]) ? $this->relations[$className] : array(),
53 return isset($this->relations[$className]) ? $this->relations[$className] : array();
54 $this->redirect(isset($_POST['returnUrl']) ? $_POST['returnUrl'] : array('admin'));
55 $orders[]=isset($definition['desc']) ? $definition['desc'] : $attribute.' DESC';
56 $orders[]=isset($definition['asc']) ? $definition['asc'] : $attribute;
57 return isset($this->_directions[$attribute]) ? $this->_directions[$attribute] : null;
58 return isset($_GET[$this->routeVar]) ? $_GET[$this->routeVar] : $r;
59 return isset($_GET[$name]) ? $_GET[$name] : (isset($_POST[$name]) ? $_POST[$name] : $defaultValue);
60 return isset($_GET[$name]) ? $_GET[$name] : $defaultValue;
61 return isset($_POST[$name]) ? $_POST[$name] : $defaultValue;
62 return isset($this->_deleteParams[$name]) ? $this->_deleteParams[$name] : $defaultValue;
63 return isset($this->_putParams[$name]) ? $this->_putParams[$name] : $defaultValue;
64 $this->_port=!$this->getIsSecureConnection() && isset($_SERVER['SERVER_PORT']) ? (int)$_SERVER['SERVER_PORT'] : 80;
65 $this->_securePort=$this->getIsSecureConnection() && isset($_SERVER['SERVER_PORT']) ? (int)$_SERVER['SERVER_PORT'] : 443;
66 return isset($this->_children[$names]) ? $this->_children[$names] : array();
67 $route=isset($url[0]) ? $url[0] : $app->defaultController;
68 return isset($_SESSION[$key]) ? $_SESSION[$key] : $defaultValue;
69 $options=isset($node['htmlOptions']) ? $node['htmlOptions'] : array();
70 $selector=isset($selector) ? "$selector, #$id" : "#$id";
71 $inputID=isset($htmlOptions['inputID']) ? $htmlOptions['inputID'] : $id;
72 $validators=isset($htmlOptions['clientValidation']) ? array($htmlOptions['clientValidation']) : array();
73 $htmlOptions['style']=isset($htmlOptions['style']) ? rtrim($htmlOptions['style'],';').';display:none' : 'display:none';
74 return isset(self::$_files[$name]) && self::$_files[$name]->getError()!=UPLOAD_ERR_NO_FILE ? self::$_files[$name] : null;
75 $htmlOptions['submit']=isset($htmlOptions['href']) ? $htmlOptions['href'] : '';
76 return self::tag('textarea',$htmlOptions,isset($htmlOptions['encode']) && !$htmlOptions['encode'] ? $value : self::encode($value));
77 $value=isset($htmlOptions['value']) ? $htmlOptions['value'] : 1;
78 $value=isset($htmlOptions['value']) ? $htmlOptions['value'] : 1;
79 return self::tag('textarea',$htmlOptions,isset($htmlOptions['encode']) && !$htmlOptions['encode'] ? $text : self::encode($text));
80 $hiddenOptions=isset($htmlOptions['id']) ? array('id'=>self::ID_PREFIX.$htmlOptions['id']) : array('id'=>false);
81 $hiddenOptions=isset($htmlOptions['id']) ? array('id'=>self::ID_PREFIX.$htmlOptions['id']) : array('id'=>false);
82 $hiddenOptions=isset($htmlOptions['id']) ? array('id'=>self::ID_PREFIX.$htmlOptions['id']) : array('id'=>false);
83 $hiddenOptions=isset($htmlOptions['id']) ? array('id'=>self::ID_PREFIX.$htmlOptions['id']) : array('id'=>false);
84 $hiddenOptions=isset($htmlOptions['id']) ? array('id'=>self::ID_PREFIX.$htmlOptions['id']) : array('id'=>false);
85 $key=isset($htmlOptions['key']) ? $htmlOptions['key'] : 'primaryKey';
86 return CHtml::imageButton(isset($attributes['src']) ? $attributes['src'] : '',$attributes);
87 return isset($_SESSION[$key]) ? $_SESSION[$key] : $defaultValue;
88 return isset($_SESSION[$key]) ? $_SESSION[$key] : null;
89 return isset($_SESSION[$offset]) ? $_SESSION[$offset] : null;
90 $skinName=isset($properties['skin']) ? $properties['skin'] : 'default';
91 $scripts=isset($this->scripts[self::POS_END]) ? $this->scripts[self::POS_END] : array();
92 $route=isset($url[0]) ? $url[0] : '';
93 $o1 = isset($this->_blocks[$b1]) ? $this->_blocks[$b1]['order'] : $this->_regions[$b1]['order'];
94 $o2 = isset($this->_blocks[$b2]) ? $this->_blocks[$b2]['order'] : $this->_regions[$b2]['order'];
95 $attr['style'] = isset($attr['style']) ? $attr['style'] : '';
96 if ($index !== false) $array = (isset($array[$index]) && is_array($array[$index])) ? $array[$index] : array();
97 $attr['style'] = isset($attr['style']) ? $attr['style'] : '';
98 $lang = isset($attr['lang']) ? $attr['lang'] : false;
99 $xml_lang = isset($attr['xml:lang']) ? $attr['xml:lang'] : false;
100 $oldskip = isset($old[0]) ? $old[0]->skip : array();
101 return isset($this->_data['currencySymbols'][$currency]) ? $this->_data['currencySymbols'][$currency] : null;
102 return isset($this->_data['numberSymbols'][$name]) ? $this->_data['numberSymbols'][$name] : null;
103 return isset($this->_data['monthNamesSA'][$width][$month]) ? $this->_data['monthNamesSA'][$width][$month] : $this->_data['monthNames'][$width][$month];
104 return isset($this->_data['monthNames'][$width][$month]) ? $this->_data['monthNames'][$width][$month] : $this->_data['monthNamesSA'][$width][$month];
105 return isset($this->_data['monthNamesSA'][$width]) ? $this->_data['monthNamesSA'][$width] : $this->_data['monthNames'][$width];
106 return isset($this->_data['monthNames'][$width]) ? $this->_data['monthNames'][$width] : $this->_data['monthNamesSA'][$width];
107 return isset($this->_data['weekDayNamesSA'][$width][$day]) ? $this->_data['weekDayNamesSA'][$width][$day] : $this->_data['weekDayNames'][$width][$day];
108 return isset($this->_data['weekDayNames'][$width][$day]) ? $this->_data['weekDayNames'][$width][$day] : $this->_data['weekDayNamesSA'][$width][$day];
109 return isset($this->_data['weekDayNamesSA'][$width]) ? $this->_data['weekDayNamesSA'][$width] : $this->_data['weekDayNames'][$width];
110 return isset($this->_data['weekDayNames'][$width]) ? $this->_data['weekDayNames'][$width] : $this->_data['weekDayNamesSA'][$width];
111 return isset($this->_data['orientation']) ? $this->_data['orientation'] : 'ltr';
112 return isset($this->_data['pluralRules']) ? $this->_data['pluralRules'] : array();
113 $year=isset($defaults['year']) ? $defaults['year'] : date('Y');
114 $month=isset($defaults['month']) ? $defaults['month'] : date('n');
115 $day=isset($defaults['day']) ? $defaults['day'] : date('j');
116 $hour=isset($defaults['hour']) ? $defaults['hour'] : date('H');
117 $minute=isset($defaults['minute']) ? $defaults['minute'] : date('i');
118 $second=isset($defaults['second']) ? $defaults['second'] : date('s');
119 return xcache_isset($key) ? xcache_get($key) : false;
120 return !xcache_isset($key) ? $this->setValue($key,$value,$expire) : false;
121 $label=isset($button['label']) ? $button['label'] : $id;
122 $url=isset($button['url']) ? $this->evaluateExpression($button['url'],array('data'=>$data,'row'=>$row)) : '#';
123 $options=isset($button['options']) ? $button['options'] : array();
124 $options=isset($item['itemOptions']) ? $item['itemOptions'] : array();
125 $template=isset($item['template']) ? $item['template'] : $this->itemTemplate;
126 echo "\n".CHtml::openTag('ul',isset($item['submenuOptions']) ? $item['submenuOptions'] : $this->submenuHtmlOptions)."\n";
127 return CHtml::link($label,$item['url'],isset($item['linkOptions']) ? $item['linkOptions'] : array());
128 return CHtml::tag('span',isset($item['linkOptions']) ? $item['linkOptions'] : array(), $item['label']);
129 'type'=>isset($matches[3]) ? $matches[3] : 'text',
130 echo strtr(isset($attribute['template']) ? $attribute['template'] : $this->itemTemplate,$tr);
131 return isset(self::$map[$columnType]) ? new CDbExpression(self::$map[$columnType]) : time();
132 $entryScript=isset($args[0]) ? $args[0] : 'index.php';
133 $scenario=isset($args[2]) ? $args[2] : '';
134 return isset($this->_tables[$tableName]) ? $this->_tables[$tableName] : $this->generateClassName($tableName);
135 'columns'=>isset($table) ? $table->columns : array(),
136 $step=isset($args[0]) ? (int)$args[0] : 0;
137 $step=isset($args[0]) ? (int)$args[0] : 1;
138 $step=isset($args[0]) ? (int)$args[0] : 1;
139 $limit=isset($args[0]) ? (int)$args[0] : -1;
140 $limit=isset($args[0]) ? (int)$args[0] : -1;
141 $value=isset($matches[3]) ? $matches[3] : true;
142 $callback=isset($file['callback']) ? $file['callback'] : null;
143 $params=isset($file['params']) ? $file['params'] : null;
144 return isset($output[1]) ? $output[1]*1024 : 0;
145 return isset($this->_m[$behavior]) ? $this->_m[$behavior] : null;
146 return isset($this->_errors[$attribute]) ? $this->_errors[$attribute] : array();
147 return isset($this->_errors[$attribute]) ? reset($this->_errors[$attribute]) : null;
148 $values2[$name]=isset($values[$name]) ? $values[$name] : null;
149 return (isset($this->columnTypes[$t]) ? $this->columnTypes[$t] : $t).substr($type,$pos);
150 return isset($this->columns[$name]) ? $this->columns[$name] : null;
151 return isset($this->getMetaData()->relations[$name]) ? $this->getMetaData()->relations[$name] : null;
152 return isset($map[$type]) ? $map[$type] : PDO::PARAM_STR;
153 $sql=isset($query['distinct']) && $query['distinct'] ? 'SELECT DISTINCT' : 'SELECT';
154 $sql.=' '.(isset($query['select']) ? $query['select'] : '*');
155 $limit=isset($query['limit']) ? (int)$query['limit'] : -1;
156 $offset=isset($query['offset']) ? (int)$query['offset'] : -1;
157 return isset($this->_query['select']) ? $this->_query['select'] : '';
158 return isset($this->_query['distinct']) ? $this->_query['distinct'] : false;
159 return isset($this->_query['from']) ? $this->_query['from'] : '';
160 return isset($this->_query['where']) ? $this->_query['where'] : '';
161 return isset($this->_query['join']) ? $this->_query['join'] : '';
162 return isset($this->_query['group']) ? $this->_query['group'] : '';
163 return isset($this->_query['having']) ? $this->_query['having'] : '';
164 return isset($this->_query['order']) ? $this->_query['order'] : '';
165 return isset($this->_query['limit']) ? $this->_query['limit'] : -1;
166 return isset($this->_query['offset']) ? $this->_query['offset'] : -1;
167 return isset($this->_query['union']) ? $this->_query['union'] : '';
Count:
##########################
167
Instances of empty:
###################
1 $validator->on=empty($on) ? array() : array_combine($on,$on);
2 $languages[$matches[1][$i]]=empty($matches[3][$i]) ? 1.0 : floatval($matches[3][$i]);
3 $validator->on=empty($on) ? array() : array_combine($on,$on);
4 $model=new <?php echo $this->modelClass; ?><?php echo empty($this->scenario) ? '' : "('{$this->scenario}')"; ?>;
5 $languages[$matches[1][$i]]=empty($matches[3][$i]) ? 1.0 : floatval($matches[3][$i]);
6 $jsOptions=empty($jsOptions) ? '' : CJavaScript::encode($jsOptions);
7 $scheme = !empty($matches[1]) ? $matches[2] : null;
8 $authority = !empty($matches[3]) ? $matches[4] : null;
9 $query = !empty($matches[6]) ? $matches[7] : null;
10 $fragment = !empty($matches[8]) ? $matches[9] : null;
11 $userinfo = !empty($matches[1]) ? $matches[2] : null;
12 $host = !empty($matches[3]) ? $matches[3] : '';
13 $port = !empty($matches[4]) ? (int) $matches[5] : null;
14 $options=empty($this->options) ? '' : CJavaScript::encode($this->options);
15 $options=empty($this->options) ? '' : CJavaScript::encode($this->options);
16 $options=empty($this->options) ? '' : CJavaScript::encode($this->options);
17 $options=empty($this->options) ? '' : CJavaScript::encode($this->options);
18 $options=empty($this->options) ? '' : CJavaScript::encode($this->options);
19 $options=empty($this->options) ? '' : CJavaScript::encode($this->options);
20 $options=empty($this->options) ? '' : CJavaScript::encode($this->options);
21 $options=empty($this->options) ? '' : CJavaScript::encode($this->options);
22 $options=empty($this->options) ? '' : CJavaScript::encode($this->options);
23 $options=empty($this->options) ? '' : CJavaScript::encode($this->options);
24 $options=empty($this->options) ? '' : CJavaScript::encode($this->options);
25 $this->_tables[$name]=empty($className) ? $name : $className;
26 $this->logs=empty($this->logs) ? $logs : array_merge($this->logs,$logs);
Count:
##########################
26
Instances of isset:
###################
1 $val = isset($path[$i + 1]) ? $path[$i + 1] : null;
2 $validatorName = (isset($options['validator'])) ? $options['validator'] : $this->getType();
3 $param = new Zend_Server_Reflection_Parameter($params[$key], $type, (isset($this->_paramDesc[$key]) ? $this->_paramDesc[$key] : null));
4 (isset($goog_resp['Error']) ? $goog_resp['Error'] : 'Unspecified.'));
5 isset($parsed['hour']) ? $parsed['hour'] : 0,
6 isset($parsed['minute']) ? $parsed['minute'] : 0,
7 isset($parsed['second']) ? $parsed['second'] : 0,
8 isset($parsed['month']) ? (1 + $parsed['month']) : 1,
9 isset($parsed['day']) ? (1 + $parsed['day']) : 1,
10 isset($parsed['year']) ? (1970 + $parsed['year']) : 1970,
11 $endTime = isset($this->_data['end_time']) ? $this->_data['end_time'] : null;
12 $proxyPort = isset($options[self::PROXY_PORT]) ? $options[self::PROXY_PORT] : 8080;
13 $proxyCredentials = isset($options[self::PROXY_CREDENTIALS]) ? $options[self::PROXY_CREDENTIALS] : '';
14 $proxyPort = isset($options[self::PROXY_PORT]) ? $options[self::PROXY_PORT] : 8080;
15 $proxyCredentials = isset($options[self::PROXY_CREDENTIALS]) ? $options[self::PROXY_CREDENTIALS] : '';
16 return isset($metadata) ? $metadata : false;
17 $proxyPort = isset($options[self::PROXY_PORT]) ? $options[self::PROXY_PORT] : 8080;
18 $proxyCredentials = isset($options[self::PROXY_CREDENTIALS]) ? $options[self::PROXY_CREDENTIALS] : '';
19 isset($options[self::LIST_PREFIX]) ? $prefix = $options[self::LIST_PREFIX] : null;
20 isset($options[self::LIST_MAX_RESULTS]) ? $maxResults = $options[self::LIST_MAX_RESULTS] : null;
21 $updated = isset($array->lastUpdate) ? $array->lastUpdate : time();
22 $id = $this->_element->createElement('id', isset($dataentry->guid) ? $dataentry->guid : $dataentry->link);
23 $updated = isset($dataentry->lastUpdate) ? $dataentry->lastUpdate : time();
24 $type = isset($enclosure['type']) ? $enclosure['type'] : '';
25 $length = isset($enclosure['length']) ? $enclosure['length'] : '';
26 $name = isset($data['itunes']['owner']['name']) ? $data['itunes']['owner']['name'] : '';
27 $email = isset($data['itunes']['owner']['email']) ? $data['itunes']['owner']['email'] : '';
28 $desc = isset($array->description) ? $array->description : '';
29 $pubdate = isset($array->lastUpdate) ? $array->lastUpdate : time();
30 $pubdate = isset($dataentry->lastUpdate) ? $dataentry->lastUpdate : time();
31 $params = isset($params[0]) ? array($params[0]) : array();
32 $class = isset($options['class']) ? $options['class'] : 'Base';
33 //$start = isset($options['start']) ? $options['start'] : 1;
34 //$limit = isset($options['limit']) ? $options['limit'] : 20;
35 $returnValue[ $queryPart[0] ] = isset($queryPart[1]) ? $queryPart[1] : '';
36 return isset($array[$key]) ? $array[$key] : $valueIfNotSet;
37 'AzurePropertyType' => isset($azureProperties[1]) ? $azureProperties[1] : ''
38 $fileName = isset($url['path']) ? $url['path'] : $url['host'];
39 $params = isset($config[ $type .'Params' ]) ? $config[ $type .'Params' ] : array();
40 $streamOrUrl = isset($config['url']) ? $config['url'] : $config['stream'];
41 $pages = isset($options['pages']) ? $options['pages'] : array();
42 $type = isset($param['type']) ? $param['type'] : Zend_XmlRpc_Value::AUTO_DETECT_TYPE;
43 $element = isset($this->_items[$item]) ? $this->_items[$item]
44 return isset($tag['group']) ? $tag['group'] : false;
45 return isset($this->_attributes[$name]) ? $this->_attributes[$name] : null;
46 $this->_member = isset($options['member']) ? $options['member'] : self::MEMBER_DEFAULT;
47 $result['product_name'] = isset($match[2]) ? trim($match[2]) : '';
48 $prefix = isset($deviceConfig['prefix']) ? $deviceConfig['prefix'] : 'Zend_Http_UserAgent';
49 return (isset($_GET[$key])) ? $_GET[$key] : $default;
50 return (isset($_POST[$key])) ? $_POST[$key] : $default;
51 return (isset($_COOKIE[$key])) ? $_COOKIE[$key] : $default;
52 return (isset($_SERVER[$key])) ? $_SERVER[$key] : $default;
53 return (isset($_ENV[$key])) ? $_ENV[$key] : $default;
54 $filename = (isset($_SERVER['SCRIPT_FILENAME'])) ? basename($_SERVER['SCRIPT_FILENAME']) : '';
55 $path = isset($_SERVER['PHP_SELF']) ? $_SERVER['PHP_SELF'] : '';
56 $file = isset($_SERVER['SCRIPT_FILENAME']) ? $_SERVER['SCRIPT_FILENAME'] : '';
57 $reverse = (isset($config->reverse)) ? $config->reverse : null;
58 $scheme = (isset($config->scheme)) ? $config->scheme : null;
59 $this->_parts[$pos] = (isset($reqs[$name]) ? $reqs[$name] : $this->_defaultRegex);
60 $name = isset($this->_variables[$pos]) ? $this->_variables[$pos] : null;
61 $name = isset($this->_variables[$key]) ? $this->_variables[$key] : null;
62 $val = isset($path[$i + 1]) ? urldecode($path[$i + 1]) : null;
63 $params[$key] = (isset($params[$key]) ? (array_merge((array) $params[$key], array($val))): $val);
64 $this->_parts[$pos] = (isset($reqs[$name]) ? $reqs[$name] : $this->_defaultRegex);
65 $this->_wildcardData[$var] = (isset($path[$i+1])) ? urldecode($path[$i+1]) : null;
66 $name = isset($this->_variables[$pos]) ? $this->_variables[$pos] : null;
67 $name = isset($this->_variables[$key]) ? $this->_variables[$key] : null;
68 $class = (isset($info->type)) ? $info->type : 'Zend_Controller_Router_Route';
69 $options['noController'] = (isset($options['noController'])) ? $options['noController'] : false;
70 $options['noRender'] = (isset($options['noRender'])) ? $options['noRender'] : false;
71 $this->setSuffix($context, (isset($spec['suffix']) ? $spec['suffix'] : ''))
72 ->setHeaders($context, (isset($spec['headers']) ? $spec['headers'] : array()))
73 ->setCallbacks($context, (isset($spec['callbacks']) ? $spec['callbacks'] : array()));
74 $proto = (isset($_SERVER['HTTPS'])&&$_SERVER['HTTPS']!=="off") ? 'https' : 'http';
75 isset($this->_optionTemplates[$name]['frontend']['options']) ? $this->_optionTemplates[$name]['frontend']['options'] : array(),
76 isset($this->_optionTemplates[$name]['backend']['options']) ? $this->_optionTemplates[$name]['backend']['options'] : array(),
77 isset($this->_optionTemplates[$name]['frontend']['customFrontendNaming']) ? $this->_optionTemplates[$name]['frontend']['customFrontendNaming'] : false,
78 isset($this->_optionTemplates[$name]['backend']['customBackendNaming']) ? $this->_optionTemplates[$name]['backend']['customBackendNaming'] : false,
79 isset($this->_optionTemplates[$name]['frontendBackendAutoload']) ? $this->_optionTemplates[$name]['frontendBackendAutoload'] : false
80 $msg = isset($messages[1]) ? $messages[1] : $messages[0];
81 $schemeSpecific = isset($uri[1]) === true ? $uri[1] : '';
82 $schemeSpecific = isset($uri[1]) === true ? $uri[1] : '';
83 $this->_path = isset($matches[4]) === true ? $matches[4] : '';
84 $this->_query = isset($matches[6]) === true ? $matches[6] : '';
85 $this->_fragment = isset($matches[8]) === true ? $matches[8] : '';
86 $combo = isset($matches[3]) === true ? $matches[3] : '';
87 $this->_username = isset($matches[2]) === true ? $matches[2] : '';
88 $this->_password = isset($matches[4]) === true ? $matches[4] : '';
89 $this->_host = isset($matches[5]) === true ? $matches[5] : '';
90 $this->_port = isset($matches[7]) === true ? $matches[7] : '';
91 $extendedSection = (string) (isset($nsAttributes['extends']) ? $nsAttributes['extends'] : $thisSection['extends']);
92 return isset($this->_has[$var]) ? $this->_has[$var] : null;
93 $flags[] = isset(self::$_knownFlags[$flag]) ? self::$_knownFlags[$flag] : $flag;
94 $host = isset($params->host) ? $params->host : 'localhost';
95 $password = isset($params->password) ? $params->password : '';
96 $port = isset($params->port) ? $params->port : null;
97 $ssl = isset($params->ssl) ? $params->ssl : false;
98 $this->selectFolder(isset($params->folder) ? $params->folder : 'INBOX');
99 $host = isset($params->host) ? $params->host : 'localhost';
100 $password = isset($params->password) ? $params->password : '';
101 $port = isset($params->port) ? $params->port : null;
102 $ssl = isset($params->ssl) ? $params->ssl : false;
103 $this->_delim = isset($params->delim) ? $params->delim : '.';
104 return isset($filedata['size']) ? $filedata['size'] : filesize($filedata['filename']);
105 $result[$num + 1] = isset($data['size']) ? $data['size'] : filesize($data['filename']);
106 $named_flags[$flag] = isset(self::$_knownFlags[$flag]) ? self::$_knownFlags[$flag] : $flag;
107 $endPos = isset($params['endPos']) ? $params['endPos'] : null;
108 return (isset($this->_shortContextNames[$name]) ? true : false);
109 $specialties = (isset($defaultProperties['_specialties'])) ? $defaultProperties['_specialties'] : array();
110 return (isset($this->_actionParameters[$parameterName])) ? $this->_actionParameters[$parameterName] : null;
111 return (isset($this->_providerParameters[$parameterName])) ? $this->_providerParameters[$parameterName] : null;
112 return isset($query) ? $query : '';
113 $order = isset($order) ? $order : count($ordered);
114 $value = isset($array[$i]) ? $array[$i] : null;
115 $interSchema = isset($interInfo['schema']) ? $interInfo['schema'] : null;
116 $matchSchema = isset($matchInfo['schema']) ? $matchInfo['schema'] : null;
117 $ruleKey1 = isset($matches[2]) ? $matches[2] : null;
118 $ruleKey1 = isset($matches[3]) ? $matches[3] : null;
119 $ruleKey2 = isset($matches[4]) ? $matches[4] : null;
120 $ruleKey1 = isset($matches[2]) ? $matches[2] : null;
Count:
##########################
120
Instances of empty:
###################
1 $method = empty($ns) ? $name : $ns . '.' . $name;
2 $key = empty($prefix) ? $key : $prefix . $key;
3 $code = empty($eCode) ? $code : $eCode;
4 $operator = empty($args[2]) ? 'AND' : $args[2];
5 $operator = empty($args[2]) ? 'AND' : $args[2];
6 empty($options[self::METADATA]) ? null : $options[self::METADATA]
7 empty($options[self::METADATA]) ? null : $options[self::METADATA]
8 return (empty($this->_title) ? '' : $this->_title);
9 $generator = !empty($array->generator) ? $array->generator : 'Zend_Feed';
10 $generator = !empty($array->generator) ? $array->generator : 'Zend_Feed';
11 $owner = $email . (empty($name) ? '' : ' (' . $name . ')');
12 return !empty($url['path']) ? $url['host'].$url['path'] : $url['host'];
13 return (!empty($this->_region)) ? $this->_region . '.' : '';
14 $this->selectFolder(!empty($params->folder) ? $params->folder : 'INBOX');
15 $this->selectFolder(!empty($params->folder) ? $params->folder : 'INBOX');
16 $component .= empty($component) ? $segment : '_' . $segment;
17 'namespace' => empty($namespaceTopLevel) ? $namespace : $namespaceTopLevel . '_' . $namespace,
18 . (empty($port) ? '' : (':' . $port))
19 . (empty($port) ? '' : (':' . $port))
20 . (empty($port) ? '' : (':' . $port))
21 $qualifiedName = empty($source) ? $method : $source . '.' . $method;
22 $name = empty($ns) ? $name : $ns . '.' . $name;
23 $name = empty($ns) ? $name : $ns . '.' . $name;
24 $attributeDelimiter = empty($matches[2][$index]) ? $matches[4][$index] : $matches[2][$index];
25 $attributeValue = empty($matches[3][$index]) ? $matches[5][$index] : $matches[3][$index];
Count:
##########################
25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment