@@ -35,7 +35,6 @@ |
||
| 35 | 35 | print '(' . $album->next('label')->text() . ')' .PHP_EOL; |
| 36 | 36 | } |
| 37 | 37 | } |
| 38 | -} |
|
| 39 | -catch (Exception $e) { |
|
| 38 | +} catch (Exception $e) { |
|
| 40 | 39 | print $e->getMessage(); |
| 41 | 40 | } |
@@ -48,7 +48,9 @@ discard block |
||
| 48 | 48 | $category = array_search($entry->find('category:first')->attr('name'), $qparray); |
| 49 | 49 | while($entry->next('category')->html() != null) { |
| 50 | 50 | $category = (array_search($entry->attr('name'), $qparray)) ? true : $category; |
| 51 | - if($category) break; |
|
| 51 | + if($category) { |
|
| 52 | + break; |
|
| 53 | + } |
|
| 52 | 54 | } |
| 53 | 55 | if($category) { |
| 54 | 56 | $jqnames[$entry->parent()->attr('name')] = |
@@ -77,8 +79,7 @@ discard block |
||
| 77 | 79 | $qpdoc->top()->find('#righttext')->text($qpnames[$key]['jquery']); |
| 78 | 80 | $qpdoc->top()->find('#righttitle2')->text('How it\'s done in QueryPath'); |
| 79 | 81 | $qpdoc->top()->find('#righttext2')->text($qpnames[$key]['querypath']); |
| 80 | - } |
|
| 81 | - else { |
|
| 82 | + } else { |
|
| 82 | 83 | $qpdoc->top()->find('#rightfunction')->text('Function: '.ucfirst($key)); |
| 83 | 84 | $qpdoc->top()->find('#rightdesc')->remove(); |
| 84 | 85 | $qpdoc->top()->find('#righttitle')->text('jQuery Documentation'); |