Completed
Push — master ( d3e6ec...8a02e7 )
by Zach
03:25 queued 01:32
created
src/ServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,11 +33,11 @@
 block discarded – undo
33 33
      */
34 34
     protected function registerCommands()
35 35
     {
36
-        $this->app->singleton('command.pbag.make', function ($app) {
36
+        $this->app->singleton('command.pbag.make', function($app) {
37 37
             return $app['LaravelPropertyBag\Commands\PublishSettingsConfig'];
38 38
         });
39 39
 
40
-        $this->app->singleton('command.pbag.rules', function ($app) {
40
+        $this->app->singleton('command.pbag.rules', function($app) {
41 41
             return $app['LaravelPropertyBag\Commands\PublishRulesFile'];
42 42
         });
43 43
 
Please login to merge, or discard this patch.
src/Migrations/2016_09_19_000000_create_property_bag_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public function up()
14 14
     {
15
-        Schema::create('property_bag', function (Blueprint $table) {
15
+        Schema::create('property_bag', function(Blueprint $table) {
16 16
             $table->increments('id');
17 17
             $table->string('resource_type')->index();
18 18
             $table->integer('resource_id')->unsigned()->index();
Please login to merge, or discard this patch.
src/Settings/Settings.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
     {
164 164
         $saved = $this->allSaved();
165 165
 
166
-        return $this->allDefaults()->map(function ($value, $key) use ($saved) {
166
+        return $this->allDefaults()->map(function($value, $key) use ($saved) {
167 167
             if ($saved->has($key)) {
168 168
                 return $saved->get($key);
169 169
             }
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
      */
180 180
     public function allDefaults()
181 181
     {
182
-        return $this->getRegistered()->map(function ($value) {
182
+        return $this->getRegistered()->map(function($value) {
183 183
             return $value['default'];
184 184
         });
185 185
     }
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
      */
206 206
     public function allAllowed()
207 207
     {
208
-        return $this->getRegistered()->map(function ($value) {
208
+        return $this->getRegistered()->map(function($value) {
209 209
             return $value['allowed'];
210 210
         });
211 211
     }
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
      */
230 230
     public function set(array $attributes)
231 231
     {
232
-        collect($attributes)->each(function ($value, $key) {
232
+        collect($attributes)->each(function($value, $key) {
233 233
             $this->setKeyValue($key, $value);
234 234
         });
235 235
 
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
      */
396 396
     protected function getAllSettingsFlat()
397 397
     {
398
-        return $this->getAllSettings()->flatMap(function (Model $model) {
398
+        return $this->getAllSettings()->flatMap(function(Model $model) {
399 399
             return [$model->key => json_decode($model->value)[0]];
400 400
         });
401 401
     }
@@ -421,7 +421,7 @@  discard block
 block discarded – undo
421 421
      */
422 422
     public function get($key)
423 423
     {
424
-        return $this->allSaved()->get($key, function () use ($key) {
424
+        return $this->allSaved()->get($key, function() use ($key) {
425 425
             return $this->getDefault($key);
426 426
         });
427 427
     }
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
      * @param string $key
322 322
      * @param mixed  $value
323 323
      *
324
-     * @return LaravelPropertyBag\Settings\PropertyBag
324
+     * @return Model
325 325
      */
326 326
     protected function createRecord($key, $value)
327 327
     {
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
      *
370 370
      * @param string $key
371 371
      *
372
-     * @return bool
372
+     * @return boolean|null
373 373
      */
374 374
     protected function deleteRecord($key)
375 375
     {
Please login to merge, or discard this patch.