Completed
Pull Request — master (#35)
by
unknown
01:48
created
src/DM/AjaxCom/Responder/Container/Container.php 2 patches
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -43,6 +43,7 @@  discard block
 block discarded – undo
43 43
      * Append html to container
44 44
      *
45 45
      * @var string $html
46
+     * @param string $html
46 47
      * @return Container
47 48
      */
48 49
 
@@ -86,6 +87,7 @@  discard block
 block discarded – undo
86 87
      * Sets inner html of container
87 88
      *
88 89
      * @var string $html
90
+     * @param string $html
89 91
      * @return Container
90 92
      */
91 93
     public function html($html)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@
 block discarded – undo
131 131
      */
132 132
     public function animate($enable = false)
133 133
     {
134
-        $this->setOption(self::OPTION_ANIMATE, (bool)$enable);
134
+        $this->setOption(self::OPTION_ANIMATE, (bool) $enable);
135 135
 
136 136
         return $this;
137 137
     }
Please login to merge, or discard this patch.
example/backend.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 $query = '';
7 7
 
8 8
 if (!empty($_GET['q'])) {
9
-   $query = strtolower($_GET['q']); 
9
+    $query = strtolower($_GET['q']); 
10 10
 }
11 11
 
12 12
 if (!empty($_GET['id'])) {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,12 +18,12 @@
 block discarded – undo
18 18
 /**
19 19
  * Normally, you would get the new row from partial
20 20
  */
21
-$newRowId = rand(4,100);
21
+$newRowId = rand(4, 100);
22 22
 $newRow = " <tr id='row{$newRowId}'>
23 23
                 <td>{$newRowId}</td>
24
-                <td>". (!empty($_POST['firstname'])?$_POST['firstname']:'Test') ."</td>
25
-                <td>". (!empty($_POST['lastname'])?$_POST['lastname']:'Row') ."</td>
26
-                <td>".  (!empty($_POST['username'])?$_POST['username']:'Love it yet?') ."</td>
24
+                <td>".(!empty($_POST['firstname']) ? $_POST['firstname'] : 'Test')."</td>
25
+                <td>". (!empty($_POST['lastname']) ? $_POST['lastname'] : 'Row')."</td>
26
+                <td>".  (!empty($_POST['username']) ? $_POST['username'] : 'Love it yet?')."</td>
27 27
                 <td>
28 28
                    <a href='/example/backend.php?q=edit&id=row{$newRowId}' class='btn' data-ajaxcom>Edit</a>
29 29
                    <a href='/example/backend.php?q=delete-by-id&id=row{$newRowId}' class='btn btn-danger' data-ajaxcom>Delete</a>
Please login to merge, or discard this patch.
src/DM/AjaxCom/Responder/Modal.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 
31 31
         $this->setOption(self::OPTION_HTML, $html);
32 32
         $this->setOption(self::OPTION_TYPE, $type);
33
-        $this->setOption(self::OPTION_AUTOREMOVE, (bool)$autoremove);
33
+        $this->setOption(self::OPTION_AUTOREMOVE, (bool) $autoremove);
34 34
     }
35 35
 
36 36
     /**
Please login to merge, or discard this patch.