@@ -17,7 +17,7 @@ |
||
17 | 17 | */ |
18 | 18 | protected function getCache() |
19 | 19 | { |
20 | - return Injector::inst()->get(CacheInterface::class . '.CurlLinkChecker'); |
|
20 | + return Injector::inst()->get(CacheInterface::class.'.CurlLinkChecker'); |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | /** |
@@ -19,7 +19,7 @@ |
||
19 | 19 | |
20 | 20 | public function getTitle() |
21 | 21 | { |
22 | - return _t(__CLASS__ . '.TITLE', 'Checking for external broken links'); |
|
22 | + return _t(__CLASS__.'.TITLE', 'Checking for external broken links'); |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | public function getJobType() |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | */ |
25 | 25 | public function title() |
26 | 26 | { |
27 | - return _t(__CLASS__ . '.EXTERNALBROKENLINKS', "External broken links report"); |
|
27 | + return _t(__CLASS__.'.EXTERNALBROKENLINKS', "External broken links report"); |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | public function columns() |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | "Created" => "Checked", |
34 | 34 | 'Link' => array( |
35 | 35 | 'title' => 'External Link', |
36 | - 'formatting' => function ($value, $item) { |
|
36 | + 'formatting' => function($value, $item) { |
|
37 | 37 | return sprintf( |
38 | 38 | '<a target="_blank" href="%s">%s</a>', |
39 | 39 | Convert::raw2att($item->Link), |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | 'HTTPCodeDescription' => 'HTTP Error Code', |
45 | 45 | "Title" => array( |
46 | 46 | "title" => 'Page link is on', |
47 | - 'formatting' => function ($value, $item) { |
|
47 | + 'formatting' => function($value, $item) { |
|
48 | 48 | $page = $item->Page(); |
49 | 49 | return sprintf( |
50 | 50 | '<a href="%s">%s</a>', |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | 'runReport', |
90 | 90 | sprintf( |
91 | 91 | $button, |
92 | - _t(__CLASS__ . '.RUNREPORT', 'Create new report') |
|
92 | + _t(__CLASS__.'.RUNREPORT', 'Create new report') |
|
93 | 93 | ) |
94 | 94 | ); |
95 | 95 | $fields->push($runReportButton); |
@@ -71,13 +71,13 @@ |
||
71 | 71 | $code = $this->HTTPCode; |
72 | 72 | if (empty($code)) { |
73 | 73 | // Assume that $code = 0 means there was no response |
74 | - $description = _t(__CLASS__ . '.NOTAVAILABLE', 'Server Not Available'); |
|
74 | + $description = _t(__CLASS__.'.NOTAVAILABLE', 'Server Not Available'); |
|
75 | 75 | } elseif (($descriptions = Config::inst()->get(HTTPResponse::class, 'status_codes')) |
76 | 76 | && isset($descriptions[$code]) |
77 | 77 | ) { |
78 | 78 | $description = $descriptions[$code]; |
79 | 79 | } else { |
80 | - $description = _t(__CLASS__ . '.UNKNOWNRESPONSE', 'Unknown Response Code'); |
|
80 | + $description = _t(__CLASS__.'.UNKNOWNRESPONSE', 'Unknown Response Code'); |
|
81 | 81 | } |
82 | 82 | return sprintf("%d (%s)", $code, $description); |
83 | 83 | } |