@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: molodyko |
|
| 5 | - * Date: 20.09.2015 |
|
| 6 | - * Time: 16:41 |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: molodyko |
|
| 5 | + * Date: 20.09.2015 |
|
| 6 | + * Time: 16:41 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace samsoncms\seo\schema; |
| 10 | 10 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: molodyko |
|
| 5 | - * Date: 22.09.2015 |
|
| 6 | - * Time: 17:05 |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: molodyko |
|
| 5 | + * Date: 22.09.2015 |
|
| 6 | + * Time: 17:05 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace samsoncms\seo\schema\control; |
| 10 | 10 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: molodyko |
|
| 5 | - * Date: 22.09.2015 |
|
| 6 | - * Time: 17:06 |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: molodyko |
|
| 5 | + * Date: 22.09.2015 |
|
| 6 | + * Time: 17:06 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace samsoncms\seo\schema\control\sitemap; |
| 10 | 10 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: molodyko |
|
| 5 | - * Date: 22.09.2015 |
|
| 6 | - * Time: 16:55 |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: molodyko |
|
| 5 | + * Date: 22.09.2015 |
|
| 6 | + * Time: 16:55 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace samsoncms\seo\schema\material; |
| 10 | 10 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: molodyko |
|
| 5 | - * Date: 20.09.2015 |
|
| 6 | - * Time: 12:45 |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: molodyko |
|
| 5 | + * Date: 20.09.2015 |
|
| 6 | + * Time: 12:45 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace samsoncms\seo\schema\material; |
| 10 | 10 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: molodyko |
|
| 5 | - * Date: 24.09.2015 |
|
| 6 | - * Time: 18:54 |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: molodyko |
|
| 5 | + * Date: 24.09.2015 |
|
| 6 | + * Time: 18:54 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace samsoncms\seo\sitemap; |
| 10 | 10 | |
@@ -54,13 +54,13 @@ discard block |
||
| 54 | 54 | if (!empty($urls)) { |
| 55 | 55 | |
| 56 | 56 | // Get full path |
| 57 | - $path = $this->currentHost . $category . DIRECTORY_SEPARATOR; |
|
| 57 | + $path = $this->currentHost.$category.DIRECTORY_SEPARATOR; |
|
| 58 | 58 | |
| 59 | 59 | // Add separator |
| 60 | 60 | $tagAsSeparator = "</loc></url><url><loc>{$path}"; |
| 61 | 61 | |
| 62 | 62 | // Implode all array elements and concatenate separator with right xml tags and concatenate first and last tags |
| 63 | - $xml = '<url><loc>' . $path . implode($tagAsSeparator, $urls) . '</loc></url>'; |
|
| 63 | + $xml = '<url><loc>'.$path.implode($tagAsSeparator, $urls).'</loc></url>'; |
|
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | return $xml; |
@@ -90,11 +90,11 @@ discard block |
||
| 90 | 90 | $innerBlock = $this->getXmlContentByUrls($urls, $path); |
| 91 | 91 | |
| 92 | 92 | // Concatenate header and footer of xml text |
| 93 | - $result = "<?xml version='1.0' standalone='yes'?>" . |
|
| 93 | + $result = "<?xml version='1.0' standalone='yes'?>". |
|
| 94 | 94 | '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" |
| 95 | 95 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 96 | 96 | xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 |
| 97 | - http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">' . $innerBlock . '</urlset>'; |
|
| 97 | + http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">' . $innerBlock.'</urlset>'; |
|
| 98 | 98 | |
| 99 | 99 | return $result; |
| 100 | 100 | } |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | $this->schema = $schema; |
| 42 | 42 | // Set name and id of module |
| 43 | 43 | if ($locale != '') { |
| 44 | - $this->id .= '-' . $this->locale; |
|
| 44 | + $this->id .= '-'.$this->locale; |
|
| 45 | 45 | $this->name = $this->locale; |
| 46 | 46 | } else { |
| 47 | 47 | $this->name = 'all'; |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | |
| 81 | 81 | |
| 82 | 82 | // Render elements if exists |
| 83 | - $isElements = isset($this->schema->elements)&&(!empty($this->schema->elements)); |
|
| 83 | + $isElements = isset($this->schema->elements) && (!empty($this->schema->elements)); |
|
| 84 | 84 | if ($isElements) { |
| 85 | 85 | |
| 86 | 86 | // Create element instance |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: molodyko |
|
| 5 | - * Date: 24.09.2015 |
|
| 6 | - * Time: 16:17 |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: molodyko |
|
| 5 | + * Date: 24.09.2015 |
|
| 6 | + * Time: 16:17 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace samsoncms\seo\render; |
| 10 | 10 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: molodyko |
|
| 5 | - * Date: 20.09.2015 |
|
| 6 | - * Time: 12:45 |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: molodyko |
|
| 5 | + * Date: 20.09.2015 |
|
| 6 | + * Time: 12:45 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace samsoncms\seo\schema\material; |
| 10 | 10 | |