Completed
Push — master ( 5b2853...904b84 )
by Ricardo
03:18
created
src/Helper/MailerFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
     /**
64 64
      * Return a specific configuration value by key.
65 65
      *
66
-     * @param  $configName
66
+     * @param  string $configName
67 67
      * @return null|string
68 68
      */
69 69
     public function getMailConfig($configName)
Please login to merge, or discard this patch.
src/Helper/UrlParser.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Fabrica\Helper;
4 4
 
5
-use Illuminate\Support\Facades\Request;
6
-
7 5
 class UrlParser
8 6
 {
9 7
 
Please login to merge, or discard this patch.
src/Models/Code/Feed.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -12,10 +12,6 @@
 block discarded – undo
12 12
 
13 13
 namespace Fabrica\Models\Code;
14 14
 
15
-use Doctrine\Common\Collections\ArrayCollection;
16
-
17
-use Support\Models\Base;
18
-
19 15
 /**
20 16
  * @author Julien DIDIER <[email protected]>
21 17
  */
Please login to merge, or discard this patch.
src/Models/Code/Message.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -103,6 +103,9 @@
 block discarded – undo
103 103
         return null !== $this->user;
104 104
     }
105 105
 
106
+    /**
107
+     * @param User $user
108
+     */
106 109
     public function setUser($user)
107 110
     {
108 111
         $this->user = $user;
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,6 @@
 block discarded – undo
16 16
 
17 17
 use Fabrica\Models\Code\Message\CloseMessage;
18 18
 use Fabrica\Models\Code\Message\CommitMessage;
19
-use Fabrica\Models\Code\Message\ForceMessage;
20 19
 
21 20
 /**
22 21
  * @author Julien DIDIER <[email protected]>
Please login to merge, or discard this patch.
src/Models/Code/User.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -316,7 +316,6 @@
 block discarded – undo
316 316
     /**
317 317
      * Searches a user email by text.
318 318
      *
319
-     * @param string $email the email to search
320 319
      *
321 320
      * @return Email
322 321
      */
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
 
13 13
 namespace Fabrica\Models\Code;
14 14
 
15
-use Support\Models\Base;
16 15
 use Doctrine\Common\Collections\ArrayCollection;
16
+use Support\Models\Base;
17 17
 
18 18
 /**
19 19
  * User in Fabrica.
Please login to merge, or discard this patch.
src/Models/Infra/Ci/Build.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
     protected $buildBranchDirectory;
65 65
 
66 66
     /**
67
-     * @return null|Project
67
+     * @return null|\PHPCensor\Model\Project
68 68
      *
69 69
      * @throws \PHPCensor\Exception\HttpException
70 70
      */
Please login to merge, or discard this patch.
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,16 +2,16 @@
 block discarded – undo
2 2
 
3 3
 namespace Fabrica\Models\Infra\Ci;
4 4
 
5
-use Fabrica\Tools\Builder;
6 5
 use Fabrica\Helper\Lang;
6
+use Fabrica\Models\Infra\Ci\Base\Build as BaseBuild;
7
+use Fabrica\Tools\Builder;
8
+use Fabrica\Tools\Exception\InvalidArgumentException;
7 9
 use Fabrica\Tools\Plugin\PhpParallelLint;
10
+use Fabrica\Tools\Store\BuildErrorStore;
8 11
 use Fabrica\Tools\Store\Factory;
9 12
 use Fabrica\Tools\Store\ProjectStore;
10
-use Fabrica\Tools\Store\BuildErrorStore;
11 13
 use Symfony\Component\Filesystem\Filesystem;
12 14
 use Symfony\Component\Yaml\Parser as YamlParser;
13
-use Fabrica\Models\Infra\Ci\Base\Build as BaseBuild;
14
-use Fabrica\Tools\Exception\InvalidArgumentException;
15 15
 
16 16
 /**
17 17
  * @author Ricardo Sierra <[email protected]>
Please login to merge, or discard this patch.
src/Models/Infra/Ci/Build/BitbucketBuild.php 1 patch
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,13 +2,13 @@
 block discarded – undo
2 2
 
3 3
 namespace Fabrica\Models\Infra\Ci\Build;
4 4
 
5
-use GuzzleHttp\Client;
6
-use Fabrica\Tools\Builder;
7 5
 use Fabrica\Helper\Bitbucket;
8
-use Fabrica\Tools\Config;
6
+use Fabrica\Helper\Diff;
9 7
 use Fabrica\Models\Infra\Ci\Build;
10 8
 use Fabrica\Models\Infra\Ci\BuildError;
11
-use Fabrica\Helper\Diff;
9
+use Fabrica\Tools\Builder;
10
+use Fabrica\Tools\Config;
11
+use GuzzleHttp\Client;
12 12
 
13 13
 /**
14 14
  * BitBucket Build Model
Please login to merge, or discard this patch.
src/Models/Infra/Ci/Model/Project.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 class Project extends BaseProject
16 16
 {
17 17
     /**
18
-     * @return ProjectGroup|null
18
+     * @return null|\PHPCensor\Model\ProjectGroup
19 19
      */
20 20
     public function getGroup()
21 21
     {
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      * @param string $branch
49 49
      * @param null   $status
50 50
      *
51
-     * @return mixed|null
51
+     * @return Build|null
52 52
      */
53 53
     public function getLatestBuild($branch = 'master', $status = null)
54 54
     {
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      *
78 78
      * @param string $branch
79 79
      *
80
-     * @return mixed|null
80
+     * @return Build|null
81 81
      */
82 82
     public function getPreviousBuild($branch = 'master')
83 83
     {
Please login to merge, or discard this patch.
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@
 block discarded – undo
2 2
 
3 3
 namespace Fabrica\Models\Infra\Ci\Model;
4 4
 
5
-use Fabrica\Tools\Store\Factory;
5
+use Fabrica\Models\Infra\Ci\Base\Project as BaseProject;
6 6
 use Fabrica\Tools\Store\EnvironmentStore;
7
+use Fabrica\Tools\Store\Factory;
7 8
 use Fabrica\Tools\Store\ProjectGroupStore;
8
-use Symfony\Component\Yaml\Parser as YamlParser;
9 9
 use Symfony\Component\Yaml\Dumper as YamlDumper;
10
-use Fabrica\Models\Infra\Ci\Base\Project as BaseProject;
10
+use Symfony\Component\Yaml\Parser as YamlParser;
11 11
 
12 12
 /**
13 13
  * @author Ricardo Sierra <[email protected]>
Please login to merge, or discard this patch.
src/Models/Infra/SshKey.php 1 patch
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,12 +2,11 @@
 block discarded – undo
2 2
 
3 3
 namespace Fabrica\Models\Infra;
4 4
 
5
-use Support\Models\Base;
6 5
 use Fabrica\Helper\File;
6
+use Support\Models\Base;
7 7
 
8 8
 // set_include_path(get_include_path() . get_include_path().'/phpseclib');
9 9
 // include('phpseclib/Net/SSH2.php');
10
-use phpseclib\Net\SSH2;
11 10
 use phpseclib\Crypt\RSA as Crypt_RSA;
12 11
 
13 12
 class SshKey extends Base
Please login to merge, or discard this patch.