fix(rubocop): Layout/ExtraSpacing et Layout/SpaceAroundOperators
This commit is contained in:
parent
e0d5dc84d5
commit
e3f233cd51
4 changed files with 5 additions and 5 deletions
|
@ -2,8 +2,8 @@ module Manager
|
||||||
class OutdatedProceduresController < Manager::ApplicationController
|
class OutdatedProceduresController < Manager::ApplicationController
|
||||||
def index
|
def index
|
||||||
@records_per_page = params[:records_per_page] || "10"
|
@records_per_page = params[:records_per_page] || "10"
|
||||||
resources = Procedure.
|
resources = Procedure
|
||||||
where(procedure_expires_when_termine_enabled: false)
|
.where(procedure_expires_when_termine_enabled: false)
|
||||||
.order(created_at: :asc)
|
.order(created_at: :asc)
|
||||||
.page(params[:_page])
|
.page(params[:_page])
|
||||||
.per(@records_per_page)
|
.per(@records_per_page)
|
||||||
|
|
|
@ -45,7 +45,7 @@ class APIBretagneService
|
||||||
end
|
end
|
||||||
in Success(body:)
|
in Success(body:)
|
||||||
body
|
body
|
||||||
else # no response gives back a 204, so we don't try to JSON.parse(nil) to avoid error
|
else # no response gives back a 204, so we don't try to JSON.parse(nil) to avoid error
|
||||||
{ items: [] }
|
{ items: [] }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -44,7 +44,7 @@ class ArchiveUploader
|
||||||
end
|
end
|
||||||
|
|
||||||
def upload_with_chunking_wrapper
|
def upload_with_chunking_wrapper
|
||||||
params = blob_default_params(filepath).merge(byte_size: File.size(filepath),
|
params = blob_default_params(filepath).merge(byte_size: File.size(filepath),
|
||||||
checksum: Digest::SHA256.file(filepath).hexdigest)
|
checksum: Digest::SHA256.file(filepath).hexdigest)
|
||||||
blob = ActiveStorage::Blob.create_before_direct_upload!(**params)
|
blob = ActiveStorage::Blob.create_before_direct_upload!(**params)
|
||||||
if retryable_syscall_to_custom_uploader(blob)
|
if retryable_syscall_to_custom_uploader(blob)
|
||||||
|
|
|
@ -148,7 +148,7 @@ def render_single_champ(pdf, champ)
|
||||||
add_libelle(pdf, champ)
|
add_libelle(pdf, champ)
|
||||||
pdf.text champ.description
|
pdf.text champ.description
|
||||||
pdf.text "\n"
|
pdf.text "\n"
|
||||||
when 'Champs::AddressChamp', 'Champs::CarteChamp', 'Champs::TextareaChamp'
|
when 'Champs::AddressChamp', 'Champs::CarteChamp', 'Champs::TextareaChamp'
|
||||||
format_in_2_lines(pdf, champ, 5)
|
format_in_2_lines(pdf, champ, 5)
|
||||||
when 'Champs::DropDownListChamp'
|
when 'Champs::DropDownListChamp'
|
||||||
add_libelle(pdf, champ)
|
add_libelle(pdf, champ)
|
||||||
|
|
Loading…
Reference in a new issue