Passed
Push — master ( b4fe24...db0305 )
by Darko
05:51
created
Blacklight/processing/adult/AEBN.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.