Issues (686)

jaxon-examples/examples/plugins/page.php (4 issues)

1
<?php $this->extends('templates::examples/layout.php') ?>
2
3
<?php $this->block('content') ?>
4
                <div class="row">
5
                    <div class="col-md-12" id="div2">
6
                        &nbsp;
7
                    </div>
8
                    <div class="col-md-12">
9
                        <select class="form-select" id="colorselect" name="colorselect"
10
                            <?= attr()->on('change', rq('HelloWorld')
11
                                ->setColor(je('colorselect')->rd()->select())) ?>>
0 ignored issues
show
The method setColor() 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

11
                                ->/** @scrutinizer ignore-call */ setColor(je('colorselect')->rd()->select())) ?>>
Loading history...
12
                            <option value="black" selected="selected">Black</option>
13
                            <option value="red">Red</option>
14
                            <option value="green">Green</option>
15
                            <option value="blue">Blue</option>
16
                        </select>
17
                    </div>
18
                    <div class="col-md-12 buttons">
19
                        <button type="button" class="btn btn-primary" <?= attr()->click(rq('HelloWorld')->sayHello(1)
0 ignored issues
show
The method sayHello() 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

19
                        <button type="button" class="btn btn-primary" <?= attr()->click(rq('HelloWorld')->/** @scrutinizer ignore-call */ sayHello(1)
Loading history...
20
                            ->confirm('Sure?')) ?>>CLICK ME</button>
21
                        <button type="button" class="btn btn-primary" <?= attr()->click(rq('HelloWorld')->sayHello(0)
22
                            ->confirm('Sure?')) ?>>Click Me</button>
23
                        <button type="button" class="btn btn-primary" <?= attr()->click(rq('HelloWorld')->showDialog()
0 ignored issues
show
The method showDialog() 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

23
                        <button type="button" class="btn btn-primary" <?= attr()->click(rq('HelloWorld')->/** @scrutinizer ignore-call */ showDialog()
Loading history...
24
                            ->confirm('Sure?')) ?>>Show Dialog</button>
25
                    </div>
26
                </div>
27
<?php $this->endblock() ?>
28
29
<?php $this->block('code') ?>
30
                <div class="card code">
31
                    <div class="card-body">
32
                        <?= 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

32
                        <?= /** @scrutinizer ignore-type */ highlight_file(__DIR__ . '/code.php', true) ?>
Loading history...
33
                    </div>
34
                </div>
35
<?php $this->endblock() ?>
36
37
<?php $this->block('javascript') ?>
38
<script type='text/javascript'>
39
    /* <![CDATA[ */
40
    window.onload = function() {
41
        // Call the HelloWorld class to populate the 2nd div
42
        <?= rq('HelloWorld')->sayHello(0, false) ?>;
43
        // call the HelloWorld->setColor() method on load
44
        <?= rq('HelloWorld')->setColor(je('colorselect')->rd()->select(), false) ?>;
45
    }
46
    /* ]]> */
47
</script>
48
<?php $this->endblock() ?>
49