Skip to content

Commit f6f6c4d

Browse files
committed
Whitespace
1 parent bafa981 commit f6f6c4d

File tree

49 files changed

+1449
-1443
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1449
-1443
lines changed

ext/aspell/aspell.c

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -81,23 +81,23 @@ PHP_MINIT_FUNCTION(aspell)
8181
Load a dictionary */
8282
PHP_FUNCTION(aspell_new)
8383
{
84-
pval **master,**personal;
84+
pval **master, **personal;
8585
int argc;
8686
aspell *sc;
8787
int ind;
8888

8989
argc = ZEND_NUM_ARGS();
90-
if (argc < 1 || argc > 2 || zend_get_parameters_ex(argc,&master,&personal) == FAILURE) {
90+
if (argc < 1 || argc > 2 || zend_get_parameters_ex(argc, &master, &personal) == FAILURE) {
9191
WRONG_PARAM_COUNT;
9292
}
9393
convert_to_string_ex(master);
9494
if(argc==2)
9595
{
9696
convert_to_string_ex(personal) ;
97-
sc=aspell_new((*master)->value.str.val,(*personal)->value.str.val);
97+
sc=aspell_new((*master)->value.str.val, (*personal)->value.str.val);
9898
}
9999
else
100-
sc=aspell_new((*master)->value.str.val,"");
100+
sc=aspell_new((*master)->value.str.val, "");
101101

102102
ind = zend_list_insert(sc, le_aspell);
103103
RETURN_LONG(ind);
@@ -111,21 +111,21 @@ PHP_FUNCTION(aspell_suggest)
111111
pval **scin, **word;
112112
int argc;
113113
aspell *sc;
114-
int ind,type;
114+
int ind, type;
115115
aspellSuggestions *sug;
116116
size_t i;
117117

118118

119119
argc = ZEND_NUM_ARGS();
120-
if (argc != 2 || zend_get_parameters_ex(argc, &scin,&word) == FAILURE) {
120+
if (argc != 2 || zend_get_parameters_ex(argc, &scin, &word) == FAILURE) {
121121
WRONG_PARAM_COUNT;
122122
}
123123
convert_to_long_ex(scin);
124124
convert_to_string_ex(word);
125125
sc = (aspell *)zend_list_find((*scin)->value.lval, &type);
126126
if(!sc)
127127
{
128-
php_error(E_WARNING, "%d is not an ASPELL result index",(*scin)->value.lval);
128+
php_error(E_WARNING, "%d is not an ASPELL result index", (*scin)->value.lval);
129129
RETURN_FALSE;
130130
}
131131

@@ -135,7 +135,7 @@ PHP_FUNCTION(aspell_suggest)
135135

136136
sug = aspell_suggest(sc, (*word)->value.str.val);
137137
for (i = 0; i != sug->size; ++i) {
138-
add_next_index_string(return_value,(char *)sug->data[i],1);
138+
add_next_index_string(return_value, (char *)sug->data[i], 1);
139139
}
140140
aspell_free_suggestions(sug);
141141
}
@@ -146,20 +146,20 @@ PHP_FUNCTION(aspell_suggest)
146146
PHP_FUNCTION(aspell_check)
147147
{
148148
int type;
149-
pval **scin,**word;
149+
pval **scin, **word;
150150
aspell *sc;
151151

152152
int argc;
153153
argc = ZEND_NUM_ARGS();
154-
if (argc != 2 || zend_get_parameters_ex(argc, &scin,&word) == FAILURE) {
154+
if (argc != 2 || zend_get_parameters_ex(argc, &scin, &word) == FAILURE) {
155155
WRONG_PARAM_COUNT;
156156
}
157157
convert_to_long_ex(scin);
158158
convert_to_string_ex(word);
159159
sc= (aspell *) zend_list_find((*scin)->value.lval, &type);
160160
if(!sc)
161161
{
162-
php_error(E_WARNING, "%d is not an ASPELL result index",(*scin)->value.lval);
162+
php_error(E_WARNING, "%d is not an ASPELL result index", (*scin)->value.lval);
163163
RETURN_FALSE;
164164
}
165165
if (aspell_check(sc, (*word)->value.str.val))
@@ -177,21 +177,21 @@ PHP_FUNCTION(aspell_check)
177177
Return if word is valid, ignoring case or trying to trim it in any way */
178178
PHP_FUNCTION(aspell_check_raw)
179179
{
180-
pval **scin,**word;
180+
pval **scin, **word;
181181
int type;
182182
int argc;
183183
aspell *sc;
184184

185185
argc = ZEND_NUM_ARGS();
186-
if (argc != 2 || zend_get_parameters_ex(argc, &scin,&word) == FAILURE) {
186+
if (argc != 2 || zend_get_parameters_ex(argc, &scin, &word) == FAILURE) {
187187
WRONG_PARAM_COUNT;
188188
}
189189
convert_to_long_ex(scin);
190190
convert_to_string_ex(word);
191191
sc = (aspell *)zend_list_find((*scin)->value.lval, &type);
192192
if(!sc)
193193
{
194-
php_error(E_WARNING, "%d is not an ASPELL result index",(*scin)->value.lval);
194+
php_error(E_WARNING, "%d is not an ASPELL result index", (*scin)->value.lval);
195195
RETURN_FALSE;
196196
}
197197
if (aspell_check_raw(sc, (*word)->value.str.val))

0 commit comments

Comments
 (0)