@@ -39,7 +39,7 @@ |
||
39 | 39 | */ |
40 | 40 | protected function filteredClassNames($classNames, $explicitClassNames) |
41 | 41 | { |
42 | - $classNames = array_filter($classNames, function ($value) use ($explicitClassNames) { |
|
42 | + $classNames = array_filter($classNames, function($value) use ($explicitClassNames) { |
|
43 | 43 | return in_array($value, $explicitClassNames); |
44 | 44 | }); |
45 | 45 | return $classNames; |
@@ -84,8 +84,8 @@ discard block |
||
84 | 84 | $forTemplate->Fields->push($pageTypes); |
85 | 85 | $forTemplate->Fields->push($addAction); |
86 | 86 | |
87 | - Requirements::css(LUMBERJACK_DIR . "/css/lumberjack.css"); |
|
88 | - Requirements::javascript(LUMBERJACK_DIR . "/javascript/GridField.js"); |
|
87 | + Requirements::css(LUMBERJACK_DIR."/css/lumberjack.css"); |
|
88 | + Requirements::javascript(LUMBERJACK_DIR."/javascript/GridField.js"); |
|
89 | 89 | |
90 | 90 | return array($this->targetFragment => $forTemplate->renderWith("GridFieldSiteTreeAddNewButton")); |
91 | 91 | } |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | // Get the current record |
136 | 136 | $record = SiteTree::get()->byId($controller->currentPageID()); |
137 | 137 | if ($record) { |
138 | - $response->redirect(Director::absoluteBaseURL() . $record->CMSEditLink(), 301); |
|
138 | + $response->redirect(Director::absoluteBaseURL().$record->CMSEditLink(), 301); |
|
139 | 139 | } |
140 | 140 | return $response; |
141 | 141 | } |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | if ($record->hasMethod("isPublished")) { |
37 | 37 | $modifiedLabel = ""; |
38 | 38 | if ($record->isModifiedOnStage) { |
39 | - $modifiedLabel = "<span class='modified'>" . _t("GridFieldSiteTreeState.Modified", "Modified") . "</span>"; |
|
39 | + $modifiedLabel = "<span class='modified'>"._t("GridFieldSiteTreeState.Modified", "Modified")."</span>"; |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | $published = $record->isPublished(); |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | array( |
58 | 58 | "date" => $record->dbObject("LastEdited")->Nice() |
59 | 59 | ) |
60 | - ) . $modifiedLabel; |
|
60 | + ).$modifiedLabel; |
|
61 | 61 | } |
62 | 62 | } |
63 | 63 | } |