Passed
Pull Request — master (#27)
by
unknown
02:31
created
src/Tasks/CurlLinkChecker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Jobs/CheckExternalLinksJob.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
src/Reports/BrokenExternalLinksReport.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Model/BrokenExternalLink.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,13 +71,13 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.