Completed
Branch master (1c52c3)
by Alireza
02:33
created
src/Console.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     /**
41 41
      * Register all commands
42 42
      *
43
-     * @return object
43
+     * @return null|integer
44 44
      */
45 45
     public function start()
46 46
     {
Please login to merge, or discard this patch.
src/ConsoleStyle.php 2 patches
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,6 @@  discard block
 block discarded – undo
61 61
      * Write a string as warning output.
62 62
      *
63 63
      * @param  string          $string
64
-     * @param  null|int|string $verbosity
65 64
      * @return void
66 65
      */
67 66
     public function note($string)
@@ -124,6 +123,9 @@  discard block
 block discarded – undo
124 123
         return $level;
125 124
     }
126 125
 
126
+    /**
127
+     * @param string $message
128
+     */
127 129
     public function addInput($message)
128 130
     {
129 131
         $this->info('>>> ' . $message . ' :');
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     {
118 118
         if (isset($this->verbosityMap[$level])) {
119 119
             $level = $this->verbosityMap[$level];
120
-        } elseif (! is_int($level)) {
120
+        } elseif (!is_int($level)) {
121 121
             $level = $this->verbosity;
122 122
         }
123 123
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 
127 127
     public function addInput($message)
128 128
     {
129
-        $this->info('>>> ' . $message . ' :');
129
+        $this->info('>>> '.$message.' :');
130 130
         $userHandle = fopen("php://stdin", "r");
131 131
         $input = fgets($userHandle);
132 132
         fclose($userHandle);
Please login to merge, or discard this patch.
src/Commands/LampCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
             ->setDescription('Start the lamp services - [ Just for Linux ]');
24 24
     }
25 25
 
26
-    protected function execute(InputInterface $input , OutputInterface $output)
26
+    protected function execute(InputInterface $input, OutputInterface $output)
27 27
     {
28 28
         $command = new Style($input, $output);
29 29
 
Please login to merge, or discard this patch.
src/Commands/LocallyIpCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
             ->setDescription('Show the locally ip address');
25 25
     }
26 26
 
27
-    protected function execute(InputInterface $input , OutputInterface $output)
27
+    protected function execute(InputInterface $input, OutputInterface $output)
28 28
     {
29 29
         $command = new Style($input, $output);
30 30
         
Please login to merge, or discard this patch.
src/Commands/HookSetupCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,24 +24,24 @@  discard block
 block discarded – undo
24 24
             ->setDescription('Setup hook of your packagist package');
25 25
     }
26 26
 
27
-    protected function execute(InputInterface $input , OutputInterface $output)
27
+    protected function execute(InputInterface $input, OutputInterface $output)
28 28
     {
29 29
         $command = new Style($input, $output);
30 30
 
31 31
         $username = $command->addInput('Enter your packagist username');
32
-        if(empty(trim($username))) {
32
+        if (empty(trim($username))) {
33 33
             $command->error("Packagist username is required !");
34 34
             exit;
35 35
         }
36 36
 
37 37
         $api = $command->addInput('Enter your packagist API');
38
-        if(empty(trim($api))) {
38
+        if (empty(trim($api))) {
39 39
             $command->error("Packagist API is required !");
40 40
             exit;
41 41
         }
42 42
 
43 43
         $package = $command->addInput('Enter your package-url');
44
-        if(empty(trim($package))) {
44
+        if (empty(trim($package))) {
45 45
             $command->error("Package-url is required !");
46 46
             exit;
47 47
         }
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
             )
59 59
         )->post();
60 60
 
61
-        if($result['status'] !== 'success') {
61
+        if ($result['status'] !== 'success') {
62 62
             $command->error("Message : ".$result['message']." | Failed ");
63 63
             exit;
64 64
         }
Please login to merge, or discard this patch.
src/Commands/PublicIpCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
             ->setDescription('Show the public ip address');
25 25
     }
26 26
 
27
-    protected function execute(InputInterface $input , OutputInterface $output)
27
+    protected function execute(InputInterface $input, OutputInterface $output)
28 28
     {
29 29
         $command = new Style($input, $output);
30 30
 
Please login to merge, or discard this patch.
src/Commands/ChmodCommandHostly.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         $this->addArgument('directory', InputArgument::REQUIRED, 'Get the directory');
28 28
     }
29 29
 
30
-    protected function execute(InputInterface $input , OutputInterface $output)
30
+    protected function execute(InputInterface $input, OutputInterface $output)
31 31
     {
32 32
         $command = new Style($input, $output);
33 33
 
Please login to merge, or discard this patch.
src/Commands/ChmodCommandLocally.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         $this->addArgument('directory', InputArgument::REQUIRED, 'Get the directory');
28 28
     }
29 29
 
30
-    protected function execute(InputInterface $input , OutputInterface $output)
30
+    protected function execute(InputInterface $input, OutputInterface $output)
31 31
     {
32 32
         $command = new Style($input, $output);
33 33
 
Please login to merge, or discard this patch.