@@ -124,14 +124,14 @@ discard block |
||
124 | 124 | <th style="Margin:0;color:#0a0a0a;font-family:Arial,Verdana,Helvetica,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;padding:0;text-align:left"> |
125 | 125 | |
126 | 126 | <?php |
127 | -if($questions) { |
|
128 | - foreach($questions as $behavior_id => $behavior_questions) { |
|
127 | +if ($questions) { |
|
128 | + foreach ($questions as $behavior_id => $behavior_questions) { |
|
129 | 129 | ?> |
130 | 130 | |
131 | 131 | <h4 style="Margin:0;Margin-bottom:10px;color:#37b98f;font-family:Arial,Verdana,Helvetica,sans-serif;font-size:24px;font-weight:400;line-height:1.3;margin:0;margin-bottom:5px;padding:0 8px;text-align:left;word-wrap:normal"> <?= $behavior_questions['question']['title'] ?> </h4> |
132 | 132 | |
133 | 133 | <?php |
134 | - foreach($behavior_questions['answers'] as $key => $question) { ?> |
|
134 | + foreach ($behavior_questions['answers'] as $key => $question) { ?> |
|
135 | 135 | <p style="Margin:0;Margin-bottom:10px;color:#0a0a0a;font-family:Arial,Verdana,Helvetica,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;margin-bottom:10px;padding:0 8px 4px 8px;text-align:left"><strong><?=$question['title']?></strong> <?=$question['answer']?></p> |
136 | 136 | <?php |
137 | 137 | } |
@@ -188,12 +188,12 @@ discard block |
||
188 | 188 | <th style="Margin:0;color:#0a0a0a;font-family:Arial,Verdana,Helvetica,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;padding:0;text-align:left"> |
189 | 189 | |
190 | 190 | <?php |
191 | -if($user_behaviors) { |
|
192 | - foreach($user_behaviors as $user_behavior) { ?> |
|
191 | +if ($user_behaviors) { |
|
192 | + foreach ($user_behaviors as $user_behavior) { ?> |
|
193 | 193 | <p style="Margin:0;Margin-bottom:10px;color:#0a0a0a;font-family:Arial,Verdana,Helvetica,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;margin-bottom:10px;padding:0 8px 4px 8px;text-align:left"> |
194 | 194 | <strong style="color:#37b98f"><?= $user_behavior['category_name'] ?></strong> |
195 | 195 | <?php |
196 | - foreach($user_behavior['behaviors'] as $behavior) { ?> |
|
196 | + foreach ($user_behavior['behaviors'] as $behavior) { ?> |
|
197 | 197 | <br><?= $behavior['name'] ?> |
198 | 198 | <?php |
199 | 199 | } |
@@ -53,8 +53,8 @@ discard block |
||
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
56 | - * @codeCoverageIgnore |
|
57 | - */ |
|
56 | + * @codeCoverageIgnore |
|
57 | + */ |
|
58 | 58 | public function attributeLabels() { |
59 | 59 | return [ |
60 | 60 | 'partner_email1' => "Partner Email #1", |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | |
86 | 86 | // generate scores graph image |
87 | 87 | $checkins_last_month = (Yii::$container->get(\common\interfaces\UserBehaviorInterface::class)) |
88 | - ->getCheckInBreakdown(); |
|
88 | + ->getCheckInBreakdown(); |
|
89 | 89 | |
90 | 90 | // if they haven't done a check-in in the last month this will explode |
91 | 91 | // because $checkins_last_month is an empty array |
@@ -77,10 +77,10 @@ discard block |
||
77 | 77 | $graph = Yii::$container |
78 | 78 | ->get(\common\components\Graph::class, [$this->user]); |
79 | 79 | |
80 | - if($this->timezone) { |
|
80 | + if ($this->timezone) { |
|
81 | 81 | $user->timezone = $this->timezone; |
82 | 82 | } |
83 | - if($this->expose_graph) { |
|
83 | + if ($this->expose_graph) { |
|
84 | 84 | $user->expose_graph = true; |
85 | 85 | |
86 | 86 | // generate scores graph image |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | |
90 | 90 | // if they haven't done a check-in in the last month this will explode |
91 | 91 | // because $checkins_last_month is an empty array |
92 | - if($checkins_last_month) { |
|
92 | + if ($checkins_last_month) { |
|
93 | 93 | $graph->create($checkins_last_month, true); |
94 | 94 | } |
95 | 95 | } else { |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | $graph->destroy(); |
99 | 99 | } |
100 | 100 | |
101 | - if($this->send_email) { |
|
101 | + if ($this->send_email) { |
|
102 | 102 | $user->send_email = true; |
103 | 103 | $user->partner_email1 = $this->partner_email1; |
104 | 104 | $user->partner_email2 = $this->partner_email2; |