@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | $crawler->filterXPath("//head/meta[@property='og:image']") |
63 | 63 | ->each( |
64 | 64 | function(Crawler $node) use (&$ret) { |
65 | - if($this->getCheckSmallImage($node->attr('content')) === false){ //not small image size |
|
65 | + if ($this->getCheckSmallImage($node->attr('content')) === false) { //not small image size |
|
66 | 66 | $ret = $node->attr('content'); |
67 | 67 | } |
68 | 68 | } |
@@ -177,16 +177,16 @@ discard block |
||
177 | 177 | return $ret; |
178 | 178 | } |
179 | 179 | |
180 | - public function getCheckSmallImage($imageUrl){ |
|
180 | + public function getCheckSmallImage($imageUrl) { |
|
181 | 181 | |
182 | 182 | $url_ret = pathinfo($imageUrl); |
183 | 183 | list($width_org, $height_org) = getimagesize( |
184 | 184 | $url_ret['dirname'].'/'.urlencode($url_ret['basename']) |
185 | 185 | ); |
186 | 186 | |
187 | - if($width_org<200 || $height_org < 200){ |
|
187 | + if ($width_org < 200 || $height_org < 200) { |
|
188 | 188 | return true; |
189 | - }else{ |
|
189 | + } else { |
|
190 | 190 | return false; |
191 | 191 | } |
192 | 192 | } |
@@ -186,7 +186,7 @@ |
||
186 | 186 | |
187 | 187 | if($width_org<200 || $height_org < 200){ |
188 | 188 | return true; |
189 | - }else{ |
|
189 | + } else{ |
|
190 | 190 | return false; |
191 | 191 | } |
192 | 192 | } |