Completed
Push — master ( a0f8dd...4bb285 )
by Andrii
13:40
created
src/base/File.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     protected static $_extension2type = [
125 125
         'json'      => 'json',
126
-        'yml'       => 'yaml',  /// first one is preferred
126
+        'yml'       => 'yaml', /// first one is preferred
127 127
         'yaml'      => 'yaml',
128 128
         'xml'       => 'xml',
129 129
         'xml.dist'  => 'xml',
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
     {
175 175
         $path = $this->getPath();
176 176
         if (strncmp($path, '/', 1)) {
177
-            $path = getcwd() . '/' . $path;
177
+            $path = getcwd().'/'.$path;
178 178
         }
179 179
 
180 180
         return $path;
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 
188 188
     public function setBasename($basename)
189 189
     {
190
-        $this->setPath($this->_dirname . '/' . $basename);
190
+        $this->setPath($this->_dirname.'/'.$basename);
191 191
     }
192 192
 
193 193
     public function getBasename()
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
 
198 198
     public function setDirname($dirname)
199 199
     {
200
-        $this->setPath($dirname . '/' . $this->_basename);
200
+        $this->setPath($dirname.'/'.$this->_basename);
201 201
     }
202 202
 
203 203
     public function getDirname()
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 
208 208
     public function setFilename($filename)
209 209
     {
210
-        $this->setPath($this->_dirname . '/' . $filename . '.' . $this->_extension);
210
+        $this->setPath($this->_dirname.'/'.$filename.'.'.$this->_extension);
211 211
     }
212 212
 
213 213
     public function getFilename()
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
 
218 218
     public function setExtension($extension)
219 219
     {
220
-        $this->setPath($this->_dirname . '/' . $this->_filename . '.' . $extension);
220
+        $this->setPath($this->_dirname.'/'.$this->_filename.'.'.$extension);
221 221
     }
222 222
 
223 223
     public function getExtension()
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
     {
269 269
         if (!is_object($this->_handler)) {
270 270
             $this->_handler = Yii::createObject([
271
-                'class'    => 'hidev\handlers\\' . $this->getCtype() . 'Handler',
271
+                'class'    => 'hidev\handlers\\'.$this->getCtype().'Handler',
272 272
                 'template' => $this->template,
273 273
                 'goal'     => $this->goal,
274 274
             ]);
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
 
372 372
     public function chown($value)
373 373
     {
374
-        $ownergroup = $this->getOwner() . ':' . $this->getGroup();
374
+        $ownergroup = $this->getOwner().':'.$this->getGroup();
375 375
         if (in_array((string) $value, [$ownergroup, $this->getOwner(), $this->getUid()], true)) {
376 376
             return;
377 377
         }
Please login to merge, or discard this patch.
src/components/Version.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
 
48 48
     public function save()
49 49
     {
50
-        $this->getFile()->write(implode(' ', [$this->release, $this->date, $this->time, $this->zone, $this->hash]) . "\n");
50
+        $this->getFile()->write(implode(' ', [$this->release, $this->date, $this->time, $this->zone, $this->hash])."\n");
51 51
     }
52 52
 
53 53
     public function setRelease($release = null)
Please login to merge, or discard this patch.
src/config/basis.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     'name'                  => 'HiDev',
18 18
     'basePath'              => dirname(__DIR__),
19 19
     'vendorPath'            => HIDEV_VENDOR_DIR,
20
-    'runtimePath'           => dirname(HIDEV_VENDOR_DIR) . '/.hidev/runtime',
20
+    'runtimePath'           => dirname(HIDEV_VENDOR_DIR).'/.hidev/runtime',
21 21
     'controllerNamespace'   => 'hidev\\controllers',
22 22
     'defaultRoute'          => 'default',
23 23
     'bootstrap'             => ['log'],
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         ],
87 87
         'own.version' => [
88 88
             'class' => \hidev\components\Version::class,
89
-            'file'  => dirname(dirname(__DIR__)) . '/version',
89
+            'file'  => dirname(dirname(__DIR__)).'/version',
90 90
         ],
91 91
         'codeception' => [
92 92
             'class' => \hidev\components\WTF::class,
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         'singletons' => [
106 106
             \hidev\base\Interpolator::class => [
107 107
             ],
108
-            'Detect VCS' => function () {
108
+            'Detect VCS' => function() {
109 109
                 $detectedVCS = 'git';
110 110
                 return Yii::$app->get($detectedVCS);
111 111
             },
Please login to merge, or discard this patch.
src/controllers/VersionController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
     public function getComponent()
21 21
     {
22
-        return $this->take(($own ? 'own.' : '') . 'version');
22
+        return $this->take(($own ? 'own.' : '').'version');
23 23
     }
24 24
 
25 25
     public $defaultAction = 'show';
Please login to merge, or discard this patch.