Skip to content
This repository has been archived by the owner on Sep 19, 2019. It is now read-only.

Commit

Permalink
Stub whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
deefour committed Jul 28, 2014
1 parent 797003b commit fdd4e84
Show file tree
Hide file tree
Showing 20 changed files with 24 additions and 40 deletions.
6 changes: 3 additions & 3 deletions stubs/controllers/AuthorizationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ class AuthorizationController {



public function __construct() {
public function __construct() { }


}

public function edit() {
$this->authorize(new TestArticle);
Expand All @@ -24,4 +24,4 @@ protected function currentUser() {
return new \TestDummy;
}

}
}
2 changes: 1 addition & 1 deletion stubs/entities/OrphanTestDummy.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php

class OrphanTestDummy extends \Deefour\Aide\Persistence\Entity\User { }
class OrphanTestDummy extends \Deefour\Aide\Persistence\Entity\User { }
4 changes: 3 additions & 1 deletion stubs/entities/TestArticle.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ class TestArticle extends \Deefour\Aide\Persistence\Entity\AbstractEntity {
public $teaser;
public $body;



public function policyClass() {
return get_class() . 'Policy';
}

}
}
2 changes: 1 addition & 1 deletion stubs/entities/TestDummy.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ public function name() {
return 'Dummy';
}

}
}
2 changes: 1 addition & 1 deletion stubs/entities/TestNewsArticle.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ public function validations(array $context = []) {
return $rules;
}

}
}
2 changes: 1 addition & 1 deletion stubs/entities/TestUser.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php

class TestUser {}
class TestUser { }
2 changes: 1 addition & 1 deletion stubs/models/Csv/OrphanTestDummy.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ public function columns() {
return $this->columns;
}

}
}
2 changes: 1 addition & 1 deletion stubs/models/Csv/TestArticle.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ public function columns() {
return array_merge($this->columns, [ 'title', 'slug', 'teaser', 'body' ]);
}

}
}
2 changes: 1 addition & 1 deletion stubs/models/Csv/TestDummy.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ public function columns() {
return $this->columns;
}

}
}
4 changes: 1 addition & 3 deletions stubs/models/Eloquent/TestDummy.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
use Deefour\Aide\Persistence\Model\Eloquent\Model;
use Mockery as m;



class TestDummy extends Model {

public function save(array $options = array()) {
Expand All @@ -27,4 +25,4 @@ public function newQuery($excludeDeleted = true) {
return $mock;
}

}
}
2 changes: 1 addition & 1 deletion stubs/models/Eloquent/TestDummyWithoutEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

use Deefour\Aide\Persistence\Model\Eloquent\Model;

class TestDummyWithoutEntity extends Model { }
class TestDummyWithoutEntity extends Model { }
6 changes: 1 addition & 5 deletions stubs/models/EntityModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,4 @@
use Deefour\Aide\Persistence\Model\Eloquent\Model;
use Deefour\Aide\Persistence\Entity\EntityInterface;



class EntityModel extends Model implements EntityInterface {

}
class EntityModel extends Model implements EntityInterface { }
6 changes: 1 addition & 5 deletions stubs/models/RepositorylessEntityModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,4 @@
use Deefour\Aide\Persistence\Model\Eloquent\Model;
use Deefour\Aide\Persistence\Entity\EntityInterface;



class RepositorylessEntityModel extends Model implements EntityInterface {

}
class RepositorylessEntityModel extends Model implements EntityInterface { }
4 changes: 1 addition & 3 deletions stubs/policies/TestArticlePolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

use Deefour\Aide\Authorization\AbstractPolicy;



class TestArticlePolicy extends AbstractPolicy {

public function edit() {
Expand All @@ -18,4 +16,4 @@ public function permittedAttributes() {
return [ 'title' ];
}

}
}
4 changes: 1 addition & 3 deletions stubs/policies/TestUserPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@

use Deefour\Aide\Authorization\AbstractPolicy;



class TestUserPolicy extends AbstractPolicy { }
class TestUserPolicy extends AbstractPolicy { }
4 changes: 1 addition & 3 deletions stubs/repositories/Csv/TestArticleRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@

use Deefour\Aide\Persistence\Repository\Csv\Repository;

class TestArticleRepository extends Repository {

}
class TestArticleRepository extends Repository { }
4 changes: 1 addition & 3 deletions stubs/repositories/Csv/TestDummyRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@

use Deefour\Aide\Persistence\Repository\Csv\Repository;

class TestDummyRepository extends Repository {

}
class TestDummyRepository extends Repository { }
2 changes: 1 addition & 1 deletion stubs/repositories/Eloquent/EntityModelRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

use Deefour\Aide\Persistence\Repository\Eloquent\Repository;

class EntityModelRepository extends Repository { }
class EntityModelRepository extends Repository { }
2 changes: 1 addition & 1 deletion stubs/repositories/Eloquent/TestDummyRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

use Deefour\Aide\Persistence\Repository\Eloquent\Repository;

class TestDummyRepository extends Repository { }
class TestDummyRepository extends Repository { }
2 changes: 1 addition & 1 deletion stubs/scopes/TestArticleScope.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ public function resolve() {
return 'scoped';
}

}
}

0 comments on commit fdd4e84

Please sign in to comment.