@@ -22,8 +22,8 @@ |
||
22 | 22 | */ |
23 | 23 | public function __construct(StringLiteral $userId, $command) |
24 | 24 | { |
25 | - parent::__construct('User with id: ' . $userId->toNative() . |
|
26 | - ' failed to execute command: ' . get_class($command) . |
|
25 | + parent::__construct('User with id: '.$userId->toNative(). |
|
26 | + ' failed to execute command: '.get_class($command). |
|
27 | 27 | ' because it is not authorizable.'); |
28 | 28 | |
29 | 29 | $this->userId = $userId; |
@@ -117,7 +117,7 @@ |
||
117 | 117 | */ |
118 | 118 | public function getItemId() |
119 | 119 | { |
120 | - return (string) $this->getFileId(); |
|
120 | + return (string)$this->getFileId(); |
|
121 | 121 | } |
122 | 122 | |
123 | 123 | /** |
@@ -35,7 +35,7 @@ |
||
35 | 35 | */ |
36 | 36 | public function getItemId() |
37 | 37 | { |
38 | - return (string) $this->getUuid(); |
|
38 | + return (string)$this->getUuid(); |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | /** |
@@ -32,7 +32,7 @@ |
||
32 | 32 | |
33 | 33 | /** |
34 | 34 | * @param array $data |
35 | - * @return mixed The object instance |
|
35 | + * @return AbstractFacilitiesUpdated The object instance |
|
36 | 36 | */ |
37 | 37 | public static function deserialize(array $data) |
38 | 38 | { |
@@ -9,8 +9,8 @@ |
||
9 | 9 | */ |
10 | 10 | public function format(Address $address) |
11 | 11 | { |
12 | - return $address->getPostalCode() . ' ' . |
|
13 | - $address->getLocality() . ', ' . |
|
12 | + return $address->getPostalCode().' '. |
|
13 | + $address->getLocality().', '. |
|
14 | 14 | $address->getCountry()->getCode(); |
15 | 15 | } |
16 | 16 | } |
@@ -154,7 +154,7 @@ |
||
154 | 154 | } |
155 | 155 | return parent::serialize() + array( |
156 | 156 | 'main_language' => $this->mainLanguage->getCode(), |
157 | - 'title' => (string) $this->getTitle(), |
|
157 | + 'title' => (string)$this->getTitle(), |
|
158 | 158 | 'event_type' => $this->getEventType()->serialize(), |
159 | 159 | 'theme' => $theme, |
160 | 160 | 'address' => $this->getAddress()->serialize(), |
@@ -73,8 +73,8 @@ |
||
73 | 73 | { |
74 | 74 | return parent::serialize() + array( |
75 | 75 | 'main_language' => $this->getMainLanguage()->getCode(), |
76 | - 'website' => (string) $this->getWebsite(), |
|
77 | - 'title' => (string) $this->getTitle(), |
|
76 | + 'website' => (string)$this->getWebsite(), |
|
77 | + 'title' => (string)$this->getTitle(), |
|
78 | 78 | ); |
79 | 79 | } |
80 | 80 |
@@ -49,11 +49,11 @@ discard block |
||
49 | 49 | $normalizedData = [ |
50 | 50 | '@id' => $this->iriGenerator->iri($mediaObject->getMediaObjectId()), |
51 | 51 | '@type' => $type, |
52 | - 'contentUrl' => (string) $mediaObject->getSourceLocation(), |
|
53 | - 'thumbnailUrl' => (string) $mediaObject->getSourceLocation(), |
|
54 | - 'description' => (string) $mediaObject->getDescription(), |
|
55 | - 'copyrightHolder' => (string) $mediaObject->getCopyrightHolder(), |
|
56 | - 'inLanguage' => (string) $mediaObject->getLanguage(), |
|
52 | + 'contentUrl' => (string)$mediaObject->getSourceLocation(), |
|
53 | + 'thumbnailUrl' => (string)$mediaObject->getSourceLocation(), |
|
54 | + 'description' => (string)$mediaObject->getDescription(), |
|
55 | + 'copyrightHolder' => (string)$mediaObject->getCopyrightHolder(), |
|
56 | + 'inLanguage' => (string)$mediaObject->getLanguage(), |
|
57 | 57 | ]; |
58 | 58 | |
59 | 59 | return $normalizedData; |
@@ -61,18 +61,18 @@ discard block |
||
61 | 61 | |
62 | 62 | public function serializeMimeType(MIMEType $mimeType) |
63 | 63 | { |
64 | - $typeParts = explode('/', (string) $mimeType); |
|
64 | + $typeParts = explode('/', (string)$mimeType); |
|
65 | 65 | $type = array_shift($typeParts); |
66 | 66 | |
67 | 67 | if ($type === 'image') { |
68 | 68 | return 'schema:ImageObject'; |
69 | 69 | } |
70 | 70 | |
71 | - if ((string) $mimeType === 'application/octet-stream') { |
|
71 | + if ((string)$mimeType === 'application/octet-stream') { |
|
72 | 72 | return 'schema:mediaObject'; |
73 | 73 | } |
74 | 74 | |
75 | - throw new UnsupportedException('Unsupported MIME-type "'. $mimeType .'"'); |
|
75 | + throw new UnsupportedException('Unsupported MIME-type "'.$mimeType.'"'); |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | public function deserialize($data, $type, $format, array $context = array()) |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | public function getByUuid(UUID $uuid) |
55 | 55 | { |
56 | 56 | $aliases = $this->getAliases(); |
57 | - $whereId = SchemaConfigurator::UUID_COLUMN . ' = ?'; |
|
57 | + $whereId = SchemaConfigurator::UUID_COLUMN.' = ?'; |
|
58 | 58 | |
59 | 59 | $queryBuilder = $this->createQueryBuilder()->select($aliases) |
60 | 60 | ->from($this->getTableName()->toNative()) |
@@ -215,15 +215,15 @@ discard block |
||
215 | 215 | private function createUserLabelsSubQuery(Query $query) |
216 | 216 | { |
217 | 217 | return $this->createQueryBuilder() |
218 | - ->select('DISTINCT ' . LabelRolesSchemaConfigurator::LABEL_ID_COLUMN) |
|
218 | + ->select('DISTINCT '.LabelRolesSchemaConfigurator::LABEL_ID_COLUMN) |
|
219 | 219 | ->from($this->userRolesTableName->toNative(), 'ur') |
220 | 220 | ->innerJoin( |
221 | 221 | 'ur', |
222 | 222 | $this->labelRolesTableName->toNative(), |
223 | 223 | 'lr', |
224 | - 'ur.' . PermissionsSchemaConfigurator::ROLE_ID_COLUMN . ' = lr.' . LabelRolesSchemaConfigurator::ROLE_ID_COLUMN |
|
224 | + 'ur.'.PermissionsSchemaConfigurator::ROLE_ID_COLUMN.' = lr.'.LabelRolesSchemaConfigurator::ROLE_ID_COLUMN |
|
225 | 225 | ) |
226 | - ->where('ur.' . PermissionsSchemaConfigurator::USER_ID_COLUMN . '= :' . PermissionsSchemaConfigurator::USER_ID_COLUMN); |
|
226 | + ->where('ur.'.PermissionsSchemaConfigurator::USER_ID_COLUMN.'= :'.PermissionsSchemaConfigurator::USER_ID_COLUMN); |
|
227 | 227 | } |
228 | 228 | |
229 | 229 | /** |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | { |
250 | 250 | return $queryBuilder->expr()->like( |
251 | 251 | SchemaConfigurator::NAME_COLUMN, |
252 | - ':' . SchemaConfigurator::NAME_COLUMN |
|
252 | + ':'.SchemaConfigurator::NAME_COLUMN |
|
253 | 253 | ); |
254 | 254 | } |
255 | 255 | |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | */ |
260 | 260 | private function createLikeParameter(Query $query) |
261 | 261 | { |
262 | - return '%' . $query->getValue()->toNative() . '%'; |
|
262 | + return '%'.$query->getValue()->toNative().'%'; |
|
263 | 263 | } |
264 | 264 | |
265 | 265 | /** |