Skip to content

Commit d0d17f1

Browse files
committed
php-cs-fixer
1 parent d43633f commit d0d17f1

30 files changed

+56
-32
lines changed

app/Models/Attachment.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
namespace GitScrum\Models;
1010

11-
use Illuminate\Database\Eloquent\{Model,SoftDeletes};
11+
use Illuminate\Database\Eloquent\Model;
12+
use Illuminate\Database\Eloquent\SoftDeletes;
1213
use GitScrum\Scopes\GlobalScope;
1314

1415
class Attachment extends Model

app/Models/Comment.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
namespace GitScrum\Models;
1010

11-
use Illuminate\Database\Eloquent\{Model,SoftDeletes};
11+
use Illuminate\Database\Eloquent\Model;
12+
use Illuminate\Database\Eloquent\SoftDeletes;
1213
use GitScrum\Scopes\GlobalScope;
1314

1415
class Comment extends Model

app/Models/Commit.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
namespace GitScrum\Models;
1010

1111
use Illuminate\Database\Eloquent\Model;
12-
use GitScrum\Scopes\{CommitScope,GlobalScope};
12+
use GitScrum\Scopes\CommitScope;
13+
use GitScrum\Scopes\GlobalScope;
1314

1415
class Commit extends Model
1516
{

app/Models/CommitFile.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
namespace GitScrum\Models;
1010

1111
use Illuminate\Database\Eloquent\Model;
12-
use GitScrum\Scopes\{CommitFileScope,GlobalScope};
12+
use GitScrum\Scopes\CommitFileScope;
13+
use GitScrum\Scopes\GlobalScope;
1314

1415
class CommitFile extends Model
1516
{

app/Models/ConfigStatus.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
namespace GitScrum\Models;
1010

1111
use Illuminate\Database\Eloquent\Model;
12-
use GitScrum\Scopes\{ConfigStatusScope,GlobalScope};
12+
use GitScrum\Scopes\ConfigStatusScope;
13+
use GitScrum\Scopes\GlobalScope;
1314

1415
class ConfigStatus extends Model
1516
{

app/Models/Issue.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88

99
namespace GitScrum\Models;
1010

11-
use Illuminate\Database\Eloquent\{Model,SoftDeletes};
12-
use GitScrum\Scopes\{GlobalScope,IssueScope};
11+
use Illuminate\Database\Eloquent\Model;
12+
use Illuminate\Database\Eloquent\SoftDeletes;
13+
use GitScrum\Scopes\GlobalScope;
14+
use GitScrum\Scopes\IssueScope;
1315
use GitScrum\Classes\Parsedown;
1416

1517
class Issue extends Model

app/Models/Note.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
namespace GitScrum\Models;
1010

11-
use Illuminate\Database\Eloquent\{Model,SoftDeletes};
11+
use Illuminate\Database\Eloquent\Model;
12+
use Illuminate\Database\Eloquent\SoftDeletes;
1213
use GitScrum\Scopes\GlobalScope;
1314

1415
class Note extends Model

app/Models/Organization.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
namespace GitScrum\Models;
1010

11-
use Illuminate\Database\Eloquent\{Model,SoftDeletes};
11+
use Illuminate\Database\Eloquent\Model;
12+
use Illuminate\Database\Eloquent\SoftDeletes;
1213
use GitScrum\Scopes\GlobalScope;
1314

1415
class Organization extends Model

app/Models/ProductBacklog.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
namespace GitScrum\Models;
1010

11-
use Illuminate\Database\Eloquent\{Model,SoftDeletes};
11+
use Illuminate\Database\Eloquent\Model;
12+
use Illuminate\Database\Eloquent\SoftDeletes;
1213
use GitScrum\Scopes\GlobalScope;
1314

1415
class ProductBacklog extends Model

app/Models/Sprint.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88

99
namespace GitScrum\Models;
1010

11-
use Illuminate\Database\Eloquent\{Model,SoftDeletes};
12-
use GitScrum\Scopes\{GlobalScope,SprintScope};
11+
use Illuminate\Database\Eloquent\Model;
12+
use Illuminate\Database\Eloquent\SoftDeletes;
13+
use GitScrum\Scopes\GlobalScope;
14+
use GitScrum\Scopes\SprintScope;
1315
use Carbon\Carbon;
1416

1517
class Sprint extends Model

app/Models/Status.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88

99
namespace GitScrum\Models;
1010

11-
use Illuminate\Database\Eloquent\{Model,SoftDeletes};
12-
use GitScrum\Scopes\{GlobalScope,StatusScope};
11+
use Illuminate\Database\Eloquent\Model;
12+
use Illuminate\Database\Eloquent\SoftDeletes;
13+
use GitScrum\Scopes\GlobalScope;
14+
use GitScrum\Scopes\StatusScope;
1315

1416
class Status extends Model
1517
{

app/Models/User.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111
use Illuminate\Foundation\Auth\User as Authenticatable;
1212
use Illuminate\Database\Eloquent\Model;
13-
use GitScrum\Scopes\{GlobalScope,UserScope};
13+
use GitScrum\Scopes\GlobalScope;
14+
use GitScrum\Scopes\UserScope;
1415

1516
class User extends Authenticatable
1617
{

app/Models/UserStory.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88

99
namespace GitScrum\Models;
1010

11-
use Illuminate\Database\Eloquent\{Model,SoftDeletes};
12-
use GitScrum\Scopes\{GlobalScope,UserStoryScope};
11+
use Illuminate\Database\Eloquent\Model;
12+
use Illuminate\Database\Eloquent\SoftDeletes;
13+
use GitScrum\Scopes\GlobalScope;
14+
use GitScrum\Scopes\UserStoryScope;
1315

1416
class UserStory extends Model
1517
{

app/Observers/AttachmentObserver.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
namespace GitScrum\Observers;
1010

11-
use GitScrum\Models\{Status,Attachment};
11+
use GitScrum\Models\Status;
12+
use GitScrum\Models\Attachment;
1213
use Auth;
1314

1415
class AttachmentObserver

app/Observers/CommentObserver.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
namespace GitScrum\Observers;
1010

11-
use GitScrum\Models\{Status,Comment};
11+
use GitScrum\Models\Status;
12+
use GitScrum\Models\Comment;
1213
use Auth;
1314

1415
class CommentObserver

app/Observers/IssueObserver.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88

99
namespace GitScrum\Observers;
1010

11-
use GitScrum\Models\{Issue,UserStory,ConfigStatus,Sprint,Status};
11+
use GitScrum\Models\Issue;
12+
use GitScrum\Models\UserStory;
13+
use GitScrum\Models\ConfigStatus;
14+
use GitScrum\Models\Sprint;
15+
use GitScrum\Models\Status;
1216
use GitScrum\Classes\Helper;
1317
use Auth;
1418

app/Observers/LabelObserver.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
namespace GitScrum\Observers;
1010

11-
use GitScrum\Models\{Label,Status};
11+
use GitScrum\Models\Label;
12+
use GitScrum\Models\Status;
1213
use GitScrum\Classes\Helper;
1314
use Auth;
1415

app/Observers/NoteObserver.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
namespace GitScrum\Observers;
1010

11-
use GitScrum\Models\{Note,Status};
11+
use GitScrum\Models\Note;
12+
use GitScrum\Models\Status;
1213
use GitScrum\Classes\Helper;
1314
use Auth;
1415

app/Observers/ProductBacklogObserver.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
namespace GitScrum\Observers;
1010

11-
use GitScrum\Models\{ProductBacklog,Organization};
11+
use GitScrum\Models\ProductBacklog;
12+
use GitScrum\Models\Organization;
1213
use GitScrum\Classes\Helper;
1314
use Auth;
1415

app/Observers/SprintObserver.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
namespace GitScrum\Observers;
1010

11-
use GitScrum\Models\{Sprint,ConfigStatus};
11+
use GitScrum\Models\Sprint;
12+
use GitScrum\Models\ConfigStatus;
1213
use GitScrum\Classes\Helper;
1314
use Carbon\Carbon;
1415
use Auth;

app/Scopes/IssueScope.php

-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@
1010

1111
trait IssueScope
1212
{
13-
1413
}

app/Scopes/UserScope.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
trait UserScope
1414
{
15-
1615
public function scopeLabels($feature)
1716
{
1817
return $this->{$feature}->map(function ($obj) {
@@ -37,7 +36,7 @@ public function scopeProductBacklogs($query, $product_backlog_id = null)
3736
}
3837

3938
return $obj;
40-
})->flatten(1);
39+
})->flatten(1);
4140
}
4241

4342
public function scopeSprints($query, $sprint_id = null)

app/Scopes/UserStoryScope.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function scopeActivities($query)
2424
return collect($activities->all());
2525
}
2626

27-
public function scopeIssuesHasUsers($query, $total = 3)
27+
public function scopeIssuesHasUsers($query, $total = 3)
2828
{
2929
$users = $this->issues->map(function ($issue) {
3030
return $issue->users;

bootstrap/app.php

100644100755
File mode changed.

bootstrap/autoload.php

100644100755
File mode changed.

bootstrap/cache/.gitignore

100644100755
File mode changed.

storage/framework/cache/.gitignore

100644100755
File mode changed.

storage/framework/sessions/.gitignore

100644100755
File mode changed.

storage/framework/views/.gitignore

100644100755
File mode changed.

tests/unit/ProductBacklogTest.php

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
class ProductBacklogTest extends TestCase
44
{
5-
public function test_list_sprints()
6-
{
7-
8-
}
5+
public function test_list_sprints()
6+
{
7+
}
98
}

0 commit comments

Comments
 (0)