Could Be A Constant

Those literals are assigned then compared somewhere else in the code. When those literals are carrying a state, it is recommended to assign them to a constant, to ensure that both parts of the application use the same values..

LiteralAssignationsComparisons
6
  • $i = 6
  • $i <= 6
4
  • $compiler->known_modifier_type[$modifier] = 4
  • $i = 4
  • $params[1] = 4
  • $quarter = 4
  • $extra < 4
  • $fiscalFirstMonth < 4
  • $n !== 4
500
  • $statusCode = 500
  • $code < 500
  • $status < 500
2
  • $decimalPlaces = 2
  • $i = 2
  • $opts[\CURLOPT_MAXREDIRS] = 2
  • $opts[\CURLOPT_SSL_VERIFYHOST] = 2
  • $startingRowNumber = 2
  • $i <= 2
  • $letters >= 2
3
  • $cols_count = 3
  • $i = 3
  • $rows = 3
  • $this->yyerrcnt = 3
  • $currencyFormat == 3
  • $currencyFormat === 3
100
  • $lifetime = 100
  • $min = 100
  • $itemProbability === 100
  • $lastStageProbability !== 100
  • $probabilityMap[$stage] == 100
  • $value == 100
200
  • $limit = 200
  • $code >= 200
  • $httpCode !== 200
  • $r['code'] == 200
  • $response['code'] == 200
users
  • $link = 'users'
  • $link !== 'users'
contacts
  • $link = 'contacts'
  • $relationName === 'contacts'
or
  • $logicalOperator = 'OR'
  • $left === 'OR'
true
  • $_filter = 'true'
  • $_nocache = 'true'
  • $results = 'true'
  • $this->_retvalue = 'true'
  • $checkResult !== 'true'
  • $expression === 'true'
  • $params[1] != 'true'
  • $shellResult !== 'true'
  • $value === 'true'
false
  • $_filter = 'false'
  • $_nocache = 'false'
  • $params[3] = 'false'
  • $results = 'false'
  • $this->_retvalue = 'false'
  • $_SESSION['install']['outboundEmailIsShared'] == 'false'
  • $_SESSION['install']['smtpAuth'] == 'false'
  • $_attr['once'] == 'false'
  • $expression === 'false'
{
  • $smarty->left_delimiter = '{'
  • $char === '{'
  • $value === '{'
global
  • $clone->scope = 'Global'
  • $_attr['scope'] == 'global'
  • $scope !== 'Global'
  • $scope == 'global'
  • $scope === 'Global'
}
  • $smarty->right_delimiter = '}'
  • $char === '}'
  • $value === '}'
prepend
  • $compiler->template->block_data[$name1]['mode'] = 'prepend'
  • $compiler->template->block_data[$_name]['mode'] == 'prepend'
  • $compiler->template->block_data[$name1]['mode'] == 'prepend'
null
  • $_cache_lifetime = 'null'
  • $_filepath = 'null'
  • $_nocache = 'null'
  • $results = 'null'
  • $section = 'null'
  • $this->_retvalue = 'null'
  • $value = 'null'
  • $_script != 'null'
  • $expression === 'null'
local
  • $scope = 'local'
  • $scope == 'local'
append
  • $compiler->template->block_data[$name1]['mode'] = 'append'
  • $compiler->template->block_data[$_name]['mode'] == 'append'
  • $compiler->template->block_data[$name1]['mode'] == 'append'
nocache
  • $code = 'nocache'
  • $name == 'nocache'
\n
  • $field_separator = "\n"
  • $option_separator = "\n"
  • $wrap_char = "\n"
  • $s == "\n"
  • $string[$i] === "\n"
  • $token == "\n"
down
  • $vdir = 'down'
  • $counter['direction'] == "down"
  • $vdir == 'down'
%02d
  • $day_format = "%02d"
  • $hour_format = '%02d'
  • $hour_value_format = '%02d'
  • $minute_format = '%02d'
  • $minute_value_format = '%02d'
  • $second_format = '%02d'
  • $second_value_format = '%02d'
  • $day_format == '%02d'
  • $day_value_format == '%02d'
  • $hour_format == '%02d'
  • $hour_value_format == '%02d'
  • $minute_format == '%02d'
  • $minute_value_format == '%02d'
  • $second_format == '%02d'
  • $second_value_format == '%02d'
,
  • $cycle_vars[$name]['delimiter'] = ','
  • $functionContent[$i] === ','
right
  • $hdir = 'right'
  • $hdir == 'right'
cols
  • $inner = 'cols'
  • $inner != 'cols'
base
  • $type = 'base'
  • $fieldParams['type'] == 'base'
asc
  • $order = 'ASC'
  • $ormMetadata[$entityType]['collection']['order'] = 'ASC'
  • $result['order'] = 'ASC'
  • $collectionItem->order === 'asc'
  • $data['sortDirection'] === 'asc'
unique
  • $obj->params['type'] = 'unique'
  • $type === 'unique'
text/plain
  • $messageType = 'text/plain'
  • $messageType === 'text/plain'
0
  • $r = '0'
  • $argumentPartList[1] === '0'
  • $internalPart !== '0'
  • $subject !== '0'
  • $value !== '0'
  • $compiled_ref = ' '
  • $indent_char = ' '
  • $modifiedString[$i + 1] = ' '
  • $modifiedString[$i] = ' '
  • $string[$i + 1] = ' '
  • $string[$i] = ' '
  • $char !== ' '
  • $value == ' '
<
  • $this->_retvalue = '<'
  • $inReplyTo[0] !== '<'
  • $messageId[0] !== '<'
%m
  • $month_value_format = "%m"
  • $month_format == "%m"
  • $month_value_format == "%m"
id
  • $idPart = 'id'
  • $orderBy = 'id'
  • $attribute == 'id'
  • $attribute === 'id'
  • $field === 'id'
  • $name == 'id'
  • $name === 'id'
  • $order !== 'id'
  • $orderBy !== 'id'
  • $sortBy != 'id'
match_boolean
  • $function = 'MATCH_BOOLEAN'
  • $function === 'MATCH_BOOLEAN'
portal
  • $userFields['type'] = 'portal'
  • $folders[count($folders) - 2] === 'portal'
attachment
  • $disposition = 'attachment'
  • $foreignEntityType !== 'Attachment'
month
  • $function = 'MONTH'
  • $type === 'month'
hour
  • $function = 'HOUR'
  • $type === 'hour'
minute
  • $function = 'MINUTE'
  • $type === 'minute'
dayofweek
  • $function = 'DAYOFWEEK'
  • $type === 'dayOfWeek'
in
  • $operatorKey = 'IN'
  • $operator === 'IN'
_
  • $modifiedString[$i] = '_'
  • $name[3] !== '_'
days
  • $intervalType = 'days'
  • $intervalType === 'days'