Completed
Pull Request — master (#450)
by
unknown
04:18
created
src/Media/Image.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -127,12 +127,12 @@
 block discarded – undo
127 127
     public function serialize()
128 128
     {
129 129
         return [
130
-            'media_object_id' => (string) $this->getMediaObjectId(),
131
-            'mime_type' => (string) $this->getMimeType(),
132
-            'description' => (string) $this->getDescription(),
133
-            'copyright_holder' => (string) $this->getCopyrightHolder(),
134
-            'source_location' => (string) $this->getSourceLocation(),
135
-            'language' => (string) $this->getLanguage(),
130
+            'media_object_id' => (string)$this->getMediaObjectId(),
131
+            'mime_type' => (string)$this->getMimeType(),
132
+            'description' => (string)$this->getDescription(),
133
+            'copyright_holder' => (string)$this->getCopyrightHolder(),
134
+            'source_location' => (string)$this->getSourceLocation(),
135
+            'language' => (string)$this->getLanguage(),
136 136
         ];
137 137
     }
138 138
 }
Please login to merge, or discard this patch.
src/Organizer/Events/WebsiteUpdated.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     public function serialize()
39 39
     {
40 40
         return parent::serialize() + [
41
-                'website' => (string) $this->getWebsite(),
41
+                'website' => (string)$this->getWebsite(),
42 42
             ];
43 43
     }
44 44
 
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.
src/Offer/Commands/AbstractUpdateTitle.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     }
25 25
 
26 26
     /**
27
-     * @return StringLiteral
27
+     * @return string
28 28
      */
29 29
     public function getTitle()
30 30
     {
Please login to merge, or discard this patch.
src/Offer/Events/AbstractTitleUpdated.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     public function serialize()
37 37
     {
38 38
         return parent::serialize() + array(
39
-            'title' => (string) $this->title,
39
+            'title' => (string)$this->title,
40 40
         );
41 41
     }
42 42
 
Please login to merge, or discard this patch.
src/CommandHandling/UnauthorizableCommandException.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Media/Commands/UploadImage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Role/Commands/AbstractCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Event/EventThemeResolver.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -590,7 +590,7 @@  discard block
 block discarded – undo
590 590
 
591 591
         $this->themes = array_reduce(
592 592
             $themePerType,
593
-            function ($themes, array $type) {
593
+            function($themes, array $type) {
594 594
                 if (array_key_exists('themes', $type)) {
595 595
                     foreach ($type['themes'] as $themeData) {
596 596
                         $themes[$themeData['id']] = new Theme($themeData['id'], $themeData['label']);
@@ -608,9 +608,9 @@  discard block
 block discarded – undo
608 608
      */
609 609
     public function byId(StringLiteral $themeId)
610 610
     {
611
-        if (!array_key_exists((string) $themeId, $this->themes)) {
612
-            throw new \Exception("Unknown event theme id: " . $themeId);
611
+        if (!array_key_exists((string)$themeId, $this->themes)) {
612
+            throw new \Exception("Unknown event theme id: ".$themeId);
613 613
         }
614
-        return $this->themes[(string) $themeId];
614
+        return $this->themes[(string)$themeId];
615 615
     }
616 616
 }
Please login to merge, or discard this patch.