Passed
Push — master ( 080a6c...c98abf )
by Jonathan
17:45
created
app/helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
      * @param mixed $message
84 84
      * @return void
85 85
      */
86
-    function uclog($message, $type='info')
86
+    function uclog($message, $type = 'info')
87 87
     {
88 88
         Log::$type($message);
89 89
     }
Please login to merge, or discard this patch.
app/Console/Commands/InstallCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,13 +55,13 @@
 block discarded – undo
55 55
     public function handle()
56 56
     {
57 57
         $this->comment('Executing make:auth...');
58
-        $this->callSilent('make:auth', ['--force' => true]);
58
+        $this->callSilent('make:auth', [ '--force' => true ]);
59 59
 
60 60
         $this->comment('Publishing Uccello Assets...');
61
-        $this->callSilent('vendor:publish', ['--tag' => 'uccello-assets']);
61
+        $this->callSilent('vendor:publish', [ '--tag' => 'uccello-assets' ]);
62 62
 
63 63
         $this->comment('Publishing Uccello Configuration...');
64
-        $this->callSilent('vendor:publish', ['--tag' => 'uccello-config']);
64
+        $this->callSilent('vendor:publish', [ '--tag' => 'uccello-config' ]);
65 65
 
66 66
 
67 67
         $this->comment('Copying User Model...');
Please login to merge, or discard this patch.
app/Fields/Uitype/AssignedUser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -120,8 +120,8 @@
 block discarded – undo
120 120
      */
121 121
     public function addConditionToSearchQuery(Builder $query, Field $field, $value) : Builder
122 122
     {
123
-        $query->where(function ($query) use($field, $value) {
124
-            foreach ((array) $value as $_value) {
123
+        $query->where(function($query) use($field, $value) {
124
+            foreach ((array)$value as $_value) {
125 125
                 // Replace me by connected user's id
126 126
                 if ($_value === 'me') {
127 127
                     $_value = auth()->id();
Please login to merge, or discard this patch.
app/Fields/Uitype/DateTime.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         ];
57 57
 
58 58
         // We want the field displays the datetime in the good format
59
-        $options['value'] = $this->getFormattedValueToDisplay($field, $record);
59
+        $options[ 'value' ] = $this->getFormattedValueToDisplay($field, $record);
60 60
 
61 61
         return $options;
62 62
     }
@@ -105,10 +105,10 @@  discard block
 block discarded – undo
105 105
      */
106 106
     public function addConditionToSearchQuery(Builder $query, Field $field, $value) : Builder
107 107
     {
108
-        $query->where(function ($query) use($field, $value) {
108
+        $query->where(function($query) use($field, $value) {
109 109
             $values = explode(',', $value); // Start Date, End Date
110
-            $dateStart = \Carbon\Carbon::createFromFormat(config('uccello.format.php.datetime'), trim($values[0]));
111
-            $dateEnd = \Carbon\Carbon::createFromFormat(config('uccello.format.php.datetime'), trim($values[1]));
110
+            $dateStart = \Carbon\Carbon::createFromFormat(config('uccello.format.php.datetime'), trim($values[ 0 ]));
111
+            $dateEnd = \Carbon\Carbon::createFromFormat(config('uccello.format.php.datetime'), trim($values[ 1 ]));
112 112
             $query->whereBetween($field->column, [ $dateStart, $dateEnd ])->get();
113 113
         });
114 114
 
Please login to merge, or discard this patch.
app/Fields/Uitype/Date.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         ];
44 44
 
45 45
         // We want the field displays the date in the good format
46
-        $options['value'] = $this->getFormattedValueToDisplay($field, $record);
46
+        $options[ 'value' ] = $this->getFormattedValueToDisplay($field, $record);
47 47
 
48 48
         return $options;
49 49
     }
@@ -92,10 +92,10 @@  discard block
 block discarded – undo
92 92
      */
93 93
     public function addConditionToSearchQuery(Builder $query, Field $field, $value) : Builder
94 94
     {
95
-        $query->where(function ($query) use($field, $value) {
95
+        $query->where(function($query) use($field, $value) {
96 96
             $values = explode(',', $value); // Start Date, End Date
97
-            $dateStart = \Carbon\Carbon::createFromFormat(config('uccello.format.php.date'), trim($values[0]));
98
-            $dateEnd = \Carbon\Carbon::createFromFormat(config('uccello.format.php.date'), trim($values[1]));
97
+            $dateStart = \Carbon\Carbon::createFromFormat(config('uccello.format.php.date'), trim($values[ 0 ]));
98
+            $dateEnd = \Carbon\Carbon::createFromFormat(config('uccello.format.php.date'), trim($values[ 1 ]));
99 99
             $query->whereBetween($field->column, [ $dateStart, $dateEnd ])->get();
100 100
         });
101 101
 
Please login to merge, or discard this patch.
database/migrations/2018_04_15_000016_create_entities_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create($this->tablePrefix.'entities', function (Blueprint $table) {
16
+        Schema::create($this->tablePrefix.'entities', function(Blueprint $table) {
17 17
             $table->uuid('id')->primary();
18 18
             $table->unsignedInteger('module_id');
19 19
             $table->unsignedInteger('record_id');
Please login to merge, or discard this patch.
app/Fields/Uitype/Entity.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
             if (method_exists($modelClass, 'getSearchResult') && property_exists($modelClass, 'searchableColumns')) {
110 110
                 // Search related records and get all ids
111 111
                 $searchResults = new Search();
112
-                $searchResults->registerModel($modelClass, (array) (new $modelClass)->searchableColumns);
112
+                $searchResults->registerModel($modelClass, (array)(new $modelClass)->searchableColumns);
113 113
                 $recordIds = $searchResults->search($value)->pluck('searchable.id');
114 114
 
115 115
                 // Search records linked to record ids got previously
Please login to merge, or discard this patch.
app/Models/Domain.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@
 block discarded – undo
187 187
      */
188 188
     protected function getNotAdminModulesAttribute() : array
189 189
     {
190
-        return Cache::rememberForever('not_admin_modules', function () {
190
+        return Cache::rememberForever('not_admin_modules', function() {
191 191
             $modules = [ ];
192 192
 
193 193
             foreach ($this->modules()->get() as $module) {
Please login to merge, or discard this patch.
app/Http/Controllers/Core/SearchController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
             $modelClass = $module->model_class;
53 53
 
54 54
             if (method_exists($modelClass, 'getSearchResult') && property_exists($modelClass, 'searchableColumns')) {
55
-                $searchResults->registerModel($modelClass, (array) (new $modelClass)->searchableColumns);
55
+                $searchResults->registerModel($modelClass, (array)(new $modelClass)->searchableColumns);
56 56
             }
57 57
         }
58 58
 
Please login to merge, or discard this patch.