Completed
Push — master ( a2f5f0...0006e3 )
by Basil
02:11
created
core/console/commands/ImportController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             $this->_dirs[$folderName][] = [
77 77
                 'ns' => $ns,
78 78
                 'module' => $module,
79
-                'folderPath' => rtrim($path,DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR,
79
+                'folderPath' => rtrim($path, DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR,
80 80
                 'files' => $this->scanDirectoryFiles($path, $ns, $module),
81 81
             ];
82 82
         }
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 
186 186
         foreach ($queue as $pos => $object) {
187 187
             $this->verbosePrint("Run importer object '{$object->className()}' on position '{$pos}'.", __METHOD__);
188
-            $this->verbosePrint('Module context id: ' . $object->module->id);
188
+            $this->verbosePrint('Module context id: '.$object->module->id);
189 189
             $object->run();
190 190
         }
191 191
 
@@ -195,10 +195,10 @@  discard block
 block discarded – undo
195 195
             Yii::$app->db->createCommand()->update('admin_user', ['force_reload' => 1])->execute();
196 196
         }
197 197
         
198
-        $this->output('LUYA import command (based on LUYA ' . Boot::VERSION . ')');
198
+        $this->output('LUYA import command (based on LUYA '.Boot::VERSION.')');
199 199
         
200 200
         foreach ($this->getLog() as $section => $value) {
201
-            $this->outputInfo(PHP_EOL . $section . ":");
201
+            $this->outputInfo(PHP_EOL.$section.":");
202 202
             $this->logValueToTable($value);
203 203
         }
204 204
         
Please login to merge, or discard this patch.
core/theme/ThemeManager.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
             $dir = $basePath;
56 56
         } else {
57 57
             // relative path
58
-            throw new InvalidConfigException('Theme base path have to be absolute or alias: ' . $basePath);
58
+            throw new InvalidConfigException('Theme base path have to be absolute or alias: '.$basePath);
59 59
         }
60 60
 
61 61
         // $basePath is an absolute path = /VENDOR/NAME/theme.json
@@ -65,12 +65,12 @@  discard block
 block discarded – undo
65 65
             $basePath = pathinfo($basePath, PATHINFO_DIRNAME);
66 66
         } else {
67 67
             if (!is_dir($dir) || !is_readable($dir)) {
68
-                throw new Exception('Theme directory not exists or readable: ' . $dir);
68
+                throw new Exception('Theme directory not exists or readable: '.$dir);
69 69
             }
70 70
 
71
-            $themeFile = $dir . DIRECTORY_SEPARATOR . 'theme.json';
71
+            $themeFile = $dir.DIRECTORY_SEPARATOR.'theme.json';
72 72
             if (!file_exists($themeFile)) {
73
-                throw new InvalidConfigException('Theme config file missing at: ' . $themeFile);
73
+                throw new InvalidConfigException('Theme config file missing at: '.$themeFile);
74 74
             }
75 75
         }
76 76
         
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
         
173 173
         if (file_exists(Yii::getAlias('@app/themes'))) {
174 174
             foreach (glob(Yii::getAlias('@app/themes/*')) as $dirPath) {
175
-                $themeDefinitions[] = "@app/themes/" . basename($dirPath);
175
+                $themeDefinitions[] = "@app/themes/".basename($dirPath);
176 176
             }
177 177
         }
178 178
         
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
         
227 227
         $this->_themes[$basePath] = $themeConfig;
228 228
         
229
-        Yii::setAlias('@' . basename($basePath) . 'Theme', $basePath);
229
+        Yii::setAlias('@'.basename($basePath).'Theme', $basePath);
230 230
     }
231 231
     
232 232
     /**
Please login to merge, or discard this patch.
core/web/jsonld/ThingInterface.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,8 +134,9 @@
 block discarded – undo
134 134
     /**
135 135
      * Set Offer
136 136
      *
137
-     * @param Offer $offer
137
+     * @param Offer $offers
138 138
      * @since 1.2.2
139
+     * @return ThingTrait
139 140
      */
140 141
     public function setOffers(Offer $offers);
141 142
 
Please login to merge, or discard this patch.
core/web/jsonld/ThingTrait.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      * An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax.
25 25
      * This is a relationship between something and a class that the thing is in.
26 26
      *
27
-     * @param string $additionalType
27
+     * @param UrlValue $additionalType
28 28
      * @return static
29 29
      */
30 30
     public function setAdditionalType(UrlValue $additionalType)
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
     /**
264 264
      * Set Offer
265 265
      *
266
-     * @param Offer $offer
266
+     * @param Offer $offers
267 267
      * @since @since 1.2.2
268 268
      * @return static
269 269
      */
Please login to merge, or discard this patch.
core/web/Request.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,9 +74,9 @@
 block discarded – undo
74 74
 
75 75
                     // Check for a full route path where the module ends with admin like `newsadmin` and this module is loaded in the list of modules.
76 76
                     // @see https://github.com/luyadev/luya/pull/2027
