@@ -51,7 +51,7 @@ discard block  | 
                                                    ||
| 51 | 51 | $missingFields = [];  | 
                                                        
| 52 | 52 | |
| 53 | 53 |          foreach ($requiredFields as $field) { | 
                                                        
| 54 | -            if (! isset($params[$field])) { | 
                                                        |
| 54 | +            if (!isset($params[$field])) { | 
                                                        |
| 55 | 55 | $missingFields[] = $field;  | 
                                                        
| 56 | 56 | }  | 
                                                        
| 57 | 57 | }  | 
                                                        
@@ -84,7 +84,7 @@ discard block  | 
                                                    ||
| 84 | 84 | |
| 85 | 85 | public static function setName(Cfp $cfp, array $array)  | 
                                                        
| 86 | 86 |      { | 
                                                        
| 87 | -        if (! isset($array['name'])) { | 
                                                        |
| 87 | +        if (!isset($array['name'])) { | 
                                                        |
| 88 | 88 |              throw new \InvalidArgumentException('Name has to be specified'); | 
                                                        
| 89 | 89 | }  | 
                                                        
| 90 | 90 | $cfp->setName(filter_var($array['name'], FILTER_SANITIZE_STRING));  | 
                                                        
@@ -92,7 +92,7 @@ discard block  | 
                                                    ||
| 92 | 92 | |
| 93 | 93 | public static function setDateCfpStart(Cfp $cfp, array $array)  | 
                                                        
| 94 | 94 |      { | 
                                                        
| 95 | -        if (! isset($array['dateCfpStart'])) { | 
                                                        |
| 95 | +        if (!isset($array['dateCfpStart'])) { | 
                                                        |
| 96 | 96 | $array['dateCfpStart'] = '@0';  | 
                                                        
| 97 | 97 | }  | 
                                                        
| 98 | 98 | $cfp->setDateCfpStart(new DateTimeImmutable($array['dateCfpStart']));  | 
                                                        
@@ -100,7 +100,7 @@ discard block  | 
                                                    ||
| 100 | 100 | |
| 101 | 101 | public static function setDateCfpEnd(Cfp $cfp, array $array)  | 
                                                        
| 102 | 102 |      { | 
                                                        
| 103 | -        if (! isset($array['dateCfpEnd'])) { | 
                                                        |
| 103 | +        if (!isset($array['dateCfpEnd'])) { | 
                                                        |
| 104 | 104 |              throw new \InvalidArgumentException('CFP-EndDate has to be specified'); | 
                                                        
| 105 | 105 | }  | 
                                                        
| 106 | 106 | $cfp->setDateCfpEnd(new DateTimeImmutable($array['dateCfpEnd']));  | 
                                                        
@@ -108,7 +108,7 @@ discard block  | 
                                                    ||
| 108 | 108 | |
| 109 | 109 | public static function setTimezone(Cfp $cfp, array $array)  | 
                                                        
| 110 | 110 |      { | 
                                                        
| 111 | -        if (! isset($array['timezone'])) { | 
                                                        |
| 111 | +        if (!isset($array['timezone'])) { | 
                                                        |
| 112 | 112 |              throw new \InvalidArgumentException('Timezone has to be specified'); | 
                                                        
| 113 | 113 | }  | 
                                                        
| 114 | 114 | |
@@ -121,7 +121,7 @@ discard block  | 
                                                    ||
| 121 | 121 | |
| 122 | 122 | public static function setUri(Cfp $cfp, array $array)  | 
                                                        
| 123 | 123 |      { | 
                                                        
| 124 | -        if (! isset($array['uri'])) { | 
                                                        |
| 124 | +        if (!isset($array['uri'])) { | 
                                                        |
| 125 | 125 |              throw new \InvalidArgumentException('URI has to be specified'); | 
                                                        
| 126 | 126 | }  | 
                                                        
| 127 | 127 | |
@@ -130,22 +130,22 @@ discard block  | 
                                                    ||
| 130 | 130 | |
| 131 | 131 | public static function setEventUri(Cfp $cfp, array $array, Client $client)  | 
                                                        
| 132 | 132 |      { | 
                                                        
| 133 | -        if (! isset($array['eventUri'])) { | 
                                                        |
| 133 | +        if (!isset($array['eventUri'])) { | 
                                                        |
| 134 | 134 |              throw new \InvalidArgumentException('Event-URI has to be specified'); | 
                                                        
| 135 | 135 | }  | 
                                                        
| 136 | 136 | |
| 137 | 137 |          try { | 
                                                        
| 138 | 138 | $uri = '';  | 
                                                        
| 139 | 139 | $client->get($array['eventUri'], [  | 
                                                        
| 140 | -                'on_stats' => function (TransferStats $stats) use (&$uri) { | 
                                                        |
| 140 | +                'on_stats' => function(TransferStats $stats) use (&$uri) { | 
                                                        |
| 141 | 141 | $uri = $stats->getEffectiveUri();  | 
                                                        
| 142 | 142 | }  | 
                                                        
| 143 | 143 | ]);  | 
                                                        
| 144 | 144 |          } catch (\Exception $e) { | 
                                                        
| 145 | -            throw new \InvalidArgumentException('Event-URI could not be verified: ' . $e->getMessage()); | 
                                                        |
| 145 | +            throw new \InvalidArgumentException('Event-URI could not be verified: '.$e->getMessage()); | 
                                                        |
| 146 | 146 | }  | 
                                                        
| 147 | 147 | |
| 148 | - $uri = (string) $uri;  | 
                                                        |
| 148 | + $uri = (string)$uri;  | 
                                                        |
| 149 | 149 | $pos = strpos($uri, '?');  | 
                                                        
| 150 | 150 |          if ($pos !== false) { | 
                                                        
| 151 | 151 | $uri = substr($uri, 0, $pos);  | 
                                                        
@@ -174,7 +174,7 @@ discard block  | 
                                                    ||
| 174 | 174 | |
| 175 | 175 | public static function setIconUri(Cfp $cfp, array $array)  | 
                                                        
| 176 | 176 |      { | 
                                                        
| 177 | -        if (! isset($array['iconUri'])) { | 
                                                        |
| 177 | +        if (!isset($array['iconUri'])) { | 
                                                        |
| 178 | 178 | return;  | 
                                                        
| 179 | 179 | }  | 
                                                        
| 180 | 180 | |
@@ -183,7 +183,7 @@ discard block  | 
                                                    ||
| 183 | 183 | |
| 184 | 184 | public static function setDescription(Cfp $cfp, array $array)  | 
                                                        
| 185 | 185 |      { | 
                                                        
| 186 | -        if (! isset($array['description'])) { | 
                                                        |
| 186 | +        if (!isset($array['description'])) { | 
                                                        |
| 187 | 187 | return;  | 
                                                        
| 188 | 188 | }  | 
                                                        
| 189 | 189 | |
@@ -192,7 +192,7 @@ discard block  | 
                                                    ||
| 192 | 192 | |
| 193 | 193 | public static function setLocation(Cfp $cfp, array $array)  | 
                                                        
| 194 | 194 |      { | 
                                                        
| 195 | -        if (! isset($array['location'])) { | 
                                                        |
| 195 | +        if (!isset($array['location'])) { | 
                                                        |
| 196 | 196 | return;  | 
                                                        
| 197 | 197 | }  | 
                                                        
| 198 | 198 | |
@@ -201,20 +201,20 @@ discard block  | 
                                                    ||
| 201 | 201 | |
| 202 | 202 | public static function setGeolocation(Cfp $cfp, array $array)  | 
                                                        
| 203 | 203 |      { | 
                                                        
| 204 | -        if (! isset($array['latitude'])) { | 
                                                        |
| 204 | +        if (!isset($array['latitude'])) { | 
                                                        |
| 205 | 205 | return;  | 
                                                        
| 206 | 206 | }  | 
                                                        
| 207 | 207 | |
| 208 | -        if (! isset($array['longitude'])) { | 
                                                        |
| 208 | +        if (!isset($array['longitude'])) { | 
                                                        |
| 209 | 209 | return;  | 
                                                        
| 210 | 210 | }  | 
                                                        
| 211 | 211 | |
| 212 | - $latitude = (float) filter_var(  | 
                                                        |
| 212 | + $latitude = (float)filter_var(  | 
                                                        |
| 213 | 213 | $array['latitude'],  | 
                                                        
| 214 | 214 | FILTER_SANITIZE_NUMBER_FLOAT,  | 
                                                        
| 215 | 215 | FILTER_FLAG_ALLOW_FRACTION  | 
                                                        
| 216 | 216 | );  | 
                                                        
| 217 | - $longitude = (float) filter_var(  | 
                                                        |
| 217 | + $longitude = (float)filter_var(  | 
                                                        |
| 218 | 218 | $array['longitude'],  | 
                                                        
| 219 | 219 | FILTER_SANITIZE_NUMBER_FLOAT,  | 
                                                        
| 220 | 220 | FILTER_FLAG_ALLOW_FRACTION  | 
                                                        
@@ -242,18 +242,18 @@ discard block  | 
                                                    ||
| 242 | 242 | |
| 243 | 243 | public static function setTags(Cfp $cfp, array $array)  | 
                                                        
| 244 | 244 |      { | 
                                                        
| 245 | -        if (! isset($array['tags'])) { | 
                                                        |
| 245 | +        if (!isset($array['tags'])) { | 
                                                        |
| 246 | 246 | return;  | 
                                                        
| 247 | 247 | }  | 
                                                        
| 248 | 248 | |
| 249 | -        $cfp->setTags(array_map(function ($item) { | 
                                                        |
| 249 | +        $cfp->setTags(array_map(function($item) { | 
                                                        |
| 250 | 250 | return filter_var($item, FILTER_SANITIZE_STRING);  | 
                                                        
| 251 | 251 | }, $array['tags']));  | 
                                                        
| 252 | 252 | }  | 
                                                        
| 253 | 253 | |
| 254 | 254 | public static function setSource(Cfp $cfp, array $array)  | 
                                                        
| 255 | 255 |      { | 
                                                        
| 256 | -        if (! isset($array['source'])) { | 
                                                        |
| 256 | +        if (!isset($array['source'])) { | 
                                                        |
| 257 | 257 | return;  | 
                                                        
| 258 | 258 | }  | 
                                                        
| 259 | 259 | |