@@ -113,7 +113,7 @@ |
||
113 | 113 | $theme = $this->getTheme()->serialize(); |
114 | 114 | } |
115 | 115 | return parent::serialize() + array( |
116 | - 'title' => (string) $this->getTitle(), |
|
116 | + 'title' => (string)$this->getTitle(), |
|
117 | 117 | 'event_type' => $this->getEventType()->serialize(), |
118 | 118 | 'theme' => $theme, |
119 | 119 | 'address' => $this->getAddress()->serialize(), |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @file |
|
4 | - * Contains CultuurNet\UDB3\Place\PlaceEvent. |
|
5 | - */ |
|
3 | + * @file |
|
4 | + * Contains CultuurNet\UDB3\Place\PlaceEvent. |
|
5 | + */ |
|
6 | 6 | |
7 | 7 | namespace CultuurNet\UDB3\Place; |
8 | 8 |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @file |
|
4 | - */ |
|
3 | + * @file |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | namespace CultuurNet\UDB3\Place\ReadModel\Relations\Doctrine; |
7 | 7 | |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | |
72 | 72 | public function removeRelations($eventId) |
73 | 73 | { |
74 | - // @todo implement this for non-drupal. |
|
74 | + // @todo implement this for non-drupal. |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |
@@ -48,7 +48,7 @@ |
||
48 | 48 | ]; |
49 | 49 | |
50 | 50 | if ($this->id) { |
51 | - $serializedSavedSearch['id'] = (string) $this->id; |
|
51 | + $serializedSavedSearch['id'] = (string)$this->id; |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | return $serializedSavedSearch; |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @file |
|
4 | - */ |
|
3 | + * @file |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | namespace CultuurNet\UDB3\Variations; |
7 | 7 |
@@ -28,7 +28,7 @@ |
||
28 | 28 | /** |
29 | 29 | * @param String $name |
30 | 30 | * @param QueryString $query |
31 | - * @param String $id |
|
31 | + * @param string $id |
|
32 | 32 | */ |
33 | 33 | public function __construct(String $name, QueryString $query, String $id = null) |
34 | 34 | { |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | { |
77 | 77 | $name = new String($savedSearch->name); |
78 | 78 | $query = QueryString::fromURLQueryString($savedSearch->query); |
79 | - $id = new String((string) $savedSearch->id); |
|
79 | + $id = new String((string)$savedSearch->id); |
|
80 | 80 | |
81 | 81 | return new SavedSearch($name, $query, $id); |
82 | 82 | } |
@@ -86,8 +86,8 @@ discard block |
||
86 | 86 | */ |
87 | 87 | public function write(String $userId, String $name, QueryString $queryString) |
88 | 88 | { |
89 | - $userId = (string) $userId; |
|
90 | - $name = (string) $name; |
|
89 | + $userId = (string)$userId; |
|
90 | + $name = (string)$name; |
|
91 | 91 | $query = $queryString->toURLQueryString(); |
92 | 92 | |
93 | 93 | $savedSearch = new \CultureFeed_SavedSearches_SavedSearch( |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | 'error' => $exception->getMessage(), |
108 | 108 | 'userId' => $userId, |
109 | 109 | 'name' => $name, |
110 | - 'query' => (string) $queryString, |
|
110 | + 'query' => (string)$queryString, |
|
111 | 111 | ] |
112 | 112 | ); |
113 | 113 | } |
@@ -119,8 +119,8 @@ discard block |
||
119 | 119 | */ |
120 | 120 | public function delete(String $userId, String $searchId) |
121 | 121 | { |
122 | - $userId = (string) $userId; |
|
123 | - $searchId = (string) $searchId; |
|
122 | + $userId = (string)$userId; |
|
123 | + $searchId = (string)$searchId; |
|
124 | 124 | |
125 | 125 | try { |
126 | 126 | $this->savedSearches->unsubscribe($searchId, $userId); |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @file |
|
4 | - */ |
|
3 | + * @file |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | namespace CultuurNet\UDB3\Variations; |
7 | 7 |
@@ -13,11 +13,11 @@ |
||
13 | 13 | interface SluggerInterface |
14 | 14 | { |
15 | 15 | /** |
16 | - * Returns the slug for a given string |
|
17 | - * |
|
18 | - * @param string $string |
|
19 | - * |
|
20 | - * @return string |
|
21 | - **/ |
|
16 | + * Returns the slug for a given string |
|
17 | + * |
|
18 | + * @param string $string |
|
19 | + * |
|
20 | + * @return string |
|
21 | + **/ |
|
22 | 22 | public function slug($string); |
23 | 23 | } |
@@ -73,7 +73,7 @@ |
||
73 | 73 | } |
74 | 74 | |
75 | 75 | // Loop over all matching tags from the string. |
76 | - return preg_replace_callback($pattern, function ($match) use ($newlines) { |
|
76 | + return preg_replace_callback($pattern, function($match) use ($newlines) { |
|
77 | 77 | // Return the tag appended by the specified amount of newlines. Note that $match[0] is the full captured |
78 | 78 | // match, so it also includes the newlines after the tag. $match[1] is just the tag itself, and $match[2] |
79 | 79 | // are the newlines following it (if any). |
@@ -96,18 +96,18 @@ discard block |
||
96 | 96 | // If the ellipsis is longer or equal to the maximum length, simply truncate the ellipsis so it fits in |
97 | 97 | // the maximum length and return it. |
98 | 98 | if ($suffix->length() >= $maxLength) { |
99 | - return (string) $suffix->truncate($maxLength); |
|
99 | + return (string)$suffix->truncate($maxLength); |
|
100 | 100 | } |
101 | 101 | } |
102 | 102 | |
103 | 103 | $stringy = Stringy::create($string, 'UTF-8'); |
104 | 104 | |
105 | 105 | $sentencePattern = '/(.*[.!?])(?:\\s|\\h|$|\\\u00a0).*/su'; |
106 | - $trunc = (string) $stringy->first($maxLength); |
|
106 | + $trunc = (string)$stringy->first($maxLength); |
|
107 | 107 | $hasEndingSymbolInRange = preg_match($sentencePattern, $trunc); |
108 | 108 | |
109 | 109 | if ($this->sentenceFriendly && $hasEndingSymbolInRange === 1) { |
110 | - $sentenceTruncated = preg_replace($sentencePattern, "$1".$suffix, $trunc); |
|
110 | + $sentenceTruncated = preg_replace($sentencePattern, "$1" . $suffix, $trunc); |
|
111 | 111 | $truncated = Stringy::create($sentenceTruncated, 'UTF-8'); |
112 | 112 | } else if ($wordSafe) { |
113 | 113 | $truncated = $stringy->safeTruncate($maxLength, $suffix); |
@@ -122,6 +122,6 @@ discard block |
||
122 | 122 | $truncated = $truncated->regexReplace($pattern, $suffix); |
123 | 123 | } |
124 | 124 | |
125 | - return (string) $truncated; |
|
125 | + return (string)$truncated; |
|
126 | 126 | } |
127 | 127 | } |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @file |
|
4 | - */ |
|
3 | + * @file |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | namespace CultuurNet\UDB3\Variations; |
7 | 7 |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Created by PhpStorm. |
|
4 | - * User: nicolas |
|
5 | - * Date: 09/11/15 |
|
6 | - * Time: 14:31 |
|
7 | - */ |
|
3 | + * Created by PhpStorm. |
|
4 | + * User: nicolas |
|
5 | + * Date: 09/11/15 |
|
6 | + * Time: 14:31 |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | namespace CultuurNet\UDB3; |
10 | 10 |
@@ -36,9 +36,9 @@ |
||
36 | 36 | /** |
37 | 37 | * Translation constructor. |
38 | 38 | * @param Language $language |
39 | - * @param String|null $title |
|
40 | - * @param String|null $shortDescription |
|
41 | - * @param String|null $longDescription |
|
39 | + * @param null|string $title |
|
40 | + * @param null|string $shortDescription |
|
41 | + * @param null|string $longDescription |
|
42 | 42 | */ |
43 | 43 | public function __construct( |
44 | 44 | Language $language, |