Completed
Pull Request — master (#317)
by Luc
04:43 queued 13s
created
src/Organizer/OrganizerLDProjector.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 
213 213
         $this->setMainLanguage($jsonLD, new Language('nl'));
214 214
 
215
-        $jsonLD->url = (string) $organizerCreated->getWebsite();
215
+        $jsonLD->url = (string)$organizerCreated->getWebsite();
216 216
 
217 217
         $jsonLD->name = [
218 218
             $this->getMainLanguage($jsonLD)->getCode() => $organizerCreated->getTitle(),
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
         $document = $this->repository->get($organizerId);
244 244
 
245 245
         $jsonLD = $document->getBody();
246
-        $jsonLD->url = (string) $websiteUpdated->getWebsite();
246
+        $jsonLD->url = (string)$websiteUpdated->getWebsite();
247 247
 
248 248
         return $document->withBody($jsonLD);
249 249
     }
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
         $labelsProperty = $labelAdded->getLabel()->isVisible() ? 'labels' : 'hiddenLabels';
352 352
 
353 353
         $labels = isset($jsonLD->{$labelsProperty}) ? $jsonLD->{$labelsProperty} : [];
354
-        $label = (string) $labelAdded->getLabel();
354
+        $label = (string)$labelAdded->getLabel();
355 355
 
356 356
         $labels[] = $label;
357 357
         $jsonLD->{$labelsProperty} = array_unique($labels);
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
             if (isset($jsonLD->{$labelsProperty}) && is_array($jsonLD->{$labelsProperty})) {
376 376
                 $jsonLD->{$labelsProperty} = array_filter(
377 377
                     $jsonLD->{$labelsProperty},
378
-                    function ($label) use ($labelRemoved) {
378
+                    function($label) use ($labelRemoved) {
379 379
                         return !$labelRemoved->getLabel()->equals(
380 380
                             new Label($label)
381 381
                         );
Please login to merge, or discard this patch.
src/Role/ReadModel/Permissions/Doctrine/UserPermissionsWriteRepository.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -76,8 +76,8 @@  discard block
 block discarded – undo
76 76
         $this->connection->insert(
77 77
             $this->rolePermissionTableName,
78 78
             array(
79
-                SchemaConfigurator::ROLE_ID_COLUMN => (string) $roleId,
80
-                SchemaConfigurator::PERMISSION_COLUMN => (string) $permission,
79
+                SchemaConfigurator::ROLE_ID_COLUMN => (string)$roleId,
80
+                SchemaConfigurator::PERMISSION_COLUMN => (string)$permission,
81 81
             )
82 82
         );
83 83
     }
@@ -90,8 +90,8 @@  discard block
 block discarded – undo
90 90
         $this->connection->delete(
91 91
             $this->rolePermissionTableName,
92 92
             array(
93
-                SchemaConfigurator::ROLE_ID_COLUMN => (string) $roleId,
94
-                SchemaConfigurator::PERMISSION_COLUMN => (string) $permission,
93
+                SchemaConfigurator::ROLE_ID_COLUMN => (string)$roleId,
94
+                SchemaConfigurator::PERMISSION_COLUMN => (string)$permission,
95 95
             )
96 96
         );
97 97
     }
@@ -104,8 +104,8 @@  discard block
 block discarded – undo
104 104
         $this->connection->insert(
105 105
             $this->userRoleTableName,
106 106
             array(
107
-                SchemaConfigurator::ROLE_ID_COLUMN => (string) $roleId,
108
-                SchemaConfigurator::USER_ID_COLUMN => (string) $userId,
107
+                SchemaConfigurator::ROLE_ID_COLUMN => (string)$roleId,
108
+                SchemaConfigurator::USER_ID_COLUMN => (string)$userId,
109 109
             )
110 110
         );
111 111
     }
@@ -118,8 +118,8 @@  discard block
 block discarded – undo
118 118
         $this->connection->delete(
119 119
             $this->userRoleTableName,
120 120
             array(
121
-                SchemaConfigurator::USER_ID_COLUMN => (string) $userId,
122
-                SchemaConfigurator::ROLE_ID_COLUMN => (string) $roleId,
121
+                SchemaConfigurator::USER_ID_COLUMN => (string)$userId,
122
+                SchemaConfigurator::ROLE_ID_COLUMN => (string)$roleId,
123 123
             )
124 124
         );
125 125
     }
Please login to merge, or discard this patch.