Skip to content

Commit

Permalink
Applied rubocop Style/TrailingBlankLines.
Browse files Browse the repository at this point in the history
  • Loading branch information
martini committed Apr 27, 2015
1 parent 70e48aa commit bd1db72
Show file tree
Hide file tree
Showing 221 changed files with 212 additions and 223 deletions.
2 changes: 1 addition & 1 deletion app/controllers/getting_started_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -933,4 +933,4 @@ def setup_done_response
true
end

end
end
2 changes: 1 addition & 1 deletion app/controllers/import_otrs_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@ def setup_done_response
true
end

end
end
2 changes: 1 addition & 1 deletion app/controllers/jobs_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ def destroy
return if deny_if_not_role(Z_ROLENAME_ADMIN)
model_destory_render(Job, params)
end
end
end
2 changes: 1 addition & 1 deletion app/controllers/online_notifications_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,4 @@ def mark_all_as_read
render json: {}, status: :ok
end

end
end
2 changes: 1 addition & 1 deletion app/controllers/organizations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -193,4 +193,4 @@ def history
render json: history
end

end
end
2 changes: 1 addition & 1 deletion app/controllers/recent_view_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ def create
render json: { message: 'ok' }
end

end
end
2 changes: 1 addition & 1 deletion app/controllers/sessions/collection_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ def session( collections, assets, user )
[collections, assets]
end
module_function :session
end
end
2 changes: 1 addition & 1 deletion app/controllers/sessions/collection_network.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ def session( collections, assets, user )
end

module_function :session
end
end
2 changes: 1 addition & 1 deletion app/controllers/sessions/collection_ticket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ def session( collections, assets, user )
[collections, assets]
end
module_function :session
end
end
2 changes: 1 addition & 1 deletion app/controllers/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -279,4 +279,4 @@ def delete
render json: {}
end

end
end
2 changes: 1 addition & 1 deletion app/controllers/tests_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ def wait
render json: result
end

end
end
2 changes: 1 addition & 1 deletion app/controllers/translations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ def destroy
return if deny_if_not_role(Z_ROLENAME_ADMIN)
model_destory_render(Translation, params)
end
end
end
2 changes: 1 addition & 1 deletion app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -733,4 +733,4 @@ def permission_check
return false
end

end
end
2 changes: 1 addition & 1 deletion app/models/activity_stream.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ def self.list(user,limit)
list
end

end
end
2 changes: 1 addition & 1 deletion app/models/application_model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1105,4 +1105,4 @@ def check_limits
def destroy_dependencies
end

end
end
2 changes: 1 addition & 1 deletion app/models/application_model/history_log_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,4 @@ def history_get(fulldata = false)
}
end

end
end
2 changes: 1 addition & 1 deletion app/models/authorization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ def delete_user_cache
self.user.cache_delete
end

end
end
2 changes: 1 addition & 1 deletion app/models/avatar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -371,4 +371,4 @@ def self.add_init_avatar(object_id, o_id)
created_by_id: 1,
)
end
end
end
2 changes: 1 addition & 1 deletion app/models/channel/email_build.rb
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,4 @@ def self.html_complete_check(html)

html
end
end
end
2 changes: 1 addition & 1 deletion app/models/channel/email_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -607,4 +607,4 @@ def Encodings.value_decode(str)
end.join('')
end
end
end
end
2 changes: 1 addition & 1 deletion app/models/channel/imap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ def disconnect
@imap.disconnect()
end
end
end
end
2 changes: 1 addition & 1 deletion app/models/channel/pop3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ def disconnect
end
end

end
end
2 changes: 1 addition & 1 deletion app/models/channel/smtp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ def send(attr, channel, notification = false)
}
mail.deliver
end
end
end
2 changes: 1 addition & 1 deletion app/models/email_address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ class EmailAddress < ApplicationModel

latest_change_support

end
end
2 changes: 1 addition & 1 deletion app/models/group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ class Group < ApplicationModel
activity_stream_support role: Z_ROLENAME_ADMIN
history_support
latest_change_support
end
end
2 changes: 1 addition & 1 deletion app/models/job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ def self.match_minutes(minutes)
minutes.gsub!(/(\d)\d/, '\\1')
minutes.to_s + '0'
end
end
end
2 changes: 1 addition & 1 deletion app/models/locale.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ def self.load
true
end

end
end
2 changes: 1 addition & 1 deletion app/models/object_lookup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ def self.by_name( name )
lookup.id
end

end
end
2 changes: 1 addition & 1 deletion app/models/object_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -232,4 +232,4 @@ def self.by_object_as_hash(object, user)
hash
end

