From 8cdb9886e7d8f97c6ae95713f5d1d99f9a50999a Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Tue, 2 Apr 2019 11:29:18 -0400 Subject: [PATCH] Fix phpdoc typos per processwire/processwire-issues#797 --- wire/core/Pageimage.php | 2 +- wire/core/Wire.php | 2 +- wire/modules/Process/ProcessPageAdd/ProcessPageAdd.module | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wire/core/Pageimage.php b/wire/core/Pageimage.php index 02db47d1..bc3c5d16 100644 --- a/wire/core/Pageimage.php +++ b/wire/core/Pageimage.php @@ -1555,7 +1555,7 @@ class Pageimage extends Pagefile { * @param array $options See options for getVariations() method to limit what variations are removed, plus these: * - `dryRun` (bool): Do not remove now and instead only return the filenames of variations that would be deleted (default=false). * - `getFiles` (bool): Return deleted filenames? Also assumed if the test option is used (default=false). - * @return $this|array Returns $this by default, or array of deleted filenames if the `returnFiles` option is specified + * @return $this|array Returns $this by default, or array of deleted filenames if the `getFiles` option is specified * */ public function removeVariations(array $options = array()) { diff --git a/wire/core/Wire.php b/wire/core/Wire.php index fbdb9e2d..9f10fcaf 100644 --- a/wire/core/Wire.php +++ b/wire/core/Wire.php @@ -1619,7 +1619,7 @@ abstract class Wire implements WireTranslatable, WireFuelable, WireTrackable { * `$wire = $this->wire();` * * - Creating new API variables: - * `$this->wire('widgets', $widgets');` + * `$this->wire('widgets', $widgets);` * * - Injection of dependencies to Wire derived objects: * `$this->wire($widgets);` diff --git a/wire/modules/Process/ProcessPageAdd/ProcessPageAdd.module b/wire/modules/Process/ProcessPageAdd/ProcessPageAdd.module index 92bf7b56..8e838f5b 100644 --- a/wire/modules/Process/ProcessPageAdd/ProcessPageAdd.module +++ b/wire/modules/Process/ProcessPageAdd/ProcessPageAdd.module @@ -286,7 +286,7 @@ class ProcessPageAdd extends Process implements ConfigurableModule, WirePageEdit if(!$templateID) throw new WireException("No template specified"); $template = $this->templates->get($templateID); if(!$template) throw new WireException("Unknown template"); - $parentTemplates = new TemplatesArray();; + $parentTemplates = new TemplatesArray(); foreach($template->parentTemplates as $templateID) { $t = $this->templates->get((int) $templateID); if($t) $parentTemplates->add($t);