@@ -10,11 +10,11 @@ |
||
| 10 | 10 | /** |
| 11 | 11 | * Gets a single header from an existing email by name. |
| 12 | 12 | * |
| 13 | - * @param $headerName |
|
| 13 | + * @param string $headerName |
|
| 14 | 14 | * |
| 15 | 15 | * @param string $regex if this is set, value will be evaluated with the give regular expression. |
| 16 | 16 | * |
| 17 | - * @return null|string|array |
|
| 17 | + * @return string|null |
|
| 18 | 18 | */ |
| 19 | 19 | public function getHeader( $headerName, $regex = null ) |
| 20 | 20 | { |
@@ -156,6 +156,9 @@ |
||
| 156 | 156 | ]; |
| 157 | 157 | } |
| 158 | 158 | |
| 159 | + /** |
|
| 160 | + * @param string $string |
|
| 161 | + */ |
|
| 159 | 162 | public function config( $string = null, $email = null ) |
| 160 | 163 | { |
| 161 | 164 | $email = $email ?: $this->emailAddress; |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Google_Client; |
| 6 | 6 | use Google_Service_Gmail; |
| 7 | 7 | use Illuminate\Container\Container; |
| 8 | -use Illuminate\Config\Repository as Config; |
|
| 9 | 8 | use Illuminate\Support\Facades\Storage; |
| 10 | 9 | use Illuminate\Support\Facades\Request; |
| 11 | 10 | |
@@ -1,6 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -use Dacastro4\LaravelGmail\Facade\LaravelGmail; |
|
| 4 | 3 | use Dacastro4\LaravelGmail\LaravelGmailClass; |
| 5 | 4 | use Tests\TestCase; |
| 6 | 5 | |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Dacastro4\LaravelGmail\Services\Message\Mail; |
| 6 | 6 | use Google_Service_Gmail; |
| 7 | -use Google_Service_Gmail_ModifyMessageRequest; |
|
| 8 | 7 | |
| 9 | 8 | /** |
| 10 | 9 | * @property Google_Service_Gmail $service |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | /** |
| 53 | 53 | * Adds a single label to the request |
| 54 | 54 | * |
| 55 | - * @param $label |
|
| 55 | + * @param string $label |
|
| 56 | 56 | * |
| 57 | 57 | * @return Mail |
| 58 | 58 | */ |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | /** |
| 67 | 67 | * Removes a single label from the request |
| 68 | 68 | * |
| 69 | - * @param $label |
|
| 69 | + * @param string $label |
|
| 70 | 70 | * |
| 71 | 71 | * @return Mail |
| 72 | 72 | */ |
@@ -317,6 +317,9 @@ |
||
| 317 | 317 | return rtrim( strtr( base64_encode( $data ), '+/', '-_' ), '=' ); |
| 318 | 318 | } |
| 319 | 319 | |
| 320 | + /** |
|
| 321 | + * @param string $name |
|
| 322 | + */ |
|
| 320 | 323 | private function emailList( $list, $name = null ) |
| 321 | 324 | { |
| 322 | 325 | if ( is_array( $list ) ) { |