Completed
Pull Request — master (#36)
by
unknown
02:11
created
example/backend.php 1 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/Container/Container.php 1 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.
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.