@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | protected function trailers(): mixed |
60 | 60 | { |
61 | 61 | $ret = $this->_html->find('a[itemprop=trailer]', 0); |
62 | - if (! empty($ret) && preg_match('/movieId=(?<movieid>\d+)&/', trim($ret->href), $hits)) { |
|
62 | + if (!empty($ret) && preg_match('/movieId=(?<movieid>\d+)&/', trim($ret->href), $hits)) { |
|
63 | 63 | $movieid = $hits['movieid']; |
64 | 64 | $this->_res['trailers']['url'] = self::AEBNSURL.self::TRAILERURL.$movieid; |
65 | 65 | } |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | $this->_res['genres'][] = trim($genre->plaintext); |
96 | 96 | } |
97 | 97 | } |
98 | - if (! empty($this->_res['genres'])) { |
|
98 | + if (!empty($this->_res['genres'])) { |
|
99 | 99 | $this->_res['genres'] = array_unique($this->_res['genres']); |
100 | 100 | } |
101 | 101 | |
@@ -109,13 +109,13 @@ discard block |
||
109 | 109 | { |
110 | 110 | $this->_res = []; |
111 | 111 | $ret = $this->_html->findOne('div.starsFull'); |
112 | - if (! $ret instanceof SimpleHtmlDomNodeBlank) { |
|
112 | + if (!$ret instanceof SimpleHtmlDomNodeBlank) { |
|
113 | 113 | foreach ($ret->find('span[itemprop=name]') as $star) { |
114 | 114 | $this->_res['cast'][] = trim($star->plaintext); |
115 | 115 | } |
116 | 116 | } else { |
117 | 117 | $ret = $this->_html->findOne('div.detailsLink'); |
118 | - if (! $ret instanceof SimpleHtmlDomNodeBlank) { |
|
118 | + if (!$ret instanceof SimpleHtmlDomNodeBlank) { |
|
119 | 119 | foreach ($ret->find('span') as $star) { |
120 | 120 | if (str_contains($star->plaintext, '/More/') && str_contains($star->plaintext, '/Stars/')) { |
121 | 121 | $this->_res['cast'][] = trim($star->plaintext); |