From cf667d5fc9440f4eb7187ba9ef1b64f9248e2247 Mon Sep 17 00:00:00 2001 From: jreviews Date: Thu, 20 Jun 2024 12:47:07 +0000 Subject: [PATCH] Fix styling --- src/yoyo/ViewProviders/PhalconViewProvider.php | 5 ++--- src/yoyo/YoyoPhalconController.php | 4 +--- src/yoyo/YoyoPhalconServiceProvider.php | 4 ++-- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/yoyo/ViewProviders/PhalconViewProvider.php b/src/yoyo/ViewProviders/PhalconViewProvider.php index 145864f..35ca444 100644 --- a/src/yoyo/ViewProviders/PhalconViewProvider.php +++ b/src/yoyo/ViewProviders/PhalconViewProvider.php @@ -3,8 +3,6 @@ namespace Clickfwd\Yoyo\ViewProviders; use Clickfwd\Yoyo\Interfaces\ViewProviderInterface; -use Clickfwd\Yoyo\ViewProviders\BaseViewProvider; -use Phalcon\Mvc\View; class PhalconViewProvider extends BaseViewProvider implements ViewProviderInterface { @@ -40,6 +38,7 @@ public function setViewExtention($viewExtention) return $this; } + public function makeFromString($content, $vars = []): string { $this->view->start(); @@ -61,4 +60,4 @@ public function __toString() { return $this->view->render($this->template, $this->vars); } -} \ No newline at end of file +} diff --git a/src/yoyo/YoyoPhalconController.php b/src/yoyo/YoyoPhalconController.php index 34f8ac7..70bc84f 100644 --- a/src/yoyo/YoyoPhalconController.php +++ b/src/yoyo/YoyoPhalconController.php @@ -3,8 +3,6 @@ namespace Clickfwd\Yoyo; use Phalcon\Mvc\Controller; -use Clickfwd\Yoyo\Request; -use Clickfwd\Yoyo\Yoyo; class YoyoPhalconController extends Controller { @@ -19,4 +17,4 @@ public function handleAction() $this->response->setContent($yoyo->update()); return $this->response; } -} \ No newline at end of file +} diff --git a/src/yoyo/YoyoPhalconServiceProvider.php b/src/yoyo/YoyoPhalconServiceProvider.php index 2200f72..d153fd3 100644 --- a/src/yoyo/YoyoPhalconServiceProvider.php +++ b/src/yoyo/YoyoPhalconServiceProvider.php @@ -46,7 +46,7 @@ public function register(DiInterface $di): void $simpleView->setViewsDir($view->getViewsDir()); /** @var PhalconViewProvider $viewProvider */ $viewProvider = new PhalconViewProvider($simpleView); - if($viewExtention){ + if ($viewExtention) { $viewProvider->setViewExtention($this->viewExtention); } @@ -56,4 +56,4 @@ public function register(DiInterface $di): void return $yoyo; }); } -} \ No newline at end of file +}