Completed
Push — master ( d34386...e5cdd3 )
by Manish
116:42 queued 59:07
created
bootstrap/cache/services.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return  [
4
-  'providers' =>  [
4
+    'providers' =>  [
5 5
     0  => 'App\\Plugins\\Ccavanue\\ServiceProvider',
6 6
     1  => 'App\\Plugins\\Ping\\ServiceProvider',
7 7
     2  => 'App\\Plugins\\Twilio\\ServiceProvider',
@@ -34,8 +34,8 @@  discard block
 block discarded – undo
34 34
     29 => 'App\\Providers\\EventServiceProvider',
35 35
     30 => 'App\\Providers\\RouteServiceProvider',
36 36
     31 => 'Illuminate\\Broadcasting\\BroadcastServiceProvider',
37
-  ],
38
-  'eager' =>  [
37
+    ],
38
+    'eager' =>  [
39 39
     0  => 'App\\Plugins\\Ccavanue\\ServiceProvider',
40 40
     1  => 'App\\Plugins\\Ping\\ServiceProvider',
41 41
     2  => 'App\\Plugins\\Twilio\\ServiceProvider',
@@ -54,8 +54,8 @@  discard block
 block discarded – undo
54 54
     15 => 'App\\Providers\\AppServiceProvider',
55 55
     16 => 'App\\Providers\\EventServiceProvider',
56 56
     17 => 'App\\Providers\\RouteServiceProvider',
57
-  ],
58
-  'deferred' =>  [
57
+    ],
58
+    'deferred' =>  [
59 59
     'Illuminate\\Bus\\Dispatcher'                         => 'Illuminate\\Bus\\BusServiceProvider',
60 60
     'Illuminate\\Contracts\\Bus\\Dispatcher'              => 'Illuminate\\Bus\\BusServiceProvider',
61 61
     'Illuminate\\Contracts\\Bus\\QueueingDispatcher'      => 'Illuminate\\Bus\\BusServiceProvider',
@@ -122,8 +122,8 @@  discard block
 block discarded – undo
122 122
     'Illuminate\\Broadcasting\\BroadcastManager'          => 'Illuminate\\Broadcasting\\BroadcastServiceProvider',
123 123
     'Illuminate\\Contracts\\Broadcasting\\Factory'        => 'Illuminate\\Broadcasting\\BroadcastServiceProvider',
124 124
     'Illuminate\\Contracts\\Broadcasting\\Broadcaster'    => 'Illuminate\\Broadcasting\\BroadcastServiceProvider',
125
-  ],
126
-  'when' =>  [
125
+    ],
126
+    'when' =>  [
127 127
     'Illuminate\\Bus\\BusServiceProvider' =>  [
128 128
     ],
129 129
     'Illuminate\\Cache\\CacheServiceProvider' =>  [
@@ -152,5 +152,5 @@  discard block
 block discarded – undo
152 152
     ],
153 153
     'Illuminate\\Broadcasting\\BroadcastServiceProvider' =>  [
154 154
     ],
155
-  ],
155
+    ],
156 156
 ];
Please login to merge, or discard this patch.
app/Http/Controllers/Common/TemplateController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -87,14 +87,14 @@  discard block
 block discarded – undo
87 87
     public function GetTemplates()
