Fixing CS

Signed-off-by: Adam Engebretson <adam.engebretson@bridgeconx.com>
This commit is contained in:
Adam Engebretson committed 2015-12-01 03:44:46 -06:00
1 parent 5b7668573d
commit 68f2a68c47
6 files changed
+19 -18

No files matched your search

+3 -3
View File
@@ -16,7 +16,7 @@ use Illuminate\Events\Dispatcher;
| |
*/ */
require __DIR__.'/vendor/autoload.php'; require __DIR__ . '/vendor/autoload.php';
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@@ -36,7 +36,7 @@ date_default_timezone_set('UTC');
*/ */
$capsule = new Capsule; $capsule = new Capsule;
$capsule->addConnection([ $capsule->addConnection([
'driver' => 'sqlite', 'driver' => 'sqlite',
'database' => ':memory:', 'database' => ':memory:',
]); ]);
$capsule->setEventDispatcher(new Dispatcher); $capsule->setEventDispatcher(new Dispatcher);
@@ -45,7 +45,7 @@ $capsule->bootEloquent();
$capsule->schema()->dropIfExists('models'); $capsule->schema()->dropIfExists('models');
$capsule->schema()->create('models', function(Blueprint $table) { $capsule->schema()->create('models', function (Blueprint $table) {
$table->increments('id'); $table->increments('id');
$table->string('string'); $table->string('string');
$table->string('email'); $table->string('email');
+1 -1
View File
@@ -78,7 +78,7 @@ trait FormAccessible
*/ */
protected function getReflection() protected function getReflection()
{ {
if ( ! $this->reflection) { if (! $this->reflection) {
$this->reflection = new ReflectionClass($this); $this->reflection = new ReflectionClass($this);
} }
+7 -7
View File
@@ -235,7 +235,7 @@ class FormBuilder
*/ */
public function input($type, $name, $value = null, $options = []) public function input($type, $name, $value = null, $options = [])
{ {
if ( ! isset($options['name'])) { if (! isset($options['name'])) {
$options['name'] = $name; $options['name'] = $name;
} }
@@ -244,7 +244,7 @@ class FormBuilder
// in the model instance if one is set. Otherwise we will just use empty. // in the model instance if one is set. Otherwise we will just use empty.
$id = $this->getIdAttribute($name, $options); $id = $this->getIdAttribute($name, $options);
if ( ! in_array($type, $this->skipValueTypes)) { if (! in_array($type, $this->skipValueTypes)) {
$value = $this->getValueAttribute($name, $value); $value = $this->getValueAttribute($name, $value);
} }
@@ -447,7 +447,7 @@ class FormBuilder
*/ */
public function textarea($name, $value = null, $options = []) public function textarea($name, $value = null, $options = [])
{ {
if ( ! isset($options['name'])) { if (! isset($options['name'])) {
$options['name'] = $name; $options['name'] = $name;
} }
@@ -526,7 +526,7 @@ class FormBuilder
$options['id'] = $this->getIdAttribute($name, $options); $options['id'] = $this->getIdAttribute($name, $options);
if ( ! isset($options['name'])) { if (! isset($options['name'])) {
$options['name'] = $name; $options['name'] = $name;
} }
@@ -906,7 +906,7 @@ class FormBuilder
*/ */
public function button($value = null, $options = []) public function button($value = null, $options = [])
{ {
if ( ! array_key_exists('type', $options)) { if (! array_key_exists('type', $options)) {
$options['type'] = 'button'; $options['type'] = 'button';
} }
@@ -1066,11 +1066,11 @@ class FormBuilder
return $value; return $value;
} }
if ( ! is_null($this->old($name))) { if (! is_null($this->old($name))) {
return $this->old($name); return $this->old($name);
} }
if ( ! is_null($value)) { if (! is_null($value)) {
return $value; return $value;
} }
+2 -2
View File
@@ -407,7 +407,7 @@ class HtmlBuilder
foreach ((array) $attributes as $key => $value) { foreach ((array) $attributes as $key => $value) {
$element = $this->attributeElement($key, $value); $element = $this->attributeElement($key, $value);
if ( ! is_null($element)) { if (! is_null($element)) {
$html[] = $element; $html[] = $element;
} }
} }
@@ -432,7 +432,7 @@ class HtmlBuilder
$key = $value; $key = $value;
} }
if ( ! is_null($value)) { if (! is_null($value)) {
return $key . '="' . e($value) . '"'; return $key . '="' . e($value) . '"';
} }
} }
+4 -4
View File
@@ -1,6 +1,6 @@
<?php <?php
if ( ! function_exists('link_to')) { if (! function_exists('link_to')) {
/** /**
* Generate a HTML link. * Generate a HTML link.
* *
@@ -17,7 +17,7 @@ if ( ! function_exists('link_to')) {
} }
} }
if ( ! function_exists('link_to_asset')) { if (! function_exists('link_to_asset')) {
/** /**
* Generate a HTML link to an asset. * Generate a HTML link to an asset.
* *
@@ -34,7 +34,7 @@ if ( ! function_exists('link_to_asset')) {
} }
} }
if ( ! function_exists('link_to_route')) { if (! function_exists('link_to_route')) {
/** /**
* Generate a HTML link to a named route. * Generate a HTML link to a named route.
* *
@@ -51,7 +51,7 @@ if ( ! function_exists('link_to_route')) {
} }
} }
if ( ! function_exists('link_to_action')) { if (! function_exists('link_to_action')) {
/** /**
* Generate a HTML link to a controller action. * Generate a HTML link to a controller action.
* *
+2 -1
View File
@@ -91,7 +91,8 @@ class ModelThatUsesForms extends Model
} }
class ModelThatDoesntUseForms extends Model { class ModelThatDoesntUseForms extends Model
{
protected $table = 'models'; protected $table = 'models';