Passed
Pull Request — master (#20)
by Nic
12:06
created
src/Element/ElementJobListings.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -82,24 +82,24 @@  discard block
 block discarded – undo
82 82
      */
83 83
     public function getCMSFields()
84 84
     {
85
-        $this->beforeUpdateCMSFields(function (FieldList $fields) {
85
+        $this->beforeUpdateCMSFields(function(FieldList $fields) {
86 86
             $fields->dataFieldByName('Content')
87 87
                 ->setRows(8);
88 88
 
89 89
             $fields->dataFieldByName('Limit')
90
-                ->setTitle(_t(__CLASS__ . 'LimitLabel', 'Posts to show'));
90
+                ->setTitle(_t(__CLASS__.'LimitLabel', 'Posts to show'));
91 91
 
92 92
             $fields->insertBefore(
93 93
                 'Limit',
94 94
                 $fields->dataFieldByName('JobCollectionID')
95
-                    ->setTitle(_t(__CLASS__ . 'JobCollectionLabel', 'Jobs Listing Page'))
95
+                    ->setTitle(_t(__CLASS__.'JobCollectionLabel', 'Jobs Listing Page'))
96 96
                     ->setEmptyString('')
97 97
             );
98 98
 
99 99
             $fields->insertAfter(
100 100
                 'BlogID',
101 101
                 DropdownField::create('CategoryID', _t(
102
-                    __CLASS__ . 'CategoryLabel',
102
+                    __CLASS__.'CategoryLabel',
103 103
                     'Category'
104 104
                 ))
105 105
                     ->setHasEmptyDefault(true)
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     {
147 147
         $count = $this->getPostsList()->count();
148 148
         $label = _t(
149
-            Job::class . '.PLURALS',
149
+            Job::class.'.PLURALS',
150 150
             'A Job Posting|{count} Job Postings',
151 151
             ['count' => $count]
152 152
         );
@@ -168,6 +168,6 @@  discard block
 block discarded – undo
168 168
      */
169 169
     public function getType()
170 170
     {
171
-        return _t(__CLASS__ . '.BlockType', 'Job Posts');
171
+        return _t(__CLASS__.'.BlockType', 'Job Posts');
172 172
     }
173 173
 }
Please login to merge, or discard this patch.