@@ -204,7 +204,7 @@ |
||
204 | 204 | /** |
205 | 205 | * @param BaseSyncEntity $syncEntity |
206 | 206 | * @param $contentType |
207 | - * @return ContentVersion|null |
|
207 | + * @return ContentVersion |
|
208 | 208 | */ |
209 | 209 | private function getActiveVersion(BaseSyncEntity $syncEntity, $contentType) |
210 | 210 | { |
@@ -9,7 +9,6 @@ |
||
9 | 9 | namespace Famoser\SyncApi\Models\Communication\Entities\Base; |
10 | 10 | |
11 | 11 | use Famoser\SyncApi\Framework\Json\Models\Base\AbstractJsonProperty; |
12 | -use Famoser\SyncApi\Framework\Json\Models\DateTimeProperty; |
|
13 | 12 | use Famoser\SyncApi\Framework\Json\Models\DateTimeTextProperty; |
14 | 13 | use Famoser\SyncApi\Framework\Json\Models\IntProperty; |
15 | 14 | use Famoser\SyncApi\Framework\Json\Models\TextProperty; |
@@ -9,7 +9,6 @@ |
||
9 | 9 | namespace Famoser\SyncApi\Models\Communication\Request; |
10 | 10 | |
11 | 11 | |
12 | -use Famoser\SyncApi\Framework\Json\Models\Base\AbstractJsonProperty; |
|
13 | 12 | use Famoser\SyncApi\Framework\Json\Models\Base\AbstractJsonValueProperty; |
14 | 13 | use Famoser\SyncApi\Framework\Json\Models\ObjectProperty; |
15 | 14 | use Famoser\SyncApi\Framework\Json\Models\TextProperty; |
@@ -10,7 +10,6 @@ |
||
10 | 10 | |
11 | 11 | |
12 | 12 | use Famoser\SyncApi\Framework\Json\Models\ArrayProperty; |
13 | -use Famoser\SyncApi\Framework\Json\Models\Base\AbstractJsonProperty; |
|
14 | 13 | use Famoser\SyncApi\Framework\Json\Models\Base\AbstractJsonValueProperty; |
15 | 14 | use Famoser\SyncApi\Framework\Json\Models\ObjectProperty; |
16 | 15 | use Famoser\SyncApi\Models\Communication\Entities\CollectionCommunicationEntity; |
@@ -10,7 +10,6 @@ |
||
10 | 10 | |
11 | 11 | |
12 | 12 | use Famoser\SyncApi\Framework\Json\Models\ArrayProperty; |
13 | -use Famoser\SyncApi\Framework\Json\Models\Base\AbstractJsonProperty; |
|
14 | 13 | use Famoser\SyncApi\Framework\Json\Models\Base\AbstractJsonValueProperty; |
15 | 14 | use Famoser\SyncApi\Framework\Json\Models\TextProperty; |
16 | 15 | use Famoser\SyncApi\Models\Communication\Request\Base\BaseRequest; |
@@ -9,7 +9,6 @@ |
||
9 | 9 | namespace Famoser\SyncApi\Models\Communication\Request; |
10 | 10 | |
11 | 11 | use Famoser\SyncApi\Framework\Json\Models\ArrayProperty; |
12 | -use Famoser\SyncApi\Framework\Json\Models\Base\AbstractJsonProperty; |
|
13 | 12 | use Famoser\SyncApi\Framework\Json\Models\Base\AbstractJsonValueProperty; |
14 | 13 | use Famoser\SyncApi\Framework\Json\Models\ObjectProperty; |
15 | 14 | use Famoser\SyncApi\Models\Communication\Entities\SyncCommunicationEntity; |
@@ -97,7 +97,7 @@ |
||
97 | 97 | * @param null|string $where |
98 | 98 | * @param null|array $parameters |
99 | 99 | * @param null|string $orderBy |
100 | - * @return null|Application|ApplicationSetting|AuthorizationCode|Collection|ContentVersion|Device|Entity| |
|
100 | + * @return BaseEntity |
|
101 | 101 | * FrontendUser|User|UserCollection |
102 | 102 | */ |
103 | 103 | public function getSingleFromDatabase(BaseEntity $entity, $where = null, $parameters = null, $orderBy = null); |
@@ -63,7 +63,7 @@ |
||
63 | 63 | /** |
64 | 64 | * checks if the value to be assigned to a setting is valid |
65 | 65 | * |
66 | - * @param $key |
|
66 | + * @param string $key |
|
67 | 67 | * @param $val |
68 | 68 | * @return bool |
69 | 69 | */ |
@@ -34,8 +34,7 @@ |
||
34 | 34 | { |
35 | 35 | //check if mail settings are defined |
36 | 36 | $mailSettings = isset($this->getSettingsArray()['mail']) ? |
37 | - $this->getSettingsArray()['mail'] : |
|
38 | - ['type' => 'mail']; |
|
37 | + $this->getSettingsArray()['mail'] : ['type' => 'mail']; |
|
39 | 38 | |
40 | 39 | if ($mailSettings['type'] == 'smtp') { |
41 | 40 | $transport = Swift_SmtpTransport::newInstance($mailSettings['url'], $mailSettings['port']) |