diff --git a/src/FieldsBuilder.php b/src/FieldsBuilder.php index 75b6ef6..68087c0 100644 --- a/src/FieldsBuilder.php +++ b/src/FieldsBuilder.php @@ -549,7 +549,8 @@ public function addAccordion($label, array $args = []) } /** - * Addes a message field + * Adds a message field + * * @param string $label * @param string $message * @param array $args field configuration diff --git a/src/RepeaterBuilder.php b/src/RepeaterBuilder.php index 0615cfc..5f59732 100644 --- a/src/RepeaterBuilder.php +++ b/src/RepeaterBuilder.php @@ -69,7 +69,7 @@ public function end() } /** - * Gerenates the default button label. + * Generates the default button label. * @return string */ private function getDefaultButtonLabel() diff --git a/src/Transform/IterativeTransform.php b/src/Transform/IterativeTransform.php index b967191..f100d46 100644 --- a/src/Transform/IterativeTransform.php +++ b/src/Transform/IterativeTransform.php @@ -3,7 +3,7 @@ namespace StoutLogic\AcfBuilder\Transform; /** - * Transform applies to all leafs in array at a single field level, + * Transform applies to all leaf nodes in array at a single field level, * it doesn't recurse down fields, sub_fields or layouts. */ abstract class IterativeTransform extends RecursiveTransform diff --git a/src/Transform/NamespaceFieldKey.php b/src/Transform/NamespaceFieldKey.php index 80644b2..6e1319c 100644 --- a/src/Transform/NamespaceFieldKey.php +++ b/src/Transform/NamespaceFieldKey.php @@ -47,7 +47,7 @@ public function transformValue($value) $groupName = $this->getBuilder()->getName(); if ($groupName) { - // remove field_ or group_ if already at the begining of the key + // remove field_ or group_ if already at the beginning of the key $value = preg_replace('/^field_|^group_/', '', $value); $namespace .= str_replace(' ', '_', $groupName) . '_'; } diff --git a/src/Transform/RecursiveTransform.php b/src/Transform/RecursiveTransform.php index 0a757a5..12f6b8d 100644 --- a/src/Transform/RecursiveTransform.php +++ b/src/Transform/RecursiveTransform.php @@ -3,7 +3,7 @@ namespace StoutLogic\AcfBuilder\Transform; /** - * Transform applies to all leafs in array, at specific keys + * Transform applies to all leaf nodes in array, at specific keys * using array_walk_recursive */ abstract class RecursiveTransform extends Transform @@ -31,7 +31,7 @@ public function getKeys() */ public function transform($config) { - foreach ($config as $key => $value ) { + foreach ($config as $key => $value) { if ($this->shouldTransformValue($key, $config)) { $config = $this->transformConfig($config); $config[$key] = $this->transformValue($value); @@ -69,7 +69,7 @@ protected function shouldRecurse($value, $key) } /** - * Impelment this in all discrete classes + * Implement this in all discrete classes * @param mixed $value input * @return mixed output value */ diff --git a/src/Transform/Transform.php b/src/Transform/Transform.php index 0886987..032ff9a 100644 --- a/src/Transform/Transform.php +++ b/src/Transform/Transform.php @@ -10,7 +10,7 @@ abstract class Transform { /** - * Used to call funtions on the builder. + * Used to call functions on the builder. * @var \StoutLogic\AcfBuilder\Builder */ private $builder; @@ -32,7 +32,7 @@ public function getBuilder() } /** - * Impelment in all discrete classes + * Implement in all discrete classes * @param array $config input * @return array output config */ diff --git a/tests/ParentDelegationBuilderTest.php b/tests/ParentDelegationBuilderTest.php index 7d8a82d..307a625 100644 --- a/tests/ParentDelegationBuilderTest.php +++ b/tests/ParentDelegationBuilderTest.php @@ -27,6 +27,6 @@ public function testThrowingException() $child->setParentContext($parent); $this->expectException('\Exception'); - $child->nonExistantParentMethod(); + $child->nonExistentParentMethod(); } }