Skip to content

Commit

Permalink
Merge pull request #39 from ruudboon/4.0.4
Browse files Browse the repository at this point in the history
4.0.4
  • Loading branch information
ruudboon authored Feb 16, 2020
2 parents 77e9609 + c33fc6f commit f3ef562
Show file tree
Hide file tree
Showing 37 changed files with 298 additions and 322 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: main
on: push
on:
pull_request:
push:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
matrix:
php-versions: [7.2, 7.3, 7.4]
steps:
- uses: actions/checkout@v2
Expand All @@ -21,7 +23,7 @@ jobs:
uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: composer install
run: composer install --no-interaction --no-ansi --no-progress --no-suggest
Expand Down
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
"Eclipse",
"autocomplete"
],
"homepage": "https://phalconphp.com",
"homepage": "https://phalconphp.io",
"license": "BSD-3-Clause",
"authors": [
{
"name": "Phalcon Team",
"email": "team@phalconphp.com",
"homepage": "https://phalconphp.com/en/team"
"email": "team@phalconphp.io",
"homepage": "https://phalconphp.io/en/team"
},
{
"name": "Contributors",
Expand All @@ -29,7 +29,7 @@
"support": {
"issues": "https://github.com/phalcon/ide-stubs/issues",
"source": "https://github.com/phalcon/ide-stubs",
"forum": "https://forum.phalconphp.com/"
"forum": "https://forum.phalconphp.io/"
},
"require": {
"php": ">=7.2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Assets/Asset/Js.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace Phalcon\Assets\Asset;

/**
* Represents Javascript assets
* Represents JavaScript assets
*/
class Js extends \Phalcon\Assets\Asset
{
Expand Down
6 changes: 3 additions & 3 deletions src/Phalcon/Assets/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class Collection implements \Countable, \Iterator
/**
* @var int
*/
protected $position;
protected $position = 0;

/**
* @var string
Expand Down Expand Up @@ -270,7 +270,7 @@ public function addInlineCss(string $content, bool $filter = true, $attributes =
}

/**
* Adds an inline javascript to the collection
* Adds an inline JavaScript to the collection
*
* @param string $content
* @param bool $filter
Expand All @@ -282,7 +282,7 @@ public function addInlineJs(string $content, bool $filter = true, $attributes =
}

/**
* Adds a javascript asset to the collection
* Adds a JavaScript asset to the collection
*
* @param array $attributes
* @param string $path
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Assets/Filters/Cssmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace Phalcon\Assets\Filters;

/**
* Minify the css - removes comments removes newlines and line feeds keeping
* Minify the CSS - removes comments removes newlines and line feeds keeping
* removes last semicolon from last property
*/
class Cssmin implements \Phalcon\Assets\FilterInterface
Expand Down
10 changes: 5 additions & 5 deletions src/Phalcon/Assets/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/**
* Phalcon\Assets\Manager
*
* Manages collections of CSS/Javascript assets
* Manages collections of CSS/JavaScript assets
*/
class Manager extends AbstractInjectionAware
{
Expand Down Expand Up @@ -78,7 +78,7 @@ public function addAssetByType(string $type, Asset $asset): Manager
}

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

/**
* Adds an inline Css to the 'css' collection
* Adds an inline CSS to the 'css' collection
*
* @param string $content
* @param mixed $filter
Expand All @@ -131,7 +131,7 @@ public function addInlineCss(string $content, $filter = true, $attributes = null
}

/**
* Adds an inline javascript to the 'js' collection
* Adds an inline JavaScript to the 'js' collection
*
* @param string $content
* @param mixed $filter
Expand All @@ -143,7 +143,7 @@ public function addInlineJs(string $content, $filter = true, $attributes = null)
}

/**
* Adds a javascript asset to the 'js' collection
* Adds a JavaScript asset to the 'js' collection
*
* ```php
* $assets->addJs("scripts/jquery.js");
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Db/Adapter/AbstractAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ public function fetchAll(string $sqlQuery, int $fetchMode = Enum::FETCH_ASSOC, $
*
* // Getting name of last edited robot
* $robot = $connection->fetchColumn(
* "SELECT id, name FROM robots order by modified desc",
* "SELECT id, name FROM robots ORDER BY modified DESC",
* 1
* );
* print_r($robot);
Expand Down
4 changes: 2 additions & 2 deletions src/Phalcon/Db/Adapter/AdapterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,12 +267,12 @@ public function fetchAll(string $sqlQuery, int $fetchMode = 2, $placeholders = n
*
* ```php
* // Getting count of robots
* $robotsCount = $connection->fetchColumn("SELECT count() FROM robots");
* $robotsCount = $connection->fetchColumn("SELECT COUNT() FROM robots");
* print_r($robotsCount);
*
* // Getting name of last edited robot
* $robot = $connection->fetchColumn(
* "SELECT id, name FROM robots order by modified desc",
* "SELECT id, name FROM robots ORDER BY modified DESC",
* 1
* );
* print_r($robot);
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Db/Adapter/Pdo/Mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace Phalcon\Db\Adapter\Pdo;

/**
* Specific functions for the Mysql database system
* Specific functions for the MySQL database system
*
* ```php
* use Phalcon\Db\Adapter\Pdo\Mysql;
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Db/Adapter/Pdo/Postgresql.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Phalcon\Db\RawValue;

/**
* Specific functions for the Postgresql database system
* Specific functions for the PostgreSQL database system
*
* ```php
* use Phalcon\Db\Adapter\Pdo\Postgresql;
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Db/Adapter/Pdo/Sqlite.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Phalcon\Db\RawValue;

/**
* Specific functions for the Sqlite database system
* Specific functions for the SQLite database system
*
* ```php
* use Phalcon\Db\Adapter\Pdo\Sqlite;
Expand Down
4 changes: 3 additions & 1 deletion src/Phalcon/Db/Column.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,11 @@ class Column implements \Phalcon\Db\ColumnInterface
/**
* Column not nullable?
*
* Default SQL definition is NOT NULL.
*
* @var bool
*/
protected $notNull = false;
protected $notNull = true;

/**
* Column is part of the primary key?
Expand Down
4 changes: 2 additions & 2 deletions src/Phalcon/Debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function debugVar($varz, string $key = null): Debug
}

/**
* Returns the css sources
* Returns the CSS sources
*
* @return string
*/
Expand All @@ -83,7 +83,7 @@ public function getCssSources(): string
}

/**
* Returns the javascript sources
* Returns the JavaScript sources
*
* @return string
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Escaper.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function escapeCss(string $css): string
}

/**
* Escape javascript strings by replacing non-alphanumeric chars by their
* Escape JavaScript strings by replacing non-alphanumeric chars by their
* hexadecimal escaped representation
*
* @param string $js
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Flash/AbstractFlash.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public function notice(string $message): string
}

/**
* Set the autoescape mode in generated html
* Set the autoescape mode in generated HTML
*
* @param bool $autoescape
* @return FlashInterface
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Forms/Element/Check.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Check extends \Phalcon\Forms\Element\AbstractElement
{

/**
* Renders the element widget returning html
* Renders the element widget returning HTML
*
* @param array $attributes
* @return string
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Forms/Element/Email.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Email extends \Phalcon\Forms\Element\AbstractElement
{

/**
* Renders the element widget returning html
* Renders the element widget returning HTML
*
* @param array $attributes
* @return string
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Forms/Element/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class File extends \Phalcon\Forms\Element\AbstractElement
{

/**
* Renders the element widget returning html
* Renders the element widget returning HTML
*
* @param array $attributes
* @return string
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Forms/Element/Hidden.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Hidden extends \Phalcon\Forms\Element\AbstractElement
{

/**
* Renders the element widget returning html
* Renders the element widget returning HTML
*
* @param array $attributes
* @return string
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Forms/Element/Numeric.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Numeric extends \Phalcon\Forms\Element\AbstractElement
{

/**
* Renders the element widget returning html
* Renders the element widget returning HTML
*
* @param array $attributes
* @return string
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Forms/Element/Password.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Password extends \Phalcon\Forms\Element\AbstractElement
{

/**
* Renders the element widget returning html
* Renders the element widget returning HTML
*
* @param array $attributes
* @return string
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Forms/Element/Radio.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Radio extends \Phalcon\Forms\Element\AbstractElement
{

/**
* Renders the element widget returning html
* Renders the element widget returning HTML
*
* @param array $attributes
* @return string
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Forms/Element/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function getOptions()
}

/**
* Renders the element widget returning html
* Renders the element widget returning HTML
*
* @param array $attributes
* @return string
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Html/Helper/AbstractHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/**
* Phalcon\Html\Helper\AbstractHelper
*
* Abstract class for all html helpers
* Abstract class for all HTML helpers
*/
abstract class AbstractHelper
{
Expand Down
4 changes: 2 additions & 2 deletions src/Phalcon/Mvc/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ public function dump(): array
* $transaction2->rollback();
* ```
*
* @param arrray|string|int|null $parameters = [
* @param array|string|int|null $parameters = [
* 'conditions' => ''
* 'columns' => '',
* 'bind' => [],
Expand Down Expand Up @@ -752,7 +752,7 @@ public static function find($parameters = null): ResultsetInterface
* );
* ```
*
* @param arrray|string|int|null $parameters = [
* @param array|string|int|null $parameters = [
* 'conditions' => ''
* 'columns' => '',
* 'bind' => [],
Expand Down
Loading

0 comments on commit f3ef562

Please sign in to comment.