Skip to content
Open
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/FieldsBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/RepeaterBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function end()
}

/**
* Gerenates the default button label.
* Generates the default button label.
* @return string
*/
private function getDefaultButtonLabel()
Expand Down
2 changes: 1 addition & 1 deletion src/Transform/IterativeTransform.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Transform/NamespaceFieldKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) . '_';
}
Expand Down
6 changes: 3 additions & 3 deletions src/Transform/RecursiveTransform.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Transform/Transform.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/ParentDelegationBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ public function testThrowingException()
$child->setParentContext($parent);

$this->expectException('\Exception');
$child->nonExistantParentMethod();
$child->nonExistentParentMethod();
}
}