Skip to content

Commit 3e4c01d

Browse files
committed
Format code.
1 parent 0be2734 commit 3e4c01d

File tree

8 files changed

+25
-27
lines changed

8 files changed

+25
-27
lines changed

src/Efficiently/JqueryLaravel/BladeExtensions.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php namespace Efficiently\JqueryLaravel;
1+
<?php
2+
3+
namespace Efficiently\JqueryLaravel;
24

35
class BladeExtensions
46
{
@@ -141,6 +143,5 @@ public function registerContentTags()
141143

142144
return $view;
143145
});
144-
145146
}
146147
}

src/Efficiently/JqueryLaravel/ControllerAdditions.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php namespace Efficiently\JqueryLaravel;
1+
<?php
2+
3+
namespace Efficiently\JqueryLaravel;
24

35
use Blade;
46
use Request;
@@ -12,7 +14,7 @@ trait ControllerAdditions
1214
* @param mixed $options If $options is a string, it's used as the master layout path of the view.
1315
* E.G. $this->render('messages.index', 'app'); where the layout 'app' is the 'resources/views/app.blade.php' file.
1416
* If $options is null, the master layout is set with the value of the Controller::$layout property.
15-
* If $options is a boolean, if`it's `false`, no layout is applied on the view.
17+
* If $options is a boolean, if it's `false`, no layout is applied on the view.
1618
* If $options is an array, default values are: ['status' => 200, 'headers' => []]
1719
*
1820
* @return \Illuminate\Http\Response

src/Efficiently/JqueryLaravel/CrossOriginRequestException.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php namespace Efficiently\JqueryLaravel;
1+
<?php
2+
3+
namespace Efficiently\JqueryLaravel;
24

35
use Exception;
46

src/Efficiently/JqueryLaravel/EloquentHtmlHelper.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
<?php namespace Efficiently\JqueryLaravel;
1+
<?php
2+
3+
namespace Efficiently\JqueryLaravel;
24

35
class EloquentHtmlHelper
46
{
5-
67
/**
78
* The DOM id convention is to use the singular form of an object or class with the id following an underscore.
89
* If no id is found, prefix with "create_" instead.
@@ -35,9 +36,9 @@ public function formId($record, $fallbackPrefix = 'create')
3536
{
3637
if ($recordId = $this->recordKeyForDomId($record)) {
3738
return $this->domClass($record, 'edit').'_'.$recordId;
38-
} else {
39-
return $this->domClass($record, $fallbackPrefix);
4039
}
40+
41+
return $this->domClass($record, $fallbackPrefix);
4142
}
4243

4344
/**

src/Efficiently/JqueryLaravel/Facades/HTMLEloquentHelper.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
<?php namespace Efficiently\JqueryLaravel\Facades;
1+
<?php
2+
3+
namespace Efficiently\JqueryLaravel\Facades;
24

35
use Illuminate\Support\Facades\Facade;
46

57
class HTMLEloquentHelper extends Facade
68
{
7-
89
protected static function getFacadeAccessor()
910
{
1011
return 'html_eloquent_helper';

src/Efficiently/JqueryLaravel/JqueryLaravelServiceProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php namespace Efficiently\JqueryLaravel;
1+
<?php
2+
3+
namespace Efficiently\JqueryLaravel;
24

35
use Illuminate\Support\ServiceProvider;
46

src/Efficiently/JqueryLaravel/VerifyJavascriptResponse.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
<?php namespace Efficiently\JqueryLaravel;
1+
<?php
2+
3+
namespace Efficiently\JqueryLaravel;
24

35
use Closure;
46

57
// Verify that we aren't serving an unauthorized cross-origin JavaScript response.
6-
78
class VerifyJavascriptResponse
89
{
9-
1010
/**
1111
* The URIs that should be excluded from cross origin verification.
1212
*

src/Efficiently/JqueryLaravel/helpers.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
if (! function_exists('dom_id')) {
4-
54
/**
65
* The DOM id convention is to use the singular form of an object or class with the id following an underscore.
76
* If no id is found, prefix with “create_” instead.
@@ -18,7 +17,6 @@ function dom_id($record, $prefix = null, $fallbackPrefix = 'create')
1817
}
1918

2019
if (! function_exists('form_id')) {
21-
2220
/**
2321
* The Form id convention is to use the singular form of an object or class with the id following an underscore.
2422
* If id is found, prefix with “edit_”.
@@ -35,7 +33,6 @@ function form_id($record, $fallbackPrefix = 'create')
3533
}
3634

3735
if (! function_exists('form_for')) {
38-
3936
/**
4037
* Create a new model based form builder.
4138
* And adding a CSRF Token
@@ -82,7 +79,6 @@ function form_for($model, array $options = [])
8279
}
8380

8481
if (! function_exists('form_for_close')) {
85-
8682
/**
8783
* Close the current form.
8884
*
@@ -97,7 +93,6 @@ function form_for_close()
9793
}
9894

9995
if (! function_exists('former_for')) {
100-
10196
/**
10297
* Create a new model based former builder.
10398
*
@@ -172,7 +167,6 @@ function former_for($model, array $options = [])
172167
}
173168

174169
if (! function_exists('former_for_close')) {
175-
176170
/**
177171
* Adding a CSRF Token and close the current form.
178172
*
@@ -191,7 +185,6 @@ function former_for_close()
191185

192186

193187
if (! function_exists('record_key_for_dom_id')) {
194-
195188
/**
196189
* @param object|\Illuminate\Database\Eloquent\Model $record
197190
* @return string
@@ -203,7 +196,6 @@ function record_key_for_dom_id($record)
203196
}
204197

205198
if (! function_exists('dom_class')) {
206-
207199
/**
208200
* The DOM class convention is to use the singular form of an object or class.
209201
*
@@ -219,7 +211,6 @@ function dom_class($recordOrClass, $prefix = null)
219211

220212

221213
if (! function_exists('button_to')) {
222-
223214
/**
224215
* Generates a form containing a single button that submits to the URL created by the set of options.
225216
*
@@ -272,7 +263,6 @@ function button_to($name, array $options = [])
272263
}
273264

274265
if (! function_exists('render_view')) {
275-
276266
/**
277267
* Render a view, useful in your Blade templates
278268
*
@@ -288,15 +278,14 @@ function render_view($view, $parameters = [], $section = null)
288278
{
289279
$view = view($view, $parameters, array_except(get_defined_vars(), ['__data', '__path']))->render();
290280
if ($section) {
291-
$view = $view.View::yieldContent($section);
281+
$view = $view.view()->yieldContent($section);
292282
}
293283

294284
return $view;
295285
}
296286
}
297287

298288
if (! function_exists('csrf_meta_tags')) {
299-
300289
/**
301290
* Returns meta tags “csrf-param” and “csrf-token”
302291
* with the name of the cross-site request forgery protection

0 commit comments

Comments
 (0)