Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
jreviews authored and github-actions[bot] committed Jun 20, 2024
1 parent f12323b commit cf667d5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
5 changes: 2 additions & 3 deletions src/yoyo/ViewProviders/PhalconViewProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -40,6 +38,7 @@ public function setViewExtention($viewExtention)

return $this;
}

public function makeFromString($content, $vars = []): string
{
$this->view->start();
Expand All @@ -61,4 +60,4 @@ public function __toString()
{
return $this->view->render($this->template, $this->vars);
}
}
}
4 changes: 1 addition & 3 deletions src/yoyo/YoyoPhalconController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
namespace Clickfwd\Yoyo;

use Phalcon\Mvc\Controller;
use Clickfwd\Yoyo\Request;
use Clickfwd\Yoyo\Yoyo;

class YoyoPhalconController extends Controller
{
Expand All @@ -19,4 +17,4 @@ public function handleAction()
$this->response->setContent($yoyo->update());
return $this->response;
}
}
}
4 changes: 2 additions & 2 deletions src/yoyo/YoyoPhalconServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand All @@ -56,4 +56,4 @@ public function register(DiInterface $di): void
return $yoyo;
});
}
}
}

0 comments on commit cf667d5

Please sign in to comment.