Skip to content

Commit 901d1f2

Browse files
committed
fix code formatting
1 parent ac8d9bd commit 901d1f2

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/Resource/Image.php

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,16 @@ public function resize(string $type, $gravity = Position::CENTER, bool $enlarge
9292
return $this;
9393
}
9494

95+
/**
96+
* Set the smart focus gravity of the optimized image.
97+
*/
98+
public function smartFocus()
99+
{
100+
$this->addProperty(new ImageProperty\GravityProperty('sm'));
101+
102+
return $this;
103+
}
104+
95105
/**
96106
* Whether to strip the original image metadata from the optimized image.
97107
*/
@@ -102,14 +112,6 @@ public function stripMetadata(bool $stripMetadata = true): self
102112
return $this;
103113
}
104114

105-
/**
106-
* Set the smart focus gravity of the optimized image.
107-
*/
108-
public function smartFocus(){
109-
$this->addProperty(new ImageProperty\GravityProperty('sm'));
110-
return $this;
111-
}
112-
113115
/**
114116
* Apply a watermark to the optimized image.
115117
*/

0 commit comments

Comments
 (0)