Skip to content

Commit

Permalink
Style CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ahinkle committed Nov 22, 2019
1 parent 24c73db commit 758f93a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Illuminate/Validation/Rules/DatabaseRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Illuminate\Validation\Rules;

use Closure;
use Illuminate\Support\Str;
use Closure;
use Illuminate\Database\Eloquent\Model;

trait DatabaseRule
Expand Down Expand Up @@ -55,7 +55,8 @@ public function __construct($table, $column = 'NULL')
* @param string $table
* @return string
*/
public function resolveTableName($table) {
public function resolveTableName($table)
{
if (! Str::contains($table, '\\') || ! class_exists($table)) {
return $table;
}
Expand All @@ -65,7 +66,7 @@ public function resolveTableName($table) {
if (! $model instanceof Model) {
return $table;
}

return $model->getTable();
}

Expand Down

0 comments on commit 758f93a

Please sign in to comment.