HasDecodableBody   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 3
c 2
b 0
f 0
dl 0
loc 13
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getDecodedBody() 0 5 1
1
<?php
2
3
namespace Dacastro4\LaravelGmail\Traits;
4
5
trait HasDecodableBody
6
{
7
8
	/**
9
	 * @param $content
10
	 *
11
	 * @return string
12
	 */
13
	public function getDecodedBody($content)
14
	{
15
		$content = str_replace('_', '/', str_replace('-', '+', $content));
16
17
		return base64_decode($content);
18
	}
19
20
}
21