Completed
Pull Request — master (#684)
by
unknown
03:48
created
src/Publishing/Publisher.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
     /**
89 89
      * Get module instance.
90 90
      *
91
-     * @return \Nwidart\Modules\Module
91
+     * @return string
92 92
      */
93 93
     public function getModule()
94 94
     {
Please login to merge, or discard this patch.
src/Support/Migrations/NameParser.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
     /**
91 91
      * Get matches data from regex.
92 92
      *
93
-     * @return array
93
+     * @return string[]
94 94
      */
95 95
     public function getMatches()
96 96
     {
Please login to merge, or discard this patch.
src/Commands/MigrationMakeCommand.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     /**
69 69
      * @throws \InvalidArgumentException
70 70
      *
71
-     * @return mixed
71
+     * @return MigrationMakeCommand
72 72
      */
73 73
     protected function getTemplateContents()
74 74
     {
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     }
109 109
 
110 110
     /**
111
-     * @return mixed
111
+     * @return string
112 112
      */
113 113
     protected function getDestinationFilePath()
114 114
     {
Please login to merge, or discard this patch.
src/Process/Installer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
     /**
107 107
      * Set console command instance.
108 108
      *
109
-     * @param \Illuminate\Console\Command $console
109
+     * @param \Nwidart\Modules\Commands\InstallCommand $console
110 110
      *
111 111
      * @return $this
112 112
      */
Please login to merge, or discard this patch.
src/FileRepository.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -103,7 +103,6 @@  discard block
 block discarded – undo
103 103
     /**
104 104
      * Creates a new Module instance
105 105
      *
106
-     * @param Container $app
107 106
      * @param $name
108 107
      * @param $path
109 108
      * @return \Nwidart\Modules\Module
@@ -425,7 +424,7 @@  discard block
 block discarded – undo
425 424
     /**
426 425
      * Get a specific config data from a configuration file.
427 426
      *
428
-     * @param $key
427
+     * @param string $key
429 428
      *
430 429
      * @param null $default
431 430
      * @return mixed
@@ -614,7 +613,7 @@  discard block
 block discarded – undo
614 613
     /**
615 614
      * Get stub path.
616 615
      *
617
-     * @return string|null
616
+     * @return string|boolean
618 617
      */
619 618
     public function getStubPath()
620 619
     {
Please login to merge, or discard this patch.
src/Commands/TestCommand.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -38,48 +38,48 @@
 block discarded – undo
38 38
         parent::__construct();
39 39
     }
40 40
 
41
-	/**
42
-	 * Execute the console command.
43
-	 *
44
-	 * @throws \Exception
45
-	 */
41
+    /**
42
+     * Execute the console command.
43
+     *
44
+     * @throws \Exception
45
+     */
46 46
     public function handle()
47 47
     {
48
-	    $phpunit = exec('which phpunit');
49
-	    if (empty($phpunit)) {
50
-	    	$this->error('phpunit not found on your system');
51
-		    return;
52
-	    }
48
+        $phpunit = exec('which phpunit');
49
+        if (empty($phpunit)) {
50
+            $this->error('phpunit not found on your system');
51
+            return;
52
+        }
53 53
 
54
-	    $php = exec('which php');
54
+        $php = exec('which php');
55 55
 
56
-	    $phpunitxml = base_path('phpunit.xml');
56
+        $phpunitxml = base_path('phpunit.xml');
57 57
         $testPath = GenerateConfigReader::read('test')->getPath();
58 58
 
59
-	    /** @var \Nwidart\Modules\Module[] $modules */
60
-	    $modules = $this->argument($this->argumentModule) ? [$this->laravel['modules']->findOrFail($this->getModuleName())] : $this->laravel['modules']->getByStatus(1);
59
+        /** @var \Nwidart\Modules\Module[] $modules */
60
+        $modules = $this->argument($this->argumentModule) ? [$this->laravel['modules']->findOrFail($this->getModuleName())] : $this->laravel['modules']->getByStatus(1);
61 61
 
62
-	    $descriptorspec = [
63
-		    ['pipe', 'r'],
64
-	    ];
62
+        $descriptorspec = [
63
+            ['pipe', 'r'],
64
+        ];
65 65
 
66
-	    $process = null;
66
+        $process = null;
67 67
 
68 68
         foreach ($modules as $module) {
69
-	        $directory = $module->getPath().DIRECTORY_SEPARATOR.$testPath;
70
-	        if (! file_exists($directory)) {
71
-	        	continue;
72
-	        }
69
+            $directory = $module->getPath().DIRECTORY_SEPARATOR.$testPath;
70
+            if (! file_exists($directory)) {
71
+                continue;
72
+            }
73 73
 
74
-	        if (! File::glob($directory.DIRECTORY_SEPARATOR.'*.php')) {
75
-	        	continue;
76
-	        }
74
+            if (! File::glob($directory.DIRECTORY_SEPARATOR.'*.php')) {
75
+                continue;
76
+            }
77 77
 
78
-	        $this->info("Running tests for module {$module}:");
79
-	        $process = proc_open("{$php} {$phpunit} -c {$phpunitxml} {$directory}", $descriptorspec, $pipes);
78
+            $this->info("Running tests for module {$module}:");
79
+            $process = proc_open("{$php} {$phpunit} -c {$phpunitxml} {$directory}", $descriptorspec, $pipes);
80 80
         }
81 81
         if (is_resource($process)) {
82
-	        proc_close($process);
82
+            proc_close($process);
83 83
         }
84 84
     }
85 85
 
Please login to merge, or discard this patch.