Skip to content

Commit

Permalink
Updated Pony.fm's PHP namespace to Poniverse\Ponyfm.
Browse files Browse the repository at this point in the history
  • Loading branch information
EventideGlow committed Oct 24, 2015
1 parent e593d07 commit a4c24a7
Show file tree
Hide file tree
Showing 97 changed files with 282 additions and 282 deletions.
16 changes: 8 additions & 8 deletions app/Album.php
@@ -1,14 +1,14 @@
<?php

namespace App;
namespace Poniverse\Ponyfm;

use Exception;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\URL;
use App\Traits\SlugTrait;
use Poniverse\Ponyfm\Traits\SlugTrait;
use Helpers;

class Album extends Model
Expand Down Expand Up @@ -40,32 +40,32 @@ public function scopeUserDetails($query)

public function user()
{
return $this->belongsTo('App\User');
return $this->belongsTo('Poniverse\Ponyfm\User');
}

public function users()
{
return $this->hasMany('App\ResourceUser');
return $this->hasMany('Poniverse\Ponyfm\ResourceUser');
}

public function favourites()
{
return $this->hasMany('App\Favourite');
return $this->hasMany('Poniverse\Ponyfm\Favourite');
}

public function cover()
{
return $this->belongsTo('App\Image');
return $this->belongsTo('Poniverse\Ponyfm\Image');
}

public function tracks()
{
return $this->hasMany('App\Track')->orderBy('track_number', 'asc');
return $this->hasMany('Poniverse\Ponyfm\Track')->orderBy('track_number', 'asc');
}

public function comments()
{
return $this->hasMany('App\Comment')->orderBy('created_at', 'desc');
return $this->hasMany('Poniverse\Ponyfm\Comment')->orderBy('created_at', 'desc');
}

public static function mapPublicAlbumShow($album)
Expand Down
2 changes: 1 addition & 1 deletion app/AlbumDownloader.php
@@ -1,6 +1,6 @@
<?php

namespace App;
namespace Poniverse\Ponyfm;

use ZipStream;

Expand Down
6 changes: 3 additions & 3 deletions app/Commands/AddTrackToPlaylistCommand.php
@@ -1,9 +1,9 @@
<?php

namespace App\Commands;
namespace Poniverse\Ponyfm\Commands;

use App\Playlist;
use App\Track;
use Poniverse\Ponyfm\Playlist;
use Poniverse\Ponyfm\Track;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;

Expand Down
2 changes: 1 addition & 1 deletion app/Commands/CommandBase.php
@@ -1,6 +1,6 @@
<?php

namespace App\Commands;
namespace Poniverse\Ponyfm\Commands;

