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

Commit 242dcf4

Browse files
committed
feat: Added namespace, classes to use and spelling correction in the comments
1 parent 1cd1f89 commit 242dcf4

File tree

3 files changed

+25
-8
lines changed

3 files changed

+25
-8
lines changed

src/Joserick/Plex/Server/Library/Section/Artist.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
<?php
22

3+
namespace Joserick\Plex\Server\Library\Section;
4+
5+
use Joserick\Plex\Server\Library\Plex_Server_Library_SectionAbstract;
6+
use Joserick\Plex\Server\Library\Item\Plex_Server_Library_Item_Album;
7+
use Joserick\Plex\Server\Library\Item\Plex_Server_Library_Item_Artist;
8+
39
/**
410
* Plex Server Library Artist Section
511
*
@@ -62,7 +68,7 @@ public function getAllArtists()
6268
}
6369

6470
/**
65-
* Returns all the albusm for the given section.
71+
* Returns all the albums for the given section.
6672
*
6773
* @uses Plex_Server_Library::getItems()
6874
* @uses Plex_Server_Library_SectionAbstract::buildEndpoint()
@@ -218,7 +224,7 @@ public function searchTracks($query)
218224
*
219225
* @uses Plex_Server_Library_SectionAbstract::getPolymorphicItem()
220226
*
221-
* @retrun Plex_Server_Library_Item_Artist A Plex library artist object.
227+
* @return Plex_Server_Library_Item_Artist A Plex library artist object.
222228
*/
223229
public function getArtist($polymorphicData)
224230
{
@@ -234,7 +240,7 @@ public function getArtist($polymorphicData)
234240
*
235241
* @uses Plex_Server_Library_SectionAbstract::getPolymorphicItem()
236242
*
237-
* @retrun Plex_Server_Library_Item_Track A Plex library track object.
243+
* @return Plex_Server_Library_Item_Track A Plex library track object.
238244
*/
239245
public function getTrack($polymorphicData)
240246
{

src/Joserick/Plex/Server/Library/Section/Movie.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
namespace Joserick\Plex\Server\Library\Section;
4+
5+
use Joserick\Plex\Server\Library\Item\Plex_Server_Library_Item_Movie;
6+
use Joserick\Plex\Server\Library\Plex_Server_Library_SectionAbstract;
7+
38
/**
49
* Plex Server Library Movie Section
510
*
@@ -413,7 +418,7 @@ public function getResolutions()
413418
}
414419

415420
/**
416-
* Searches moview titles for the passed query and returns the movies that
421+
* Searches movie titles for the passed query and returns the movies that
417422
* match.
418423
*
419424
* @param string $query The search term against which the movies will be
@@ -440,11 +445,11 @@ public function searchMovies($query)
440445
*
441446
* @param integer|string $polymorphicData Either a rating key, a key, or a
442447
* title for an exact title match that will be used to retrieve a single
443-
* mvoie.
448+
* movie.
444449
*
445450
* @uses Plex_Server_Library_SectionAbstract::getPolymorphicItem()
446451
*
447-
* @retrun Plex_Server_Library_Item_Movie A Plex library movie object.
452+
* @return Plex_Server_Library_Item_Movie A Plex library movie object.
448453
*/
449454
public function getMovie($polymorphicData)
450455
{

src/Joserick/Plex/Server/Library/Section/Show.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
<?php
22

3+
namespace Joserick\Plex\Server\Library\Section;
4+
5+
use Joserick\Plex\Server\Library\Plex_Server_Library_SectionAbstract;
6+
use Joserick\Plex\Server\Library\Item\Plex_Server_Library_Item_Show;
7+
use Joserick\Plex\Server\Library\Item\Plex_Server_Library_Item_Episode;
8+
39
/**
410
* Plex Server Library Show Section
511
*
@@ -302,7 +308,7 @@ public function searchEpisodes($query)
302308
*
303309
* @uses Plex_Server_Library_SectionAbstract::getPolymorphicItem()
304310
*
305-
* @retrun Plex_Server_Library_Item_Show A Plex library show object.
311+
* @return Plex_Server_Library_Item_Show A Plex library show object.
306312
*/
307313
public function getShow($polymorphicData)
308314
{
@@ -318,7 +324,7 @@ public function getShow($polymorphicData)
318324
*
319325
* @uses Plex_Server_Library_SectionAbstract::getPolymorphicItem()
320326
*
321-
* @retrun Plex_Server_Library_Item_Episode A Plex library episode object.
327+
* @return Plex_Server_Library_Item_Episode A Plex library episode object.
322328
*/
323329
public function getEpisode($polymorphicData)
324330
{

0 commit comments

Comments
 (0)