@@ -161,11 +161,11 @@ discard block |
||
| 161 | 161 | */ |
| 162 | 162 | public static function findByPath($owner_path, $project_path, $columns = ['projects.*']) |
| 163 | 163 | { |
| 164 | - $project = static::leftJoin('owners', function ($join) { |
|
| 164 | + $project = static::leftJoin('owners', function($join) { |
|
| 165 | 165 | $join->on('projects.owner_id', '=', 'owners.id'); |
| 166 | 166 | })->where('projects.path', '=', $project_path)->where('owners.path', '=', $owner_path)->first($columns); |
| 167 | 167 | |
| 168 | - if (! $project) { |
|
| 168 | + if (!$project) { |
|
| 169 | 169 | throw new ModelNotFoundException(); |
| 170 | 170 | } |
| 171 | 171 | |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | */ |
| 236 | 236 | public function getTagsListAttribute() |
| 237 | 237 | { |
| 238 | - $tags = $this->tags->map(function ($tag) { |
|
| 238 | + $tags = $this->tags->map(function($tag) { |
|
| 239 | 239 | return $tag->name; |
| 240 | 240 | }); |
| 241 | 241 | |
@@ -55,8 +55,8 @@ |
||
| 55 | 55 | { |
| 56 | 56 | parent::boot(); |
| 57 | 57 | |
| 58 | - self::creating(function ($user) { |
|
| 59 | - if (! $user->verify_code) { |
|
| 58 | + self::creating(function($user) { |
|
| 59 | + if (!$user->verify_code) { |
|
| 60 | 60 | $user->verify_code = self::generateVerifyCode(); |
| 61 | 61 | } |
| 62 | 62 | }); |
@@ -89,8 +89,8 @@ discard block |
||
| 89 | 89 | { |
| 90 | 90 | parent::boot(); |
| 91 | 91 | |
| 92 | - self::creating(function ($user) { |
|
| 93 | - if (! $user->api_key) { |
|
| 92 | + self::creating(function($user) { |
|
| 93 | + if (!$user->api_key) { |
|
| 94 | 94 | $user->api_key = self::generateApiKey(); |
| 95 | 95 | } |
| 96 | 96 | }); |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | { |
| 138 | 138 | $user = static::where('api_key', $token)->first($columns); |
| 139 | 139 | |
| 140 | - if (! $user) { |
|
| 140 | + if (!$user) { |
|
| 141 | 141 | throw new ModelNotFoundException(); |
| 142 | 142 | } |
| 143 | 143 | |