Completed
Push — master ( dcdcaf...34392c )
by
03:31
created
app/Providers/AppServiceProvider.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@
 block discarded – undo
22 22
     public function register()
23 23
     {
24 24
         $this->app->singleton('auto-correct', function () {
25
-             return new AutoCorrect();
26
-         });
25
+                return new AutoCorrect();
26
+            });
27 27
 
28 28
         $this->app->singleton('markdown', function () {
29 29
             return new Parsedown();
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@
 block discarded – undo
21 21
      */
22 22
     public function register()
23 23
     {
24
-        $this->app->singleton('auto-correct', function () {
24
+        $this->app->singleton('auto-correct', function() {
25 25
              return new AutoCorrect();
26 26
          });
27 27
 
28
-        $this->app->singleton('markdown', function () {
28
+        $this->app->singleton('markdown', function() {
29 29
             return new Parsedown();
30 30
         });
31 31
     }
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     {
33 33
         $this->configureAPIRoute();
34 34
 
35
-        $router->group(['namespace' => $this->controller_namespace], function ($router) {
35
+        $router->group(['namespace' => $this->controller_namespace], function($router) {
36 36
             require app_path('Http/routes.php');
37 37
         });
38 38
     }
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         $api_router->group([
47 47
             'version'   => env('API_PREFIX'),
48 48
             'namespace' => $this->api_controller_namespace,
49
-        ], function ($router) {
49
+        ], function($router) {
50 50
             require app_path('Http/api_routes.php');
51 51
         });
52 52
     }
Please login to merge, or discard this patch.
app/Transformers/BaseTransformer.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Created by PhpStorm.
4
- * User: xuan
5
- * Date: 12/3/15
6
- * Time: 7:12 PM.
7
- */
3
+     * Created by PhpStorm.
4
+     * User: xuan
5
+     * Date: 12/3/15
6
+     * Time: 7:12 PM.
7
+     */
8 8
 namespace PHPHub\Transformers;
9 9
 
10 10
 use Illuminate\Database\Eloquent\Model;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
         $transformData = $this->transformData($model);
22 22
 
23
-        $data = array_filter($transformData, function ($v) {
23
+        $data = array_filter($transformData, function($v) {
24 24
             if (is_null($v)) {
25 25
                 return false;
26 26
             }
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
         // 转换 null 字段为空字符串
32 32
         foreach (array_keys($model->toArray()) as $key) {
33
-            if (! isset($data[$key])) {
33
+            if (!isset($data[$key])) {
34 34
                 $data[$key] = '';
35 35
                 continue;
36 36
             }
Please login to merge, or discard this patch.
app/Presenters/NotificationPresenter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      */
39 39
     public function typeMessage()
40 40
     {
41
-        if (! array_key_exists($this->wrappedObject->type, $this->type_messages)) {
41
+        if (!array_key_exists($this->wrappedObject->type, $this->type_messages)) {
42 42
             throw new \Exception('Type '.$this->wrappedObject->type.'not exists');
43 43
         }
44 44
 
Please login to merge, or discard this patch.
app/Console/Commands/CodeSniffer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         $process = new Process('php '.base_path('vendor/bin/php-cs-fixer').' fix');
42 42
 
43 43
         try {
44
-            $process->run(function ($type, $buffer) {
44
+            $process->run(function($type, $buffer) {
45 45
                 if (Process::ERR === $type) {
46 46
                     $this->error($buffer);
47 47
                 } else {
Please login to merge, or discard this patch.
app/Events/ShouldNotifyTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     public function __call($method, $args)
38 38
     {
39 39
         $property = snake_case(str_replace('get', '', $method));
40
-        if (! isset($this->$property) || $this->$property === null) {
40
+        if (!isset($this->$property) || $this->$property === null) {
41 41
             throw new \Exception('请在 Event 中设置 '.$property);
42 42
         }
43 43
 
Please login to merge, or discard this patch.
app/Repositories/Eloquent/Traits/AutoWithTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
             $include = $include_manager->getIncludable($include_name);
45 45
             $include->setColumns(array_get($param_columns, $include_name, []));
46 46
 
47
-            if (! $include->getForeignKey()) {
47
+            if (!$include->getForeignKey()) {
48 48
                 $this->with($include->getRelation());
49 49
             } else {
50 50
                 $this->withOnly($include->getRelation(), $include->figureOutWhichColumns(), $include->isWithTrashed());
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     {
69 69
         $method_name = camel_case('include_'.str_replace('.', '_', $name));
70 70
 
71
-        if (! method_exists($this, $method_name)) {
71
+        if (!method_exists($this, $method_name)) {
72 72
             throw new Exception("You should define $method_name in your repository");
73 73
         }
74 74
 
Please login to merge, or discard this patch.
app/Repositories/Eloquent/Traits/WIthOnlyTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      */
16 16
     public function withOnly($relation, $columns = null, $with_trashed = false)
17 17
     {
18
-        $this->model = $this->model->with([$relation => function ($query) use ($columns, $with_trashed) {
18
+        $this->model = $this->model->with([$relation => function($query) use ($columns, $with_trashed) {
19 19
             if ($with_trashed) {
20 20
                 $query->withTrashed();
21 21
             }
Please login to merge, or discard this patch.
app/Repositories/Eloquent/ReplyRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      */
42 42
     public function store(array $attributes)
43 43
     {
44
-        if (! is_null($this->validator)) {
44
+        if (!is_null($this->validator)) {
45 45
             $this->validator->with($attributes)
46 46
                 ->passesOrFail(ValidatorInterface::RULE_CREATE);
47 47
         }
Please login to merge, or discard this patch.