From 91033293b9fd879d1951838f913f0a6a3fbd852c Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Wed, 6 Aug 2014 20:30:42 +0200 Subject: [PATCH] Tweak layout --- src/Generator.php | 2 ++ src/views/ide-helper.php | 11 ++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/Generator.php b/src/Generator.php index b68f81f..e0d90ff 100644 --- a/src/Generator.php +++ b/src/Generator.php @@ -60,9 +60,11 @@ class Generator */ public function generate() { + $app = app(); return $this->view->make('laravel-ide-helper::ide-helper') ->with('namespaces', $this->getNamespaces()) ->with('helpers', $this->helpers) + ->with('version', $app::VERSION) ->render(); } diff --git a/src/views/ide-helper.php b/src/views/ide-helper.php index 71c6d12..f783a97 100644 --- a/src/views/ide-helper.php +++ b/src/views/ide-helper.php @@ -2,17 +2,18 @@ /** * An helper file for Laravel 4, to provide autocomplete information to your IDE - * Generated with https://github.com/barryvdh/laravel-ide-helper + * Generated for Laravel on . * * @author Barry vd. Heuvel + * @see https://github.com/barryvdh/laravel-ide-helper */ $aliases): ?> - namespace { - - - + + exit("This file should not be included, only analyzed by your IDE"); + + getClassType() ?> getAlias() ?> getExtends() ? 'extends ' . $alias->getExtends() : '' ?>{