From f9c95af5ff62daf957fab9603a9a138410090352 Mon Sep 17 00:00:00 2001 From: Alexander Date: Sat, 12 Nov 2022 01:24:33 +0300 Subject: [PATCH] replace tabs --- factorymethod/pizzasimple/cheesepizza.d | 8 +++---- factorymethod/pizzasimple/clampizza.d | 8 +++---- factorymethod/pizzasimple/pepperonipizza.d | 10 ++++---- factorymethod/pizzasimple/pizzastore.d | 18 +++++++------- .../pizzasimple/simplepizzafactory.d | 24 +++++++++---------- factorymethod/pizzasimple/veggiepizza.d | 16 ++++++------- 6 files changed, 42 insertions(+), 42 deletions(-) diff --git a/factorymethod/pizzasimple/cheesepizza.d b/factorymethod/pizzasimple/cheesepizza.d index 100fc75..da2ae74 100644 --- a/factorymethod/pizzasimple/cheesepizza.d +++ b/factorymethod/pizzasimple/cheesepizza.d @@ -7,9 +7,9 @@ class CheesePizza : Pizza this() { name = "Сырная пицца"; - dough = "Обычная корочка"; - sauce = "Соус для пиццы Маринара"; - toppings ~= "Свежая моцарелла"; - toppings ~= "Пармезан"; + dough = "Обычная корочка"; + sauce = "Соус для пиццы Маринара"; + toppings ~= "Свежая моцарелла"; + toppings ~= "Пармезан"; } } diff --git a/factorymethod/pizzasimple/clampizza.d b/factorymethod/pizzasimple/clampizza.d index 4292941..e540a05 100644 --- a/factorymethod/pizzasimple/clampizza.d +++ b/factorymethod/pizzasimple/clampizza.d @@ -7,9 +7,9 @@ class ClamPizza : Pizza this() { name = "Пицца с моллюсками"; - dough = "Тонкая корочка"; - sauce = "Белый чесночный соус"; - toppings ~= "Моллюски"; - toppings ~= "Тертый сыр пармезан"; + dough = "Тонкая корочка"; + sauce = "Белый чесночный соус"; + toppings ~= "Моллюски"; + toppings ~= "Тертый сыр пармезан"; } } diff --git a/factorymethod/pizzasimple/pepperonipizza.d b/factorymethod/pizzasimple/pepperonipizza.d index a992744..0bdfa1d 100644 --- a/factorymethod/pizzasimple/pepperonipizza.d +++ b/factorymethod/pizzasimple/pepperonipizza.d @@ -7,10 +7,10 @@ class PepperoniPizza : Pizza this() { name = "Пицца с пепперони"; - dough = "Корка"; - sauce = "Соус Маринара"; - toppings ~= "Нарезанные пепперони"; - toppings ~= "Нарезанный лук"; - toppings ~= "Тертый сыр пармезан"; + dough = "Корка"; + sauce = "Соус Маринара"; + toppings ~= "Нарезанные пепперони"; + toppings ~= "Нарезанный лук"; + toppings ~= "Тертый сыр пармезан"; } } diff --git a/factorymethod/pizzasimple/pizzastore.d b/factorymethod/pizzasimple/pizzastore.d index 9c94b81..953bb72 100644 --- a/factorymethod/pizzasimple/pizzastore.d +++ b/factorymethod/pizzasimple/pizzastore.d @@ -9,20 +9,20 @@ class PizzaStore this(SimplePizzaFactory factory) { - this.factory = factory; + this.factory = factory; } Pizza orderPizza(string type) { - Pizza pizza; + Pizza pizza; - pizza = factory.createPizza(type); + pizza = factory.createPizza(type); - pizza.prepare(); - pizza.bake(); - pizza.cut(); - pizza.box(); + pizza.prepare(); + pizza.bake(); + pizza.cut(); + pizza.box(); - return pizza; - } + return pizza; + } } diff --git a/factorymethod/pizzasimple/simplepizzafactory.d b/factorymethod/pizzasimple/simplepizzafactory.d index b2238be..72ca057 100644 --- a/factorymethod/pizzasimple/simplepizzafactory.d +++ b/factorymethod/pizzasimple/simplepizzafactory.d @@ -10,24 +10,24 @@ class SimplePizzaFactory { Pizza createPizza(string type) { - Pizza pizza = null; + Pizza pizza = null; - if (type == "cheese") + if (type == "cheese") { - pizza = new CheesePizza(); - } + pizza = new CheesePizza(); + } else if (type == "pepperoni") { - pizza = new PepperoniPizza(); - } + pizza = new PepperoniPizza(); + } else if (type == "clam") { - pizza = new ClamPizza(); - } + pizza = new ClamPizza(); + } else if (type == "veggie") { - pizza = new VeggiePizza(); - } - return pizza; - } + pizza = new VeggiePizza(); + } + return pizza; + } } diff --git a/factorymethod/pizzasimple/veggiepizza.d b/factorymethod/pizzasimple/veggiepizza.d index a62e1b1..e3c3428 100644 --- a/factorymethod/pizzasimple/veggiepizza.d +++ b/factorymethod/pizzasimple/veggiepizza.d @@ -7,13 +7,13 @@ class VeggiePizza : Pizza this() { name = "Вегетарианская пицца"; - dough = "Корка"; - sauce = "Соус Маринара"; - toppings ~= "Тертая моцарелла"; - toppings ~= "Тертый пармезан"; - toppings ~= "Нарезанный кубиками лук"; - toppings ~= "Нарезанные грибы"; - toppings ~= "Нарезанный красный перец"; - toppings ~= "Нарезанные черные оливки"; + dough = "Корка"; + sauce = "Соус Маринара"; + toppings ~= "Тертая моцарелла"; + toppings ~= "Тертый пармезан"; + toppings ~= "Нарезанный кубиками лук"; + toppings ~= "Нарезанные грибы"; + toppings ~= "Нарезанный красный перец"; + toppings ~= "Нарезанные черные оливки"; } }