Completed
Push — dev ( 607387...66849d )
by Marc
02:33
created
src/Model/FakeModel.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,6 @@
 block discarded – undo
40 40
 
41 41
     /**
42 42
      * @param $table
43
-     * @param null $primaryKey
44 43
      * @return static
45 44
      */
46 45
     public function setup($config)
Please login to merge, or discard this patch.
src/Fields/FieldFactory.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use Mascame\Artificer\Model\Model;
6 6
 use \Illuminate\Support\Str as Str;
7 7
 use Mascame\Artificer\Fields\FieldWrapper;
8
-use Mascame\Formality\Field\Field;
9 8
 
10 9
 class FieldFactory extends \Mascame\Formality\Factory\Factory
11 10
 {
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
 
59 59
     /**
60 60
      * @param $field Relation
61
-     * @return mixed
61
+     * @return \Mascame\Formality\Field\FieldInterface
62 62
      */
63 63
     public function completeRelation($field) {
64 64
         $relationship = $field->getOption('relationship', []);
Please login to merge, or discard this patch.
src/AutoPublishable.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
     /**
39 39
      * @param null $fileToCheck
40
-     * @return mixed
40
+     * @return boolean
41 41
      */
42 42
     protected function isPublished($fileToCheck = null) {
43 43
         if (! $fileToCheck) $fileToCheck = config_path($this->name);
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      * Add files to publishable array & autopublish them in case directory does not exist
54 54
      *
55 55
      * @param array $paths
56
-     * @param null $group
56
+     * @param string $group
57 57
      */
58 58
     protected function publishes(array $paths, $group = null) {
59 59
         parent::publishes($paths, $group);
Please login to merge, or discard this patch.
src/Options/PluginOption.php 1 patch
Doc Comments   -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,6 @@  discard block
 block discarded – undo
26 26
     }
27 27
 
28 28
     /**
29
-     * @param string $plugin
30 29
      * @param string $key
31 30
      */
32 31
     public function get($key = null, $configFile = null)
@@ -35,7 +34,6 @@  discard block
 block discarded – undo
35 34
     }
36 35
 
37 36
     /**
38
-     * @param string $plugin
39 37
      */
40 38
     public function has($key = '', $configFile = null)
41 39
     {
@@ -43,7 +41,6 @@  discard block
 block discarded – undo
43 41
     }
44 42
 
45 43
     /**
46
-     * @param string $plugin
47 44
      */
48 45
     public function set($key, $value, $configFile = null)
49 46
     {
Please login to merge, or discard this patch.
src/Controllers/ExtensionController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 
66 66
     /**
67 67
      * @param $extension
68
-     * @param $action
68
+     * @param string $action
69 69
      * @return \Illuminate\Http\RedirectResponse
70 70
      * @throws \Exception
71 71
      */
Please login to merge, or discard this patch.
src/Model/ModelManager.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@
 block discarded – undo
189 189
 
190 190
     /**
191 191
      * @param $model
192
-     * @return bool
192
+     * @return null|boolean
193 193
      */
194 194
     protected function isCurrent($modelName)
195 195
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -1,10 +1,8 @@
 block discarded – undo
1 1
 <?php namespace Mascame\Artificer\Model;
2 2
 
3
-use Illuminate\Contracts\Database\ModelIdentifier;
4 3
 use View;
5 4
 use Route;
6 5
 use \Illuminate\Support\Str as Str;
7
-use Mascame\Artificer\Options\AdminOption;
8 6
 
9 7
 // Todo: get column type http://stackoverflow.com/questions/18562684/how-to-get-database-field-type-in-laravel
10 8
 class Model
Please login to merge, or discard this patch.
src/Controllers/ModelController.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,6 @@
 block discarded – undo
131 131
     /**
132 132
      * Update or create the specified resource in storage.
133 133
      *
134
-     * @param  int $id
135 134
      * @return Response
136 135
      */
137 136
 
Please login to merge, or discard this patch.
src/Fields/FieldWrapper.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
     /**
31 31
      * Field constructor.
32
-     * @param FieldInterface|TypeInterface $field
33
-     * @param null $relation
32
+     * @param FieldInterface $field
34 33
      */
35 34
     public function __construct(FieldInterface $field)
36 35
     {
@@ -209,7 +208,7 @@  discard block
 block discarded – undo
209 208
     }
210 209
 
211 210
     /**
212
-     * @param array|string $classes
211
+     * @param array|string $class
213 212
      */
214 213
     protected function mergeClassAttribute($class) {
215 214
         if (! is_array($class)) $class = [$class];
Please login to merge, or discard this patch.
src/Fields/Types/Relations/hasOne.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php namespace Mascame\Artificer\Fields\Types;
2 2
 
3 3
 use Form;
4
-use Input;
5 4
 
6 5
 class Text extends \Mascame\Formality\Types\Text
7 6
 {
Please login to merge, or discard this patch.