Completed
Push — master ( a0f8dd...4bb285 )
by Andrii
13:40
created
src/components/GitHub.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 
32 32
     public function getFull_name()
33 33
     {
34
-        return $this->getVendor() . '/' . $this->getName();
34
+        return $this->getVendor().'/'.$this->getName();
35 35
     }
36 36
 
37 37
     public function setFullName($value)
Please login to merge, or discard this patch.
src/log/ConsoleTarget.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         if ($style) {
40 40
             $message = Console::ansiFormat($message, $style);
41 41
         }
42
-        Console::stdout($message . "\n");
42
+        Console::stdout($message."\n");
43 43
     }
44 44
 
45 45
     public function getLevel()
Please login to merge, or discard this patch.
src/base/Starter.php 2 patches
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
     /**
234 234
      * Passthru command.
235 235
      * @param string $command
236
-     * @param array $args
236
+     * @param string[] $args
237 237
      * @return int exit code
238 238
      */
239 239
     private function passthru($command, $args)
@@ -299,6 +299,9 @@  discard block
 block discarded – undo
299 299
         }
300 300
     }
301 301
 
302
+    /**
303
+     * @param string $value
304
+     */
302 305
     public function setRootDir($value)
303 306
     {
304 307
         $this->_rootDir = $value;
@@ -330,6 +333,9 @@  discard block
 block discarded – undo
330 333
         throw new InvalidParamException("Not a hidev project (or any of the parent directories).\nUse `hidev init` to initialize hidev project.");
331 334
     }
332 335
 
336
+    /**
337
+     * @param string $subpath
338
+     */
333 339
     public function buildRootPath($subpath)
334 340
     {
335 341
         return $this->getRootDir() . DIRECTORY_SEPARATOR . $subpath;
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -162,9 +162,9 @@  discard block
 block discarded – undo
162 162
         Yii::setAlias('@hidev', dirname(__DIR__));
163 163
 
164 164
         $package = $this->goals['package'];
165
-        $alias  = isset($package['namespace']) ? strtr($package['namespace'], '\\', '/') : '';
166
-        if ($alias && !Yii::getAlias('@' . $alias, false)) {
167
-            $srcdir = Yii::getAlias('@root/' . ($package['src'] ?: 'src'));
165
+        $alias = isset($package['namespace']) ? strtr($package['namespace'], '\\', '/') : '';
166
+        if ($alias && !Yii::getAlias('@'.$alias, false)) {
167
+            $srcdir = Yii::getAlias('@root/'.($package['src'] ?: 'src'));
168 168
             Yii::setAlias($alias, $srcdir);
169 169
         }
170 170
         $aliases = $this->goals['aliases'];
@@ -331,6 +331,6 @@  discard block
 block discarded – undo
331 331
 
332 332
     public function buildRootPath($subpath)
333 333
     {
334
-        return $this->getRootDir() . DIRECTORY_SEPARATOR . $subpath;
334
+        return $this->getRootDir().DIRECTORY_SEPARATOR.$subpath;
335 335
     }
336 336
 }
Please login to merge, or discard this patch.
src/helpers/Helper.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -18,11 +18,17 @@
 block discarded – undo
18 18
  */
19 19
 class Helper
20 20
 {
21
+    /**
22
+     * @return string
23
+     */
21 24
     public static function bad2sep($str, $separator = '-')
22 25
     {
23 26
         return preg_replace('/[^a-zA-Z0-9-]/', $separator, $str);
24 27
     }
25 28
 
29
+    /**
30
+     * @param string $id
31
+     */
26 32
     public static function id2camel($id, $separator = '-')
27 33
     {
28 34
         return Inflector::id2camel(self::bad2sep($id, $separator), $separator);
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.