Version 5.1 - All the GraphQL #32

Closed
timw4mail wants to merge 1160 commits from develop into master
7 changed files with 15 additions and 9 deletions
Showing only changes of commit 9ed18ce131 - Show all commits

View File

@ -91,7 +91,7 @@ class Collection extends BaseController {
/**
* Show the anime collection add/edit form
*
* @param int $id
* @param integer|null $id
* @return void
*/
public function form($id = NULL)

View File

@ -106,7 +106,7 @@ class Dispatcher extends RoutingBase {
* Handle the current route
*
* @codeCoverageIgnore
* @param object $route
* @param object|null $route
* @return void
*/
public function __invoke($route = NULL)

View File

@ -169,7 +169,8 @@ class AnimeCollection extends DB {
{
if ( ! $this->valid_database) return [];
$query = $this->db->select('hummingbird_id, slug, title, alternate_title, show_type, age_rating, episode_count, episode_length, cover_image, notes, media.type as media')
$query = $this->db->select('hummingbird_id, slug, title, alternate_title, show_type,
age_rating, episode_count, episode_length, cover_image, notes, media.type as media')
->from('anime_set a')
->join('media', 'media.id=a.media_id', 'inner')
->order_by('media')
@ -196,7 +197,9 @@ class AnimeCollection extends DB {
'alternate_title' => $anime->alternate_title,
'show_type' => $anime->show_type,
'age_rating' => $anime->age_rating,
'cover_image' => basename($this->get_cached_image($anime->cover_image, $anime->slug, 'anime')),
'cover_image' => basename(
$this->get_cached_image($anime->cover_image, $anime->slug, 'anime')
),
'episode_count' => $anime->episode_count,
'episode_length' => $anime->episode_length,
'media_id' => $data['media_id'],
@ -261,7 +264,9 @@ class AnimeCollection extends DB {
'alternate_title' => $item->alternate_title,
'show_type' => $item->show_type,
'age_rating' => $item->age_rating,
'cover_image' => basename($this->get_cached_image($item->cover_image, $item->slug, 'anime')),
'cover_image' => basename(
$this->get_cached_image($item->cover_image, $item->slug, 'anime')
),
'episode_count' => $item->episode_count,
'episode_length' => $item->episode_length
])->insert('anime_set');

View File

@ -16,7 +16,7 @@ class RoutingBase {
/**
* Injection Container
* @var Container $container
* @var ContainerInterface $container
*/
protected $container;

View File

@ -12,7 +12,7 @@ class Container implements ContainerInterface {
/**
* Array with class instances
*
* @var array
* @var ArrayObject
*/
protected $container = [];

View File

@ -136,7 +136,7 @@ class ArrayType {
*
* @param mixed $value
* @param bool $strict
* @return string
* @return false|integer|string
*/
public function search($value, $strict=FALSE)
{

View File

@ -3,6 +3,7 @@
namespace Aviat\Ion;
use Aviat\Ion\Di\ContainerInterface;
use Aviat\Ion\Type\StringType;
/**
* Base view response class
@ -29,7 +30,7 @@ abstract class View {
/**
* String of response to be output
*
* @var S
* @var StringType
*/
protected $output;