Permalink
Browse files

Apply fixes from StyleCI (#130)

  • Loading branch information...
1 parent 05425c5 commit 441515f2837cfd4cebb39a06592aeeb25fe5117a @freekmurze freekmurze committed on GitHub Feb 4, 2017
Showing with 7 additions and 7 deletions.
  1. +2 −2 src/Traits/DetectsChanges.php
  2. +1 −1 tests/DetectsChangesTest.php
  3. +4 −4 tests/TestCase.php
@@ -62,8 +62,8 @@ function ($attribute) use ($model) {
)->toArray();
}
-
- protected static function getRelatedModelAttributeValue($model, $attribute): array {
+ protected static function getRelatedModelAttributeValue($model, $attribute): array
+ {
if (substr_count($attribute, '.') > 1) {
throw CouldNotLogChanges::invalidAttribute($attribute);
}
@@ -71,7 +71,7 @@ public function it_can_store_the_relation_values_when_creating_a_model()
'old' => [
'name' => 'original name',
'text' => 'original text',
- 'user.name' => 'user name'
+ 'user.name' => 'user name',
],
];
View
@@ -42,7 +42,7 @@ public function getEnvironmentSetUp($app)
$app['config']->set('database.connections.sqlite', [
'driver' => 'sqlite',
- 'database' => $this->getTempDirectory() . '/database.sqlite',
+ 'database' => $this->getTempDirectory().'/database.sqlite',
'prefix' => '',
]);
@@ -63,19 +63,19 @@ protected function setUpDatabase()
protected function resetDatabase()
{
- file_put_contents($this->getTempDirectory() . '/database.sqlite', null);
+ file_put_contents($this->getTempDirectory().'/database.sqlite', null);
}
protected function createActivityLogTable()
{
- include_once '__DIR__' . '/../migrations/create_activity_log_table.php.stub';
+ include_once '__DIR__'.'/../migrations/create_activity_log_table.php.stub';
(new \CreateActivityLogTable())->up();
}
public function getTempDirectory(): string
{
- return __DIR__ . '/temp';
+ return __DIR__.'/temp';
}
protected function createTables(...$tableNames)

0 comments on commit 441515f

Please sign in to comment.