77
-                    if (count($parts) > 0 && StringHelper::endsWith($first, 'admin') && Yii::$app->hasModule($first))
78
-                        $this->_isAdmin = true;
79
-                    elseif (strtolower(trim($first)) == 'admin') {
77
+                    if (count($parts) > 0 && StringHelper::endsWith($first, 'admin') && Yii::$app->hasModule($first)) {
78
+                                            $this->_isAdmin = true;
79
+                    } elseif (strtolower(trim($first)) == 'admin') {
80 80
                         $this->_isAdmin = true;
81 81
                     } else {
82 82
                         $this->_isAdmin = false;
Please login to merge, or discard this patch.
core/lazyload/LazyLoad.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -184,18 +184,18 @@  discard block
 block discarded – undo
184 184
     public function run()
185 185
     {
186 186
         if ($this->placeholderSrc && $this->placeholderAsBase64) {
187
-            $this->placeholderSrc = 'data:image/jpg;base64,' . base64_encode(file_get_contents($this->placeholderSrc));
187
+            $this->placeholderSrc = 'data:image/jpg;base64,'.base64_encode(file_get_contents($this->placeholderSrc));
188 188
         }
189 189
 
190 190
         if ($this->attributesOnly && !$this->placeholderSrc) {
191 191
             return "class=\"js-lazyimage $this->extraClass\" data-src=\"$this->src\" data-width=\"$this->width\" data-height=\"$this->height\" data-as-background=\"1\"";
192 192
         }
193 193
 
194
-        $tag = '<div class="lazyimage-wrapper ' . $this->extraClass . '">';
194
+        $tag = '<div class="lazyimage-wrapper '.$this->extraClass.'">';
195 195
         $tag .= Html::tag('img', '', array_merge(
196 196
             $this->options,
197 197
             [
198
-                'class' => 'js-lazyimage lazyimage' . ($this->replacePlaceholder ? (' ' . $this->extraClass) : ''),
198
+                'class' => 'js-lazyimage lazyimage'.($this->replacePlaceholder ? (' '.$this->extraClass) : ''),
199 199
                 'data-src' => $this->src,
200 200
                 'data-width' => $this->width,
201 201
                 'data-height' => $this->height,
@@ -205,9 +205,9 @@  discard block
 block discarded – undo
205 205
         if ($this->placeholderSrc) {
206 206
             $tag .= Html::tag('img', '', ['class' => 'lazyimage-placeholder', 'src' => $this->placeholderSrc]);
207 207
         } else {
208
-            $tag .= '<div class="lazyimage-placeholder"><div style="display: block; height: 0px; padding-bottom: ' . $this->generateAspectRation() . '%;"></div><div class="loader"></div></div>';
208
+            $tag .= '<div class="lazyimage-placeholder"><div style="display: block; height: 0px; padding-bottom: '.$this->generateAspectRation().'%;"></div><div class="loader"></div></div>';
209 209
         }
210
-        $tag .= '<noscript><img class="loaded ' . $this->extraClass . '" src="'.$this->src.'" /></noscript>';
210
+        $tag .= '<noscript><img class="loaded '.$this->extraClass.'" src="'.$this->src.'" /></noscript>';
211 211
         $tag .= '</div>';
212 212
 
213 213
         return $tag;
Please login to merge, or discard this patch.
core/web/filters/JsonCruftFilter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      */
65 65
     public function prependCruft($content)
66 66
     {
67
-        return $this->cruft . trim($content);
67
+        return $this->cruft.trim($content);
68 68
     }
69 69
     
70 70
     /**
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     {
75 75
         if (Yii::$app->response->format == Response::FORMAT_JSON && !in_array(Yii::$app->response->statusCode, $this->ignoreStatusCodes)) {
76 76
             Yii::$app->response->headers->set(self::CRUFT_HEADER_NAME, $this->getCruftLength());
77
-            Yii::$app->response->on(Response::EVENT_AFTER_PREPARE, function ($event) {
77
+            Yii::$app->response->on(Response::EVENT_AFTER_PREPARE, function($event) {
78 78
                 $event->sender->content = $this->prependCruft($event->sender->content);
79 79
             });
80 80
         }
Please login to merge, or discard this patch.
core/traits/ApplicationTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
         
169 169
         // generate from `de` the locale `de_DE` or from `en` `en_EN` only if $lang is 2 chars.
170 170
         if (strlen($lang) == 2) {
171
-            return strtolower($lang) . '_' . strtoupper($lang);
171
+            return strtolower($lang).'_'.strtoupper($lang);
172 172
         }
173 173
         
174 174
         return $lang;
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
     public function getWebroot()
238 238
     {
239 239
         if ($this->_webroot === null) {
240
-            $this->_webroot = realpath(realpath($this->basePath) . DIRECTORY_SEPARATOR . $this->webrootDirectory);
240
+            $this->_webroot = realpath(realpath($this->basePath).DIRECTORY_SEPARATOR.$this->webrootDirectory);
241 241
         }
242 242
         
243 243
         return $this->_webroot;
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
     public function getAdminModulesMenus()
319 319
     {
320 320
         $menu = [];
321
-        foreach($this->getAdminModules() as $module) {
321
+        foreach ($this->getAdminModules() as $module) {
322 322
             if ($module->getMenu()) {
323 323
                 $menu[$module->id] = $module->getMenu();
324 324
             }
Please login to merge, or discard this patch.
core/base/BaseBootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
             // see if the module has a registerComponents method
107 107
             foreach ($module->registerComponents() as $componentId => $definition) {
108 108
                 if (!$app->has($componentId)) {
109
-                    Yii::debug('Register component ' . $componentId, __METHOD__);
109
+                    Yii::debug('Register component '.$componentId, __METHOD__);
110 110
                     $app->set($componentId, $definition);
111 111
                 }
112 112
             }
Please login to merge, or discard this patch.