Completed
Push — master ( b035c8...ddcf44 )
by Paweł
02:10
created
src/Helpers/Url.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     {
23 23
         $encodedUrl = preg_replace_callback(
24 24
             '%[^:/@?&=#]+%usD',
25
-            function ($matches) {
25
+            function($matches) {
26 26
                 return rawurlencode($matches[0]);
27 27
             },
28 28
             $url
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         if (!empty($url['query'])) {
66 66
             parse_str($url['query'], $query);
67 67
 
68
-            array_walk($query, function (&$val, &$var) {
68
+            array_walk($query, function(&$val, &$var) {
69 69
                 $var = rawurlencode($var);
70 70
                 $val = rawurlencode($val);
71 71
             });
Please login to merge, or discard this patch.
src/Items/DataTypes/AbstractDataType.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -98,6 +98,9 @@
 block discarded – undo
98 98
         return $this;
99 99
     }
100 100
 
101
+    /**
102
+     * @param string $name
103
+     */
101 104
     public function getAttribute($name)
102 105
     {
103 106
         return isset($this->attributes[$name]) ? $this->attributes[$name] : null;
Please login to merge, or discard this patch.
src/Items/DataTypes/ArrayType.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     /**
27 27
      * ArrayType constructor.
28 28
      *
29
-     * @param $name
29
+     * @param string $name
30 30
      * @param $dataType
31 31
      */
32 32
     public function __construct($name, $dataType)
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 namespace Wszetko\Sitemap\Items\DataTypes;
5 5
 
6 6
 use Wszetko\Sitemap\Interfaces\DataType;
7
-use Wszetko\Sitemap\Traits\Domain;
8 7
 
9 8
 /**
10 9
  * Class ArrayType
Please login to merge, or discard this patch.
src/Items/DataTypes/StringType.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
     }
80 80
 
81 81
     /**
82
-     * @return array|null
82
+     * @return string[]
83 83
      */
84 84
     public function getAllowedValues(): ?array
85 85
     {
Please login to merge, or discard this patch.
src/Items/DataTypes/URLType.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 namespace Wszetko\Sitemap\Items\DataTypes;
5 5
 
6 6
 use Wszetko\Sitemap\Helpers\Url;
7
-use Wszetko\Sitemap\Traits\Domain;
8 7
 
9 8
 /**
10 9
  * Class URLType
Please login to merge, or discard this patch.
src/Items/HrefLang.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,6 @@
 block discarded – undo
3 3
 
4 4
 namespace Wszetko\Sitemap\Items;
5 5
 
6
-use InvalidArgumentException;
7
-
8 6
 /**
9 7
  * Class HrefLang
10 8
  *
Please login to merge, or discard this patch.
src/Items/AbstractItem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
      */
139 139
     public function __call($name, $arguments)
140 140
     {
141
-        $operation = substr($name, 0 ,3);
141
+        $operation = substr($name, 0, 3);
142 142
         $property = lcfirst(substr($name, 3));
143 143
 
144 144
         if (property_exists($this, $property) &&
Please login to merge, or discard this patch.