From 68f2a68c472b1e8f485a33c5b5bd2ddd67dc1ba3 Mon Sep 17 00:00:00 2001 From: Adam Engebretson Date: Tue, 1 Dec 2015 03:44:46 -0600 Subject: [PATCH] Fixing CS Signed-off-by: Adam Engebretson --- phpunit.php | 6 +++--- src/Eloquent/FormAccessible.php | 2 +- src/FormBuilder.php | 14 +++++++------- src/HtmlBuilder.php | 4 ++-- src/helpers.php | 8 ++++---- tests/FormAccessibleTest.php | 3 ++- 6 files changed, 19 insertions(+), 18 deletions(-) diff --git a/phpunit.php b/phpunit.php index 18f6fa2..ab32711 100755 --- a/phpunit.php +++ b/phpunit.php @@ -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->addConnection([ - 'driver' => 'sqlite', + 'driver' => 'sqlite', 'database' => ':memory:', ]); $capsule->setEventDispatcher(new Dispatcher); @@ -45,7 +45,7 @@ $capsule->bootEloquent(); $capsule->schema()->dropIfExists('models'); -$capsule->schema()->create('models', function(Blueprint $table) { +$capsule->schema()->create('models', function (Blueprint $table) { $table->increments('id'); $table->string('string'); $table->string('email'); diff --git a/src/Eloquent/FormAccessible.php b/src/Eloquent/FormAccessible.php index 91a24d3..4ea6909 100644 --- a/src/Eloquent/FormAccessible.php +++ b/src/Eloquent/FormAccessible.php @@ -78,7 +78,7 @@ trait FormAccessible */ protected function getReflection() { - if ( ! $this->reflection) { + if (! $this->reflection) { $this->reflection = new ReflectionClass($this); } diff --git a/src/FormBuilder.php b/src/FormBuilder.php index 6712d71..debfd7a 100755 --- a/src/FormBuilder.php +++ b/src/FormBuilder.php @@ -235,7 +235,7 @@ class FormBuilder */ public function input($type, $name, $value = null, $options = []) { - if ( ! isset($options['name'])) { + if (! isset($options['name'])) { $options['name'] = $name; } @@ -244,7 +244,7 @@ class FormBuilder // in the model instance if one is set. Otherwise we will just use empty. $id = $this->getIdAttribute($name, $options); - if ( ! in_array($type, $this->skipValueTypes)) { + if (! in_array($type, $this->skipValueTypes)) { $value = $this->getValueAttribute($name, $value); } @@ -447,7 +447,7 @@ class FormBuilder */ public function textarea($name, $value = null, $options = []) { - if ( ! isset($options['name'])) { + if (! isset($options['name'])) { $options['name'] = $name; } @@ -526,7 +526,7 @@ class FormBuilder $options['id'] = $this->getIdAttribute($name, $options); - if ( ! isset($options['name'])) { + if (! isset($options['name'])) { $options['name'] = $name; } @@ -906,7 +906,7 @@ class FormBuilder */ public function button($value = null, $options = []) { - if ( ! array_key_exists('type', $options)) { + if (! array_key_exists('type', $options)) { $options['type'] = 'button'; } @@ -1066,11 +1066,11 @@ class FormBuilder return $value; } - if ( ! is_null($this->old($name))) { + if (! is_null($this->old($name))) { return $this->old($name); } - if ( ! is_null($value)) { + if (! is_null($value)) { return $value; } diff --git a/src/HtmlBuilder.php b/src/HtmlBuilder.php index d8fab9b..8ee6314 100755 --- a/src/HtmlBuilder.php +++ b/src/HtmlBuilder.php @@ -407,7 +407,7 @@ class HtmlBuilder foreach ((array) $attributes as $key => $value) { $element = $this->attributeElement($key, $value); - if ( ! is_null($element)) { + if (! is_null($element)) { $html[] = $element; } } @@ -432,7 +432,7 @@ class HtmlBuilder $key = $value; } - if ( ! is_null($value)) { + if (! is_null($value)) { return $key . '="' . e($value) . '"'; } } diff --git a/src/helpers.php b/src/helpers.php index aa9c7f3..684102d 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -1,6 +1,6 @@