Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Commit 8e975cf

Browse files
committed
spacing fixes
1 parent b5db98d commit 8e975cf

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

core/lib/Mustache/Loader/PatternLoader.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ protected function getFileName($name)
144144

145145
$fileName = "";
146146
$dirSep = DIRECTORY_SEPARATOR;
147+
147148
// test to see what kind of path was supplied
148149
$posDash = strpos($name,"-");
149150
$posSlash = strpos($name,$dirSep);

core/lib/PatternLab/Builder.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -591,15 +591,15 @@ protected function gatherPatternInfo() {
591591
* Mustache patterns
592592
*************************************/
593593

594-
$patternFull = $object->getFilename(); // 00-colors.mustache
595-
$pattern = str_replace(".mustache","",$patternFull); // 00-colors
594+
$patternFull = $object->getFilename(); // 00-colors.mustache
595+
$pattern = str_replace(".mustache","",$patternFull); // 00-colors
596596

597597
if ($patternSubtypeSet) {
598598
$patternPath = $patternType.$dirSep.$patternSubtype.$dirSep.$pattern; // 00-atoms/01-global/00-colors
599-
$patternPathDash = str_replace($dirSep,"-",$patternPath); // 00-atoms-01-global-00-colors (file path)
599+
$patternPathDash = str_replace($dirSep,"-",$patternPath); // 00-atoms-01-global-00-colors (file path)
600600
} else {
601-
$patternPath = $patternType.$dirSep.$pattern; // 00-atoms/00-colors
602-
$patternPathDash = str_replace($dirSep,"-",$patternPath); // 00-atoms-00-colors (file path)
601+
$patternPath = $patternType.$dirSep.$pattern; // 00-atoms/00-colors
602+
$patternPathDash = str_replace($dirSep,"-",$patternPath); // 00-atoms-00-colors (file path)
603603
}
604604

605605
// track to see if this pattern should get rendered
@@ -671,11 +671,11 @@ protected function gatherPatternInfo() {
671671

672672
// add to patternPaths
673673
if ($patternSubtypeSet) {
674-
$patternPath = $patternType.$dirSep.$patternSubtype.$dirSep.$pattern; // 00-atoms/01-global/00-colors
675-
$patternPathDash = str_replace($dirSep,"-",$patternPath); // 00-atoms-01-global-00-colors (file path)
674+
$patternPath = $patternType.$dirSep.$patternSubtype.$dirSep.$pattern; // 00-atoms/01-global/00-colors
675+
$patternPathDash = str_replace($dirSep,"-",$patternPath); // 00-atoms-01-global-00-colors (file path)
676676
} else {
677-
$patternPath = $patternType.$dirSep.$pattern; // 00-atoms/00-colors
678-
$patternPathDash = str_replace($dirSep,"-",$patternPath); // 00-atoms-00-colors (file path)
677+
$patternPath = $patternType.$dirSep.$pattern; // 00-atoms/00-colors
678+
$patternPathDash = str_replace($dirSep,"-",$patternPath); // 00-atoms-00-colors (file path)
679679
}
680680

681681
// add all patterns to patternPaths

0 commit comments

Comments
 (0)