Skip to content

Commit

Permalink
Scrutinizer naming updates
Browse files Browse the repository at this point in the history
Signed-off-by: Davis Peixoto <davis.peixoto@gmail.com>
  • Loading branch information
davispeixoto committed Jul 23, 2017
1 parent 988c493 commit 052020f
Show file tree
Hide file tree
Showing 27 changed files with 97 additions and 92 deletions.
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -5,6 +5,8 @@ This package provides a sample of core functionality of a blog designed by mysel
[![Latest Stable Version](https://img.shields.io/packagist/v/davispeixoto/blog-core.svg)](https://packagist.org/packages/davispeixoto/blog-core)
[![Total Downloads](https://img.shields.io/packagist/dt/davispeixoto/blog-core.svg)](https://packagist.org/packages/davispeixoto/blog-core)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/davispeixoto/blog-core/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/davispeixoto/blog-core/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/davispeixoto/blog-core/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/davispeixoto/blog-core/?branch=master)
[![Build Status](https://scrutinizer-ci.com/g/davispeixoto/blog-core/badges/build.png?b=master)](https://scrutinizer-ci.com/g/davispeixoto/blog-core/build-status/master)
[![Build Status](https://travis-ci.org/davispeixoto/blog-core.svg?branch=master)](https://travis-ci.org/davispeixoto/blog-core)
## Installation

Expand All @@ -14,7 +16,7 @@ This package can be installed via [Composer](http://getcomposer.org) by requirin
```json
{
"require": {
"davispeixoto/blog-core": "dev-master"
"davispeixoto/blog-core": "~0.0.0"
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion src/BlogCore/Interfaces/RepositoryInterface.php
Expand Up @@ -33,7 +33,7 @@ public function save(stdClass $obj): UuidInterface;
/**
* Must receive the entity to be deleted
* Should return true in case of success
* Should return false in case of failure
* Or return false in case of failure
*
* @param stdClass $obj
* @throws Exception
Expand Down
Expand Up @@ -11,11 +11,11 @@
use DavisPeixoto\BlogCore\Interfaces\RepositoryInterface;

/**
* Class TrailRepository
* Class AbstractAuthorRepository
* @package DavisPeixoto\BlogCore\Repository
* @codeCoverageIgnore
*/
abstract class TrailRepository implements RepositoryInterface
abstract class AbstractAuthorRepository implements RepositoryInterface
{

}
Expand Up @@ -11,11 +11,11 @@
use DavisPeixoto\BlogCore\Interfaces\RepositoryInterface;

/**
* Class PostRepository
* Class AbstractPostRepository
* @package DavisPeixoto\BlogCore\Repository
* @codeCoverageIgnore
*/
abstract class PostRepository implements RepositoryInterface
abstract class AbstractPostRepository implements RepositoryInterface
{
public function getBySlang() {}
}
Expand Up @@ -11,11 +11,11 @@
use DavisPeixoto\BlogCore\Interfaces\RepositoryInterface;

/**
* Class AuthorRepository
* Class AbstractTagRepository
* @package DavisPeixoto\BlogCore\Repository
* @codeCoverageIgnore
*/
abstract class AuthorRepository implements RepositoryInterface
abstract class AbstractTagRepository implements RepositoryInterface
{

}
Expand Up @@ -11,11 +11,11 @@
use DavisPeixoto\BlogCore\Interfaces\RepositoryInterface;

/**
* Class TagRepository
* Class AbstractTrailRepository
* @package DavisPeixoto\BlogCore\Repository
* @codeCoverageIgnore
*/
abstract class TagRepository implements RepositoryInterface
abstract class AbstractTrailRepository implements RepositoryInterface
{

}
8 changes: 4 additions & 4 deletions src/BlogCore/Service/CreateAuthor.php
Expand Up @@ -10,7 +10,7 @@


use DavisPeixoto\BlogCore\Interfaces\ServiceInterface;
use DavisPeixoto\BlogCore\Repository\AuthorRepository;
use DavisPeixoto\BlogCore\Repository\AbstractAuthorRepository;
use DavisPeixoto\BlogCore\Entity\Author;
use Exception;
use Psr\Log\LoggerInterface;
Expand All @@ -23,7 +23,7 @@
class CreateAuthor implements ServiceInterface
{
/**
* @var AuthorRepository
* @var AbstractAuthorRepository
*/
private $authorRepository;

Expand All @@ -39,11 +39,11 @@ class CreateAuthor implements ServiceInterface

/**
* CreateAuthor constructor.
* @param AuthorRepository $authorRepository
* @param AbstractAuthorRepository $authorRepository
* @param Author $author
* @param LoggerInterface $logger
*/
public function __construct(AuthorRepository $authorRepository, Author $author, LoggerInterface $logger)
public function __construct(AbstractAuthorRepository $authorRepository, Author $author, LoggerInterface $logger)
{
$this->authorRepository = $authorRepository;
$this->author = $author;
Expand Down
8 changes: 4 additions & 4 deletions src/BlogCore/Service/CreatePost.php
Expand Up @@ -10,7 +10,7 @@


use DavisPeixoto\BlogCore\Interfaces\ServiceInterface;
use DavisPeixoto\BlogCore\Repository\PostRepository;
use DavisPeixoto\BlogCore\Repository\AbstractPostRepository;
use DavisPeixoto\BlogCore\Entity\Post;
use Exception;
use Psr\Log\LoggerInterface;
Expand All @@ -23,7 +23,7 @@
class CreatePost implements ServiceInterface
{
/**
* @var PostRepository
* @var AbstractPostRepository
*/
private $postRepository;

Expand All @@ -39,11 +39,11 @@ class CreatePost implements ServiceInterface

/**
* CreatePost constructor.
* @param PostRepository $postRepository
* @param AbstractPostRepository $postRepository
* @param Post $post
* @param LoggerInterface $logger
*/
public function __construct(PostRepository $postRepository, Post $post, LoggerInterface $logger)
public function __construct(AbstractPostRepository $postRepository, Post $post, LoggerInterface $logger)
{
$this->postRepository = $postRepository;
$this->post = $post;
Expand Down
8 changes: 4 additions & 4 deletions src/BlogCore/Service/CreateTag.php
Expand Up @@ -11,7 +11,7 @@

use DavisPeixoto\BlogCore\Entity\Tag;
use DavisPeixoto\BlogCore\Interfaces\ServiceInterface;
use DavisPeixoto\BlogCore\Repository\TagRepository;
use DavisPeixoto\BlogCore\Repository\AbstractTagRepository;
use Exception;
use Psr\Log\LoggerInterface;
use Ramsey\Uuid\UuidInterface;
Expand All @@ -23,7 +23,7 @@
class CreateTag implements ServiceInterface
{
/**
* @var TagRepository
* @var AbstractTagRepository
*/
private $tagRepository;

Expand All @@ -39,11 +39,11 @@ class CreateTag implements ServiceInterface

/**
* CreateTag constructor.
* @param TagRepository $tagRepository
* @param AbstractTagRepository $tagRepository
* @param Tag $tag
* @param LoggerInterface $logger
*/
public function __construct(TagRepository $tagRepository, Tag $tag, LoggerInterface $logger)
public function __construct(AbstractTagRepository $tagRepository, Tag $tag, LoggerInterface $logger)
{
$this->tagRepository = $tagRepository;
$this->tag = $tag;
Expand Down
8 changes: 4 additions & 4 deletions src/BlogCore/Service/CreateTrail.php
Expand Up @@ -10,7 +10,7 @@


use DavisPeixoto\BlogCore\Interfaces\ServiceInterface;
use DavisPeixoto\BlogCore\Repository\TrailRepository;
use DavisPeixoto\BlogCore\Repository\AbstractTrailRepository;
use DavisPeixoto\BlogCore\Entity\Trail;
use Exception;
use Psr\Log\LoggerInterface;
Expand All @@ -23,7 +23,7 @@
class CreateTrail implements ServiceInterface
{
/**
* @var TrailRepository
* @var AbstractTrailRepository
*/
private $trailRepository;

Expand All @@ -39,11 +39,11 @@ class CreateTrail implements ServiceInterface

/**
* CreateTrail constructor.
* @param TrailRepository $trailRepository
* @param AbstractTrailRepository $trailRepository
* @param Trail $trail
* @param LoggerInterface $logger
*/
public function __construct(TrailRepository $trailRepository, Trail $trail, LoggerInterface $logger)
public function __construct(AbstractTrailRepository $trailRepository, Trail $trail, LoggerInterface $logger)
{
$this->trailRepository = $trailRepository;
$this->trail = $trail;
Expand Down
8 changes: 4 additions & 4 deletions src/BlogCore/Service/DeleteAuthor.php
Expand Up @@ -10,7 +10,7 @@


use DavisPeixoto\BlogCore\Interfaces\ServiceInterface;
use DavisPeixoto\BlogCore\Repository\AuthorRepository;
use DavisPeixoto\BlogCore\Repository\AbstractAuthorRepository;
use DavisPeixoto\BlogCore\Entity\Author;
use Exception;
use Psr\Log\LoggerInterface;
Expand All @@ -23,7 +23,7 @@
class DeleteAuthor implements ServiceInterface
{
/**
* @var AuthorRepository
* @var AbstractAuthorRepository
*/
private $authorRepository;

Expand All @@ -39,11 +39,11 @@ class DeleteAuthor implements ServiceInterface

/**
* DeleteAuthor constructor.
* @param AuthorRepository $authorRepository
* @param AbstractAuthorRepository $authorRepository
* @param Author $author
* @param LoggerInterface $logger
*/
public function __construct(AuthorRepository $authorRepository, Author $author, LoggerInterface $logger)
public function __construct(AbstractAuthorRepository $authorRepository, Author $author, LoggerInterface $logger)
{
$this->authorRepository = $authorRepository;
$this->author = $author;
Expand Down
8 changes: 4 additions & 4 deletions src/BlogCore/Service/DeletePost.php
Expand Up @@ -10,7 +10,7 @@


use DavisPeixoto\BlogCore\Interfaces\ServiceInterface;
use DavisPeixoto\BlogCore\Repository\PostRepository;
use DavisPeixoto\BlogCore\Repository\AbstractPostRepository;
use DavisPeixoto\BlogCore\Entity\Post;
use Exception;
use Psr\Log\LoggerInterface;
Expand All @@ -23,7 +23,7 @@
class DeletePost implements ServiceInterface
{
/**
* @var PostRepository
* @var AbstractPostRepository
*/
private $postRepository;

Expand All @@ -39,11 +39,11 @@ class DeletePost implements ServiceInterface

/**
* DeletePost constructor.
* @param PostRepository $postRepository
* @param AbstractPostRepository $postRepository
* @param Post $post
* @param LoggerInterface $logger
*/
public function __construct(PostRepository $postRepository, Post $post, LoggerInterface $logger)
public function __construct(AbstractPostRepository $postRepository, Post $post, LoggerInterface $logger)
{
$this->postRepository = $postRepository;
$this->post = $post;
Expand Down
8 changes: 4 additions & 4 deletions src/BlogCore/Service/DeleteTag.php
Expand Up @@ -11,7 +11,7 @@

use DavisPeixoto\BlogCore\Entity\Tag;
use DavisPeixoto\BlogCore\Interfaces\ServiceInterface;
use DavisPeixoto\BlogCore\Repository\TagRepository;
use DavisPeixoto\BlogCore\Repository\AbstractTagRepository;
use Exception;
use Psr\Log\LoggerInterface;

Expand All @@ -23,7 +23,7 @@
class DeleteTag implements ServiceInterface
{
/**
* @var TagRepository
* @var AbstractTagRepository
*/
private $tagRepository;

Expand All @@ -39,11 +39,11 @@ class DeleteTag implements ServiceInterface

/**
* DeleteTag constructor.
* @param TagRepository $tagRepository
* @param AbstractTagRepository $tagRepository
* @param Tag $tag
* @param LoggerInterface $logger
*/
public function __construct(TagRepository $tagRepository, Tag $tag, LoggerInterface $logger)
public function __construct(AbstractTagRepository $tagRepository, Tag $tag, LoggerInterface $logger)
{
$this->tagRepository = $tagRepository;
$this->tag = $tag;
Expand Down
8 changes: 4 additions & 4 deletions src/BlogCore/Service/DeleteTrail.php
Expand Up @@ -10,7 +10,7 @@


use DavisPeixoto\BlogCore\Interfaces\ServiceInterface;
use DavisPeixoto\BlogCore\Repository\TrailRepository;
use DavisPeixoto\BlogCore\Repository\AbstractTrailRepository;
use DavisPeixoto\BlogCore\Entity\Trail;
use Exception;
use Psr\Log\LoggerInterface;
Expand All @@ -23,7 +23,7 @@
class DeleteTrail implements ServiceInterface
{
/**
* @var TrailRepository
* @var AbstractTrailRepository
*/
private $trailRepository;

Expand All @@ -39,11 +39,11 @@ class DeleteTrail implements ServiceInterface

/**
* DeleteTrail constructor.
* @param TrailRepository $trailRepository
* @param AbstractTrailRepository $trailRepository
* @param Trail $trail
* @param LoggerInterface $logger
*/
public function __construct(TrailRepository $trailRepository, Trail $trail, LoggerInterface $logger)
public function __construct(AbstractTrailRepository $trailRepository, Trail $trail, LoggerInterface $logger)
{
$this->trailRepository = $trailRepository;
$this->trail = $trail;
Expand Down
8 changes: 4 additions & 4 deletions src/BlogCore/Service/EditAuthor.php
Expand Up @@ -10,7 +10,7 @@


use DavisPeixoto\BlogCore\Interfaces\ServiceInterface;
use DavisPeixoto\BlogCore\Repository\AuthorRepository;
use DavisPeixoto\BlogCore\Repository\AbstractAuthorRepository;
use DavisPeixoto\BlogCore\Entity\Author;
use Exception;
use Psr\Log\LoggerInterface;
Expand All @@ -23,7 +23,7 @@
class EditAuthor implements ServiceInterface
{
/**
* @var AuthorRepository
* @var AbstractAuthorRepository
*/
private $authorRepository;

Expand All @@ -39,11 +39,11 @@ class EditAuthor implements ServiceInterface

/**
* EditAuthor constructor.
* @param AuthorRepository $authorRepository
* @param AbstractAuthorRepository $authorRepository
* @param Author $author
* @param LoggerInterface $logger
*/
public function __construct(AuthorRepository $authorRepository, Author $author, LoggerInterface $logger)
public function __construct(AbstractAuthorRepository $authorRepository, Author $author, LoggerInterface $logger)
{
$this->authorRepository = $authorRepository;
$this->author = $author;
Expand Down

0 comments on commit 052020f

Please sign in to comment.