Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Commit

Permalink
feat: Added namespace, classes to use and spelling correction in the …
Browse files Browse the repository at this point in the history
…comments
  • Loading branch information
joserick committed Apr 13, 2019
1 parent 1cd1f89 commit 242dcf4
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 8 deletions.
12 changes: 9 additions & 3 deletions src/Joserick/Plex/Server/Library/Section/Artist.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

namespace Joserick\Plex\Server\Library\Section;

use Joserick\Plex\Server\Library\Plex_Server_Library_SectionAbstract;
use Joserick\Plex\Server\Library\Item\Plex_Server_Library_Item_Album;
use Joserick\Plex\Server\Library\Item\Plex_Server_Library_Item_Artist;

/**
* Plex Server Library Artist Section
*
Expand Down Expand Up @@ -62,7 +68,7 @@ public function getAllArtists()
}

/**
* Returns all the albusm for the given section.
* Returns all the albums for the given section.
*
* @uses Plex_Server_Library::getItems()
* @uses Plex_Server_Library_SectionAbstract::buildEndpoint()
Expand Down Expand Up @@ -218,7 +224,7 @@ public function searchTracks($query)
*
* @uses Plex_Server_Library_SectionAbstract::getPolymorphicItem()
*
* @retrun Plex_Server_Library_Item_Artist A Plex library artist object.
* @return Plex_Server_Library_Item_Artist A Plex library artist object.
*/
public function getArtist($polymorphicData)
{
Expand All @@ -234,7 +240,7 @@ public function getArtist($polymorphicData)
*
* @uses Plex_Server_Library_SectionAbstract::getPolymorphicItem()
*
* @retrun Plex_Server_Library_Item_Track A Plex library track object.
* @return Plex_Server_Library_Item_Track A Plex library track object.
*/
public function getTrack($polymorphicData)
{
Expand Down
11 changes: 8 additions & 3 deletions src/Joserick/Plex/Server/Library/Section/Movie.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<?php

namespace Joserick\Plex\Server\Library\Section;

use Joserick\Plex\Server\Library\Item\Plex_Server_Library_Item_Movie;
use Joserick\Plex\Server\Library\Plex_Server_Library_SectionAbstract;

/**
* Plex Server Library Movie Section
*
Expand Down Expand Up @@ -413,7 +418,7 @@ public function getResolutions()
}

/**
* Searches moview titles for the passed query and returns the movies that
* Searches movie titles for the passed query and returns the movies that
* match.
*
* @param string $query The search term against which the movies will be
Expand All @@ -440,11 +445,11 @@ public function searchMovies($query)
*
* @param integer|string $polymorphicData Either a rating key, a key, or a
* title for an exact title match that will be used to retrieve a single
* mvoie.
* movie.
*
* @uses Plex_Server_Library_SectionAbstract::getPolymorphicItem()
*
* @retrun Plex_Server_Library_Item_Movie A Plex library movie object.
* @return Plex_Server_Library_Item_Movie A Plex library movie object.
*/
public function getMovie($polymorphicData)
{
Expand Down
10 changes: 8 additions & 2 deletions src/Joserick/Plex/Server/Library/Section/Show.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

namespace Joserick\Plex\Server\Library\Section;

use Joserick\Plex\Server\Library\Plex_Server_Library_SectionAbstract;
use Joserick\Plex\Server\Library\Item\Plex_Server_Library_Item_Show;
use Joserick\Plex\Server\Library\Item\Plex_Server_Library_Item_Episode;

/**
* Plex Server Library Show Section
*
Expand Down Expand Up @@ -302,7 +308,7 @@ public function searchEpisodes($query)
*
* @uses Plex_Server_Library_SectionAbstract::getPolymorphicItem()
*
* @retrun Plex_Server_Library_Item_Show A Plex library show object.
* @return Plex_Server_Library_Item_Show A Plex library show object.
*/
public function getShow($polymorphicData)
{
Expand All @@ -318,7 +324,7 @@ public function getShow($polymorphicData)
*
* @uses Plex_Server_Library_SectionAbstract::getPolymorphicItem()
*
* @retrun Plex_Server_Library_Item_Episode A Plex library episode object.
* @return Plex_Server_Library_Item_Episode A Plex library episode object.
*/
public function getEpisode($polymorphicData)
{
Expand Down

0 comments on commit 242dcf4

Please sign in to comment.