@@ -24,7 +24,7 @@ public function home()
2424 $ query = Campaign::orderBy ('created_at ' , 'desc ' );
2525
2626 if ($ search ) {
27- $ query ->where ('Title ' , 'like ' , '% ' . $ search . '% ' );
27+ $ query ->where ('Title ' , 'like ' , '% ' . $ search. '% ' );
2828 }
2929
3030 $ campaigns = $ query ->get ();
@@ -35,11 +35,11 @@ public function home()
3535 public function terms ()
3636 {
3737 $ filename = 'termos_de_uso_e_privacidade.pdf ' ;
38- $ path = 'terms/ ' . $ filename ;
38+ $ path = 'terms/ ' . $ filename ;
3939
4040 $ disk = Storage::disk ('public ' );
4141
42- if (!$ disk ->exists ($ path )) {
42+ if (! $ disk ->exists ($ path )) {
4343 abort (404 , 'O arquivo não existe ou não foi encontrado. ' );
4444 }
4545
@@ -49,8 +49,8 @@ public function terms()
4949
5050 return new Response ($ fileContents , 200 , [
5151 'Content-Type ' => 'application/pdf ' ,
52- 'Content-Disposition ' => 'inline; filename=" ' . $ filename . '" ' ,
53- 'Cache-Control ' => 'no-cache, must-revalidate '
52+ 'Content-Disposition ' => 'inline; filename=" ' . $ filename. '" ' ,
53+ 'Cache-Control ' => 'no-cache, must-revalidate ' ,
5454 ]);
5555 }
5656}
0 commit comments