Reformat JustAMan review pt2 changes

Refs #575
This commit is contained in:
Erwin de Haan
2019-01-17 20:24:39 +01:00
parent 321c440739
commit 38f96af079
150 changed files with 97 additions and 189 deletions

View File

@@ -1,4 +1,3 @@
namespace MediaBrowser.Controller.Channels
{
public interface IHasCacheKey

View File

@@ -1,4 +1,3 @@
namespace MediaBrowser.Controller.Connect
{
public class UserLinkResult

View File

@@ -1,4 +1,3 @@
namespace MediaBrowser.Controller.Drawing
{
public class ImageCollageOptions

View File

@@ -1,4 +1,3 @@
namespace MediaBrowser.Controller.Entities.Audio
{
public interface IHasAlbumArtist

View File

@@ -1,4 +1,3 @@
using MediaBrowser.Model.Serialization;
namespace MediaBrowser.Controller.Entities

View File

@@ -331,7 +331,7 @@ namespace MediaBrowser.Controller.Entities
foreach (var child in nonCachedChildren)
{
if (currentChildren.TryGetValue(child.Id, out var currentChild))
if (currentChildren.TryGetValue(child.Id, out BaseItem currentChild))
{
validChildren.Add(currentChild);

View File

@@ -1,4 +1,3 @@
namespace MediaBrowser.Controller.Entities
{
/// <summary>

View File

@@ -1,4 +1,3 @@
namespace MediaBrowser.Controller.Entities
{
/// <summary>

View File

@@ -1,4 +1,3 @@
using System;
namespace MediaBrowser.Controller.Entities

View File

@@ -1,4 +1,3 @@
namespace MediaBrowser.Controller.Entities
{
/// <summary>

View File

@@ -1,4 +1,3 @@
namespace MediaBrowser.Controller.Entities
{
public interface ISupportsPlaceHolders

View File

@@ -1,4 +1,3 @@
namespace MediaBrowser.Controller.Entities
{
public enum SourceType

View File

@@ -64,9 +64,9 @@ namespace MediaBrowser.Controller.Entities
public int? GetYearValue()
{
if (int.TryParse(Name, NumberStyles.Integer, CultureInfo.InvariantCulture, out var i))
if (int.TryParse(Name, NumberStyles.Integer, CultureInfo.InvariantCulture, out var year))
{
return i;
return year;
}
return null;

View File

@@ -1,4 +1,3 @@
namespace MediaBrowser.Controller.Library
{
public class DeleteOptions

View File

@@ -114,12 +114,15 @@ namespace MediaBrowser.Controller.LiveTv
/// </summary>
/// <value>The episode number.</value>
public int? EpisodeNumber { get; set; }
public bool IsMovie { get; set; }
public bool IsKids => Tags.Contains("Kids", StringComparer.OrdinalIgnoreCase);
public bool IsSports => Tags.Contains("Sports", StringComparer.OrdinalIgnoreCase);
public bool IsNews => Tags.Contains("News", StringComparer.OrdinalIgnoreCase);
public bool IsSeries { get; set; }
/// <summary>
@@ -133,10 +136,15 @@ namespace MediaBrowser.Controller.LiveTv
public bool IsPremiere => Tags.Contains("Premiere", StringComparer.OrdinalIgnoreCase);
public int? ProductionYear { get; set; }
public string EpisodeTitle { get; set; }
public DateTime? OriginalAirDate { get; set; }
public bool IsProgramSeries { get; set; }
public bool IsRepeat { get; set; }
public string HomePageUrl { get; set; }
public float? CommunityRating { get; set; }
public string OfficialRating { get; set; }

View File

@@ -1,4 +1,3 @@
namespace MediaBrowser.Controller.MediaEncoding
{
public class ImageEncodingOptions

View File

@@ -25,7 +25,7 @@ namespace MediaBrowser.Controller.Providers
public FileSystemMetadata[] GetFileSystemEntries(string path)
{
if (!_cache.TryGetValue(path, out var entries))
if (!_cache.TryGetValue(path, out FileSystemMetadata[] entries))
{
//_logger.LogDebug("Getting files for " + path);
@@ -54,7 +54,7 @@ namespace MediaBrowser.Controller.Providers
public FileSystemMetadata GetFile(string path)
{
if (!_fileCache.TryGetValue(path, out var file))
if (!_fileCache.TryGetValue(path, out FileSystemMetadata file))
{
file = _fileSystem.GetFileInfo(path);
@@ -80,7 +80,7 @@ namespace MediaBrowser.Controller.Providers
public List<string> GetFilePaths(string path, bool clearCache)
{
if (clearCache || !_filePathCache.TryGetValue(path, out var result))
if (clearCache || !_filePathCache.TryGetValue(path, out List<string> result))
{
result = _fileSystem.GetFilePaths(path).ToList();

View File

@@ -1,4 +1,3 @@
namespace MediaBrowser.Controller.Providers
{
/// <summary>

View File

@@ -1,4 +1,3 @@
namespace MediaBrowser.Controller.Providers
{
/// <summary>

View File

@@ -1,4 +1,3 @@
namespace MediaBrowser.Controller.Providers
{
/// <summary>

View File

@@ -1,4 +1,3 @@
using MediaBrowser.Controller.Entities;
using MediaBrowser.Model.IO;

View File

@@ -1,4 +1,3 @@
namespace MediaBrowser.Controller.Resolvers
{
/// <summary>

View File

@@ -1,4 +1,3 @@
namespace MediaBrowser.Controller.Security
{
public interface IEncryptionManager

View File

@@ -1,4 +1,3 @@
namespace MediaBrowser.Controller.Sync
{
/// <summary>