Passed
Branch master (710944)
by Evgenii
02:48
created
Category
src/MetaMaster.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -84,8 +84,9 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public function init()
86 86
     {
87
-        if (!$this->request)
88
-            $this->request = Yii::$app->request;
87
+        if (!$this->request) {
88
+                    $this->request = Yii::$app->request;
89
+        }
89 90
         parent::init();
90 91
     }
91 92
 
@@ -247,8 +248,9 @@  discard block
 block discarded – undo
247 248
         }
248 249
 
249 250
         $path = Yii::getAlias($this->imagePath ?: $this->web . $image);
250
-        if ($this->imagePath)
251
-            $path = $this->imagePath;
251
+        if ($this->imagePath) {
252
+                    $path = $this->imagePath;
253
+        }
252 254
         if (file_exists($path)) {
253 255
             $imageSize = getimagesize($path);
254 256
             $this->view->registerMetaTag(['property' => 'og:image:width', 'content' => $imageSize[0]]);
Please login to merge, or discard this patch.