@@ -18,7 +18,7 @@ |
||
18 | 18 | if(Doika_configuration::where('configuration_name','is_test') |
19 | 19 | ->first()->configuration_value == 1){ |
20 | 20 | $is_test = true; |
21 | - }else{ |
|
21 | + } else{ |
|
22 | 22 | $is_test = false; |
23 | 23 | } |
24 | 24 |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | if($configuration){ |
28 | 28 | $configuration->configuration_value = $value; |
29 | 29 | $configuration->save(); |
30 | - }else{ |
|
30 | + } else{ |
|
31 | 31 | $configuration = new Doika_configuration; |
32 | 32 | $configuration->configuration_name = $configurationName; |
33 | 33 | $configuration->configuration_value = $value; |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | |
79 | 79 | if($request->show_banner){ |
80 | 80 | self::createOrUpdateConfiguration('show_banner',1); |
81 | - }else{ |
|
81 | + } else{ |
|
82 | 82 | self::createOrUpdateConfiguration('show_banner',0); |
83 | 83 | } |
84 | 84 | self::createOrUpdateConfiguration('color_banner_background',$request->color_banner_background); |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | |
90 | 90 | if($request->test_payments){ |
91 | 91 | self::createOrUpdateConfiguration('is_test',1); |
92 | - }else{ |
|
92 | + } else{ |
|
93 | 93 | self::createOrUpdateConfiguration('is_test',0); |
94 | 94 | } |
95 | 95 | PasswordChange::changeProfile($request); |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | $newCampaign->campaign_title = $request->title; |
28 | 28 | if($request->campaign_active == "on"){ |
29 | 29 | $newCampaign->campaign_active = 1; |
30 | - }else{ |
|
30 | + } else{ |
|
31 | 31 | $newCampaign->campaign_active = 0; |
32 | 32 | } |
33 | 33 | |
@@ -39,13 +39,13 @@ discard block |
||
39 | 39 | |
40 | 40 | if($request->campaign_progress_bar == "on"){ |
41 | 41 | $newCampaignConfiguration->campaign_progress_bar = 1; |
42 | - }else{ |
|
42 | + } else{ |
|
43 | 43 | $newCampaignConfiguration->campaign_progress_bar = 0; |
44 | 44 | } |
45 | 45 | |
46 | 46 | if($request->hasFile('photo')){ |
47 | 47 | $newCampaignConfiguration->photo = Uploader::upload($request); |
48 | - }else{ |
|
48 | + } else{ |
|
49 | 49 | $newCampaignConfiguration->photo = 'default.jpg'; |
50 | 50 | } |
51 | 51 | $newCampaignConfiguration->required_amount = $request->required_amount; |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | $Campaign->campaign_title = $request->title; |
132 | 132 | if($request->campaign_active == "on"){ |
133 | 133 | $Campaign->campaign_active = 1; |
134 | - }else{ |
|
134 | + } else{ |
|
135 | 135 | $Campaign->campaign_active = 0; |
136 | 136 | } |
137 | 137 | $Campaign->save(); |