Skip to content

Commit

Permalink
Merge pull request #69 from systopia/fix-namespaces
Browse files Browse the repository at this point in the history
Fix namespaces
  • Loading branch information
dontub authored Aug 2, 2024
2 parents 9512d12 + 5b869ec commit 69a3797
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Form/Layout/TableRowArrayFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
use Drupal\Core\Form\FormStateInterface;
use Drupal\json_forms\Form\FormArrayFactoryInterface;
use Drupal\json_forms\JsonForms\Definition\Control\ControlDefinition;
use Drupal\json_forms\JsonForms\Definition\Custom\MarkupDefinition;
use Drupal\json_forms\JsonForms\Definition\DefinitionInterface;
use Drupal\json_forms\JsonForms\Definition\Layout\LayoutDefinition;
use Drupal\json_forms\JsonForms\Definition\Markup\MarkupDefinition;

/**
* Creates an array for a row in a table render element.
Expand Down
4 changes: 2 additions & 2 deletions src/Form/Markup/HtmlMarkupArrayFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
use Drupal\json_forms\Form\AbstractConcreteFormArrayFactory;
use Drupal\json_forms\Form\Control\Rule\StatesArrayFactoryInterface;
use Drupal\json_forms\Form\FormArrayFactoryInterface;
use Drupal\json_forms\JsonForms\Definition\Custom\MarkupDefinition;
use Drupal\json_forms\JsonForms\Definition\DefinitionInterface;
use Drupal\json_forms\JsonForms\Definition\Markup\MarkupDefinition;

final class HtmlMarkupArrayFactory extends AbstractConcreteFormArrayFactory {

Expand All @@ -46,7 +46,7 @@ public function createFormArray(
FormArrayFactoryInterface $formArrayFactory
): array {
Assertion::isInstanceOf($definition, MarkupDefinition::class);
/** @var \Drupal\json_forms\JsonForms\Definition\Markup\MarkupDefinition $definition */
/** @var \Drupal\json_forms\JsonForms\Definition\Custom\MarkupDefinition $definition */

$element = [
'#type' => 'fieldset',
Expand Down
2 changes: 1 addition & 1 deletion src/JsonForms/Definition/Custom/MarkupDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

declare(strict_types=1);

namespace Drupal\json_forms\JsonForms\Definition\Markup;
namespace Drupal\json_forms\JsonForms\Definition\Custom;

use Drupal\json_forms\JsonForms\Definition\DefinitionInterface;

Expand Down
2 changes: 1 addition & 1 deletion src/JsonForms/Definition/DefinitionFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@

use Drupal\json_forms\JsonForms\Definition\Control\ControlDefinition;
use Drupal\json_forms\JsonForms\Definition\Custom\CustomDefinition;
use Drupal\json_forms\JsonForms\Definition\Custom\MarkupDefinition;
use Drupal\json_forms\JsonForms\Definition\Layout\LayoutDefinition;
use Drupal\json_forms\JsonForms\Definition\Markup\MarkupDefinition;

final class DefinitionFactory {

Expand Down
4 changes: 2 additions & 2 deletions tests/src/Unit/Form/Markup/HtmlMarkupArrayFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
use Drupal\json_forms\Form\Control\Rule\StatesArrayFactoryInterface;
use Drupal\json_forms\Form\FormArrayFactoryInterface;
use Drupal\json_forms\Form\Markup\HtmlMarkupArrayFactory;
use Drupal\json_forms\JsonForms\Definition\Markup\MarkupDefinition;
use Drupal\json_forms\JsonForms\Definition\Custom\MarkupDefinition;
use Drupal\Tests\UnitTestCase;
use PHPUnit\Framework\MockObject\MockObject;

/**
* @covers \Drupal\json_forms\Form\Markup\HtmlMarkupArrayFactory
* @covers \Drupal\json_forms\JsonForms\Definition\Markup\MarkupDefinition
* @covers \Drupal\json_forms\JsonForms\Definition\Custom\MarkupDefinition
* @group json_forms
*/
final class HtmlMarkupArrayFactoryTest extends UnitTestCase {
Expand Down

0 comments on commit 69a3797

Please sign in to comment.