Skip to content

Commit

Permalink
Fixed namespacing
Browse files Browse the repository at this point in the history
  • Loading branch information
Stardog committed Feb 15, 2017
1 parent fbb814c commit 2f98362
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src-phpws2/src/Resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,32 +109,32 @@ public function loadPostByType(\Canopy\Request $request,
foreach ($variable_names as $name) {
$var = $this->$name;
switch (1) {
case is_subclass_of($var, 'phpws2\Variable\StringVar') || is_a($var,
'phpws2\Variable\StringVar'):
case is_subclass_of($var, '\phpws2\Variable\StringVar') || is_a($var,
'\phpws2\Variable\StringVar'):
$result = $request->pullPostString($name);
$success = $result !== false;
break;

case is_subclass_of($var, 'phpws2\Variable\Arr') || is_a($var,
'phpws2\Variable\Arr'):
case is_subclass_of($var, '\phpws2\Variable\ArrayVar') || is_a($var,
'\phpws2\Variable\ArrayVar'):
$result = $request->pullPostString($name);
$success = $result !== false;
break;

case is_subclass_of($var, 'phpws2\Variable\Bool') || is_a($var,
'phpws2\Variable\Bool'):
case is_subclass_of($var, '\phpws2\Variable\BooleanVar') || is_a($var,
'\phpws2\Variable\BooleanVar'):
$result = $request->pullPostBoolean($name);
$success = $result !== null;
break;

case is_subclass_of($var, 'phpws2\Variable\Integer') || is_a($var,
'phpws2\Variable\Integer'):
case is_subclass_of($var, '\phpws2\Variable\IntegerVar') || is_a($var,
'\phpws2\Variable\IntegerVar'):
$result = $request->pullPostInteger($name);
$success = $result !== false;
break;

case is_subclass_of($var, 'phpws2\Variable\FloatVar') || is_a($var,
'phpws2\Variable\FloatVar'):
case is_subclass_of($var, '\phpws2\Variable\FloatVar') || is_a($var,
'\phpws2\Variable\FloatVar'):
$result = $request->pullPostFloat($name);
$success = $result !== false;
break;
Expand Down

0 comments on commit 2f98362

Please sign in to comment.