Passed
Push — master ( 4e09b0...c54da7 )
by Jason
02:26
created
src/Tasks/LocationPublishTask.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
             $class = 'Location';
56 56
         }
57 57
         $ct = 0;
58
-        $publish = function ($location) use (&$ct) {
58
+        $publish = function($location) use (&$ct) {
59 59
             if (!$location->isPublished()) {
60 60
                 $title = $location->Title;
61 61
                 $location->writeToStage('Stage');
Please login to merge, or discard this patch.
src/Tasks/LocationCategoriesTask.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 
42 42
         $categories = [];
43 43
 
44
-        $convert = function (DataObject $location) use (&$categories) {
44
+        $convert = function(DataObject $location) use (&$categories) {
45 45
             /** @var Location $location */
46 46
             // skip if no category
47 47
             if ($location->CategoryID > 0) {
Please login to merge, or discard this patch.
src/Model/LocationCategory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
      */
64 64
     public function getCMSFields()
65 65
     {
66
-        $this->beforeUpdateCMSFields(function (FieldList $fields) {
66
+        $this->beforeUpdateCMSFields(function(FieldList $fields) {
67 67
             $fields->removeByName([
68 68
                 'Locations',
69 69
                 'LocationSet',
Please login to merge, or discard this patch.
src/Tasks/EmailAddressTask.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         Config::modify()->set('DataObject', 'validation_enabled', false);
32 32
 
33 33
         $ct = 0;
34
-        $updateEmail = function ($location) use (&$ct) {
34
+        $updateEmail = function($location) use (&$ct) {
35 35
             if (!$location->Email && $location->EmailAddress) {
36 36
                 $location->Email = $location->EmailAddress;
37 37
                 $location->write();
@@ -42,6 +42,6 @@  discard block
 block discarded – undo
42 42
         Location::get()->each($updateEmail);
43 43
         Config::modify()->set('DataObject', 'validation_enabled', true);
44 44
 
45
-        echo '<p>' . $ct . ' Locations updated</p>';
45
+        echo '<p>'.$ct.' Locations updated</p>';
46 46
     }
47 47
 }
Please login to merge, or discard this patch.
src/Page/Locator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      */
87 87
     public function getCMSFields()
88 88
     {
89
-        $this->beforeUpdateCMSFields(function ($fields) {
89
+        $this->beforeUpdateCMSFields(function($fields) {
90 90
             // Settings
91 91
             $fields->addFieldsToTab('Root.Settings', [
92 92
                 HeaderField::create('DisplayOptions', 'Display Options', 3),
@@ -291,6 +291,6 @@  discard block
 block discarded – undo
291 291
      */
292 292
     public function getLumberjackTitle()
293 293
     {
294
-        return _t(__CLASS__ . '.LumberjackTitle', 'Locations');
294
+        return _t(__CLASS__.'.LumberjackTitle', 'Locations');
295 295
     }
296 296
 }
Please login to merge, or discard this patch.
src/Page/LocationPage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
      */
200 200
     public function getCMSFields()
201 201
     {
202
-        $this->beforeUpdateCMSFields(function (FieldList $fields) {
202
+        $this->beforeUpdateCMSFields(function(FieldList $fields) {
203 203
             $fields->addFieldsToTab(
204 204
                 'Root.Main',
205 205
                 [
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
         $url = $this->Website;
304 304
 
305 305
         if ($url && !preg_match('/^(http|https):\/\//', $url)) {
306
-            $url = 'http://' . $url;
306
+            $url = 'http://'.$url;
307 307
         }
308 308
 
309 309
         $this->extend('updateWebsiteURL', $url);
Please login to merge, or discard this patch.