end
end
2 changes: 1 addition & 1 deletion app/models/observer/organization/ref_object_touch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ def ref_object_touch(record)
User.find(user_id).touch
}
end
end
end
2 changes: 1 addition & 1 deletion app/models/observer/ticket/article/communicate_email.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ def after_create(record)
# send background job
Delayed::Job.enqueue( Observer::Ticket::Article::CommunicateEmail::BackgroundJob.new( record.id ) )
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ def perform
)
end
end
end
end
2 changes: 1 addition & 1 deletion app/models/observer/ticket/notification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,4 @@ def after_update(record)
# puts @a.inspect
# AuditTrail.new(record, "UPDATED")
end
end
end
2 changes: 1 addition & 1 deletion app/models/observer/ticket/notification/background_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -395,4 +395,4 @@ def template_footer(user, ticket, article)
</div>
'
end
end
end
2 changes: 1 addition & 1 deletion app/models/observer/ticket/online_notification_seen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ def _check(record)
# set all online notifications to seen
OnlineNotification.seen_by_object( 'Ticket', record.id )
end
end
end
2 changes: 1 addition & 1 deletion app/models/observer/ticket/ref_object_touch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ def ref_object_touch(record)
record.organization.touch
end
end
end
end
1 change: 0 additions & 1 deletion app/models/observer/ticket/user_ticket_counter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,3 @@ def user_ticket_counter_update(record)
end

end

2 changes: 1 addition & 1 deletion app/models/observer/user/ref_object_touch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ def ref_object_touch(record)
end
}
end
end
end
2 changes: 1 addition & 1 deletion app/models/observer/user/ticket_organization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ def check_organization(record)
}
end

end
end
2 changes: 1 addition & 1 deletion app/models/online_notification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -187,4 +187,4 @@ def notify_clients_after_change
)
end

end
end
2 changes: 1 addition & 1 deletion app/models/organization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ class Organization < ApplicationModel
search_index_support
notify_clients_support
latest_change_support
end
end
2 changes: 1 addition & 1 deletion app/models/organization/assets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ def assets (data)
data
end

end
end
2 changes: 1 addition & 1 deletion app/models/organization/permission.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ def permission (data)
return false
end

end
end
2 changes: 1 addition & 1 deletion app/models/overview.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ class Overview < ApplicationModel
validates :name, presence: true
validates :prio, presence: true
validates :link, presence: true
end
end
2 changes: 1 addition & 1 deletion app/models/package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -501,4 +501,4 @@ def self.migrate( package, direction = 'normal' )
}
end
end
end
end
2 changes: 1 addition & 1 deletion app/models/recent_view.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,4 @@ def self.access(object, o_id, user)
return if !record.respond_to?(:permission)
record.permission( current_user: user )
end
end
end
2 changes: 1 addition & 1 deletion app/models/role.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ class Role < ApplicationModel
validates :name, presence: true
activity_stream_support role: Z_ROLENAME_ADMIN
latest_change_support
end
end
2 changes: 1 addition & 1 deletion app/models/signature.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ class Signature < ApplicationModel
has_many :groups, after_add: :cache_update, after_remove: :cache_update
validates :name, presence: true
latest_change_support
end
end
2 changes: 1 addition & 1 deletion app/models/store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -154,4 +154,4 @@ def provider
end
file.provider
end
end
end
2 changes: 1 addition & 1 deletion app/models/store/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ def destroy_provider
adapter = self.class.load_adapter("Store::Provider::#{ self.provider }")
adapter.delete( self.sha )
end
end
end
2 changes: 1 addition & 1 deletion app/models/store/object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

class Store::Object < ApplicationModel
validates :name, presence: true
end
end
2 changes: 1 addition & 1 deletion app/models/store/provider/db.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ def self.delete(sha)
true
end

end
end
2 changes: 1 addition & 1 deletion app/models/store/provider/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ def self.write_to_fs(data,sha)
true
end

end
end
2 changes: 1 addition & 1 deletion app/models/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ class Template < ApplicationModel
store :options
validates :name, presence: true
notify_clients_support
end
end
2 changes: 1 addition & 1 deletion app/models/text_module.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ class TextModule < ApplicationModel
validates :name, presence: true
validates :content, presence: true
notify_clients_support
end
end
2 changes: 1 addition & 1 deletion app/models/ticket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -242,4 +242,4 @@ def destroy_dependencies
OnlineNotification.remove( self.class.to_s, self.id )
end

end
end
2 changes: 1 addition & 1 deletion app/models/ticket/article.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ class Type < ApplicationModel
validates :name, presence: true
latest_change_support
end
end
end
Loading

0 comments on commit bd1db72

Please sign in to comment.