Fix documentation issues

This commit is contained in:
Timothy Warren 2015-10-12 14:27:20 -04:00
parent 6b1f39525d
commit 9ed18ce131
7 changed files with 15 additions and 9 deletions

View File

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

View File

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

View File

@ -169,7 +169,8 @@ class AnimeCollection extends DB {
{ {
if ( ! $this->valid_database) return []; 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') ->from('anime_set a')
->join('media', 'media.id=a.media_id', 'inner') ->join('media', 'media.id=a.media_id', 'inner')
->order_by('media') ->order_by('media')
@ -196,7 +197,9 @@ class AnimeCollection extends DB {
'alternate_title' => $anime->alternate_title, 'alternate_title' => $anime->alternate_title,
'show_type' => $anime->show_type, 'show_type' => $anime->show_type,
'age_rating' => $anime->age_rating, '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_count' => $anime->episode_count,
'episode_length' => $anime->episode_length, 'episode_length' => $anime->episode_length,
'media_id' => $data['media_id'], 'media_id' => $data['media_id'],
@ -261,7 +264,9 @@ class AnimeCollection extends DB {
'alternate_title' => $item->alternate_title, 'alternate_title' => $item->alternate_title,
'show_type' => $item->show_type, 'show_type' => $item->show_type,
'age_rating' => $item->age_rating, '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_count' => $item->episode_count,
'episode_length' => $item->episode_length 'episode_length' => $item->episode_length
])->insert('anime_set'); ])->insert('anime_set');

View File

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

View File

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

View File

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

View File

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