Passed
Push — master ( 511373...e51c75 )
by Mihail
05:18
created
Extend/Core/Arch/FrontAppController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         }
32 32
 
33 33
         // add localizations
34
-        App::$Translate->append(App::$Alias->currentViewPath . '/I18n/' . App::$Request->getLanguage() . '.php');
34
+        App::$Translate->append(App::$Alias->currentViewPath.'/I18n/'.App::$Request->getLanguage().'.php');
35 35
 
36 36
         parent::__construct();
37 37
     }
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         }
55 55
 
56 56
         // check if disabled (0 = enabled, anything else = on)
57
-        return (int)$this->application->disabled === 0;
57
+        return (int) $this->application->disabled === 0;
58 58
     }
59 59
 
60 60
     /**
@@ -66,10 +66,10 @@  discard block
 block discarded – undo
66 66
         if ($this->configs !== null) {
67 67
             return $this->configs;
68 68
         }
69
-        $configs = (array)unserialize($this->application->configs); // data always stored like a "string" objects
69
+        $configs = (array) unserialize($this->application->configs); // data always stored like a "string" objects
70 70
         foreach ($configs as $cfg => $value) {
71 71
             if (Obj::isLikeInt($value)) {
72
-                $configs[$cfg] = (int)$value; // convert string 1 "1" to int 1 1
72
+                $configs[$cfg] = (int) $value; // convert string 1 "1" to int 1 1
73 73
             }
74 74
         }
75 75
         $this->configs = $configs;
Please login to merge, or discard this patch.
Extend/Core/Arch/FrontWidget.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     /**
34 34
      * Check if widget is enabled
35 35
      * @param string|null $name
36
-     * @return bool
36
+     * @return null|boolean
37 37
      */
38 38
     public static function enabled($name = null)
39 39
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
         }
52 52
 
53 53
         // if widget is disabled - lets return nothing
54
-        return !(bool)$wData->disabled;
54
+        return !(bool) $wData->disabled;
55 55
     }
56 56
 
57 57
 }
58 58
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/View/Admin/default/content/content_update.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -42,9 +42,9 @@  discard block
 block discarded – undo
42 42
 foreach (\App::$Properties->get('languages') as $lang) {
43 43
     $generalItems[] = [
44 44
         'type' => 'tab',
45
-        'text' => __('Lang') . ': ' . Str::upperCase($lang),
46
-        'content' => $form->field('title.' . $lang, 'text', ['class' => 'form-control'], __('Please, enter the title of your material for current language locale'), 'content/form/tab_content_update') .
47
-            $form->field('text.' . $lang, 'textarea', ['class' => 'form-control wysiwyg', 'rows' => 7, 'html' => true], null, 'content/form/tab_content_update'),
45
+        'text' => __('Lang').': '.Str::upperCase($lang),
46
+        'content' => $form->field('title.'.$lang, 'text', ['class' => 'form-control'], __('Please, enter the title of your material for current language locale'), 'content/form/tab_content_update').
47
+            $form->field('text.'.$lang, 'textarea', ['class' => 'form-control wysiwyg', 'rows' => 7, 'html' => true], null, 'content/form/tab_content_update'),
48 48
         'html' => true,
49 49
         'active' => $lang === \App::$Request->getLanguage(),
50 50
         '!secure' => true
@@ -52,10 +52,10 @@  discard block
 block discarded – undo
52 52
 
53 53
     $propertiesItems[] = [
54 54
         'type' => 'tab',
55
-        'text' => __('Lang') . ': ' . Str::upperCase($lang),
56
-        'content' => $form->field('metaTitle.' . $lang, 'text', ['class' => 'form-control'], __('Enter meta param title for page title. Recoomended: 50-70 characters')) .
57
-            $form->field('metaKeywords.' . $lang, 'text', ['class' => 'form-control'], __('Enter meta param keywords for this content, separated by comma. Example: home, door, dog')) .
58
-            $form->field('metaDescription.' . $lang, 'text', ['class' => 'form-control'], __('Enter meta param description for this content. Recommended is 100-150 characters')),
55
+        'text' => __('Lang').': '.Str::upperCase($lang),
56
+        'content' => $form->field('metaTitle.'.$lang, 'text', ['class' => 'form-control'], __('Enter meta param title for page title. Recoomended: 50-70 characters')).
57
+            $form->field('metaKeywords.'.$lang, 'text', ['class' => 'form-control'], __('Enter meta param keywords for this content, separated by comma. Example: home, door, dog')).
58
+            $form->field('metaDescription.'.$lang, 'text', ['class' => 'form-control'], __('Enter meta param description for this content. Recommended is 100-150 characters')),
59 59
         'html' => true,
60 60
         '!secure' => true,
61 61
         'active' => $lang === \App::$Request->getLanguage()
@@ -89,13 +89,13 @@  discard block
 block discarded – undo
89 89
 <div class="col-md-4">
90 90
             <span class="btn btn-success fileinput-button btn-block">
91 91
                 <i class="glyphicon glyphicon-plus"></i>
92
-                <span>' . __('Upload image') . '</span>
92
+                <span>' . __('Upload image').'</span>
93 93
                 <!-- The file input field used as target for the file upload widget -->
94 94
                 <input id="fileupload" type="file" name="gallery-files" multiple>
95 95
             </span>
96 96
 </div>
97 97
 <div class="col-md-8">
98
-    ' . $form->field('poster', 'select', ['options' => [__('Not selected...')], 'class' => 'form-control'], __('Select image from gallery as a poster for this content')) . '
98
+    ' . $form->field('poster', 'select', ['options' => [__('Not selected...')], 'class' => 'form-control'], __('Select image from gallery as a poster for this content')).'
99 99
 </div>
100 100
 </div><br/><br/>';
101 101
 ?>
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         ['type' => 'tab', 'text' => __('Gallery'), 'content' => $galleryTab, 'html' => true, '!secure' => true],
109 109
         ['type' => 'tab', 'text' => __('Other'), 'content' => $otherTab, 'html' => true, '!secure' => true]
110 110
     ]
111
-]);?>
111
+]); ?>
112 112
 
