8000 Clean-up whitespace issues · laravel/laravel@1cc33de · GitHub
[go: up one dir, main page]

Skip to content

Commit 1cc33de

Browse files
committed
Clean-up whitespace issues
Signed-off-by: Colin Viebrock <colin@viebrock.ca>
1 parent ba08802 commit 1cc33de

File tree

1 file changed

+30
-30
lines changed
< 10000 div class="prc-PageLayout-ContentWrapper-b-QRo Commit-module__SplitPageLayout_Content--ZY6yu" data-is-hidden="false">

1 file changed

+30
-30
lines changed

laravel/form.php

Lines changed: 30 additions & 30 deletions
* @return string
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ class Form {
88
* @var array
99
*/
1010
public static $labels = array();
11-
11+
1212
/**
1313
* The registered custom macros.
1414
*
1515
* @var array
1616
*/
1717
public static $macros = array();
1818

19-
/**
20-
* Registers a custom macro.
21-
*
22-
* @param string $name
23-
* @param Closure $input
24-
* @return void
25-
*/
19+
/**
20+
* Registers a custom macro.
21+
*
22+
* @param string $name
23+
* @param Closure $input
24+
* @return void
25+
*/
2626
public static function macro($name, $macro)
2727
{
2828
static::$macros[$name] = $macro;
@@ -56,7 +56,7 @@ public static function open($action = null, $method = 'POST', $attributes = arra
5656
$method = strtoupper($method);
5757

5858
$attributes['method'] = static::method($method);
59-
59+
6060
$attributes['action'] = static::action($action, $https);
6161

6262
// If a character encoding has not been specified in the attributes, we will
@@ -128,7 +128,7 @@ public static function open_secure($action = null, $method = 'POST', $attributes
128128
* @param array $attributes
129129
* @param bool $https
130130
* @return string
131-
*/
131+
*/
132132
public static function open_for_files($action = null, $method = 'POST', $attributes = array(), $https = null)
133133
{
134134
$attributes['enctype'] = 'multipart/form-data';
@@ -143,7 +143,7 @@ public static function open_for_files($action = null, $method = 'POST', $attribu
143143
* @param string $method
144144
* @param array $attributes
145145
* @return string
146-
*/
146+
*/
147147
public static function open_secure_for_files($action = null, $method = 'POST', $attributes = array())
148148
{
149149
return static::open_for_files($action, $method, $attributes, true);
@@ -181,7 +181,7 @@ public static function token()
181181
* @param string $value
182182
* @param array $attributes
183183
* @return string
184-
*/
184+
*/
185185
public static function label($name, $value, $attributes = array())
186186
{
187187
static::$labels[] = $name;
@@ -209,7 +209,7 @@ public static function label($name, $value, $attributes = array())
209209
* @param mixed $value
210210
* @param array $attributes
211211
* @return string
212-
*/
212+
*/
213213
public static function input($type, $name, $value = null, $attributes = array())
214214
{
215215
$name = (isset($attributes['name'])) ? $attributes['name'] : $name;
@@ -240,7 +240,7 @@ public static function text($name, $value = null, $attributes = array())
240240
* @param string $name
241241
* @param array $attributes
242242
* @return string
243-
*/
243+
*/
244244
public static function password($name, $attributes = array())
245245
{
246246
return static::input('password', $name, null, $attributes);
@@ -266,7 +266,7 @@ public static function hidden($name, $value = null, $attributes = array())
266266
* @param string $value
267267
* @param array $attributes
268268
* @return string
269-
*/
269+
*/
270270
public static function search($name, $value = null, $attributes = array())
271271
{
272272
return static::input('search', $name, $value, $attributes);
@@ -279,7 +279,7 @@ public static function search($name, $value = null, $attributes = array())
279279
* @param string $value
280280
* @param array $attributes
281281
* @return string
282-
*/
282+
*/
283283
public static function email($name, $value = null, $attributes = array())
284284
{
285285
return static::input('email', $name, $value, $attributes);
@@ -305,7 +305,7 @@ public static function telephone($name, $value = null, $attributes = array())
305305
* @param string $value
306306
* @param array $attributes
307307
* @return string
308-
*/
308+
*/
309309
public static function url($name, $value = null, $attributes = array())
310310
{
311311
return static::input('url', $name, $value, $attributes);
@@ -318,20 +318,20 @@ public static function url($name, $value = null, $attributes = array())
318318
* @param string $value
319319
* @param array $attributes
320320
* @return string
321-
*/
321+
*/
322322
public static function number($name, $value = null, $attributes = array())
323323
{
324324
return static::input('number', $name, $value, $attributes);
325325
}
326-
326+
327327
/**
328328
* Create a HTML date input element.
329329
*
330330
* @param string $name
331331
* @param string $value
332332
* @param array $attributes
333333
334-
*/
334+
*/
335335
public static function date($name, $value = null, $attributes = array())
336336
{
337337
return static::input('date', $name, $value, $attributes);
@@ -343,7 +343,7 @@ public static function date($name, $value = null, $attributes = array())
343343
* @param string $name
344344
* @param array $attributes
345345
* @return string
346-
*/
346+
*/
347347
public static function file($name, $attributes = array())
348348
{
349349
return static::input('file', $name, null, $attributes);
@@ -386,18 +386,18 @@ public static function textarea($name, $value = '', $attributes = array())
386386
* @param string $selected
387387
* @param array $attributes
388388
* @return string
389-
*/
389+
*/
390390
public static function select($name, $options = array(), $selected = null, $attributes = array())
391391
{
392392
$attributes['id'] = static::id($name, $attributes);
393-
393+
394394
$attributes['name'] = $name;
395395

396396
$html = array();
397397

398398
foreach ($options as $value => $display)
399399
{
400-
if (is_array($display))
400+
if (is_array($display))
401401
{
402402
$html[] = static::optgroup($display, $value, $selected);
403403
}
@@ -607,12 +607,12 @@ protected static function id($name, $attributes)
607607
*/
608608
public static function __callStatic($method, $parameters)
609609
{
610-
if (isset(static::$macros[$method]))
611-
{
612-
return call_user_func_array(static::$macros[$method], $parameters);
613-
}
614-
615-
throw new \Exception("Method [$method] does not exist.");
610+
if (isset(static::$macros[$method]))
611+
{
612+
return call_user_func_array(static::$macros[$method], $parameters);
613+
}
614+
615+
throw new \Exception("Method [$method] does not exist.");
616616
}
617617

618618
}

0 commit comments

Comments
 (0)
0