From 0f8e26f39bf8eca12fdde8304524cc8f54be19f1 Mon Sep 17 00:00:00 2001 From: Ivan Babkin Date: Fri, 26 Apr 2019 16:27:47 +0300 Subject: [PATCH] Fixed indents --- Swift/blocks/class/bool-parameters-fields.twig | 10 +++++----- Swift/blocks/class/copy-declaration.twig | 6 +++--- Swift/blocks/class/fields-without-initialization.twig | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Swift/blocks/class/bool-parameters-fields.twig b/Swift/blocks/class/bool-parameters-fields.twig index bfc9e2b..49206c7 100644 --- a/Swift/blocks/class/bool-parameters-fields.twig +++ b/Swift/blocks/class/bool-parameters-fields.twig @@ -1,9 +1,9 @@ {%- import '../../macroses/common.utils.twig' as utils -%} {%- if fields is not empty -%} -{%- for field in fields -%} - {%- if field.nullable or field.optional -%} - {{ field.name }}: Bool = false{%- if not (loop.last) %}, {% endif %} - {%- endif -%} -{%- endfor -%} + {%- for field in fields -%} + {%- if field.nullable or field.optional -%} + {{ field.name }}: Bool = false{%- if not (loop.last) %}, {% endif %} + {%- endif -%} + {%- endfor -%} {%- endif -%} \ No newline at end of file diff --git a/Swift/blocks/class/copy-declaration.twig b/Swift/blocks/class/copy-declaration.twig index 4741b05..2e759cc 100644 --- a/Swift/blocks/class/copy-declaration.twig +++ b/Swift/blocks/class/copy-declaration.twig @@ -1,8 +1,8 @@ {%- import '../../macroses/common.utils.twig' as utils -%} - func copy{%- if hasChilds -%}{{ type.baseTypeName }}{%- endif -%}With({%- include '../class/nullable-parameters-fields.twig' with { fields: allFieldsOrdered } -%}) -> {{ type.baseTypeName }} { - return {{ type.baseTypeName }}({% include '../class/fields-optional-initialization.twig' with { fields: allFieldsOrdered } %}) - } + func copy{%- if hasChilds -%}{{ type.baseTypeName }}{%- endif -%}With({%- include '../class/nullable-parameters-fields.twig' with { fields: allFieldsOrdered } -%}) -> {{ type.baseTypeName }} { + return {{ type.baseTypeName }}({% include '../class/fields-optional-initialization.twig' with { fields: allFieldsOrdered } %}) + } {%- set containsOptionalFields = false -%} {%- if allFieldsOrdered is not empty -%} diff --git a/Swift/blocks/class/fields-without-initialization.twig b/Swift/blocks/class/fields-without-initialization.twig index b910216..aa95b84 100644 --- a/Swift/blocks/class/fields-without-initialization.twig +++ b/Swift/blocks/class/fields-without-initialization.twig @@ -2,8 +2,8 @@ {%- if fields is not empty -%} {%- for field in fields -%} - {%- if field.nullable or field.optional -%} - {{ field.name }}: {{ field.name }} ? nil : self.{{ field.name }}{%- if not (loop.last) %}, {% endif %} + {%- if field.nullable or field.optional -%} + {{ field.name }}: {{ field.name }} ? nil : self.{{ field.name }}{%- if not (loop.last) %}, {% endif %} {%- endif -%} {%- endfor -%} {%- endif -%} \ No newline at end of file