1 | <?php |
||
0 ignored issues
–
show
Coding Style
introduced
by
![]() |
|||
2 | |||
3 | /** |
||
4 | * Google Adsense Ads for Laravel. |
||
0 ignored issues
–
show
|
|||
5 | * |
||
6 | * Package for easily including Google Adsense Ad units |
||
7 | * in Laravel and Lumen. |
||
8 | * |
||
9 | * @developer Martin Butt <https://www.martinbutt.com/> |
||
0 ignored issues
–
show
|
|||
10 | * |
||
11 | * @copyright Copyright (c) 2021 Martin Butt |
||
0 ignored issues
–
show
|
|||
12 | * @license MIT |
||
0 ignored issues
–
show
|
|||
13 | * |
||
14 | * Copyright (c) 2016 Galen Han |
||
15 | * Copyright (c) 2019 Crypto Technology srl |
||
16 | * Copyright (c) 2021 Martin Butt |
||
17 | * |
||
18 | * Permission is hereby granted, free of charge, to any person obtaining a copy of |
||
0 ignored issues
–
show
|
|||
19 | * this software and associated documentation files (the "Software"), to deal in |
||
20 | * the Software without restriction, including without limitation the rights to |
||
21 | * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of |
||
0 ignored issues
–
show
|
|||
22 | * the Software, and to permit persons to whom the Software is furnished to do so, |
||
0 ignored issues
–
show
|
|||
23 | * subject to the following conditions: |
||
24 | * |
||
25 | * The above copyright notice and this permission notice shall be included in all |
||
0 ignored issues
–
show
|
|||
26 | * copies or substantial portions of the Software. |
||
27 | * |
||
28 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||
29 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS |
||
0 ignored issues
–
show
|
|||
30 | * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR |
||
0 ignored issues
–
show
|
|||
31 | * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER |
||
0 ignored issues
–
show
|
|||
32 | * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
||
33 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
||
34 | */ |
||
0 ignored issues
–
show
|
|||
35 | |||
36 | declare(strict_types=1); |
||
37 | |||
38 | return [ |
||
0 ignored issues
–
show
|
|||
39 | 'client_id' => 'YOUR_CLIENT_ID', //Your Adsense client ID e.g. ca-pub-9508939161510421 |
||
0 ignored issues
–
show
|
|||
40 | 'ads' => [ |
||
0 ignored issues
–
show
|
|||
41 | 'responsive' => [ |
||
0 ignored issues
–
show
|
|||
42 | 'ad_slot' => 1111111111, |
||
0 ignored issues
–
show
|
|||
43 | 'ad_format' => 'fluid', |
||
0 ignored issues
–
show
|
|||
44 | 'ad_full_width_responsive' => true, |
||
0 ignored issues
–
show
|
|||
45 | 'ad_style' => 'display:inline-block', |
||
0 ignored issues
–
show
|
|||
46 | ], |
||
47 | 'rectangle' => [ |
||
0 ignored issues
–
show
|
|||
48 | 'ad_slot' => 2222222222, |
||
0 ignored issues
–
show
|
|||
49 | 'ad_style' => 'display:inline-block;width:300px;height:250px', |
||
0 ignored issues
–
show
|
|||
50 | 'ad_full_width_responsive' => false, |
||
0 ignored issues
–
show
|
|||
51 | 'ad_format' => 'auto', |
||
0 ignored issues
–
show
|
|||
52 | ], |
||
53 | ], |
||
54 | ]; |
||
0 ignored issues
–
show
|
|||
55 |