Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
31 changes: 10 additions & 21 deletions autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ public static function load(string $className)
}

return false;

}//end load()
}


/**
Expand Down Expand Up @@ -183,8 +182,7 @@ public static function loadFile(string $path)
self::$loadedClasses[$path] = $className;
self::$loadedFiles[$className] = $path;
return self::$loadedClasses[$path];

}//end loadFile()
}


/**
Expand Down Expand Up @@ -244,8 +242,7 @@ static function ($remaining, $current) {
}

return $className;

}//end determineLoadedClass()
}


/**
Expand All @@ -259,8 +256,7 @@ static function ($remaining, $current) {
public static function addSearchPath(string $path, string $nsPrefix = '')
{
self::$searchPaths[$path] = rtrim(trim((string) $nsPrefix), '\\');

}//end addSearchPath()
}


/**
Expand All @@ -271,8 +267,7 @@ public static function addSearchPath(string $path, string $nsPrefix = '')
public static function getSearchPaths()
{
return self::$searchPaths;

}//end getSearchPaths()
}


/**
Expand All @@ -290,8 +285,7 @@ public static function getLoadedClassName(string $path)
}

return self::$loadedClasses[$path];

}//end getLoadedClassName()
}


/**
Expand All @@ -309,8 +303,7 @@ public static function getLoadedFileName(string $className)
}

return self::$loadedFiles[$className];

}//end getLoadedFileName()
}


/**
Expand All @@ -321,8 +314,7 @@ public static function getLoadedFileName(string $className)
public static function getLoadedClasses()
{
return self::$loadedClasses;

}//end getLoadedClasses()
}


/**
Expand All @@ -333,11 +325,8 @@ public static function getLoadedClasses()
public static function getLoadedFiles()
{
return self::$loadedFiles;

}//end getLoadedFiles()


}//end class
}
}

// Register the autoloader before any existing autoloaders to ensure
// it gets a chance to hear about every autoload request, and record
Expand Down
13 changes: 10 additions & 3 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<!-- Include some sniffs from other standards that don't conflict with PEAR -->
<rule ref="Squiz.Arrays.ArrayBracketSpacing"/>
<rule ref="Squiz.Arrays.ArrayDeclaration"/>
<rule ref="Squiz.Commenting.ClosingDeclarationComment"/>
<rule ref="PSR12.Classes.ClosingBrace"/>
<rule ref="Squiz.ControlStructures.ControlSignature"/>
<rule ref="PSR2.ControlStructures.ElseIfDeclaration"/>
<rule ref="Squiz.Commenting.BlockComment"/>
Expand All @@ -64,8 +64,15 @@
<rule ref="Squiz.Strings.DoubleQuoteUsage.NotRequired"/>
<rule ref="Generic.Strings.UnnecessaryHeredoc"/>
<rule ref="Squiz.WhiteSpace.ControlStructureSpacing"/>
<rule ref="Squiz.WhiteSpace.FunctionClosingBraceSpace"/>
<rule ref="Squiz.WhiteSpace.FunctionSpacing"/>
<rule ref="Squiz.WhiteSpace.FunctionClosingBraceSpace">
<exclude name="Squiz.WhiteSpace.FunctionClosingBraceSpace.SpacingBeforeClose"/>
</rule>
<rule ref="PSR2.Methods.FunctionClosingBrace"/>
<rule ref="Squiz.WhiteSpace.FunctionSpacing">
<properties>
<property name="spacingAfterLast" value="0"/>
</properties>
</rule>
<rule ref="Squiz.WhiteSpace.MemberVarSpacing"/>
<rule ref="PSR12.Operators.OperatorSpacing"/>
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"/>
Expand Down
3 changes: 1 addition & 2 deletions requirements.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,4 @@ function checkRequirements()
fwrite(STDERR, sprintf($error, $required, $missing));
exit($exitCode);
}

}//end checkRequirements()
}
16 changes: 5 additions & 11 deletions scripts/BuildRequirementsCheckMatrix.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ public function getBuilds()
);

return $builds;

}//end getBuilds()
}


/**
Expand Down Expand Up @@ -105,8 +104,7 @@ private function getValidBuilds()
}

return $builds;

}//end getValidBuilds()
}


/**
Expand Down Expand Up @@ -137,8 +135,7 @@ private function getInvalidPHPBuilds()
}

return $builds;

}//end getInvalidPHPBuilds()
}


/**
Expand Down Expand Up @@ -181,8 +178,5 @@ private function getMissingExtensionsBuilds()
}//end foreach

return $builds;

}//end getMissingExtensionsBuilds()


}//end class
}
}
3 changes: 1 addition & 2 deletions scripts/build-phar.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ function stripWhitespaceAndComments(string $fullpath, Config $config)
}

return $stripped;

}//end stripWhitespaceAndComments()
}


Timing::startTiming();
Expand Down
Loading
Loading