@@ 156-161 (lines=6) @@ | ||
153 | ]; |
|
154 | ||
155 | } |
|
156 | if ($new instanceof Survey) { |
|
157 | $sortNews[] = [ |
|
158 | 'text' => 'You\'ve got a new ' . $new->getType()->getName() . ' survey!', |
|
159 | 'createdAt' => $new->getCreatedAt(), |
|
160 | ]; |
|
161 | } |
|
162 | if ($new instanceof FormRequest) { |
|
163 | $sortNews[] = [ |
|
164 | 'text' => 'Your '. $new->getType() .' form has been approved!', |
|
@@ 162-167 (lines=6) @@ | ||
159 | 'createdAt' => $new->getCreatedAt(), |
|
160 | ]; |
|
161 | } |
|
162 | if ($new instanceof FormRequest) { |
|
163 | $sortNews[] = [ |
|
164 | 'text' => 'Your '. $new->getType() .' form has been approved!', |
|
165 | 'createdAt' => $new->getCreatedAt(), |
|
166 | ]; |
|
167 | } |
|
168 | } |
|
169 | ||
170 | return $this->json( |