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
80
  • $port = 80
  • $_SERVER['HTTP_X_FORWARDED_PORT'] != 80
  • $_SERVER['SERVER_PORT'] != 80
  • $port != 80
10
  • $limit = 10
  • $n < 10
success
  • $class = 'success'
  • $bresult == 'success'
/
  • $scope = '/'
  • $components['path'] != '/'
  • $path == '/'
  • $this->config->url == '/'
none
  • $this->user( )->notifications['email'] = 'none'
  • $user->notifications['email'] = 'none'
  • $user->notifications['email'] == 'none'
note
  • $share_type = 'note'
  • $type = 'note'
  • $share_type == 'note'
  • $type == 'note'
public
  • $access = 'PUBLIC'
  • $this->access = 'PUBLIC'
  • $access != 'PUBLIC'
  • $access == 'PUBLIC'
  • $this->access == 'PUBLIC'
  • $vars['object']->access != 'PUBLIC'
default
  • $queueName = 'default'
  • $this->queue = 'default'
  • $vars['theme']['shortname'] = 'default'
  • $theme == 'default'
post
  • $post_type = 'post'
  • $vars['method'] = 'POST'
  • $vars['method'] = 'post'
  • $item['wp:post_type'] == 'post'
  • $post_type == 'post'
reply
  • $context = 'reply'
  • $mention['type'] = 'reply'
  • $meta['type'] = 'reply'
  • $share_type = 'reply'
  • $type = 'reply'
  • $type === 'reply'
hidden
  • $vars['type'] = 'hidden'
  • $type != 'hidden'
image/jpeg
  • $mime_type = 'image/jpeg'
  • $mimetype = 'image/jpeg'
  • $_file['type'] == 'image/jpeg'
rsvp
  • $context = 'rsvp'
  • $mention['type'] = 'rsvp'
  • $share_type = 'rsvp'
  • $type = 'rsvp'
  • $type == 'rsvp'
enabled
  • $status = 'enabled'
  • $bdata['status'] == 'enabled'
  • $hcard['properties']['bridgy-account-status'][0] == 'enabled'
  • $hcard['properties']['bridgy-listen-status'][0] == 'enabled'
image/gif
  • $mime = 'image/gif'
  • $mime_type = 'image/gif'
  • $mimetype = 'image/gif'
  • $_file['type'] != 'image/gif'
like
  • $context = 'like'
  • $mention['type'] = 'like'
  • $meta['type'] = 'like'
  • $type = 'like'
  • $type != 'like'
  • $type == 'like'
bookmark
  • $meta['type'] = 'bookmark'
  • $type = 'bookmark'
  • $type == 'bookmark'
application/octet-stream
  • $attachment['mime-type'] = 'application/octet-stream'
  • $mime = 'application/octet-stream'
  • $mime_type = 'application/octet-stream'
  • $value['mime_type'] = 'application/octet-stream'
  • $media_file['type'] == 'application/octet-stream'
comment
  • $share_type = 'comment'
  • $user->notifications['email'] == 'comment'
new known site
  • $this->title = 'New Known site'
  • \Idno\Core\Idno::site( )->config( )->title == 'New Known site'
local
  • $this->ini_config['filesystem'] = 'local'
  • \Idno\Core\Idno::site( )->config( )->filesystem == 'local'
all
  • $user->notifications['email'] = 'all'
  • $friendly_name == 'all'
  • $friendly_type == 'all'
  • $user->notifications['email'] == 'all'
1
  • $user->robot_state = '1'
  • $_SERVER['HTTPS'] == '1'
  • $prop == "1"
site
  • $this->access = 'SITE'
  • $access != 'SITE'
  • $access == 'SITE'
untitled
  • $slug = 'untitled'
  • $title == 'Untitled'
no category
  • $page->category = 'No Category'
  • $category != 'No Category'
  • $category == 'No Category'
  • $vars['category'] == 'No Category'
checkin
  • $type = 'checkin'
  • $type == 'checkin'
json
  • $export_ext = 'json'
  • $export_ext == 'json'
following
  • $acl->access_group_type = 'FOLLOWING'
  • $acl->access_group_type == 'FOLLOWING'
audio
  • $type = 'audio'
  • $type == 'audio'
video
  • $type = 'video'
  • $type == 'video'
photo
  • $type = 'photo'
  • $type == 'photo'