abstract class CommandBase
{
Expand Down
2 changes: 1 addition & 1 deletion app/Commands/CommandResponse.php
@@ -1,6 +1,6 @@
<?php

namespace App\Commands;
namespace Poniverse\Ponyfm\Commands;

use Illuminate\Validation\Validator;

Expand Down
6 changes: 3 additions & 3 deletions app/Commands/CreateAlbumCommand.php
@@ -1,9 +1,9 @@
<?php

namespace App\Commands;
namespace Poniverse\Ponyfm\Commands;

use App\Album;
use App\Image;
use Poniverse\Ponyfm\Album;
use Poniverse\Ponyfm\Image;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Validator;

Expand Down
12 changes: 6 additions & 6 deletions app/Commands/CreateCommentCommand.php
@@ -1,12 +1,12 @@
<?php

namespace App\Commands;
namespace Poniverse\Ponyfm\Commands;

use App\Album;
use App\Comment;
use App\Playlist;
use App\Track;
use App\User;
use Poniverse\Ponyfm\Album;
use Poniverse\Ponyfm\Comment;
use Poniverse\Ponyfm\Playlist;
use Poniverse\Ponyfm\Track;
use Poniverse\Ponyfm\User;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Validator;

Expand Down
4 changes: 2 additions & 2 deletions app/Commands/CreatePlaylistCommand.php
@@ -1,8 +1,8 @@
<?php

namespace App\Commands;
namespace Poniverse\Ponyfm\Commands;

use App\Playlist;
use Poniverse\Ponyfm\Playlist;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Validator;

Expand Down
4 changes: 2 additions & 2 deletions app/Commands/DeleteAlbumCommand.php
@@ -1,8 +1,8 @@
<?php

namespace App\Commands;
namespace Poniverse\Ponyfm\Commands;

use App\Album;
use Poniverse\Ponyfm\Album;
use Illuminate\Support\Facades\Auth;

class DeleteAlbumCommand extends CommandBase
Expand Down
4 changes: 2 additions & 2 deletions app/Commands/DeletePlaylistCommand.php
@@ -1,8 +1,8 @@
<?php

namespace App\Commands;
namespace Poniverse\Ponyfm\Commands;

use App\Playlist;
use Poniverse\Ponyfm\Playlist;
use Illuminate\Support\Facades\Auth;

class DeletePlaylistCommand extends CommandBase
Expand Down
4 changes: 2 additions & 2 deletions app/Commands/DeleteTrackCommand.php
@@ -1,8 +1,8 @@
<?php

namespace App\Commands;
namespace Poniverse\Ponyfm\Commands;

use App\Track;
use Poniverse\Ponyfm\Track;

class DeleteTrackCommand extends CommandBase
{
Expand Down
6 changes: 3 additions & 3 deletions app/Commands/EditAlbumCommand.php
@@ -1,9 +1,9 @@
<?php

namespace App\Commands;
namespace Poniverse\Ponyfm\Commands;

use App\Album;
use App\Image;
use Poniverse\Ponyfm\Album;
use Poniverse\Ponyfm\Image;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Validator;
Expand Down
6 changes: 3 additions & 3 deletions app/Commands/EditPlaylistCommand.php
@@ -1,9 +1,9 @@
<?php

namespace App\Commands;
namespace Poniverse\Ponyfm\Commands;

use App\PinnedPlaylist;
use App\Playlist;
use Poniverse\Ponyfm\PinnedPlaylist;
use Poniverse\Ponyfm\Playlist;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Validator;

Expand Down
10 changes: 5 additions & 5 deletions app/Commands/EditTrackCommand.php
@@ -1,11 +1,11 @@
<?php

namespace App\Commands;
namespace Poniverse\Ponyfm\Commands;

use App\Album;
use App\Image;
use App\Track;
use App\User;
use Poniverse\Ponyfm\Album;
use Poniverse\Ponyfm\Image;
use Poniverse\Ponyfm\Track;
use Poniverse\Ponyfm\User;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;

Expand Down
4 changes: 2 additions & 2 deletions app/Commands/SaveAccountSettingsCommand.php
@@ -1,8 +1,8 @@
<?php

namespace App\Commands;
namespace Poniverse\Ponyfm\Commands;

use App\Image;
use Poniverse\Ponyfm\Image;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Validator;

Expand Down
6 changes: 3 additions & 3 deletions app/Commands/ToggleFavouriteCommand.php
@@ -1,9 +1,9 @@
<?php

namespace App\Commands;
namespace Poniverse\Ponyfm\Commands;

use App\Favourite;
use App\ResourceUser;
use Poniverse\Ponyfm\Favourite;
use Poniverse\Ponyfm\ResourceUser;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;

Expand Down
6 changes: 3 additions & 3 deletions app/Commands/ToggleFollowingCommand.php
@@ -1,9 +1,9 @@
<?php

namespace App\Commands;
namespace Poniverse\Ponyfm\Commands;

use App\Follower;
use App\ResourceUser;
use Poniverse\Ponyfm\Follower;
use Poniverse\Ponyfm\ResourceUser;
use Illuminate\Support\Facades\Auth;

class ToggleFollowingCommand extends CommandBase
Expand Down
6 changes: 3 additions & 3 deletions app/Commands/UploadTrackCommand.php
@@ -1,9 +1,9 @@
<?php

namespace App\Commands;
namespace Poniverse\Ponyfm\Commands;

use App\Track;
use App\TrackFile;
use Poniverse\Ponyfm\Track;
use Poniverse\Ponyfm\TrackFile;
use AudioCache;
use File;
use Illuminate\Support\Facades\Log;
Expand Down
12 changes: 6 additions & 6 deletions app/Comment.php
@@ -1,6 +1,6 @@
<?php

namespace App;
namespace Poniverse\Ponyfm;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
Expand All @@ -16,27 +16,27 @@ class Comment extends Model

public function user()
{
return $this->belongsTo('App\User');
return $this->belongsTo('Poniverse\Ponyfm\User');
}

public function track()
{
return $this->belongsTo('App\Track');
return $this->belongsTo('Poniverse\Ponyfm\Track');
}

public function album()
{
return $this->belongsTo('App\Album');
return $this->belongsTo('Poniverse\Ponyfm\Album');
}

public function playlist()
{
return $this->belongsTo('App\Playlist');
return $this->belongsTo('Poniverse\Ponyfm\Playlist');
}

public function profile()
{
return $this->belongsTo('App\User', 'profile_id');
return $this->belongsTo('Poniverse\Ponyfm\User', 'profile_id');
}

public static function mapPublic($comment)
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/BootstrapLocalEnvironment.php
@@ -1,6 +1,6 @@
<?php

namespace App\Console\Commands;
namespace Poniverse\Ponyfm\Console\Commands;

use Illuminate\Console\Command;

Expand Down
8 changes: 4 additions & 4 deletions app/Console/Commands/ClassifyMLPMA.php
@@ -1,10 +1,10 @@
<?php

namespace App\Console\Commands;
namespace Poniverse\Ponyfm\Console\Commands;

use App\ShowSong;
use App\Track;
use App\TrackType;
use Poniverse\Ponyfm\ShowSong;
use Poniverse\Ponyfm\Track;
use Poniverse\Ponyfm\TrackType;
use DB;
use Illuminate\Console\Command;
use Illuminate\Support\Str;
Expand Down
4 changes: 2 additions & 2 deletions app/Console/Commands/FixYearZeroLogs.php
@@ -1,9 +1,9 @@
<?php

namespace App\Console\Commands;
namespace Poniverse\Ponyfm\Console\Commands;

use Carbon\Carbon;
use App\ResourceLogItem;
use Poniverse\Ponyfm\ResourceLogItem;
use Illuminate\Console\Command;

class FixYearZeroLogs extends Command
Expand Down
16 changes: 8 additions & 8 deletions app/Console/Commands/ImportMLPMA.php
@@ -1,13 +1,13 @@
<?php

namespace App\Console\Commands;

use App\Album;
use App\Commands\UploadTrackCommand;
use App\Genre;
use App\Image;
use App\Track;
use App\User;
namespace Poniverse\Ponyfm\Console\Commands;

use Poniverse\Ponyfm\Album;
use Poniverse\Ponyfm\Commands\UploadTrackCommand;
use Poniverse\Ponyfm\Genre;
use Poniverse\Ponyfm\Image;
use Poniverse\Ponyfm\Track;
use Poniverse\Ponyfm\User;
use Auth;
use Carbon\Carbon;
use Config;
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/Inspire.php
@@ -1,6 +1,6 @@
<?php

namespace App\Console\Commands;
namespace Poniverse\Ponyfm\Console\Commands;

use Illuminate\Console\Command;
use Illuminate\Foundation\Inspiring;
Expand Down
6 changes: 3 additions & 3 deletions app/Console/Commands/MigrateOldData.php
@@ -1,9 +1,9 @@
<?php

namespace App\Console\Commands;
namespace Poniverse\Ponyfm\Console\Commands;

use App\Image;
use App\ResourceLogItem;
use Poniverse\Ponyfm\Image;
use Poniverse\Ponyfm\ResourceLogItem;
use DB;
use Exception;
use Illuminate\Console\Command;
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/PoniverseApiSetup.php
@@ -1,6 +1,6 @@
<?php

namespace App\Console\Commands;
namespace Poniverse\Ponyfm\Console\Commands;

use GuzzleHttp\Exception\ClientException;
use Illuminate\Console\Command;
Expand Down
4 changes: 2 additions & 2 deletions app/Console/Commands/RebuildTags.php
@@ -1,8 +1,8 @@
<?php

namespace App\Console\Commands;
namespace Poniverse\Ponyfm\Console\Commands;

use App\Track;
use Poniverse\Ponyfm\Track;
use Illuminate\Console\Command;

class RebuildTags extends Command
Expand Down

0 comments on commit a4c24a7

Please sign in to comment.