Skip to content

Commit 8545d2d

Browse files
authored
Merge pull request #950 from phalcon/3.0.x
3.0.4
2 parents 1c112a6 + 6a57e61 commit 8545d2d

File tree

217 files changed

+331
-1024
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

217 files changed

+331
-1024
lines changed

.travis.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
language: php
2+
3+
sudo: required
4+
dist: trusty
5+
6+
php:
7+
- 5.5
8+
- 5.6
9+
10+
matrix:
11+
include:
12+
- php: 7.0
13+
env: ZEND_BACKEND="--backend=ZendEngine3"
14+
15+
git:
16+
depth: 1
17+
18+
cache:
19+
apt: true
20+
ccache: true
21+
timeout: 691200
22+
directories:
23+
- .temp
24+
- vendor
25+
- $HOME/.ccache
26+
- $HOME/.composer/cache
27+
28+
env:
29+
global:
30+
- ZEND_DONT_UNLOAD_MODULES=1
31+
- CC="ccache gcc"
32+
- PATH="$PATH:~/bin"
33+
- DISPLAY=":99.0"
34+
- PHALCON_VERSION="v3.0.2"
35+
36+
script:
37+
- tests/lint.sh --lint ${TRAVIS_BUILD_DIR}/ide/stubs
38+
39+
notifications:
40+
email:
41+
recipients:
42+
43+
on_success: change
44+
on_failure: always
45+
46+
addons:
47+
apt:
48+
packages:
49+
- gdb
50+
- re2c
51+
- beanstalkd
52+
- mysql-server-5.6
53+
- mysql-client-core-5.6
54+
- mysql-client-5.6

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
[![Software License](https://img.shields.io/badge/license-BSD--3-brightgreen.svg?style=flat-square)][:license:]
55
[![Total Downloads](https://img.shields.io/packagist/dt/phalcon/devtools.svg?style=flat-square)][:packagist:]
66
[![Daily Downloads](https://img.shields.io/packagist/dd/phalcon/devtools.svg?style=flat-square)][:packagist:]
7+
[![Build Status](https://travis-ci.org/phalcon/phalcon-devtools.svg?branch=master)][:travis:]
78

89
![Phalcon WebTools](https://cloud.githubusercontent.com/assets/1256298/18617851/b7d31558-7de2-11e6-83e0-30e5902af714.png)
910

@@ -34,8 +35,8 @@ Create the composer.json file as follows:
3435

3536
```json
3637
{
37-
"require": {
38-
"phalcon/devtools": "~3.0.2"
38+
"require-dev": {
39+
"phalcon/devtools": "~3.0.3"
3940
}
4041
}
4142
```
@@ -44,7 +45,7 @@ If you are still using Phalcon 2.0.x, create a `composer.json` with the followin
4445

4546
```json
4647
{
47-
"require": {
48+
"require-dev": {
4849
"phalcon/devtools": "^2.0"
4950
}
5051
}
@@ -112,6 +113,7 @@ Help:
112113
Lists the commands available in Phalcon devtools
113114

114115
Available commands:
116+
info (alias of: i)
115117
commands (alias of: list, enumerate)
116118
controller (alias of: create-controller)
117119
module (alias of: create-module)
@@ -147,3 +149,4 @@ Phalcon Developer Tools is open source software licensed under the [New BSD Lice
147149
[:packagist:]: https://packagist.org/packages/phalcon/devtools
148150
[:devtools:]: https://github.com/phalcon/phalcon-devtools
149151
[:license:]: https://github.com/phalcon/phalcon-devtools/blob/master/LICENSE.txt
152+
[:travis:]: https://travis-ci.org/phalcon/phalcon-devtools

bootstrap/autoload.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
/**
3838
* @const DEVTOOLS_START_MEMORY The memory usage at the start of the application. Used for profiling.
3939
*/
40-
defined('DEVTOOLS_START_TIME') || define('DEVTOOLS_START_MEMORY', memory_get_usage());
40+
defined('DEVTOOLS_START_MEMORY') || define('DEVTOOLS_START_MEMORY', memory_get_usage());
4141

4242
/**
4343
* @const PTOOLSPATH The path to the Phalcon Developers Tools.
@@ -127,8 +127,8 @@
127127
/**
128128
* Register the custom loader (if any)
129129
*/
130-
if (file_exists(PTOOLSPATH . DS . '.phalcon' . DS . 'autoload.php')) {
131-
require_once PTOOLSPATH . DS . '.phalcon' . DS . 'autoload.php';
130+
if (file_exists('.phalcon' . DS . 'autoload.php')) {
131+
require_once '.phalcon' . DS . 'autoload.php';
132132
}
133133

134134
if (Version::getId() < COMPATIBLE_VERSION) {

ide/stubs/Phalcon/Config.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ public static function __set_state(array $data) {}
166166
/**
167167
* Helper method for merge configs (forwarding nested config instance)
168168
*
169-
*
170169
* @param Config instance = null
171170
*
172171
* @param Config $config

ide/stubs/Phalcon/Crypt.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ public function getKey() {}
9292
/**
9393
* Pads texts before encryption
9494
*
95-
*
9695
* @see http://www.di-mgt.com.au/cryptopad.html
9796
* @param string $text
9897
* @param string $mode
@@ -105,7 +104,6 @@ protected function _cryptPadText($text, $mode, $blockSize, $paddingType) {}
105104
* Removes padding @a padding_type from @a text
106105
* If the function detects that the text was not padded, it will return it unmodified
107106
*
108-
*
109107
* @param string $text Message to be unpadded
110108
* @param string $mode Encryption mode; unpadding is applied only in CBC or ECB mode
111109
* @param int $blockSize Cipher block size

ide/stubs/Phalcon/Di.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ class Di implements \Phalcon\DiInterface
5959
/**
6060
* Events Manager
6161
*
62-
*
6362
* @var \Phalcon\Events\ManagerInterface
6463
*/
6564
protected $_eventsManager;
@@ -166,7 +165,6 @@ public function get($name, $parameters = null) {}
166165
* Resolves a service, the resolved service is stored in the DI, subsequent
167166
* requests for this service will return the same instance
168167
*
169-
*
170168
* @param string $name
171169
* @param array $parameters
172170
* @return mixed

ide/stubs/Phalcon/DiInterface.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ interface DiInterface extends \ArrayAccess
1313
/**
1414
* Registers a service in the services container
1515
*
16-
*
1716
* @param string $name
1817
* @param mixed $definition
1918
* @param boolean $shared
@@ -24,7 +23,6 @@ public function set($name, $definition, $shared = false);
2423
/**
2524
* Registers an "always shared" service in the services container
2625
*
27-
*
2826
* @param string $name
2927
* @param mixed $definition
3028
* @return \Phalcon\Di\ServiceInterface
@@ -43,7 +41,6 @@ public function remove($name);
4341
* Only is successful if a service hasn't been registered previously
4442
* with the same name
4543
*
46-
*
4744
* @param string $name
4845
* @param mixed $definition
4946
* @param boolean $shared
@@ -54,7 +51,6 @@ public function attempt($name, $definition, $shared = false);
5451
/**
5552
* Resolves the service based on its configuration
5653
*
57-
*
5854
* @param string $name
5955
* @param array $parameters
6056
* @return mixed
@@ -64,7 +60,6 @@ public function get($name, $parameters = null);
6460
/**
6561
* Returns a shared service based on their configuration
6662
*
67-
*
6863
* @param string $name
6964
* @param array $parameters
7065
* @return mixed
@@ -83,7 +78,6 @@ public function setRaw($name, \Phalcon\Di\ServiceInterface $rawDefinition);
8378
/**
8479
* Returns a service definition without resolving
8580
*
86-
*
8781
* @param string $name
8882
* @return mixed
8983
*/
@@ -115,7 +109,6 @@ public function wasFreshInstance();
115109
/**
116110
* Return the services registered in the DI
117111
*
118-
*
119112
* @return \Phalcon\Di\ServiceInterface[]
120113
*/
121114
public function getServices();

ide/stubs/Phalcon/Dispatcher.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ public function getActionName() {}
200200
/**
201201
* Sets action params to be dispatched
202202
*
203-
*
204203
* @param array $params
205204
*/
206205
public function setParams($params) {}
@@ -215,7 +214,6 @@ public function getParams() {}
215214
/**
216215
* Set a param by its name or numeric index
217216
*
218-
*
219217
* @param mixed $param
220218
* @param mixed $value
221219
*/
@@ -224,7 +222,6 @@ public function setParam($param, $value) {}
224222
/**
225223
* Gets a param by its name or numeric index
226224
*
227-
*
228225
* @param mixed $param
229226
* @param string|array $filters
230227
* @param mixed $defaultValue
@@ -235,7 +232,6 @@ public function getParam($param, $filters = null, $defaultValue = null) {}
235232
/**
236233
* Check if a param exists
237234
*
238-
*
239235
* @param mixed $param
240236
* @return bool
241237
*/
@@ -258,39 +254,34 @@ public function isFinished() {}
258254
/**
259255
* Sets the latest returned value by an action manually
260256
*
261-
*
262257
* @param mixed $value
263258
*/
264259
public function setReturnedValue($value) {}
265260

266261
/**
267262
* Returns value returned by the latest dispatched action
268263
*
269-
*
270264
* @return mixed
271265
*/
272266
public function getReturnedValue() {}
273267

274268
/**
275269
* Enable/Disable model binding during dispatch
276270
*
277-
*
278271
* @param boolean $value
279272
*/
280273
public function setModelBinding($value) {}
281274

282275
/**
283276
* Dispatches a handle action taking into account the routing parameters
284277
*
285-
*
286278
* @return object
287279
*/
288280
public function dispatch() {}
289281

290282
/**
291283
* Dispatches a handle action taking into account the routing parameters
292284
*
293-
*
294285
* @return object
295286
*/
296287
protected function _dispatch() {}
@@ -308,7 +299,6 @@ protected function _dispatch() {}
308299
* );
309300
* </code>
310301
*
311-
*
312302
* @param array $forward
313303
*/
314304
public function forward($forward) {}

ide/stubs/Phalcon/DispatcherInterface.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ public function getActionName();
6969
/**
7070
* Sets action params to be dispatched
7171
*
72-
*
7372
* @param array $params
7473
*/
7574
public function setParams($params);
@@ -84,7 +83,6 @@ public function getParams();
8483
/**
8584
* Set a param by its name or numeric index
8685
*
87-
*
8886
* @param mixed $param
8987
* @param mixed $value
9088
*/
@@ -93,7 +91,6 @@ public function setParam($param, $value);
9391
/**
9492
* Gets a param by its name or numeric index
9593
*
96-
*
9794
* @param mixed $param
9895
* @param string|array $filters
9996
* @return mixed
@@ -103,7 +100,6 @@ public function getParam($param, $filters = null);
103100
/**
104101
* Check if a param exists
105102
*
106-
*
107103
* @param mixed $param
108104
* @return bool
109105
*/
@@ -119,23 +115,20 @@ public function isFinished();
119115
/**
120116
* Returns value returned by the latest dispatched action
121117
*
122-
*
123118
* @return mixed
124119
*/
125120
public function getReturnedValue();
126121

127122
/**
128123
* Dispatches a handle action taking into account the routing parameters
129124
*
130-
*
131125
* @return object
132126
*/
133127
public function dispatch();
134128

135129
/**
136130
* Forwards the execution flow to another controller/action
137131
*
138-
*
139132
* @param array $forward
140133
*/
141134
public function forward($forward);

0 commit comments

Comments
 (0)