@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | if ($schema->getStructureId() == $structureId) { |
| 73 | 73 | |
| 74 | 74 | // Render elements if exists |
| 75 | - $isElements = isset($schema->elements)&&(!empty($schema->elements)); |
|
| 75 | + $isElements = isset($schema->elements) && (!empty($schema->elements)); |
|
| 76 | 76 | |
| 77 | 77 | // If exists elements on the tab then show their |
| 78 | 78 | if ($isElements) { |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | // Insert element as first child of table |
| 87 | 87 | $content = preg_replace( |
| 88 | 88 | '/\<div class=\"material_table_tab\"\>/', |
| 89 | - '<div class="material_table_tab">' . $contentNestedElement, |
|
| 89 | + '<div class="material_table_tab">'.$contentNestedElement, |
|
| 90 | 90 | $content, |
| 91 | 91 | 1 |
| 92 | 92 | ); |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | * @param $query |
| 154 | 154 | * @param $entity |
| 155 | 155 | */ |
| 156 | - public function renderMaterialTab(\samsoncms\app\material\form\Form &$form, $renderer, $query, $entity) |
|
| 156 | + public function renderMaterialTab(\samsoncms\app\material\form\Form&$form, $renderer, $query, $entity) |
|
| 157 | 157 | { |
| 158 | 158 | |
| 159 | 159 | $migrate = new \samsoncms\seo\Migrate($this->query); |
@@ -249,7 +249,7 @@ discard block |
||
| 249 | 249 | // If content not empty render field(meta tag) |
| 250 | 250 | if (isset($content{0})) { |
| 251 | 251 | // Save html view |
| 252 | - $html .= $this->view($schema->view)->name($alias)->content($content)->output() . "\n"; |
|
| 252 | + $html .= $this->view($schema->view)->name($alias)->content($content)->output()."\n"; |
|
| 253 | 253 | } |
| 254 | 254 | } |
| 255 | 255 | } |
@@ -300,9 +300,9 @@ discard block |
||
| 300 | 300 | public function templateRenderer(&$html, $parameters, $module) |
| 301 | 301 | { |
| 302 | 302 | // TODO: Change this to normal dependency |
| 303 | - if($module->id() != 'compressor') { |
|
| 303 | + if ($module->id() != 'compressor') { |
|
| 304 | 304 | $content = $this->show(); |
| 305 | - $html = str_ireplace('</head>', $content . '</head>', $html); |
|
| 305 | + $html = str_ireplace('</head>', $content.'</head>', $html); |
|
| 306 | 306 | } |
| 307 | 307 | } |
| 308 | 308 | } |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | { |
| 66 | 66 | |
| 67 | 67 | // Set field name with prefix of schema |
| 68 | - $fieldNameFull = $fieldName . '_' . $schema->id; |
|
| 68 | + $fieldNameFull = $fieldName.'_'.$schema->id; |
|
| 69 | 69 | $fieldValue = $this->getDataField($fieldNameFull, $material); |
| 70 | 70 | |
| 71 | 71 | // If in the current schema need value wasn't found then find in sibling schemas |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | // Set field name with prefix of schema |
| 83 | - $fieldNameFull = $fieldName . '_' . $schemaFind->id; |
|
| 83 | + $fieldNameFull = $fieldName.'_'.$schemaFind->id; |
|
| 84 | 84 | |
| 85 | 85 | // If it is deep search i.e search in parent structures then change current material to parent |
| 86 | 86 | if ($deep == true) { |
@@ -204,11 +204,11 @@ discard block |
||
| 204 | 204 | foreach ($schema->relations as $fieldName => $alias) { |
| 205 | 205 | |
| 206 | 206 | // Get value |
| 207 | - $content = trim($material[$fieldName . '_' . $schema->id]); |
|
| 207 | + $content = trim($material[$fieldName.'_'.$schema->id]); |
|
| 208 | 208 | |
| 209 | 209 | if (isset($content{0})) { |
| 210 | 210 | // Render |
| 211 | - $html .= $renderer->view($schema->view)->name($alias)->content($content)->output() . "\n"; |
|
| 211 | + $html .= $renderer->view($schema->view)->name($alias)->content($content)->output()."\n"; |
|
| 212 | 212 | } |
| 213 | 213 | } |
| 214 | 214 | } |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: molodyko |
|
| 5 | - * Date: 18.09.2015 |
|
| 6 | - * Time: 16:13 |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: molodyko |
|
| 5 | + * Date: 18.09.2015 |
|
| 6 | + * Time: 16:13 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace samsoncms\seo; |
| 10 | 10 | |
@@ -169,13 +169,13 @@ discard block |
||
| 169 | 169 | // Iterate and create all fields |
| 170 | 170 | foreach ($fields as $field) { |
| 171 | 171 | |
| 172 | - $fieldInstance = $this->isFieldExists($field['Name'] . '_' . $prefix); |
|
| 172 | + $fieldInstance = $this->isFieldExists($field['Name'].'_'.$prefix); |
|
| 173 | 173 | |
| 174 | 174 | // If field not exists then create it |
| 175 | 175 | if (!$fieldInstance) { |
| 176 | 176 | // Create and add field to structure |
| 177 | 177 | $fieldInstance = $this->createField( |
| 178 | - $field['Name'] . '_' . $prefix, |
|
| 178 | + $field['Name'].'_'.$prefix, |
|
| 179 | 179 | $field['Description'], |
| 180 | 180 | $field['Type'], |
| 181 | 181 | // If it is the select type then add value |
@@ -361,8 +361,8 @@ discard block |
||
| 361 | 361 | // Set prefix of material |
| 362 | 362 | $prefix = 'Material of '; |
| 363 | 363 | $material = $this->createNestedMaterial( |
| 364 | - $prefix . $structure->Name, |
|
| 365 | - $prefix . $structure->Url |
|
| 364 | + $prefix.$structure->Name, |
|
| 365 | + $prefix.$structure->Url |
|
| 366 | 366 | ); |
| 367 | 367 | |
| 368 | 368 | $this->assignNestedMaterial($material, $structure); |
@@ -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: 24.09.2015 |
|
| 6 | - * Time: 16:21 |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: molodyko |
|
| 5 | + * Date: 24.09.2015 |
|
| 6 | + * Time: 16:21 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace samsoncms\seo\render; |
| 10 | 10 | |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | foreach ($elements as $element) { |
| 64 | 64 | |
| 65 | 65 | // Check if this element is nested |
| 66 | - $isNested = (isset($element['Nested'])&&$element['Nested'] == true); |
|
| 66 | + $isNested = (isset($element['Nested']) && $element['Nested'] == true); |
|
| 67 | 67 | |
| 68 | 68 | if (isset($element['Field']) && ($field == false)) { |
| 69 | 69 | continue; |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | |
| 78 | 78 | |
| 79 | 79 | // Check if this element is need to be hide |
| 80 | - $isHide = (isset($element['Hide'])&&$element['Hide'] == true); |
|
| 80 | + $isHide = (isset($element['Hide']) && $element['Hide'] == true); |
|
| 81 | 81 | |
| 82 | 82 | // If not right go further |
| 83 | 83 | if ($isHide) { |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | * Class Info block which show info about something |
| 13 | 13 | * @package samsoncms\seo\render |
| 14 | 14 | */ |
| 15 | -class Info{ |
|
| 15 | +class Info { |
|
| 16 | 16 | |
| 17 | 17 | public function __construct($renderer, $data) |
| 18 | 18 | { |
@@ -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: 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 | |