Skip to content

Commit 2847517

Browse files
committed
Bumbed stubs
1 parent a295eb8 commit 2847517

36 files changed

+293
-289
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ Autocomplete Phalcon v4 plugin for PhpStorm based on the [Phalcon/ide-stubs](htt
33

44
# Creating .jar
55
```bash
6-
zip -r phpstorm-phalcon-4-plugin-v4.0.3.jar *
6+
zip -r phpstorm-phalcon-4-plugin-v4.0.4.jar *
77
```

plugin/META-INF/plugin.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<idea-plugin version="2">
22
<id>io.ruudboon.phpstorm-phalcon-4-autocomplete</id>
33
<name>Phalcon 4 Autocomplete</name>
4-
<version>4.0.3</version>
4+
<version>4.0.4</version>
55
<vendor email="[email protected]" url="https://github.com/ruudboon/phpstorm-phalcon-4-autocomplete">Ruud Boon</vendor>
66

77
<description><![CDATA[
88
Provides autocomplete functionality for Phalcon 4.
99
]]></description>
1010

1111
<change-notes><![CDATA[
12-
<h3>4.0.3</h3>
12+
<h3>4.0.4</h3>
1313
<ul>
14-
<li>IDE Stubs for Phalcon 4.0.3</li>
14+
<li>IDE Stubs for Phalcon 4.0.4</li>
1515
</ul>
1616
]]>
1717
</change-notes>

plugin/src/Phalcon/Assets/Asset/Js.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace Phalcon\Assets\Asset;
1111

1212
/**
13-
* Represents Javascript assets
13+
* Represents JavaScript assets
1414
*/
1515
class Js extends \Phalcon\Assets\Asset
1616
{

plugin/src/Phalcon/Assets/Collection.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class Collection implements \Countable, \Iterator
6464
/**
6565
* @var int
6666
*/
67-
protected $position;
67+
protected $position = 0;
6868

6969
/**
7070
* @var string
@@ -270,7 +270,7 @@ public function addInlineCss(string $content, bool $filter = true, $attributes =
270270
}
271271

272272
/**
273-
* Adds an inline javascript to the collection
273+
* Adds an inline JavaScript to the collection
274274
*
275275
* @param string $content
276276
* @param bool $filter
@@ -282,7 +282,7 @@ public function addInlineJs(string $content, bool $filter = true, $attributes =
282282
}
283283

284284
/**
285-
* Adds a javascript asset to the collection
285+
* Adds a JavaScript asset to the collection
286286
*
287287
* @param array $attributes
288288
* @param string $path

plugin/src/Phalcon/Assets/Filters/Cssmin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace Phalcon\Assets\Filters;
1111

1212
/**
13-
* Minify the css - removes comments removes newlines and line feeds keeping
13+
* Minify the CSS - removes comments removes newlines and line feeds keeping
1414
* removes last semicolon from last property
1515
*/
1616
class Cssmin implements \Phalcon\Assets\FilterInterface

plugin/src/Phalcon/Assets/Manager.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* Phalcon\Assets\Manager
1616
*
17-
* Manages collections of CSS/Javascript assets
17+
* Manages collections of CSS/JavaScript assets
1818
*/
1919
class Manager extends AbstractInjectionAware
2020
{
@@ -78,7 +78,7 @@ public function addAssetByType(string $type, Asset $asset): Manager
7878
}
7979

8080
/**
81-
* Adds a Css asset to the 'css' collection
81+
* Adds a CSS asset to the 'css' collection
8282
*
8383
* ```php
8484
* $assets->addCss("css/bootstrap.css");
@@ -119,7 +119,7 @@ public function addInlineCodeByType(string $type, Inline $code): Manager
119119
}
120120

121121
/**
122-
* Adds an inline Css to the 'css' collection
122+
* Adds an inline CSS to the 'css' collection
123123
*
124124
* @param string $content
125125
* @param mixed $filter
@@ -131,7 +131,7 @@ public function addInlineCss(string $content, $filter = true, $attributes = null
131131
}
132132

133133
/**
134-
* Adds an inline javascript to the 'js' collection
134+
* Adds an inline JavaScript to the 'js' collection
135135
*
136136
* @param string $content
137137
* @param mixed $filter
@@ -143,7 +143,7 @@ public function addInlineJs(string $content, $filter = true, $attributes = null)
143143
}
144144

145145
/**
146-
* Adds a javascript asset to the 'js' collection
146+
* Adds a JavaScript asset to the 'js' collection
147147
*
148148
* ```php
149149
* $assets->addJs("scripts/jquery.js");

plugin/src/Phalcon/Db/Adapter/AbstractAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ public function fetchAll(string $sqlQuery, int $fetchMode = Enum::FETCH_ASSOC, $
421421
*
422422
* // Getting name of last edited robot
423423
* $robot = $connection->fetchColumn(
424-
* "SELECT id, name FROM robots order by modified desc",
424+
* "SELECT id, name FROM robots ORDER BY modified DESC",
425425
* 1
426426
* );
427427
* print_r($robot);

plugin/src/Phalcon/Db/Adapter/AdapterInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,12 +267,12 @@ public function fetchAll(string $sqlQuery, int $fetchMode = 2, $placeholders = n
267267
*
268268
* ```php
269269
* // Getting count of robots
270-
* $robotsCount = $connection->fetchColumn("SELECT count() FROM robots");
270+
* $robotsCount = $connection->fetchColumn("SELECT COUNT() FROM robots");
271271
* print_r($robotsCount);
272272
*
273273
* // Getting name of last edited robot
274274
* $robot = $connection->fetchColumn(
275-
* "SELECT id, name FROM robots order by modified desc",
275+
* "SELECT id, name FROM robots ORDER BY modified DESC",
276276
* 1
277277
* );
278278
* print_r($robot);

plugin/src/Phalcon/Db/Adapter/Pdo/Mysql.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace Phalcon\Db\Adapter\Pdo;
1111

1212
/**
13-
* Specific functions for the Mysql database system
13+
* Specific functions for the MySQL database system
1414
*
1515
* ```php
1616
* use Phalcon\Db\Adapter\Pdo\Mysql;

plugin/src/Phalcon/Db/Adapter/Pdo/Postgresql.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use Phalcon\Db\RawValue;
1313

1414
/**
15-
* Specific functions for the Postgresql database system
15+
* Specific functions for the PostgreSQL database system
1616
*
1717
* ```php
1818
* use Phalcon\Db\Adapter\Pdo\Postgresql;

plugin/src/Phalcon/Db/Adapter/Pdo/Sqlite.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use Phalcon\Db\RawValue;
1313

1414
/**
15-
* Specific functions for the Sqlite database system
15+
* Specific functions for the SQLite database system
1616
*
1717
* ```php
1818
* use Phalcon\Db\Adapter\Pdo\Sqlite;

plugin/src/Phalcon/Db/Column.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,11 @@ class Column implements \Phalcon\Db\ColumnInterface
250250
/**
251251
* Column not nullable?
252252
*
253+
* Default SQL definition is NOT NULL.
254+
*
253255
* @var bool
254256
*/
255-
protected $notNull = false;
257+
protected $notNull = true;
256258

257259
/**
258260
* Column is part of the primary key?

plugin/src/Phalcon/Debug.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function debugVar($varz, string $key = null): Debug
7474
}
7575

7676
/**
77-
* Returns the css sources
77+
* Returns the CSS sources
7878
*
7979
* @return string
8080
*/
@@ -83,7 +83,7 @@ public function getCssSources(): string
8383
}
8484

8585
/**
86-
* Returns the javascript sources
86+
* Returns the JavaScript sources
8787
*
8888
* @return string
8989
*/

plugin/src/Phalcon/Escaper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function escapeCss(string $css): string
6969
}
7070

