@@ 29-32 (lines=4) @@ | ||
26 | ||
27 | switch ( $goal_format ) { |
|
28 | ||
29 | case 'donation': |
|
30 | $progress = $goal ? round( ( $income / $goal ) * 100, 2 ) : 0; |
|
31 | $progress_bar_value = $income >= $goal ? 100 : $progress; |
|
32 | break; |
|
33 | ||
34 | case 'donors': |
|
35 | $progress_bar_value = $goal ? round( ( $income / $goal ) * 100, 2 ) : 0; |
|
@@ 34-37 (lines=4) @@ | ||
31 | $progress_bar_value = $income >= $goal ? 100 : $progress; |
|
32 | break; |
|
33 | ||
34 | case 'donors': |
|
35 | $progress_bar_value = $goal ? round( ( $income / $goal ) * 100, 2 ) : 0; |
|
36 | $progress = $progress_bar_value; |
|
37 | break; |
|
38 | ||
39 | case 'percentage': |
|
40 | $progress = $goal ? round( ( $income / $goal ) * 100, 2 ) : 0; |
|
@@ 39-42 (lines=4) @@ | ||
36 | $progress = $progress_bar_value; |
|
37 | break; |
|
38 | ||
39 | case 'percentage': |
|
40 | $progress = $goal ? round( ( $income / $goal ) * 100, 2 ) : 0; |
|
41 | $progress_bar_value = $income >= $goal ? 100 : $progress; |
|
42 | break; |
|
43 | ||
44 | default: |
|
45 | $progress = $goal ? round( ( $income / $goal ) * 100, 2 ) : 0; |
|
@@ 44-47 (lines=4) @@ | ||
41 | $progress_bar_value = $income >= $goal ? 100 : $progress; |
|
42 | break; |
|
43 | ||
44 | default: |
|
45 | $progress = $goal ? round( ( $income / $goal ) * 100, 2 ) : 0; |
|
46 | $progress_bar_value = $income >= $goal ? 100 : $progress; |
|
47 | break; |
|
48 | ||
49 | } |
|
50 |