113 113
 <?= $form->field('galleryFreeId', 'hidden') ?>
114 114
 <?= $form->submitButton(__('Save'), ['class' => 'btn btn-primary']) ?>&nbsp;
@@ -117,15 +117,15 @@  discard block
 block discarded – undo
117 117
 
118 118
 <?php
119 119
 // load max length display plugin
120
-\App::$Alias->setCustomLibrary('js', \App::$Alias->currentViewUrl . '/assets/js/plugins/maxlength.js');
120
+\App::$Alias->setCustomLibrary('js', \App::$Alias->currentViewUrl.'/assets/js/plugins/maxlength.js');
121 121
 // load datapicker plugin
122
-\App::$Alias->setCustomLibrary('css', \App::$Alias->currentViewUrl . '/assets/css/plugins/datapick/datapick.css');
123
-\App::$Alias->setCustomLibrary('js', \App::$Alias->currentViewUrl . '/assets/js/plugins/datapick.js');
122
+\App::$Alias->setCustomLibrary('css', \App::$Alias->currentViewUrl.'/assets/css/plugins/datapick/datapick.css');
123
+\App::$Alias->setCustomLibrary('js', \App::$Alias->currentViewUrl.'/assets/js/plugins/datapick.js');
124 124
 // load jquery-upload plugin
125
-\App::$Alias->setCustomLibrary('css', \App::$Alias->scriptUrl . '/vendor/npm/blueimp-file-upload/css/jquery.fileupload.css');
126
-\App::$Alias->setCustomLibrary('js', \App::$Alias->scriptUrl . '/vendor/npm/blueimp-file-upload/js/vendor/jquery.ui.widget.js');
127
-\App::$Alias->setCustomLibrary('js', \App::$Alias->scriptUrl . '/vendor/npm/blueimp-file-upload/js/jquery.iframe-transport.js');
128
-\App::$Alias->setCustomLibrary('js', \App::$Alias->scriptUrl . '/vendor/npm/blueimp-file-upload/js/jquery.fileupload.js');
125
+\App::$Alias->setCustomLibrary('css', \App::$Alias->scriptUrl.'/vendor/npm/blueimp-file-upload/css/jquery.fileupload.css');
126
+\App::$Alias->setCustomLibrary('js', \App::$Alias->scriptUrl.'/vendor/npm/blueimp-file-upload/js/vendor/jquery.ui.widget.js');
127
+\App::$Alias->setCustomLibrary('js', \App::$Alias->scriptUrl.'/vendor/npm/blueimp-file-upload/js/jquery.iframe-transport.js');
128
+\App::$Alias->setCustomLibrary('js', \App::$Alias->scriptUrl.'/vendor/npm/blueimp-file-upload/js/jquery.fileupload.js');
129 129
 ?>
130 130
 
131 131
 <!-- dom model for gallery items -->
Please login to merge, or discard this patch.