@@ -29,19 +29,19 @@ discard block |
||
29 | 29 | // parameter represents the DataTables column identifier. In this case simple |
30 | 30 | // indexes |
31 | 31 | $columns = array( |
32 | - array( 'db' => 'id', 'dt' => 0 ), |
|
33 | - array( 'db' => 'firstname', 'dt' => 1 ), |
|
34 | - array( 'db' => 'surname', 'dt' => 2 ), |
|
35 | - array( 'db' => 'zip', 'dt' => 3 ), |
|
36 | - array( 'db' => 'country', 'dt' => 4 ) |
|
32 | + array( 'db' => 'id', 'dt' => 0 ), |
|
33 | + array( 'db' => 'firstname', 'dt' => 1 ), |
|
34 | + array( 'db' => 'surname', 'dt' => 2 ), |
|
35 | + array( 'db' => 'zip', 'dt' => 3 ), |
|
36 | + array( 'db' => 'country', 'dt' => 4 ) |
|
37 | 37 | ); |
38 | 38 | |
39 | 39 | // SQL server connection information |
40 | 40 | $sql_details = array( |
41 | - 'user' => '', |
|
42 | - 'pass' => '', |
|
43 | - 'db' => '', |
|
44 | - 'host' => '' |
|
41 | + 'user' => '', |
|
42 | + 'pass' => '', |
|
43 | + 'db' => '', |
|
44 | + 'host' => '' |
|
45 | 45 | ); |
46 | 46 | |
47 | 47 | |
@@ -53,6 +53,6 @@ discard block |
||
53 | 53 | require( '../../../../examples/server_side/scripts/ssp.class.php' ); |
54 | 54 | |
55 | 55 | echo json_encode( |
56 | - SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns ) |
|
56 | + SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns ) |
|
57 | 57 | ); |
58 | 58 |
@@ -127,7 +127,7 @@ |
||
127 | 127 | /** |
128 | 128 | * Returns the path to a provided file within the Flare package. |
129 | 129 | * |
130 | - * @param bool $fiepath |
|
130 | + * @param bool $filepath |
|
131 | 131 | * |
132 | 132 | * @return string |
133 | 133 | */ |
@@ -237,7 +237,6 @@ |
||
237 | 237 | /** |
238 | 238 | * Process Restore ModelItem Request. |
239 | 239 | * |
240 | - * @param int $page_id |
|
241 | 240 | * |
242 | 241 | * @return \Illuminate\Http\RedirectResponse |
243 | 242 | */ |
@@ -33,6 +33,7 @@ |
||
33 | 33 | * Create a new collection. |
34 | 34 | * |
35 | 35 | * @param mixed $items |
36 | + * @param ModelAdmin $modelManager |
|
36 | 37 | */ |
37 | 38 | public function __construct($items = [], $modelManager = null) |
38 | 39 | { |
@@ -138,6 +138,7 @@ |
||
138 | 138 | /** |
139 | 139 | * Performs the Model Query |
140 | 140 | * |
141 | + * @param boolean $count |
|
141 | 142 | * @return \Illuminate\Database\Eloquent\Collection |
142 | 143 | */ |
143 | 144 | private function query($count) |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | /** |
75 | 75 | * Log the user. |
76 | 76 | * |
77 | - * @return \Illuminate\Http\RedirectReponse |
|
77 | + * @return \Illuminate\Http\RedirectResponse |
|
78 | 78 | */ |
79 | 79 | public function getLogout() |
80 | 80 | { |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | * panel.If they do no, they will be sent |
118 | 118 | * to the homepage of the website. |
119 | 119 | * |
120 | - * @return \Illuminate\Http\RedirectReponse |
|
120 | + * @return \Illuminate\Http\RedirectResponse |
|
121 | 121 | */ |
122 | 122 | protected function loginRedirect() |
123 | 123 | { |
@@ -27,22 +27,22 @@ |
||
27 | 27 | |
28 | 28 | if (!empty($_POST)) |
29 | 29 | { |
30 | - foreach ( $_POST as $key => $value ) |
|
31 | - { |
|
32 | - if ( ( !is_string($value) && !is_numeric($value) ) || !is_string($key) ) |
|
33 | - continue; |
|
30 | + foreach ( $_POST as $key => $value ) |
|
31 | + { |
|
32 | + if ( ( !is_string($value) && !is_numeric($value) ) || !is_string($key) ) |
|
33 | + continue; |
|
34 | 34 | |
35 | - if ( get_magic_quotes_gpc() ) |
|
36 | - $value = htmlspecialchars( stripslashes((string)$value) ); |
|
37 | - else |
|
38 | - $value = htmlspecialchars( (string)$value ); |
|
35 | + if ( get_magic_quotes_gpc() ) |
|
36 | + $value = htmlspecialchars( stripslashes((string)$value) ); |
|
37 | + else |
|
38 | + $value = htmlspecialchars( (string)$value ); |
|
39 | 39 | ?> |
40 | 40 | <tr> |
41 | 41 | <th style="vertical-align: top"><?php echo htmlspecialchars( (string)$key ); ?></th> |
42 | 42 | <td><pre class="samples"><?php echo $value; ?></pre></td> |
43 | 43 | </tr> |
44 | 44 | <?php |
45 | - } |
|
45 | + } |
|
46 | 46 | } |
47 | 47 | ?> |
48 | 48 | </table> |
@@ -74,7 +74,7 @@ |
||
74 | 74 | /** |
75 | 75 | * Log the user. |
76 | 76 | * |
77 | - * @return \Illuminate\Http\RedirectReponse |
|
77 | + * @return \Illuminate\Http\RedirectResponse |
|
78 | 78 | */ |
79 | 79 | public function getLogout() |
80 | 80 | { |
@@ -98,7 +98,7 @@ |
||
98 | 98 | /** |
99 | 99 | * Returns the Application Instance. |
100 | 100 | * |
101 | - * @return mixed |
|
101 | + * @return Application |
|
102 | 102 | */ |
103 | 103 | public function app() |
104 | 104 | { |