Completed
Push — master ( d34386...e5cdd3 )
by Manish
116:42 queued 59:07
created
samples/dhtmlxTree/12_loading_processing_data/php/xml.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,8 +8,8 @@
 block discarded – undo
8 8
     $url_var = 0;
9 9
 }
10 10
 echo "<tree id='".$url_var."'>";
11
-         for ($inta = 0; $inta < 4; $inta++) {
12
-             print "<item child='1' id='".$url_var.'_'.$inta."' text='Item ".$url_var.'-'.$inta."'><userdata name='ud_block'>ud_data</userdata></item>";
13
-         }
11
+            for ($inta = 0; $inta < 4; $inta++) {
12
+                print "<item child='1' id='".$url_var.'_'.$inta."' text='Item ".$url_var.'-'.$inta."'><userdata name='ud_block'>ud_data</userdata></item>";
13
+            }
14 14
 echo '</tree>';
15 15
 ?> 
Please login to merge, or discard this patch.
dhtmlxSuite_v50_std/samples/dhtmlxTree/04_dataprocessor/php/update.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
 
57 57
     //insert new row
58 58
     $sql = 'Insert into samples_tree(item_nm,item_parent_id,item_desc,item_order,GUID) ';
59
-    $sql .=    "Values('".addslashes($_GET['tr_text'])."',".$_GET['tr_pid'].",'',".$_GET['tr_order'].",'".$_SESSION['id']."')";
59
+    $sql .= "Values('".addslashes($_GET['tr_text'])."',".$_GET['tr_pid'].",'',".$_GET['tr_order'].",'".$_SESSION['id']."')";
60 60
 
61 61
     $res = mysql_query($sql);
62 62
     $newId = mysql_insert_id();
Please login to merge, or discard this patch.
samples/dhtmlxGrid/14_loading_big_datasets/php/50000_load_grid.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,8 +48,8 @@
 block discarded – undo
48 48
     if (!isset($_GET['direction']) || $_GET['direction'] == 'asc') {
49 49
         $_GET['direction'] = 'ASC';
50 50
     } else {
51
-         $_GET['direction'] = 'DESC';
52
-     }
51
+            $_GET['direction'] = 'DESC';
52
+        }
53 53
 
54 54
 
55 55
     $fields = ['item_nm', '', 'item_cd'];
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
     //print one level of the tree, based on parent_id
61 61
 function getDataFromDB($name_mask, $code_mask, $sort_by, $sort_dir)
62 62
 {
63
-    global $posStart,$count,$nm_mask,$cd_mask;
63
+    global $posStart, $count, $nm_mask, $cd_mask;
64 64
     $sql = 'SELECT  * FROM grid50000 Where 0=0';
65 65
     if ($nm_mask != '') {
66 66
         $sql .= " and item_nm like '$nm_mask%'";
Please login to merge, or discard this patch.
samples/dhtmlxTreeView/common/connector/tree_connector.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -229,7 +229,7 @@
 block discarded – undo
229 229
         $this->request->set_limit(0, 0); //netralize default reaction on dyn. loading mode
230 230
     }
231 231
 
232
-   /*! renders self as  xml, starting part
232
+    /*! renders self as  xml, starting part
233 233
     */
234 234
     public function xml_start()
235 235
     {
Please login to merge, or discard this patch.
samples/dhtmlxDataView/common/connector/dataprocessor.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
         $this->status = $status;
441 441
     }
442 442
 
443
-   /*! set id
443
+    /*! set id
444 444
     @param  id
445 445
         id value
446 446
     */
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
         LogMaster::log('Change id: '.$id);
451 451
     }
452 452
 
453
-   /*! set id
453
+    /*! set id
454 454
     @param  id
455 455
         id value
456 456
     */
Please login to merge, or discard this patch.
dhtmlxSuite_v50_std/samples/dhtmlxDataView/common/connector/tools.php 2 patches
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.
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.
samples/dhtmlxDataView/common/connector/base_connector.php 2 patches
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.
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.
dhtmlxSuite_v50_std/samples/dhtmlxDataView/common/connector/db_common.php 2 patches
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.
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.
dhtmlxSuite_v50_std/samples/dhtmlxDataView/common/connector/xss_filter.php 3 patches
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.
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.