diff --git a/app/config/cms.php b/app/config/cms.php index 18634e48b..4c63bcdb0 100644 --- a/app/config/cms.php +++ b/app/config/cms.php @@ -114,10 +114,10 @@ return array( /* |-------------------------------------------------------------------------- - | Determines if the asset minifcation is enabled. + | Determines if the asset minification is enabled. |-------------------------------------------------------------------------- | - | If the minifcation is enabled, combined assets are compressed (minified). + | If the minification is enabled, combined assets are compressed (minified). | It is recommended to disable the minification during the development, and | enable it in the production mode. | diff --git a/app/start/global.php b/app/start/global.php index bac8c1c78..a5b2c6aff 100644 --- a/app/start/global.php +++ b/app/start/global.php @@ -58,7 +58,7 @@ App::error(function(Exception $exception, $code) | | The "down" Artisan command gives you the ability to put an application | into maintenance mode. Here, you will define what is displayed back -| to the user if maintenace mode is in effect for this application. +| to the user if maintenance mode is in effect for this application. | */ diff --git a/modules/backend/behaviors/FormController.php b/modules/backend/behaviors/FormController.php index 22c6f1da3..4e23e276a 100644 --- a/modules/backend/behaviors/FormController.php +++ b/modules/backend/behaviors/FormController.php @@ -513,7 +513,7 @@ class FormController extends ControllerBehavior /** * Extend the query used for finding the form model. Extra conditions - * can be appied to the query, for example, $query->withTrashed(); + * can be applied to the query, for example, $query->withTrashed(); * @param October\Rain\Database\Builder $query * @return void */ diff --git a/modules/backend/behaviors/ListController.php b/modules/backend/behaviors/ListController.php index ef93ddf20..fa90decb6 100644 --- a/modules/backend/behaviors/ListController.php +++ b/modules/backend/behaviors/ListController.php @@ -19,7 +19,7 @@ class ListController extends ControllerBehavior /** * @var array List definitions, keys for alias and value for configuration. */ - private $listDefinintions; + private $listDefinitions; /** * @var string The primary list alias to use. Default: list @@ -61,18 +61,18 @@ class ListController extends ControllerBehavior * Extract list definitions */ if (is_array($controller->listConfig)) { - $this->listDefinintions = $controller->listConfig; - $this->primaryDefinition = key($this->listDefinintions); + $this->listDefinitions = $controller->listConfig; + $this->primaryDefinition = key($this->listDefinitions); } else { - $this->listDefinintions = ['list' => $controller->listConfig]; + $this->listDefinitions = ['list' => $controller->listConfig]; $this->primaryDefinition = 'list'; } /* * Build configuration */ - $this->setConfig($this->listDefinintions[$this->primaryDefinition], $this->requiredConfig); + $this->setConfig($this->listDefinitions[$this->primaryDefinition], $this->requiredConfig); } /** @@ -81,7 +81,7 @@ class ListController extends ControllerBehavior */ public function makeLists() { - foreach ($this->listDefinintions as $definition => $config) { + foreach ($this->listDefinitions as $definition => $config) { $this->listWidgets[$definition] = $this->makeList($definition); } @@ -94,10 +94,10 @@ class ListController extends ControllerBehavior */ public function makeList($definition = null) { - if (!$definition || !isset($this->listDefinintions[$definition])) + if (!$definition || !isset($this->listDefinitions[$definition])) $definition = $this->primaryDefinition; - $listConfig = $this->makeConfig($this->listDefinintions[$definition], $this->requiredConfig); + $listConfig = $this->makeConfig($this->listDefinitions[$definition], $this->requiredConfig); /* * Create the model @@ -197,7 +197,7 @@ class ListController extends ControllerBehavior if (!count($this->listWidgets)) throw new SystemException(Lang::get('backend::lang.list.behavior_not_ready')); - if (!$definition || !isset($this->listDefinintions[$definition])) + if (!$definition || !isset($this->listDefinitions[$definition])) $definition = $this->primaryDefinition; $collection = []; diff --git a/modules/backend/behaviors/RelationController.php b/modules/backend/behaviors/RelationController.php index e36e2c8ad..063f832d5 100644 --- a/modules/backend/behaviors/RelationController.php +++ b/modules/backend/behaviors/RelationController.php @@ -103,7 +103,7 @@ class RelationController extends ControllerBehavior protected $manageMode; /** - * @var int Primary id of an exisiting relation record. + * @var int Primary id of an existing relation record. */ protected $manageId; @@ -353,7 +353,7 @@ class RelationController extends ControllerBehavior } /** - * Returns the exisiting record IDs for the relation. + * Returns the existing record IDs for the relation. */ private function findExistingRelationIds($checkIds = null) { @@ -391,7 +391,7 @@ class RelationController extends ControllerBehavior if (($checkedIds = post('checked')) && is_array($checkedIds)) { /* - * Remove exisiting relations from the array + * Remove existing relations from the array */ $existingIds = $this->findExistingRelationIds($checkedIds); $checkedIds = array_diff($checkedIds, $existingIds); @@ -451,7 +451,7 @@ class RelationController extends ControllerBehavior $saveData = $this->pivotWidget->getSaveData(); /* - * Check for exisiting relation + * Check for existing relation */ $existing = $this->relationObject->where('id', $foreignId)->count(); @@ -569,7 +569,7 @@ class RelationController extends ControllerBehavior } /* - * Exclude exisiting relationships + * Exclude existing relationships */ if ($this->manageMode == 'pivot' || $this->manageMode == 'list') { $widget->bindEvent('list.extendQueryBefore', function($host, $query) { diff --git a/modules/backend/classes/Controller.php b/modules/backend/classes/Controller.php index 8e3ed26a6..77d2aaecd 100644 --- a/modules/backend/classes/Controller.php +++ b/modules/backend/classes/Controller.php @@ -213,7 +213,7 @@ class Controller extends Extendable /** * Invokes the current controller action without rendering a view, - * used by AJAX handler who may rely on the logic inside the aciton. + * used by AJAX handler who may rely on the logic inside the action. */ public function pageAction() { diff --git a/modules/backend/classes/ControllerBehavior.php b/modules/backend/classes/ControllerBehavior.php index dfb9b3709..6d0fc4ed3 100644 --- a/modules/backend/classes/ControllerBehavior.php +++ b/modules/backend/classes/ControllerBehavior.php @@ -116,7 +116,7 @@ class ControllerBehavior extends ExtensionBase * These methods could be defined in a controller to override a behavior default action. * Such methods should be defined as public, to allow the behavior object to access it. * By default public methods of a controller are considered as actions. - * To prevent this occurance, methods should be hidden by using this method. + * To prevent this occurrence, methods should be hidden by using this method. * @param mixed $methodName Specifies a method name. */ protected function hideAction($methodName) diff --git a/modules/backend/classes/FormField.php b/modules/backend/classes/FormField.php index 447728c9d..f8a452307 100644 --- a/modules/backend/classes/FormField.php +++ b/modules/backend/classes/FormField.php @@ -140,7 +140,7 @@ class FormField /** * Sets a side of the field on a form. - * @param $value Specifies a side. Possible values: left, right, full + * @param string $value Specifies a side. Possible values: left, right, full */ public function span($value = 'full') { @@ -150,7 +150,7 @@ class FormField /** * Sets a side of the field on a form. - * @param $value Specifies a size. Possible values: tiny, small, large, huge, giant + * @param string $value Specifies a size. Possible values: tiny, small, large, huge, giant */ public function size($value = 'large') { @@ -180,7 +180,7 @@ class FormField * Adds a text comment above or below the field. * @param string $text Specifies a comment text. * @param string $position Specifies a comment position. - * @param bool $commentHtml Set to true if you use HTML formatting in the comment + * @param bool $isHtml Set to true if you use HTML formatting in the comment * Supported values are 'below' and 'above' */ public function comment($text, $position = 'below', $isHtml = false) diff --git a/modules/backend/classes/WidgetBase.php b/modules/backend/classes/WidgetBase.php index 336497be5..2267cb452 100644 --- a/modules/backend/classes/WidgetBase.php +++ b/modules/backend/classes/WidgetBase.php @@ -43,7 +43,7 @@ abstract class WidgetBase /** * Constructor * @param Backend\Classes\Controller $controller - * @param array $configuration Proactive configuration definintion. + * @param array $configuration Proactive configuration definition. * @return void */ public function __construct($controller, $configuration = []) @@ -200,7 +200,7 @@ abstract class WidgetBase } /** - * Retreieves a widget related key/value pair from session data. + * Retrieves a widget related key/value pair from session data. * @param string $key Unique key for the data store. * @param string $default A default value to use when value is not found. * @return string diff --git a/modules/backend/classes/WidgetManager.php b/modules/backend/classes/WidgetManager.php index 20826ff11..832455d23 100644 --- a/modules/backend/classes/WidgetManager.php +++ b/modules/backend/classes/WidgetManager.php @@ -74,7 +74,7 @@ class WidgetManager /** * Makes a widget object with configuration set. - * @param $className A widget class name. + * @param string $className A widget class name. * @param Controller $controller The Backend controller that spawned this widget. * @param array $configuration Configuration values. * @return WidgetBase The widget object. @@ -92,7 +92,7 @@ class WidgetManager */ if (!class_exists($className)) { throw new SystemException(Lang::get('backend::lang.widget.not_registered', [ - 'name' => $name + 'name' => $className ])); } diff --git a/modules/cms/classes/CmsCompoundObject.php b/modules/cms/classes/CmsCompoundObject.php index bb4190a4b..306f372e5 100644 --- a/modules/cms/classes/CmsCompoundObject.php +++ b/modules/cms/classes/CmsCompoundObject.php @@ -49,6 +49,7 @@ class CmsCompoundObject extends CmsObject /** * Loads the object from a file. + * @param \Cms\Classes\Theme $theme Specifies the theme the object belongs to. * @param string $fileName Specifies the file name, with the extension. * The file name can contain only alphanumeric symbols, dashes and dots. * @return boolean Returns true if the object was successfully loaded. Otherwise returns false. @@ -152,7 +153,7 @@ class CmsCompoundObject extends CmsObject } /** - * Sets the PHP code content stirng. + * Sets the PHP code content string. * @param string $value Specifies the PHP code string. * @return \Cms\Classes\CmsCompoundObject Returns the object instance. */ diff --git a/modules/cms/classes/CmsException.php b/modules/cms/classes/CmsException.php index 6593a7da0..603e20e1f 100644 --- a/modules/cms/classes/CmsException.php +++ b/modules/cms/classes/CmsException.php @@ -57,9 +57,9 @@ class CmsException extends ApplicationException } /** - * Checks some conditions to confirm error has actually occured + * Checks some conditions to confirm error has actually occurred * due to the CMS template code, not some external code. If the error - * has occured in external code, the function will return false. Otherwise return + * has occurred in external code, the function will return false. Otherwise return * true and modify the exception by overriding it's content, line and message values * to be accurate against a CMS object properties. * @param \Exception $exception The exception to modify. @@ -152,7 +152,7 @@ class CmsException extends ApplicationException return false; } /* - * Errors occuring the PHP code base class (Cms\Classes\CodeBase) + * Errors occurring the PHP code base class (Cms\Classes\CodeBase) */ else { $trace = $exception->getTrace(); diff --git a/modules/cms/classes/CmsObject.php b/modules/cms/classes/CmsObject.php index 171aa7191..80113eedf 100644 --- a/modules/cms/classes/CmsObject.php +++ b/modules/cms/classes/CmsObject.php @@ -211,7 +211,7 @@ class CmsObject /** * Helper for {{ page.id }} or {{ layout.id }} twig vars - * Returns a unqiue string for this object. + * Returns a unique string for this object. * @return string */ public function getId() diff --git a/modules/cms/classes/CombineAssets.php b/modules/cms/classes/CombineAssets.php index f1a948a0b..715fc1044 100644 --- a/modules/cms/classes/CombineAssets.php +++ b/modules/cms/classes/CombineAssets.php @@ -89,7 +89,7 @@ class CombineAssets $this->registerFilter('less', new \Assetic\Filter\LessphpFilter); /* - * Minifcation filters + * Minification filters */ if ($this->useMinify) { $this->registerFilter('js', new \Assetic\Filter\JSMinFilter); @@ -114,7 +114,7 @@ class CombineAssets * Combines asset file references of a single type to produce * a URL reference to the combined contents. * @var array List of asset files. - * @var string File extension, used for asthetic purposes only. + * @var string File extension, used for aesthetic purposes only. * @return string URL to contents. */ protected function prepareRequest(array $assets, $path = null) @@ -186,7 +186,7 @@ class CombineAssets /** * Returns the URL used for accessing the combined files. - * @param string $outputFileName A custom file name to use. + * @param string $outputFilename A custom file name to use. * @return string */ protected function getCombinedUrl($outputFilename = 'undefined.css') diff --git a/modules/cms/classes/Controller.php b/modules/cms/classes/Controller.php index b201ca361..72e50376b 100644 --- a/modules/cms/classes/Controller.php +++ b/modules/cms/classes/Controller.php @@ -166,8 +166,8 @@ class Controller extends BaseController /* * Execute page lifecycle */ - if ($cycleReponse = $this->execPageCycle()) - return $cycleReponse; + if ($cycleResponse = $this->execPageCycle()) + return $cycleResponse; /* * Render the page @@ -566,7 +566,7 @@ class Controller extends BaseController * * @param mixed $name Specifies the Cms Page file name. * @param array $parameters Route parameters to consider in the URL. - * @param bool $routePersistence By default the exisiting routing parameters will be included + * @param bool $routePersistence By default the existing routing parameters will be included * when creating the URL, set to false to disable this feature. * @return string */ diff --git a/modules/cms/classes/FileHelper.php b/modules/cms/classes/FileHelper.php index a76ca1148..7edd70e7d 100644 --- a/modules/cms/classes/FileHelper.php +++ b/modules/cms/classes/FileHelper.php @@ -12,7 +12,7 @@ class FileHelper * Validates a CMS object file or directory name. * CMS object file names can contain only alphanumeric symbols, dashes, underscores and dots. * Name can also begin with a component name, eg: MyComponent::filename. - * @param string $filePath Specifies a path to validate + * @param string $fileName Specifies a path to validate * @return boolean Returns true if the file name is valid. Otherwise returns false. */ public static function validateName($fileName) @@ -22,7 +22,7 @@ class FileHelper /** * Validates whether a file has an allowed extension. - * @param string $filePath Specifies a path to validate + * @param string $fileName Specifies a path to validate * @param array $allowedExtensions A list of allowed file extensions * @param boolean $allowEmpty Determines whether the file extension could be empty. * @return boolean Returns true if the file extension is valid. Otherwise returns false. @@ -40,6 +40,7 @@ class FileHelper * Validates a CMS object path. * CMS object directory and file names can contain only alphanumeric symbols, dashes and dots. * CMS objects support only a single level of subdirectories. + * @param string $filePath Specifies a path to validate * @param integer $maxNesting Specifies the maximum allowed nesting level * @return boolean Returns true if the file name is valid. Otherwise returns false. */ @@ -65,6 +66,7 @@ class FileHelper /** * Formats an INI file string from an array * @param array $data Data to format. + * @param int $level Specifies the level of array value. * @return string Returns the INI file string. */ public static function formatIniString($data, $level = 1) diff --git a/modules/cms/classes/Router.php b/modules/cms/classes/Router.php index c08ee78d3..c37d88d51 100644 --- a/modules/cms/classes/Router.php +++ b/modules/cms/classes/Router.php @@ -56,7 +56,7 @@ class Router /** * Creates the router instance. - * @param \Cms\ClassesTheme $theme Specifies the theme being processed. + * @param \Cms\Classes\Theme $theme Specifies the theme being processed. */ public function __construct(Theme $theme) { diff --git a/modules/cms/classes/SectionParser.php b/modules/cms/classes/SectionParser.php index b8da6f4dc..90da6efbf 100644 --- a/modules/cms/classes/SectionParser.php +++ b/modules/cms/classes/SectionParser.php @@ -97,8 +97,8 @@ class SectionParser /** * Returns the line number of a found instance of CMS object section separator (==). - * @param $content Object content - * @param $instance Which instance to look for + * @param string $content Object content + * @param int $instance Which instance to look for * @return int The line number the instance was found. */ private static function calculateLinePosition($content, $instance = 1) @@ -120,8 +120,8 @@ class SectionParser * Pushes the starting line number forward since it is not always directly * after the separator (==). There can be an opening tag or white space in between * where the section really begins. - * @param $content Object content - * @param $startLine The calculated starting line from calculateLinePosition() + * @param string $content Object content + * @param int $startLine The calculated starting line from calculateLinePosition() * @return int The adjusted line number. */ private static function adjustLinePosition($content, $startLine = -1) diff --git a/modules/cms/classes/Theme.php b/modules/cms/classes/Theme.php index 627a86723..a534c3c96 100644 --- a/modules/cms/classes/Theme.php +++ b/modules/cms/classes/Theme.php @@ -60,8 +60,8 @@ class Theme /** * Returns the active theme. * By default the active theme is loaded from the cms.activeTheme parameter, - * but this behavior can be overriden by the cms.activeTheme event listeners. - * @return \Cms\Classes\Theme Returns the loaded theme objesct. + * but this behavior can be overridden by the cms.activeTheme event listeners. + * @return \Cms\Classes\Theme Returns the loaded theme object. * If the theme doesn't exist, returns null. */ public static function getActiveTheme() @@ -86,10 +86,10 @@ class Theme /** * Returns the edit theme. * By default the edit theme is loaded from the cms.editTheme parameter, - * but this behavior can be overriden by the cms.editTheme event listeners. + * but this behavior can be overridden by the cms.editTheme event listeners. * If the edit theme is not defined in the configuration file, the active theme * is returned. - * @return \Cms\Classes\Theme Returns the loaded theme objesct. + * @return \Cms\Classes\Theme Returns the loaded theme object. * If the theme doesn't exist, returns null. */ public static function getEditTheme() diff --git a/modules/cms/twig/ComponentNode.php b/modules/cms/twig/ComponentNode.php index 14b018f08..5b8e80e04 100644 --- a/modules/cms/twig/ComponentNode.php +++ b/modules/cms/twig/ComponentNode.php @@ -20,7 +20,7 @@ class ComponentNode extends Twig_Node /** * Compiles the node to PHP. * - * @param Twig_Compiler A Twig_Compiler instance + * @param Twig_Compiler $compiler A Twig_Compiler instance */ public function compile(Twig_Compiler $compiler) { diff --git a/modules/cms/twig/ContentNode.php b/modules/cms/twig/ContentNode.php index 85ffeda1b..33e01e179 100644 --- a/modules/cms/twig/ContentNode.php +++ b/modules/cms/twig/ContentNode.php @@ -20,7 +20,7 @@ class ContentNode extends Twig_Node /** * Compiles the node to PHP. * - * @param Twig_Compiler A Twig_Compiler instance + * @param Twig_Compiler $compiler A Twig_Compiler instance */ public function compile(Twig_Compiler $compiler) { diff --git a/modules/cms/twig/DefaultNode.php b/modules/cms/twig/DefaultNode.php index 25c2e625a..9c501b968 100644 --- a/modules/cms/twig/DefaultNode.php +++ b/modules/cms/twig/DefaultNode.php @@ -19,7 +19,7 @@ class DefaultNode extends Twig_Node /** * Compiles the node to PHP. * - * @param Twig_Compiler A Twig_Compiler instance + * @param Twig_Compiler $compiler A Twig_Compiler instance */ public function compile(Twig_Compiler $compiler) { diff --git a/modules/cms/twig/Extension.php b/modules/cms/twig/Extension.php index 2f5a1db2f..bfd142415 100644 --- a/modules/cms/twig/Extension.php +++ b/modules/cms/twig/Extension.php @@ -222,7 +222,7 @@ class Extension extends Twig_Extension * Looks up the URL for a supplied page and returns it relative to the website root. * @param mixed $name Specifies the Cms Page file name. * @param array $parameters Route parameters to consider in the URL. - * @param bool $routePersistence By default the exisiting routing parameters will be included + * @param bool $routePersistence By default the existing routing parameters will be included * when creating the URL, set to false to disable this feature. * @return string */ diff --git a/modules/cms/twig/FlashNode.php b/modules/cms/twig/FlashNode.php index 0a4921886..fc53f3319 100644 --- a/modules/cms/twig/FlashNode.php +++ b/modules/cms/twig/FlashNode.php @@ -21,7 +21,7 @@ class FlashNode extends Twig_Node /** * Compiles the node to PHP. * - * @param Twig_Compiler A Twig_Compiler instance + * @param Twig_Compiler $compiler A Twig_Compiler instance */ public function compile(Twig_Compiler $compiler) { diff --git a/modules/cms/twig/FrameworkNode.php b/modules/cms/twig/FrameworkNode.php index dec67a13d..b7daaa0b2 100644 --- a/modules/cms/twig/FrameworkNode.php +++ b/modules/cms/twig/FrameworkNode.php @@ -19,7 +19,7 @@ class FrameworkNode extends Twig_Node /** * Compiles the node to PHP. * - * @param Twig_Compiler A Twig_Compiler instance + * @param Twig_Compiler $compiler A Twig_Compiler instance */ public function compile(Twig_Compiler $compiler) { diff --git a/modules/cms/twig/Loader.php b/modules/cms/twig/Loader.php index 7f5311cd9..677082615 100644 --- a/modules/cms/twig/Loader.php +++ b/modules/cms/twig/Loader.php @@ -18,7 +18,7 @@ class Loader implements Twig_LoaderInterface /** * Sets a CMS object to load the template from. - * @param \Cms\CmsObject $obj Specifies the CMS object. + * @param \Cms\Classes\CmsObject CmsO $obj Specifies the CMS object. */ public function setObject(CmsObject $obj) { diff --git a/modules/cms/twig/PageNode.php b/modules/cms/twig/PageNode.php index 8bfac8488..ba3dcaf1c 100644 --- a/modules/cms/twig/PageNode.php +++ b/modules/cms/twig/PageNode.php @@ -19,7 +19,7 @@ class PageNode extends Twig_Node /** * Compiles the node to PHP. * - * @param Twig_Compiler A Twig_Compiler instance + * @param Twig_Compiler $compiler A Twig_Compiler instance */ public function compile(Twig_Compiler $compiler) { diff --git a/modules/cms/twig/PartialNode.php b/modules/cms/twig/PartialNode.php index 8b6b8100e..297446e93 100644 --- a/modules/cms/twig/PartialNode.php +++ b/modules/cms/twig/PartialNode.php @@ -20,7 +20,7 @@ class PartialNode extends Twig_Node /** * Compiles the node to PHP. * - * @param Twig_Compiler A Twig_Compiler instance + * @param Twig_Compiler $compiler A Twig_Compiler instance */ public function compile(Twig_Compiler $compiler) { diff --git a/modules/cms/twig/PlaceholderNode.php b/modules/cms/twig/PlaceholderNode.php index f545142e2..6b25e4235 100644 --- a/modules/cms/twig/PlaceholderNode.php +++ b/modules/cms/twig/PlaceholderNode.php @@ -24,7 +24,7 @@ class PlaceholderNode extends Twig_Node /** * Compiles the node to PHP. * - * @param Twig_Compiler A Twig_Compiler instance + * @param Twig_Compiler $compiler A Twig_Compiler instance */ public function compile(Twig_Compiler $compiler) { diff --git a/modules/cms/twig/PlaceholderTokenParser.php b/modules/cms/twig/PlaceholderTokenParser.php index 999bf6c1e..c66502680 100644 --- a/modules/cms/twig/PlaceholderTokenParser.php +++ b/modules/cms/twig/PlaceholderTokenParser.php @@ -9,7 +9,7 @@ use Twig_TokenParser; *
* {% placeholder head %}
*
- * or - use default placeholer content
+ * or - use default placeholder content
*
* {% placeholder head %}
*
diff --git a/modules/cms/twig/PutNode.php b/modules/cms/twig/PutNode.php
index b8ff1d9cf..ad224571f 100644
--- a/modules/cms/twig/PutNode.php
+++ b/modules/cms/twig/PutNode.php
@@ -20,7 +20,7 @@ class PutNode extends Twig_Node
/**
* Compiles the node to PHP.
*
- * @param Twig_Compiler A Twig_Compiler instance
+ * @param Twig_Compiler $compiler A Twig_Compiler instance
*/
public function compile(Twig_Compiler $compiler)
{
diff --git a/modules/cms/twig/ScriptsNode.php b/modules/cms/twig/ScriptsNode.php
index bc88c155a..6545d5ab3 100644
--- a/modules/cms/twig/ScriptsNode.php
+++ b/modules/cms/twig/ScriptsNode.php
@@ -19,7 +19,7 @@ class ScriptsNode extends Twig_Node
/**
* Compiles the node to PHP.
*
- * @param Twig_Compiler A Twig_Compiler instance
+ * @param Twig_Compiler $compiler A Twig_Compiler instance
*/
public function compile(Twig_Compiler $compiler)
{
diff --git a/modules/cms/twig/StylesNode.php b/modules/cms/twig/StylesNode.php
index 3d3b2f1d7..5dc26ed8f 100644
--- a/modules/cms/twig/StylesNode.php
+++ b/modules/cms/twig/StylesNode.php
@@ -19,7 +19,7 @@ class StylesNode extends Twig_Node
/**
* Compiles the node to PHP.
*
- * @param Twig_Compiler A Twig_Compiler instance
+ * @param Twig_Compiler $compiler A Twig_Compiler instance
*/
public function compile(Twig_Compiler $compiler)
{
diff --git a/modules/cms/widgets/AssetList.php b/modules/cms/widgets/AssetList.php
index 3de4114dc..f26069328 100644
--- a/modules/cms/widgets/AssetList.php
+++ b/modules/cms/widgets/AssetList.php
@@ -346,12 +346,11 @@ class AssetList extends WidgetBase
protected function getData()
{
- $result = [];
$assetsPath = $this->getAssetsPath();
if (!file_exists($assetsPath) || !is_dir($assetsPath)) {
if (!@mkdir($assetsPath))
- throw new ApplicationException(Lang::get('cms::lang.cms_object.error_creating_directory', ['name'=>$path]));
+ throw new ApplicationException(Lang::get('cms::lang.cms_object.error_creating_directory', ['name'=>$assetsPath]));
}
$searchTerm = Str::lower($this->getSearchTerm());
diff --git a/modules/system/ServiceProvider.php b/modules/system/ServiceProvider.php
index 663256e42..51dc4484d 100644
--- a/modules/system/ServiceProvider.php
+++ b/modules/system/ServiceProvider.php
@@ -32,7 +32,7 @@ class ServiceProvider extends ModuleServiceProvider
parent::register('system');
/*
- * Reregister core providers
+ * Register core providers
*/
App::register('October\Rain\Config\ConfigServiceProvider');
App::register('October\Rain\Translation\TranslationServiceProvider');
diff --git a/modules/system/behaviors/SettingsModel.php b/modules/system/behaviors/SettingsModel.php
index 70e958928..8cdec83ab 100644
--- a/modules/system/behaviors/SettingsModel.php
+++ b/modules/system/behaviors/SettingsModel.php
@@ -166,7 +166,7 @@ class SettingsModel extends ModelBehavior
}
/**
- * Checks if a key is legitamite or should be added to
+ * Checks if a key is legitimate or should be added to
* the field value collection
*/
private function isKeyAllowed($key)
diff --git a/modules/system/classes/ErrorHandler.php b/modules/system/classes/ErrorHandler.php
index bd8046246..c206058c8 100644
--- a/modules/system/classes/ErrorHandler.php
+++ b/modules/system/classes/ErrorHandler.php
@@ -27,7 +27,7 @@ class ErrorHandler
/**
* All exceptions are piped through this method from the framework workflow. This method will mask
- * any foriegn exceptions with a "scent" of the native application's exception, so it can render
+ * any foreign exceptions with a "scent" of the native application's exception, so it can render
* correctly when displayed on the error page.
* @param Exception $proposedException The exception candidate that has been thrown.
* @return View Object containing the error page.
diff --git a/modules/system/classes/ExceptionBase.php b/modules/system/classes/ExceptionBase.php
index 39782ec85..7456103a2 100644
--- a/modules/system/classes/ExceptionBase.php
+++ b/modules/system/classes/ExceptionBase.php
@@ -209,7 +209,7 @@ class ExceptionBase extends Exception
* @return Array with stack information, each value will be an object with these values:
* id - The stack ID number.
* code - The class and function name being called.
- * args - The arguements passed to the code function above.
+ * args - The arguments passed to the code function above.
* file - Reference to the file containing the called code.
* line - Reference to the line number of the file.
*/
@@ -230,7 +230,7 @@ class ExceptionBase extends Exception
$args = null;
if (isset($event['args']) && count($event['args'])) {
- $args = $this->formatStackArguements($event['args'], false);
+ $args = $this->formatStackArguments($event['args'], false);
}
$result[] = (object)[
@@ -293,7 +293,7 @@ class ExceptionBase extends Exception
* @param array arguments A list of the function or method arguments
* @return string
*/
- protected function formatStackArguements($arguments)
+ protected function formatStackArguments($arguments)
{
$argsArray = array();
foreach ($arguments as $argument) {
diff --git a/modules/system/classes/UpdateManager.php b/modules/system/classes/UpdateManager.php
index c3e997fa5..3ac8931bb 100644
--- a/modules/system/classes/UpdateManager.php
+++ b/modules/system/classes/UpdateManager.php
@@ -594,7 +594,7 @@ class UpdateManager
}
/**
- * Create a nonce based on milisecond time
+ * Create a nonce based on millisecond time
* @return int
*/
private function createNonce()
diff --git a/modules/system/classes/VersionManager.php b/modules/system/classes/VersionManager.php
index 63733e875..2d08fe909 100644
--- a/modules/system/classes/VersionManager.php
+++ b/modules/system/classes/VersionManager.php
@@ -110,7 +110,7 @@ class VersionManager
}
/**
- * Applys a single version update to a plugin.
+ * Applies a single version update to a plugin.
*/
protected function applyPluginUpdate($code, $version, $details)
{
@@ -149,7 +149,7 @@ class VersionManager
*/
public function removePlugin($plugin)
{
- $code = (is_string($plugin)) ? $code : $this->pluginManager->getIdentifier($plugin);
+ $code = (is_string($plugin)) ? $plugin : $this->pluginManager->getIdentifier($plugin);
if (!$this->hasVersionFile($code))
return false;
diff --git a/modules/system/traits/ConfigMaker.php b/modules/system/traits/ConfigMaker.php
index fb48a96b2..dbf9e8775 100644
--- a/modules/system/traits/ConfigMaker.php
+++ b/modules/system/traits/ConfigMaker.php
@@ -74,7 +74,7 @@ trait ConfigMaker
/**
* Makes a config object from an array, making the first level keys properties a new object.
* Property values are converted to camelCase and are not set if one already exists.
- * @param string $configArray Config array.
+ * @param array $configArray Config array.
* @return stdObject The config object
*/
public function makeConfigFromArray($configArray = [])