Passed
Push — develop ( f228ff...90ed2c )
by Andrew
20:04 queued 10:06
created
src/seomatic-config/eventmeta/LinkContainer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         'name'         => 'General',
25 25
         'description'  => 'Link Tags',
26 26
         'handle'       => LinkService::GENERAL_HANDLE,
27
-        'class'        => (string)MetaLinkContainer::class,
27
+        'class'        => (string) MetaLinkContainer::class,
28 28
         'include'      => true,
29 29
         'dependencies' => [
30 30
         ],
Please login to merge, or discard this patch.
src/seomatic-config/eventmeta/ScriptContainer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         'name'         => 'General',
25 25
         'description'  => 'Script Tags',
26 26
         'handle'       => ScriptService::GENERAL_HANDLE,
27
-        'class'        => (string)MetaScriptContainer::class,
27
+        'class'        => (string) MetaScriptContainer::class,
28 28
         'include'      => true,
29 29
         'dependencies' => [
30 30
         ],
Please login to merge, or discard this patch.
src/listeners/GetCraftQLSchema.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         foreach (self::CRAFT_QL_FIELDS as $fieldHandle => $containerType) {
58 58
             $seomaticField
59 59
                 ->addStringField($fieldHandle)
60
-                ->resolve(function (array $data) use ($containerType) {
60
+                ->resolve(function(array $data) use ($containerType) {
61 61
                     // $root contains the data returned by the field below
62 62
                     $result = ContainerHelper::getContainerArrays(
63 63
                         [$containerType],
@@ -74,13 +74,13 @@  discard block
 block discarded – undo
74 74
         }
75 75
         // Add the root
76 76
         $event->schema->addField('seomatic')
77
-            ->arguments(function (FieldBuilder $field) {
77
+            ->arguments(function(FieldBuilder $field) {
78 78
                 $field->addIntArgument('siteId');
79 79
                 $field->addStringArgument('uri');
80 80
                 $field->addBooleanArgument('asArray');
81 81
             })
82 82
             ->type($seomaticField)
83
-            ->resolve(function ($root, $args, $context, $info) {
83
+            ->resolve(function($root, $args, $context, $info) {
84 84
                 // If our root is an Element, extract the URI and siteId from it
85 85
                 if ($root instanceof Element) {
86 86
                     /** Element $root */
Please login to merge, or discard this patch.
src/controllers/PreviewController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
         $html = '';
54 54
 
55 55
         // Don't allow the preview to be accessed publicly
56
-        $this->requireAuthorization(Seomatic::SEOMATIC_PREVIEW_AUTHORIZATION_KEY . $elementId);
56
+        $this->requireAuthorization(Seomatic::SEOMATIC_PREVIEW_AUTHORIZATION_KEY.$elementId);
57 57
 
58 58
         /** @var Element $element */
59 59
         $element = Craft::$app->getElements()->getElementById($elementId, null, $siteId);
Please login to merge, or discard this patch.
src/base/FluentModel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
         // Set the property
79 79
         $value = $args[0];
80 80
         if (\is_object($value) && $value instanceof Markup) {
81
-                $value = (string)$value;
81
+                $value = (string) $value;
82 82
         }
83 83
         $property->setValue($this, $value);
84 84
 
Please login to merge, or discard this patch.
src/seoelements/SeoEntry.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
             Event::on(
110 110
                 Sections::class,
111 111
                 Sections::EVENT_AFTER_SAVE_SECTION,
112
-                function (SectionEvent $event) {
112
+                function(SectionEvent $event) {
113 113
                     Craft::debug(
114 114
                         'Sections::EVENT_AFTER_SAVE_SECTION',
115 115
                         __METHOD__
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
             Event::on(
133 133
                 Sections::class,
134 134
                 Sections::EVENT_AFTER_DELETE_SECTION,
135
-                function (SectionEvent $event) {
135
+                function(SectionEvent $event) {
136 136
                     Craft::debug(
137 137
                         'Sections::EVENT_AFTER_DELETE_SECTION',
138 138
                         __METHOD__
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
         // Install only for non-console Control Panel requests
161 161
         if ($request->getIsCpRequest() && !$request->getIsConsoleRequest()) {
162 162
             // Entries sidebar
163
-            Seomatic::$view->hook('cp.entries.edit.details', function (&$context) {
163
+            Seomatic::$view->hook('cp.entries.edit.details', function(&$context) {
164 164
                 $html = '';
165 165
                 Seomatic::$view->registerAssetBundle(SeomaticAsset::class);
166 166
                 /** @var  $entry Entry */
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
             ConfigHelper::getConfigFromFile(self::configFilePath()),
343 343
             [
344 344
                 'sourceId' => $sourceModel->id,
345
-                'sourceName' => (string)$sourceModel->name,
345
+                'sourceName' => (string) $sourceModel->name,
346 346
                 'sourceHandle' => $sourceModel->handle,
347 347
                 'sourceType' => $sourceModel->type,
348 348
             ]
Please login to merge, or discard this patch.
src/seoelements/SeoCategory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
             Event::on(
107 107
                 Categories::class,
108 108
                 Categories::EVENT_AFTER_SAVE_GROUP,
109
-                function (CategoryGroupEvent $event) {
109
+                function(CategoryGroupEvent $event) {
110 110
                     Craft::debug(
111 111
                         'Categories::EVENT_AFTER_SAVE_GROUP',
112 112
                         __METHOD__
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
             Event::on(
130 130
                 Categories::class,
131 131
                 Categories::EVENT_AFTER_DELETE_GROUP,
132
-                function (CategoryGroupEvent $event) {
132
+                function(CategoryGroupEvent $event) {
133 133
                     Craft::debug(
134 134
                         'Categories::EVENT_AFTER_DELETE_GROUP',
135 135
                         __METHOD__
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
         // Install only for non-console Control Panel requests
158 158
         if ($request->getIsCpRequest() && !$request->getIsConsoleRequest()) {
159 159
             // Category Groups sidebar
160
-            Seomatic::$view->hook('cp.categories.edit.details', function (&$context) {
160
+            Seomatic::$view->hook('cp.categories.edit.details', function(&$context) {
161 161
                 $html = '';
162 162
                 Seomatic::$view->registerAssetBundle(SeomaticAsset::class);
163 163
                 /** @var  $category Category */
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
             ConfigHelper::getConfigFromFile(self::configFilePath()),
341 341
             [
342 342
                 'sourceId' => $sourceModel->id,
343
-                'sourceName' => (string)$sourceModel->name,
343
+                'sourceName' => (string) $sourceModel->name,
344 344
                 'sourceHandle' => $sourceModel->handle,
345 345
             ]
346 346
         );
Please login to merge, or discard this patch.
src/gql/queries/SeomaticQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
             'seomatic' => [
36 36
                 'type' => SeomaticInterface::getType(),
37 37
                 'args' => SeomaticArguments::getArguments(),
38
-                'resolve' => SeomaticResolver::class . '::resolve',
38
+                'resolve' => SeomaticResolver::class.'::resolve',
39 39
                 'description' => 'This query is used to query for SEOmatic meta data.'
40 40
             ],
41 41
         ];
Please login to merge, or discard this patch.
src/gql/types/generators/SeomaticGenerator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,17 +41,17 @@
 block discarded – undo
41 41
         $seomaticType = GqlEntityRegistry::getEntity($typeName)
42 42
             ?: GqlEntityRegistry::createEntity($typeName, new SeomaticType([
43 43
                 'name' => $typeName,
44
-                'args' => function () use ($seomaticArgs) {
44
+                'args' => function() use ($seomaticArgs) {
45 45
                     return $seomaticArgs;
46 46
                 },
47
-                'fields' => function () use ($seomaticFields) {
47
+                'fields' => function() use ($seomaticFields) {
48 48
                     return $seomaticFields;
49 49
                 },
50 50
                 'description' => 'This entity has all the SEOmatic fields',
51 51
             ]));
52 52
 
53 53
         $gqlTypes[$typeName] = $seomaticType;
54
-        TypeLoader::registerType($typeName, function () use ($seomaticType) {
54
+        TypeLoader::registerType($typeName, function() use ($seomaticType) {
55 55
             return $seomaticType;
56 56
         });
57 57
 
Please login to merge, or discard this patch.