88 88
     {
89 89
         return \Datatable::collection($this->template->select('id', 'name', 'type')->get())
90
-                        ->addColumn('#', function ($model) {
90
+                        ->addColumn('#', function($model) {
91 91
                             return "<input type='checkbox' value=".$model->id.' name=select[] id=check>';
92 92
                         })
93 93
                         ->showColumns('name')
94
-                        ->addColumn('type', function ($model) {
94
+                        ->addColumn('type', function($model) {
95 95
                             return $this->type->where('id', $model->type)->first()->name;
96 96
                         })
97
-                        ->addColumn('action', function ($model) {
97
+                        ->addColumn('action', function($model) {
98 98
                             return '<a href='.url('templates/'.$model->id.'/edit')." class='btn btn-sm btn-primary'>Edit</a>";
99 99
                         })
100 100
                         ->searchColumns('name')
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
             $data = str_replace($array1, $array2, $data);
253 253
             $settings = \App\Model\Common\Setting::find(1);
254 254
             $fromname = $settings->company;
255
-            \Mail::send('emails.mail', ['data' => $data], function ($m) use ($from, $to, $subject, $fromname, $toname, $cc, $attach) {
255
+            \Mail::send('emails.mail', ['data' => $data], function($m) use ($from, $to, $subject, $fromname, $toname, $cc, $attach) {
256 256
 
257 257
                 $m->from($from, $fromname);
258 258
 
Please login to merge, or discard this patch.
app/Http/Controllers/Order/InvoiceController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -91,10 +91,10 @@  discard block
 block discarded – undo
91 91
         //dd($this->invoice->get());
92 92
         //$invoice = \DB::table('invoices');
93 93
         return \Datatable::query($this->invoice->select('id', 'user_id', 'number', 'date', 'grand_total', 'status', 'created_at'))
94
-                        ->addColumn('#', function ($model) {
94
+                        ->addColumn('#', function($model) {
95 95
                             return "<input type='checkbox' value=".$model->id.' name=select[] id=check>';
96 96
                         })
97
-                        ->addColumn('user_id', function ($model) {
97
+                        ->addColumn('user_id', function($model) {
98 98
 
99 99
                             $first = $this->user->where('id', $model->user_id)->first()->first_name;
100 100
                             $last = $this->user->where('id', $model->user_id)->first()->last_name;
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
                             return '<a href='.url('clients/'.$id).'>'.ucfirst($first).' '.ucfirst($last).'</a>';
104 104
                         })
105 105
                         ->showColumns('number', 'created_at', 'grand_total', 'status')
106
-                        ->addColumn('action', function ($model) {
106
+                        ->addColumn('action', function($model) {
107 107
                             $order = \App\Model\Order\Order::where('invoice_id', $model->id)->first();
108 108
                             if (!$order) {
109 109
                                 $action = '<a href='.url('order/execute?invoiceid='.$model->id)." class='btn btn-sm btn-primary'>Execute Order</a>";
Please login to merge, or discard this patch.
app/Http/Controllers/Payment/PromotionController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,14 +58,14 @@  discard block
 block discarded – undo
58 58
     public function GetPromotion()
59 59
     {
60 60
         return \Datatable::collection($this->promotion->select('code', 'type', 'id')->get())
61
-                        ->addColumn('#', function ($model) {
61
+                        ->addColumn('#', function($model) {
62 62
                             return "<input type='checkbox' value=".$model->id.' name=select[] id=check>';
63 63
                         })
64 64
                         ->showColumns('code')
65
-                        ->addColumn('type', function ($model) {
65
+                        ->addColumn('type', function($model) {
66 66
                             return $this->type->where('id', $model->type)->first()->name;
67 67
                         })
68
-                        ->addColumn('products', function ($model) {
68
+                        ->addColumn('products', function($model) {
69 69
                             $selected = $this->promoRelation->select('product_id')->where('promotion_id', $model->id)->get();
70 70
 
71 71
                             foreach ($selected as $key => $select) {
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
                                 return 'None';
78 78
                             }
79 79
                         })
80
-                        ->addColumn('action', function ($model) {
80
+                        ->addColumn('action', function($model) {
81 81
                             return '<a href='.url('promotions/'.$model->id.'/edit')." class='btn btn-sm btn-primary'>Edit</a>";
82 82
                         })
83 83
                         ->searchColumns('products')
Please login to merge, or discard this patch.
app/Http/Controllers/Common/SettingsController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
         return \Datatable::collection(new Collection($plugins))
61 61
                         ->searchColumns('name')
62
-                        ->addColumn('name', function ($model) {
62
+                        ->addColumn('name', function($model) {
63 63
                             if (array_has($model, 'path')) {
64 64
                                 if ($model['status'] == 0) {
65 65
                                     $activate = '<a href='.url('plugin/status/'.$model['path']).'>Activate</a>';
@@ -95,16 +95,16 @@  discard block
 block discarded – undo
95 95
 
96 96
                             return ucfirst($model['name']).$action;
97 97
                         })
98
-                        ->addColumn('description', function ($model) {
98
+                        ->addColumn('description', function($model) {
99 99
                             return ucfirst($model['description']);
100 100
                         })
101
-                        ->addColumn('author', function ($model) {
101
+                        ->addColumn('author', function($model) {
102 102
                             return ucfirst($model['author']);
103 103
                         })
104
-                        ->addColumn('website', function ($model) {
104
+                        ->addColumn('website', function($model) {
105 105
                             return '<a href='.$model['website'].' target=_blank>'.$model['website'].'</a>';
106 106
                         })
107
-                        ->addColumn('version', function ($model) {
107
+                        ->addColumn('version', function($model) {
108 108
                             return $model['version'];
109 109
                         })
110 110
                         ->make();
Please login to merge, or discard this patch.
samples/dhtmlxTreeView/common/connector/base_connector.php 2 patches
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -21,6 +21,9 @@  discard block
 block discarded – undo
21 21
     private $end;
22 22
     private $type;
23 23
 
24
+    /**
25
+     * @param string $start
26
+     */
24 27
     public function __construct($start, $end = '')
25 28
     {
26 29
         $this->start = $start;
@@ -39,6 +42,9 @@  discard block
 block discarded – undo
39 42
         $this->end = '';
40 43
     }
41 44
 
45
+    /**
46
+     * @param string $add
47
+     */
42 48
     public function set_type($add)
43 49
     {
44 50
         $this->type = $add;
@@ -455,6 +461,9 @@  discard block
 block discarded – undo
455 461
 
456 462
     protected $attributes;
457 463
 
464
+    /**
465
+     * @param string $name
466
+     */
458 467
     public function add_top_attribute($name, $string)
459 468
     {
460 469
         $this->attributes[$name] = $string;
@@ -1019,6 +1028,9 @@  discard block
 block discarded – undo
1019 1028
         $this->request->set_filters([]);
1020 1029
     }
1021 1030
 
1031
+    /**
1032
+     * @param FilterInterface $wrap
1033
+     */
1022 1034
     protected function apply_filters($wrap)
1023 1035
     {
1024 1036
         for ($i = 0; $i < count($this->filters); $i++) {
@@ -1032,6 +1044,9 @@  discard block
 block discarded – undo
1032 1044
         $this->sorts[] = ['name' => $name, 'direction' => $direction];
1033 1045
     }
1034 1046
 
1047
+    /**
1048
+     * @param SortInterface $wrap
1049
+     */
1035 1050
     protected function apply_sorts($wrap)
1036 1051
     {
1037 1052
         for ($i = 0; $i < count($this->sorts); $i++) {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -355,11 +355,11 @@
 block discarded – undo
355 355
     private $updating = false; //!< flag of update mode ( response for data-update )
356 356
     private $db; //!< db connection resource
357 357
     protected $dload; //!< flag of dyn. loading mode
358
-    public $access;  //!< AccessMaster instance
358
+    public $access; //!< AccessMaster instance
359 359
     protected $data_separator = "\n";
360 360
 
361
-    public $sql;    //DataWrapper instance
362
-    public $event;    //EventMaster instance
361
+    public $sql; //DataWrapper instance
362
+    public $event; //EventMaster instance
363 363
     public $limit = false;
364 364
 
365 365
     private $id_seed = 0; //!< default value, used to generate auto-IDs
Please login to merge, or discard this patch.
dhtmlxSuite_v50_std/samples/dhtmlxTreeView/common/connector/db_common.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -499,6 +499,10 @@
 block discarded – undo
499 499
         @return
500 500
             list of data fields ( ready to be used in SQL query )
501 501
     */
502
+
503
+    /**
504
+     * @param DBDataWrapper $db
505
+     */
502 506
     public function db_names_list($db)
503 507
     {
504 508
         $out = [];
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -9,19 +9,19 @@
 block discarded – undo
9 9
 **/
10 10
 class DataRequestConfig
11 11
 {
12
-    private $filters;    //!< array of filtering rules
13
-    private $relation = false;    //!< ID or other element used for linking hierarchy
14
-    private $sort_by;    //!< sorting field
15
-    private $start;    //!< start of requested data
16
-    private $count;    //!< length of requested data
12
+    private $filters; //!< array of filtering rules
13
+    private $relation = false; //!< ID or other element used for linking hierarchy
14
+    private $sort_by; //!< sorting field
15
+    private $start; //!< start of requested data
16
+    private $count; //!< length of requested data
17 17
 
18 18
     private $order = false;
19 19
     private $user;
20 20
     private $version;
21 21
 
22 22
     //for render_sql
23
-    private $source;    //!< souce table or another source destination
24
-    private $fieldset;    //!< set of data, which need to be retrieved from source
23
+    private $source; //!< souce table or another source destination
24
+    private $fieldset; //!< set of data, which need to be retrieved from source
25 25
 
26 26
     /*! constructor
27 27
 
Please login to merge, or discard this patch.
dhtmlxSuite_v50_std/samples/dhtmlxTreeView/common/connector/tools.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -67,6 +67,10 @@
 block discarded – undo
67 67
         self::$eventsStatic[$name][] = $method;
68 68
     }
69 69
 
70
+    /**
71
+     * @param string $name
72
+     * @param Connector $method
73
+     */
70 74
     public static function trigger_static($name, $method)
71 75
     {
72 76
         $arg_list = func_get_args();
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
 **/
138 138
 class AccessMaster
139 139
 {
140
-    private $rules,$local;
140
+    private $rules, $local;
141 141
 
142 142
     /*! constructor
143 143
 
Please login to merge, or discard this patch.
dhtmlxSuite_v50_std/samples/dhtmlxTreeView/common/connector/xss_filter.php 3 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -190,6 +190,9 @@
 block discarded – undo
190 190
         die();
191 191
     }
192 192
 
193
+    /**
194
+     * @param boolean $edit
195
+     */
193 196
     public static function checkCSRF($edit)
194 197
     {
195 198
         if (self::$security_key) {
Please login to merge, or discard this patch.
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -121,19 +121,19 @@
 block discarded – undo
121 121
         if (class_exists('tidy')) {
122 122
             $tidy = new tidy();
123 123
             $tidyOptions = ['output-xhtml'                     => true,
124
-                                 'show-body-only'              => true,
125
-                                 'clean'                       => true,
126
-                                 'wrap'                        => '350',
127
-                                 'indent'                      => true,
128
-                                 'indent-spaces'               => 1,
129
-                                 'ascii-chars'                 => false,
130
-                                 'wrap-attributes'             => false,
131
-                                 'alt-text'                    => '',
132
-                                 'doctype'                     => 'loose',
133
-                                 'numeric-entities'            => true,
134
-                                 'drop-proprietary-attributes' => true,
135
-                                 'enclose-text'                => false,
136
-                                 'enclose-block-text'          => false,
124
+                                    'show-body-only'              => true,
125
+                                    'clean'                       => true,
126
+                                    'wrap'                        => '350',
127
+                                    'indent'                      => true,
128
+                                    'indent-spaces'               => 1,
129
+                                    'ascii-chars'                 => false,
130
+                                    'wrap-attributes'             => false,
131
+                                    'alt-text'                    => '',
132
+                                    'doctype'                     => 'loose',
133
+                                    'numeric-entities'            => true,
134
+                                    'drop-proprietary-attributes' => true,
135
+                                    'enclose-text'                => false,
136
+                                    'enclose-block-text'          => false,
137 137
 
138 138
             ];
139 139
             $tidy->parseString($string, $tidyOptions, 'utf8');
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@
 block discarded – undo
177 177
 
178 178
             return self::$filterClass->basic($value);
179 179
         }
180
-        throw new Error('Invalid security mode:' + $mode);
180
+        throw new Error('Invalid security mode:' +$mode);
181 181
     }
182 182
 
183 183
     public static function CSRF_detected()
Please login to merge, or discard this patch.