Passed
Branch v3 (0acaf5)
by Andrew
11:40
created
src/events/IncludeContainerEvent.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,5 +26,5 @@
 block discarded – undo
26 26
     /**
27 27
      * @var bool Whether to include the container.
28 28
      */
29
-     public $include;
29
+        public $include;
30 30
 }
Please login to merge, or discard this patch.
src/config.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     // If `devMode` is on, prefix the <title> with this string
58 58
     'devModeTitlePrefix' => '&#x1f6a7; ',
59 59
 
60
-     //  Prefix the Control Panel <title> with this string
60
+        //  Prefix the Control Panel <title> with this string
61 61
     'cpTitlePrefix' => '&#x2699; ',
62 62
 
63 63
     // If `devMode` is on, prefix the Control Panel <title> with this string
Please login to merge, or discard this patch.
src/seomatic-config/globalmeta/ScriptContainer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         'name' => 'General',
27 27
         'description' => 'Script Tags',
28 28
         'handle' => ScriptService::GENERAL_HANDLE,
29
-        'class' => (string)MetaScriptContainer::class,
29
+        'class' => (string) MetaScriptContainer::class,
30 30
         'include' => true,
31 31
         'dependencies' => [
32 32
         ],
Please login to merge, or discard this patch.
src/seomatic-config/eventmeta/TagContainer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         'name'         => 'General',
25 25
         'description'  => 'General Meta Tags',
26 26
         'handle'       => TagService::GENERAL_HANDLE,
27
-        'class'        => (string)MetaTagContainer::class,
27
+        'class'        => (string) MetaTagContainer::class,
28 28
         'include'      => true,
29 29
         'dependencies' => [
30 30
         ],
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         'name'         => 'Facebook',
36 36
         'description'  => 'Facebook OpenGraph Meta Tags',
37 37
         'handle'       => TagService::FACEBOOK_HANDLE,
38
-        'class'        => (string)MetaTagContainer::class,
38
+        'class'        => (string) MetaTagContainer::class,
39 39
         'include'      => true,
40 40
         'dependencies' => [
41 41
         ],
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         'name'         => 'Twitter',
47 47
         'description'  => 'Twitter Card Meta Tags',
48 48
         'handle'       => TagService::TWITTER_HANDLE,
49
-        'class'        => (string)MetaTagContainer::class,
49
+        'class'        => (string) MetaTagContainer::class,
50 50
         'include'      => true,
51 51
         'dependencies' => [
52 52
         ],
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         'name'         => 'Miscellaneous',
58 58
         'description'  => 'Miscellaneous Meta Tags',
59 59
         'handle'       => TagService::MISC_HANDLE,
60
-        'class'        => (string)MetaTagContainer::class,
60
+        'class'        => (string) MetaTagContainer::class,
61 61
         'include'      => true,
62 62
         'dependencies' => [
63 63
         ],
Please login to merge, or discard this patch.
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.