Completed
Push — master ( 579b25...02b205 )
by Vitaly
02:52
created
src/Core.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Display.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Migrate.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -169,13 +169,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/render/Button.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/render/Element.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/render/Info.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/schema/Schema.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/schema/control/ControlSchema.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/schema/control/sitemap/Statical.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.