diff --git a/examples/example1/README.md b/examples/example1/README.md index 8aee9a0..c4863e3 100644 --- a/examples/example1/README.md +++ b/examples/example1/README.md @@ -43,7 +43,7 @@ class MyFileSystem extends \Dframe\Controller $this->FileStorage = new \Dframe\FileStorage\Storage($Driver, $Config->get()); $this->FileStorage->settings([ 'stylists' => [ - 'Orginal' => \Libs\Plugins\FileStorage\Stylist\OrginalStylist::class, + 'Original' => \Libs\Plugins\FileStorage\Stylist\OriginalStylist::class, 'Real' => \Libs\Plugins\FileStorage\Stylist\RealStylist::class, 'RectStylist' => \Libs\Plugins\FileStorage\Stylist\RectStylist::class, 'SquareStylist' => \Libs\Plugins\FileStorage\Stylist\SquareStylist::class diff --git a/examples/example2/stylist.php b/examples/example2/stylist.php index ef6f362..9fa604c 100644 --- a/examples/example2/stylist.php +++ b/examples/example2/stylist.php @@ -42,7 +42,7 @@ 'size' => 'Rect 250x550', 'img' => $Storage->image('picture1.jpg')->stylist('Rect')->size('250x550')->get() ]; -$images[] = ['size' => 'Original', 'img' => $Storage->image('picture1.jpg')->stylist('Orginal')->get()]; +$images[] = ['size' => 'Original', 'img' => $Storage->image('picture1.jpg')->stylist('Original')->get()]; ?> diff --git a/src/Image.php b/src/Image.php index 447649c..a9f5306 100644 --- a/src/Image.php +++ b/src/Image.php @@ -240,7 +240,7 @@ public function cache($adapter, $originalImage, $default = false) * * @return Stylist */ - protected function getStylist($stylist = 'orginal') + protected function getStylist($stylist = 'Original') { $className = $this->stylists[$stylist]; if (!class_exists($className) or !method_exists($className, 'stylize')) {