Issues (686)

examples/pagination-component/page.php (2 issues)

1
<?php $this->extends('templates::examples/layout.php') ?>
2
3
<?php
4
$rqPageContent = rq(PageContent::class);
5
?>
6
7
<?php $this->block('content') ?>
8
                <div class="row">
9
                    <!-- Custom attribute: Component for paginated content. -->
10
                    <div class="col-md-12" <?= attr()->bind($rqPageContent) ?>>
11
                    </div>
12
                    <!-- Custom attribute: Component for pagination links. -->
13
                    <div class="col-md-12" <?= attr()->pagination($rqPageContent) ?>>
14
                    </div>
15
                </div>
16
<?php $this->endblock() ?>
17
18
<?php $this->block('code') ?>
19
                <div class="card code">
20
                    <div class="card-body">
21
                        <?= highlight_file(__DIR__ . '/code.php', true) ?>
0 ignored issues
show
Are you sure highlight_file(__DIR__ . '/code.php', true) of type string|true can be used in echo? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

21
                        <?= /** @scrutinizer ignore-type */ highlight_file(__DIR__ . '/code.php', true) ?>
Loading history...
22
                    </div>
23
                </div>
24
<?php $this->endblock() ?>
25
26
<?php $this->block('javascript') ?>
27
<script type='text/javascript'>
28
    /* <![CDATA[ */
29
    window.onload = function() {
30
        <?= $rqPageContent->showPage(1, 'This is the page title') ?>;
0 ignored issues
show
The method showPage() does not exist on Jaxon\Script\Call\JxnCall. Since you implemented __call, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

30
        <?= $rqPageContent->/** @scrutinizer ignore-call */ showPage(1, 'This is the page title') ?>;
Loading history...
31
    }
32
    /* ]]> */
33
</script>
34
<?php $this->endblock() ?>
35