7171
/**
72-
* Escape javascript strings by replacing non-alphanumeric chars by their
72+
* Escape JavaScript strings by replacing non-alphanumeric chars by their
7373
* hexadecimal escaped representation
7474
*
7575
* @param string $js

plugin/src/Phalcon/Flash/AbstractFlash.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public function notice(string $message): string
143143
}
144144

145145
/**
146-
* Set the autoescape mode in generated html
146+
* Set the autoescape mode in generated HTML
147147
*
148148
* @param bool $autoescape
149149
* @return FlashInterface

plugin/src/Phalcon/Forms/Element/Check.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Check extends \Phalcon\Forms\Element\AbstractElement
1818
{
1919

2020
/**
21-
* Renders the element widget returning html
21+
* Renders the element widget returning HTML
2222
*
2323
* @param array $attributes
2424
* @return string

plugin/src/Phalcon/Forms/Element/Email.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Email extends \Phalcon\Forms\Element\AbstractElement
1818
{
1919

2020
/**
21-
* Renders the element widget returning html
21+
* Renders the element widget returning HTML
2222
*
2323
* @param array $attributes
2424
* @return string

plugin/src/Phalcon/Forms/Element/File.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class File extends \Phalcon\Forms\Element\AbstractElement
1616
{
1717

1818
/**
19-
* Renders the element widget returning html
19+
* Renders the element widget returning HTML
2020
*
2121
* @param array $attributes
2222
* @return string

plugin/src/Phalcon/Forms/Element/Hidden.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Hidden extends \Phalcon\Forms\Element\AbstractElement
1818
{
1919

2020
/**
21-
* Renders the element widget returning html
21+
* Renders the element widget returning HTML
2222
*
2323
* @param array $attributes
2424
* @return string

plugin/src/Phalcon/Forms/Element/Numeric.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Numeric extends \Phalcon\Forms\Element\AbstractElement
1818
{
1919

2020
/**
21-
* Renders the element widget returning html
21+
* Renders the element widget returning HTML
2222
*
2323
* @param array $attributes
2424
* @return string

plugin/src/Phalcon/Forms/Element/Password.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Password extends \Phalcon\Forms\Element\AbstractElement
1818
{
1919

2020
/**
21-
* Renders the element widget returning html
21+
* Renders the element widget returning HTML
2222
*
2323
* @param array $attributes
2424
* @return string

plugin/src/Phalcon/Forms/Element/Radio.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Radio extends \Phalcon\Forms\Element\AbstractElement
1818
{
1919

2020
/**
21-
* Renders the element widget returning html
21+
* Renders the element widget returning HTML
2222
*
2323
* @param array $attributes
2424
* @return string

plugin/src/Phalcon/Forms/Element/Select.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function getOptions()
5151
}
5252

5353
/**
54-
* Renders the element widget returning html
54+
* Renders the element widget returning HTML
5555
*
5656
* @param array $attributes
5757
* @return string

plugin/src/Phalcon/Html/Helper/AbstractHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* Phalcon\Html\Helper\AbstractHelper
1616
*
17-
* Abstract class for all html helpers
17+
* Abstract class for all HTML helpers
1818
*/
1919
abstract class AbstractHelper
2020
{

plugin/src/Phalcon/Mvc/Model.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ public function dump(): array
663663
* $transaction2->rollback();
664664
* ```
665665
*
666-
* @param arrray|string|int|null $parameters = [
666+
* @param array|string|int|null $parameters = [
667667
* 'conditions' => ''
668668
* 'columns' => '',
669669
* 'bind' => [],
@@ -752,7 +752,7 @@ public static function find($parameters = null): ResultsetInterface
752752
* );
753753
* ```
754754
*
755-
* @param arrray|string|int|null $parameters = [
755+
* @param array|string|int|null $parameters = [
756756
* 'conditions' => ''
757757
* 'columns' => '',
758758
* 'bind' => [],

0 commit comments

Comments
 (0)