Passed
Push — master ( 673916...a119ad )
by
unknown
02:00
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
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function title()
27 27
     {
28
-        return _t(__CLASS__ . '.EXTERNALBROKENLINKS', "External broken links report");
28
+        return _t(__CLASS__.'.EXTERNALBROKENLINKS', "External broken links report");
29 29
     }
30 30
 
31 31
     public function columns()
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
             "Created" => "Checked",
35 35
             'Link' => array(
36 36
                 'title' => 'External Link',
37
-                'formatting' => function ($value, $item) {
37
+                'formatting' => function($value, $item) {
38 38
                     return sprintf(
39 39
                         '<a target="_blank" href="%s">%s</a>',
40 40
                         Convert::raw2att($item->Link),
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
             'HTTPCodeDescription' => 'HTTP Error Code',
46 46
             "Title" => array(
47 47
                 "title" => 'Page link is on',
48
-                'formatting' => function ($value, $item) {
48
+                'formatting' => function($value, $item) {
49 49
                     $page = $item->Page();
50 50
                     return sprintf(
51 51
                         '<a href="%s">%s</a>',
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
                 'type' => 'button',
93 93
                 'class' => 'btn btn-primary'
94 94
             ],
95
-            _t(__CLASS__ . '.RUNREPORT', 'Create new report')
95
+            _t(__CLASS__.'.RUNREPORT', 'Create new report')
96 96
         );
97 97
         $runReportButton = LiteralField::create('runReport', $button);
98 98
         $fields->push($runReportButton);
Please login to merge, or discard this patch.
src/Model/BrokenExternalLink.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,10 +74,9 @@
 block discarded – undo
74 74
             $response = HTTPResponse::create('', $code);
75 75
             // Assume that $code = 0 means there was no response
76 76
             $description = $code ?
77
-                $response->getStatusDescription() :
78
-                _t(__CLASS__ . '.NOTAVAILABLE', 'Server Not Available');
77
+                $response->getStatusDescription() : _t(__CLASS__.'.NOTAVAILABLE', 'Server Not Available');
79 78
         } catch (InvalidArgumentException $e) {
80
-            $description = _t(__CLASS__ . '.UNKNOWNRESPONSE', 'Unknown Response Code');
79
+            $description = _t(__CLASS__.'.UNKNOWNRESPONSE', 'Unknown Response Code');
81 80
         }
82 81
 
83 82
         return sprintf("%d (%s)", $code, $description);
Please login to merge, or discard this patch.
src/Tasks/CheckExternalLinksTask.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 class CheckExternalLinksTask extends BuildTask
19 19
 {
20 20
     private static $dependencies = [
21
-        'LinkChecker' => '%$' . LinkChecker::class
21
+        'LinkChecker' => '%$'.LinkChecker::class
22 22
     ];
23 23
 
24 24
     private static $segment = 'CheckExternalLinksTask';
Please login to merge, or discard this patch.