Add sentry config file

This commit is contained in:
DariusIII
2022-03-19 11:26:06 +01:00
parent 663ab2f38c
commit 58a960b3dc
37 changed files with 217 additions and 160 deletions
+3 -3
View File
@@ -33,9 +33,9 @@ class AniDB
* @param string $rating
* @param string $categories
* @param string $characters
* @param $epnos
* @param $airdates
* @param $episodetitles
* @param $epnos
* @param $airdates
* @param $episodetitles
*/
public function updateTitle($anidbID, $title, $type, $startdate, $enddate, $related, $similar, $creators, $description, $rating, $categories, $characters, $epnos, $airdates, $episodetitles): void
{
+5 -5
View File
@@ -136,11 +136,11 @@ class Books
}
/**
* @param $page
* @param $cat
* @param $start
* @param $num
* @param $orderby
* @param $page
* @param $cat
* @param $start
* @param $num
* @param $orderby
* @param array $excludedcats
* @return array
*
+1 -1
View File
@@ -79,7 +79,7 @@ class Categorize
* Then work out which category is applicable for either a group or a binary.
* Returns Category::OTHER_MISC if no category is appropriate.
*
* @param $groupId
* @param $groupId
* @param string $releaseName
* @param string $poster
* @return array
+5 -5
View File
@@ -149,11 +149,11 @@ class Console
}
/**
* @param $page
* @param $cat
* @param $start
* @param $num
* @param $orderBy
* @param $page
* @param $cat
* @param $start
* @param $num
* @param $orderBy
* @param array $excludedCats
* @return array
*
+3 -3
View File
@@ -219,9 +219,9 @@ class Games
/**
* @param $page
* @param $cat
* @param $start
* @param $num
* @param $cat
* @param $start
* @param $num
* @param string|array $orderBy
* @param string $maxAge
* @param array $excludedCats
+6 -6
View File
@@ -213,11 +213,11 @@ class Movie
* Get movie releases with covers for movie browse page.
*
*
* @param $page
* @param $cat
* @param $start
* @param $num
* @param $orderBy
* @param $page
* @param $cat
* @param $start
* @param $num
* @param $orderBy
* @param int $maxAge
* @param array $excludedCats
* @return array|mixed
@@ -762,7 +762,7 @@ class Movie
* Fetch info for IMDB id from TMDB.
*
*
* @param $imdbId
* @param $imdbId
* @param bool $text
* @return array|false
*/
+6 -6
View File
@@ -138,10 +138,10 @@ class Music
/**
* @param $page
* @param $cat
* @param $start
* @param $num
* @param $orderBy
* @param $cat
* @param $start
* @param $num
* @param $orderBy
* @param array $excludedCats
* @return array
*
@@ -342,8 +342,8 @@ class Music
}
/**
* @param $title
* @param $year
* @param $title
* @param $year
* @param null $amazdata
* @return int|mixed
*
+1 -1
View File
@@ -287,7 +287,7 @@ final class NZBVortex
/**
* sendRequest().
*
* @param $path
* @param $path
* @param array $params
* @return array
*
+46 -46
View File
@@ -536,8 +536,8 @@ class NameFixer
* @param int $time 1: 24 hours, 2: no time limit
* @param int $echo 1: change the name, anything else: preview of what could have been changed.
* @param int $cats 1: other categories, 2: all categories
* @param $nameStatus
* @param $show
* @param $nameStatus
* @param $show
* @param NNTP $nntp
*
* @throws \Exception
@@ -910,11 +910,11 @@ class NameFixer
* Update the release with the new information.
*
*
* @param $release
* @param $name
* @param $method
* @param $echo
* @param $type
* @param $release
* @param $name
* @param $method
* @param $echo
* @param $type
* @param int $nameStatus
* @param bool $show
* @param int $preId
@@ -1271,7 +1271,7 @@ class NameFixer
/**
* Match a release filename to a PreDB filename or title.
*
* @param $release
* @param $release
* @param bool $echo
* @param int $nameStatus
* @param bool $show
@@ -1349,10 +1349,10 @@ class NameFixer
* Match a Hash from the predb to a release.
*
* @param string $hash
* @param $release
* @param $echo
* @param $nameStatus
* @param $show
* @param $release
* @param $echo
* @param $nameStatus
* @param $show
* @return int
*
* @throws \Exception
@@ -1465,7 +1465,7 @@ class NameFixer
/**
* Check the array using regex for a clean name.
*
* @param $release
* @param $release
* @param bool $echo
* @param string $type
* @param int $nameStatus
@@ -1577,11 +1577,11 @@ class NameFixer
/**
* Look for a TV name.
*
* @param $release
* @param $release
* @param bool $echo
* @param string $type
* @param $nameStatus
* @param $show
* @param $nameStatus
* @param $show
*
* @throws \Exception
*/
@@ -1611,11 +1611,11 @@ class NameFixer
/**
* Look for a movie name.
*
* @param $release
* @param $release
* @param bool $echo
* @param string $type
* @param $nameStatus
* @param $show
* @param $nameStatus
* @param $show
*
* @throws \Exception
*/
@@ -1657,11 +1657,11 @@ class NameFixer
/**
* Look for a game name.
*
* @param $release
* @param $release
* @param bool $echo
* @param string $type
* @param $nameStatus
* @param $show
* @param $nameStatus
* @param $show
*
* @throws \Exception
*/
@@ -1687,11 +1687,11 @@ class NameFixer
/**
* Look for a app name.
*
* @param $release
* @param $release
* @param bool $echo
* @param string $type
* @param $nameStatus
* @param $show
* @param $nameStatus
* @param $show
*
* @throws \Exception
*/
@@ -1711,11 +1711,11 @@ class NameFixer
/**
* TV.
*
* @param $release
* @param $release
* @param bool $echo
* @param string $type
* @param $nameStatus
* @param $show
* @param $nameStatus
* @param $show
*
* @throws \Exception
*/
@@ -1735,11 +1735,11 @@ class NameFixer
/**
* Movies.
*
* @param $release
* @param $release
* @param bool $echo
* @param string $type
* @param $nameStatus
* @param $show
* @param $nameStatus
* @param $show
*
* @throws \Exception
*/
@@ -1759,11 +1759,11 @@ class NameFixer
}
/**
* @param $release
* @param $release
* @param bool $echo
* @param string $type
* @param $nameStatus
* @param $show
* @param $nameStatus
* @param $show
*
* @throws \Exception
*/
@@ -1780,11 +1780,11 @@ class NameFixer
/**
* Title (year).
*
* @param $release
* @param $release
* @param bool $echo
* @param string $type
* @param $nameStatus
* @param $show
* @param $nameStatus
* @param $show
*
* @throws \Exception
*/
@@ -1957,11 +1957,11 @@ class NameFixer
/**
* Games.
*
* @param $release
* @param $release
* @param bool $echo
* @param string $type
* @param $nameStatus
* @param $show
* @param $nameStatus
* @param $show
*
* @throws \Exception
*/
@@ -1987,11 +1987,11 @@ class NameFixer
/**
* Misc.
*
* @param $release
* @param $release
* @param bool $echo
* @param string $type
* @param $nameStatus
* @param $show
* @param $nameStatus
* @param $show
*
* @throws \Exception
*/
@@ -2028,11 +2028,11 @@ class NameFixer
/**
* Just for filenames.
*
* @param $release
* @param $release
* @param bool $echo
* @param string $type
* @param $nameStatus
* @param $show
* @param $nameStatus
* @param $show
* @return bool
*
* @throws \Exception
+1 -1
View File
@@ -232,7 +232,7 @@ class Nfo
/**
* Attempt to find NFO files inside the NZB's of releases.
*
* @param $nntp
* @param $nntp
* @param string $groupID (optional) Group ID.
* @param string $guidChar (optional) First character of the release GUID (used for multi-processing).
* @param int $processImdb (optional) Attempt to find IMDB id's in the NZB?
+3 -3
View File
@@ -93,9 +93,9 @@ class ReleaseCleaning
}
/**
* @param $subject
* @param $fromName
* @param $groupName
* @param $subject
* @param $fromName
* @param $groupName
* @param bool $usePre
* @return array|false|string
*
+2 -2
View File
@@ -111,7 +111,7 @@ class ReleaseExtra
}
/**
* @param $releaseID
* @param $releaseID
* @param \Mhor\MediaInfo\Container\MediaInfoContainer $arrXml
*/
public function addFromXml($releaseID, MediaInfoContainer $arrXml): void
@@ -400,7 +400,7 @@ class ReleaseExtra
}
/**
* @param $id
* @param $id
* @param \Mhor\MediaInfo\Container\MediaInfoContainer $xmlArray
*/
public function addFull($id, MediaInfoContainer $xmlArray): void
+1 -1
View File
@@ -71,7 +71,7 @@ class ReleaseImage
}
/**
* @param $imgLoc
* @param $imgLoc
* @return bool|\Intervention\Image\Image
*/
protected function fetchImage($imgLoc)
+13 -13
View File
@@ -52,11 +52,11 @@ class Releases extends Release
* Used for Browse results.
*
*
* @param $page
* @param $cat
* @param $start
* @param $num
* @param $orderBy
* @param $page
* @param $cat
* @param $start
* @param $num
* @param $orderBy
* @param int $maxAge
* @param array $excludedCats
* @param array $tags
@@ -382,7 +382,7 @@ class Releases extends Release
/**
* Get count for my shows page pagination.
*
* @param $userShows
* @param $userShows
* @param int $maxAge
* @param array $excludedCats
* @return int
@@ -537,11 +537,11 @@ class Releases extends Release
*
*
* @param array $searchArr
* @param $groupName
* @param $sizeFrom
* @param $sizeTo
* @param $daysNew
* @param $daysOld
* @param $groupName
* @param $sizeFrom
* @param $sizeTo
* @param $daysNew
* @param $daysOld
* @param int $offset
* @param int $limit
* @param string|array $orderBy
@@ -676,8 +676,8 @@ class Releases extends Release
* Search function for API.
*
*
* @param $searchName
* @param $groupName
* @param $searchName
* @param $groupName
* @param int $offset
* @param int $limit
* @param int $maxAge
+3 -3
View File
@@ -298,7 +298,7 @@ class Tmux
* Returns random bool, weighted by $chance.
*
*
* @param $loop
* @param $loop
* @param int $chance
* @return bool
*
@@ -335,8 +335,8 @@ class Tmux
}
/**
* @param $qry
* @param $bookreqids
* @param $qry
* @param $bookreqids
* @param string $db_name
* @param string $ppmax
* @param string $ppmin
+4 -4
View File
@@ -107,10 +107,10 @@ class XXX
* Get XXX releases with covers for xxx browse page.
*
* @param $page
* @param $cat
* @param $start
* @param $num
* @param $orderBy
* @param $cat
* @param $start
* @param $num
* @param $orderBy
* @param int $maxAge
* @param array $excludedCats
* @return array
+1 -1
View File
@@ -188,7 +188,7 @@ SQL_EXPORT;
}
/**
* @param $filespec
* @param $filespec
* @param bool $localDB
*/
public function import($filespec, $localDB = false)
+3 -3
View File
@@ -42,10 +42,10 @@ class RSS extends Capabilities
* Get releases for RSS.
*
*
* @param $cat
* @param $cat
* @param int $offset
* @param $videosId
* @param $aniDbID
* @param $videosId
* @param $aniDbID
* @param int $userID
* @param int $airDate
* @param int $limit
+6 -6
View File
@@ -69,9 +69,9 @@ abstract class Videos
* Main processing director function for scrapers
* Calls work query function and initiates processing.
*
* @param $groupID
* @param $guidChar
* @param $process
* @param $groupID
* @param $guidChar
* @param $process
* @param bool $local
*/
abstract protected function processSite($groupID, $guidChar, $process, $local = false): void;
@@ -239,8 +239,8 @@ abstract class Videos
/**
* Supplementary function for getByTitle that queries for a like match.
*
* @param $title
* @param $type
* @param $title
* @param $type
* @param int $source
* @return array|false
*/
@@ -316,7 +316,7 @@ abstract class Videos
/**
* Inserts aliases for videos.
*
* @param $videoId
* @param $videoId
* @param array $aliases
*/
public function addAliases($videoId, array $aliases = []): void
+3 -3
View File
@@ -67,9 +67,9 @@ class TMDB extends TV
* Main processing director function for TMDB
* Calls work query function and initiates processing.
*
* @param $groupID
* @param $guidChar
* @param $process
* @param $groupID
* @param $guidChar
* @param $process
* @param bool $local
*/
public function processSite($groupID, $guidChar, $process, $local = false): void
+5 -5
View File
@@ -174,8 +174,8 @@ abstract class TV extends Videos
/**
* Updates the release when match for the current scraper is found.
*
* @param $videoId
* @param $releaseId
* @param $videoId
* @param $releaseId
* @param int $episodeId
*/
public function setVideoIdFound($videoId, $releaseId, $episodeId): void
@@ -398,9 +398,9 @@ abstract class TV extends Videos
*
* Returns the Episode ID or false if not found
*
* @param $id
* @param $series
* @param $episode
* @param $id
* @param $series
* @param $episode
* @param string $airdate
* @return int|false
*/
+3 -3
View File
@@ -70,9 +70,9 @@ class TVDB extends TV
* Main processing director function for scrapers
* Calls work query function and initiates processing.
*
* @param $groupID
* @param $guidChar
* @param $process
* @param $groupID
* @param $guidChar
* @param $process
* @param bool $local
*/
public function processSite($groupID, $guidChar, $process, $local = false): void
+3 -3
View File
@@ -55,9 +55,9 @@ class TVMaze extends TV
* Main processing director function for scrapers
* Calls work query function and initiates processing.
*
* @param $groupID
* @param $guidChar
* @param $process
* @param $groupID
* @param $guidChar
* @param $process
* @param bool $local
*/
public function processSite($groupID, $guidChar, $process, $local = false): void
+3 -3
View File
@@ -68,9 +68,9 @@ class TraktTv extends TV
* Main processing director function for scrapers
* Calls work query function and initiates processing.
*
* @param $groupID
* @param $guidChar
* @param $process
* @param $groupID
* @param $guidChar
* @param $process
* @param bool $local
*/
public function processSite($groupID, $guidChar, $process, $local = false): void
+1 -1
View File
@@ -513,7 +513,7 @@ class Utility
/**
* Convert obj to array.
*
* @param $arrObjData
* @param $arrObjData
* @param array $arrSkipIndices
* @return array
*/
+2 -2
View File
@@ -17,7 +17,7 @@ use Zip as ZipStream;
if (! function_exists('getRawHtml')) {
/**
* @param $url
* @param $url
* @param bool $cookie
* @return bool|mixed|string
*/
@@ -207,7 +207,7 @@ if (! function_exists('color')) {
if (! function_exists('human_filesize')) {
/**
* @param $bytes
* @param $bytes
* @param int $decimals
* @return string
*/
+3 -3
View File
@@ -26,7 +26,7 @@ namespace App\Extensions\util;
class PhpYenc
{
/**
* @param $text
* @param $text
* @param bool $ignore
* @return bool|string
*/
@@ -136,8 +136,8 @@ class PhpYenc
}
/**
* @param $data
* @param $filename
* @param $data
* @param $filename
* @param int $lineLength
* @param bool $crc32
* @return string
+1 -1
View File
@@ -34,7 +34,7 @@ class PasswordReset extends Mailable
* PasswordReset constructor.
*
* @param \App\Models\User $user
* @param $newPass
* @param $newPass
*/
public function __construct($user, $newPass)
{
+1 -1
View File
@@ -34,7 +34,7 @@ class SendInvite extends Mailable
* SendInvite constructor.
*
* @param \App\Models\User $user
* @param $invite
* @param $invite
*/
public function __construct($user, $invite)
{
+2 -2
View File
@@ -323,8 +323,8 @@ class Release extends Model
* @param int $size
* @param string $postedDate
* @param string $addedDate
* @param $videoId
* @param $episodeId
* @param $videoId
* @param $episodeId
* @param int $imDbId
* @param int $aniDbId
* @param string $tags
+5 -5
View File
@@ -89,11 +89,11 @@ class ReleaseFile extends Model
* Add new files for a release ID.
*
*
* @param $id
* @param $name
* @param $size
* @param $createdTime
* @param $hasPassword
* @param $id
* @param $name
* @param $size
* @param $createdTime
* @param $hasPassword
* @param string $hash
* @param string $crc
* @return int
+9 -9
View File
@@ -446,9 +446,9 @@ class User extends Authenticatable
}
/**
* @param $start
* @param $offset
* @param $orderBy
* @param $start
* @param $offset
* @param $orderBy
* @param string $userName
* @param string $email
* @param string $host
@@ -626,7 +626,7 @@ class User extends Authenticatable
}
/**
* @param $id
* @param $id
* @param int $num
*/
public static function incrementGrabs(int $id, $num = 1): void
@@ -695,11 +695,11 @@ class User extends Authenticatable
/**
* Register a new user.
*
* @param $userName
* @param $password
* @param $email
* @param $host
* @param $notes
* @param $userName
* @param $password
* @param $email
* @param $host
* @param $notes
* @param int $invites
* @param string $inviteCode
* @param bool $forceInviteMode
+2 -2
View File
@@ -39,8 +39,8 @@ class UserMovie extends Model
protected $dateFormat = false;
/**
* @param $uid
* @param $imdbid
* @param $uid
* @param $imdbid
* @param array $catID
* @return int|\Illuminate\Database\Eloquent\Builder
*/
+2 -2
View File
@@ -139,8 +139,8 @@ class UserSerie extends Model
/**
* Update a TV show category ID for a user's "my show" TV show.
*
* @param $users_id
* @param $videos_id
* @param $users_id
* @param $videos_id
* @param array $catID List of category ID's.
*/
public static function updateShow($users_id, $videos_id, array $catID = []): void
+1 -1
View File
@@ -141,7 +141,7 @@ class Video extends Model
/**
* Retrieves and returns a list of shows with eligible releases.
*
* @param $uid
* @param $uid
* @param string $letter
* @param string $showname
* @return array
+57
View File
@@ -0,0 +1,57 @@
<?php
return [
'dsn' => env('SENTRY_LARAVEL_DSN', env('SENTRY_DSN')),
// capture release as git sha
// 'release' => trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD')),
// When left empty or `null` the Laravel environment will be used
'environment' => env('SENTRY_ENVIRONMENT'),
'breadcrumbs' => [
// Capture Laravel logs in breadcrumbs
'logs' => true,
// Capture SQL queries in breadcrumbs
'sql_queries' => true,
// Capture bindings on SQL queries logged in breadcrumbs
'sql_bindings' => true,
// Capture queue job information in breadcrumbs
'queue_info' => true,
// Capture command information in breadcrumbs
'command_info' => true,
],
'tracing' => [
// Trace queue jobs as their own transactions
'queue_job_transactions' => env('SENTRY_TRACE_QUEUE_ENABLED', false),
// Capture queue jobs as spans when executed on the sync driver
'queue_jobs' => true,
// Capture SQL queries as spans
'sql_queries' => true,
// Try to find out where the SQL query originated from and add it to the query spans
'sql_origin' => true,
// Capture views as spans
'views' => true,
// Indicates if the tracing integrations supplied by Sentry should be loaded
'default_integrations' => true,
],
// @see: https://docs.sentry.io/platforms/php/configuration/options/#send-default-pii
'send_default_pii' => false,
'traces_sample_rate' => (float) (env('SENTRY_TRACES_SAMPLE_RATE', 0.0)),
'controllers_base_namespace' => env('SENTRY_CONTROLLERS_BASE_NAMESPACE', 'App\\Http\\Controllers'),
];
+1 -1
View File
@@ -408,7 +408,7 @@ function errorOnSQL()
/**
* @param \PDOStatement $ps
* @param $table
* @param $table
* @return bool|int|string
*/
function getTableRowCount(\PDOStatement $ps, $table)