Permalink
Browse files

php-cs-fixer

  • Loading branch information...
renatomarinho committed Feb 26, 2017
1 parent d43633f commit d0d17f1387d58c26b7767afe99208705f3745678
@@ -8,7 +8,8 @@
namespace GitScrum\Models;
use Illuminate\Database\Eloquent\{Model,SoftDeletes};
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use GitScrum\Scopes\GlobalScope;
class Attachment extends Model
@@ -8,7 +8,8 @@
namespace GitScrum\Models;
use Illuminate\Database\Eloquent\{Model,SoftDeletes};
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use GitScrum\Scopes\GlobalScope;
class Comment extends Model
@@ -9,7 +9,8 @@
namespace GitScrum\Models;
use Illuminate\Database\Eloquent\Model;
use GitScrum\Scopes\{CommitScope,GlobalScope};
use GitScrum\Scopes\CommitScope;
use GitScrum\Scopes\GlobalScope;
class Commit extends Model
{
@@ -9,7 +9,8 @@
namespace GitScrum\Models;
use Illuminate\Database\Eloquent\Model;
use GitScrum\Scopes\{CommitFileScope,GlobalScope};
use GitScrum\Scopes\CommitFileScope;
use GitScrum\Scopes\GlobalScope;
class CommitFile extends Model
{
@@ -9,7 +9,8 @@
namespace GitScrum\Models;
use Illuminate\Database\Eloquent\Model;
use GitScrum\Scopes\{ConfigStatusScope,GlobalScope};
use GitScrum\Scopes\ConfigStatusScope;
use GitScrum\Scopes\GlobalScope;
class ConfigStatus extends Model
{
@@ -8,8 +8,10 @@
namespace GitScrum\Models;
use Illuminate\Database\Eloquent\{Model,SoftDeletes};
use GitScrum\Scopes\{GlobalScope,IssueScope};
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use GitScrum\Scopes\GlobalScope;
use GitScrum\Scopes\IssueScope;
use GitScrum\Classes\Parsedown;
class Issue extends Model
@@ -8,7 +8,8 @@
namespace GitScrum\Models;
use Illuminate\Database\Eloquent\{Model,SoftDeletes};
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use GitScrum\Scopes\GlobalScope;
class Note extends Model
@@ -8,7 +8,8 @@
namespace GitScrum\Models;
use Illuminate\Database\Eloquent\{Model,SoftDeletes};
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use GitScrum\Scopes\GlobalScope;
class Organization extends Model
@@ -8,7 +8,8 @@
namespace GitScrum\Models;
use Illuminate\Database\Eloquent\{Model,SoftDeletes};
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use GitScrum\Scopes\GlobalScope;
class ProductBacklog extends Model
@@ -8,8 +8,10 @@
namespace GitScrum\Models;
use Illuminate\Database\Eloquent\{Model,SoftDeletes};
use GitScrum\Scopes\{GlobalScope,SprintScope};
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use GitScrum\Scopes\GlobalScope;
use GitScrum\Scopes\SprintScope;
use Carbon\Carbon;
class Sprint extends Model
@@ -8,8 +8,10 @@
namespace GitScrum\Models;
use Illuminate\Database\Eloquent\{Model,SoftDeletes};
use GitScrum\Scopes\{GlobalScope,StatusScope};
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use GitScrum\Scopes\GlobalScope;
use GitScrum\Scopes\StatusScope;
class Status extends Model
{
@@ -10,7 +10,8 @@
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Database\Eloquent\Model;
use GitScrum\Scopes\{GlobalScope,UserScope};
use GitScrum\Scopes\GlobalScope;
use GitScrum\Scopes\UserScope;
class User extends Authenticatable
{
@@ -8,8 +8,10 @@
namespace GitScrum\Models;
use Illuminate\Database\Eloquent\{Model,SoftDeletes};
use GitScrum\Scopes\{GlobalScope,UserStoryScope};
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use GitScrum\Scopes\GlobalScope;
use GitScrum\Scopes\UserStoryScope;
class UserStory extends Model
{
@@ -8,7 +8,8 @@
namespace GitScrum\Observers;
use GitScrum\Models\{Status,Attachment};
use GitScrum\Models\Status;
use GitScrum\Models\Attachment;
use Auth;
class AttachmentObserver
@@ -8,7 +8,8 @@
namespace GitScrum\Observers;
use GitScrum\Models\{Status,Comment};
use GitScrum\Models\Status;
use GitScrum\Models\Comment;
use Auth;
class CommentObserver
@@ -8,7 +8,11 @@
namespace GitScrum\Observers;
use GitScrum\Models\{Issue,UserStory,ConfigStatus,Sprint,Status};
use GitScrum\Models\Issue;
use GitScrum\Models\UserStory;
use GitScrum\Models\ConfigStatus;
use GitScrum\Models\Sprint;
use GitScrum\Models\Status;
use GitScrum\Classes\Helper;
use Auth;
@@ -8,7 +8,8 @@
namespace GitScrum\Observers;
use GitScrum\Models\{Label,Status};
use GitScrum\Models\Label;
use GitScrum\Models\Status;
use GitScrum\Classes\Helper;
use Auth;
@@ -8,7 +8,8 @@
namespace GitScrum\Observers;
use GitScrum\Models\{Note,Status};
use GitScrum\Models\Note;
use GitScrum\Models\Status;
use GitScrum\Classes\Helper;
use Auth;
@@ -8,7 +8,8 @@
namespace GitScrum\Observers;
use GitScrum\Models\{ProductBacklog,Organization};
use GitScrum\Models\ProductBacklog;
use GitScrum\Models\Organization;
use GitScrum\Classes\Helper;
use Auth;
@@ -8,7 +8,8 @@
namespace GitScrum\Observers;
use GitScrum\Models\{Sprint,ConfigStatus};
use GitScrum\Models\Sprint;
use GitScrum\Models\ConfigStatus;
use GitScrum\Classes\Helper;
use Carbon\Carbon;
use Auth;
@@ -10,5 +10,4 @@
trait IssueScope
{
}
@@ -12,7 +12,6 @@
trait UserScope
{
public function scopeLabels($feature)
{
return $this->{$feature}->map(function ($obj) {
@@ -37,7 +36,7 @@ public function scopeProductBacklogs($query, $product_backlog_id = null)
}
return $obj;
})->flatten(1);
})->flatten(1);
}
public function scopeSprints($query, $sprint_id = null)
@@ -24,7 +24,7 @@ public function scopeActivities($query)
return collect($activities->all());
}
public function scopeIssuesHasUsers($query, $total = 3)
public function scopeIssuesHasUsers($query, $total = 3)
{
$users = $this->issues->map(function ($issue) {
return $issue->users;
0 bootstrap/app.php 100644 → 100755
No changes.
0 bootstrap/autoload.php 100644 → 100755
No changes.
0 bootstrap/cache/.gitignore 100644 → 100755
No changes.
No changes.
No changes.
No changes.
@@ -2,8 +2,7 @@
class ProductBacklogTest extends TestCase
{
public function test_list_sprints()
{
}
public function test_list_sprints()
{
}
}

0 comments on commit d0d17f1

Please sign in to comment.