@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | |
247 | 247 | public function setTimezone($timezone) |
248 | 248 | { |
249 | - if (! $timezone instanceof \DateTimeZone) { |
|
249 | + if (!$timezone instanceof \DateTimeZone) { |
|
250 | 250 | $timezone = new \DateTimeZone($timezone); |
251 | 251 | } |
252 | 252 | |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | |
296 | 296 | public function addSource($source) |
297 | 297 | { |
298 | - if (! in_array($source)) { |
|
298 | + if (!in_array($source)) { |
|
299 | 299 | $this->source[] = $source; |
300 | 300 | } |
301 | 301 | } |
@@ -51,7 +51,7 @@ |
||
51 | 51 | callable $next |
52 | 52 | ) { |
53 | 53 | $query = $request->getQueryParams(); |
54 | - if (! isset($query['type'])) { |
|
54 | + if (!isset($query['type'])) { |
|
55 | 55 | return $next($request, $response); |
56 | 56 | } |
57 | 57 |
@@ -36,7 +36,7 @@ |
||
36 | 36 | { |
37 | 37 | /** |
38 | 38 | * |
39 | - * @param Response $response |
|
39 | + * @param ResponseInterface $response |
|
40 | 40 | * @param array $data |
41 | 41 | * @param int $status |
42 | 42 | * |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | 'uri' => 'http://andreas.heigl.org', |
57 | 57 | ]); |
58 | 58 | $feed->setDateModified(time()); |
59 | - if (! isset($data['cfps'])) { |
|
59 | + if (!isset($data['cfps'])) { |
|
60 | 60 | $data['cfps'] = []; |
61 | 61 | } |
62 | 62 | foreach ($data['cfps'] as $cfp) { |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | $entry->setContent($cfp['description']); |
79 | 79 | |
80 | 80 | $feed->addEntry($entry); |
81 | - } catch(\Exception $e){ |
|
81 | + } catch (\Exception $e) { |
|
82 | 82 | } |
83 | 83 | } |
84 | 84 |